fix state

This commit is contained in:
ammarahm-ed
2020-01-17 16:23:13 +05:00
parent 85d669ac7a
commit a879469ca4
35 changed files with 444 additions and 419 deletions

View File

@@ -3,16 +3,18 @@ import {View, TouchableOpacity} from 'react-native';
import {SIZE} from '../../common/common';
import Icon from 'react-native-vector-icons/Feather';
import {w} from '../../utils/utils';
import {useTracked} from '../../provider';
import {useAppContext} from '../../provider/useAppContext';
const SelectionWrapper = ({children, item}) => {
const [state, dispatch] = useTracked();
const {colors, selectionMode, selectedItemsList} = state;
const {
colors,
selectionMode,
selectedItemsList,
updateDB,
updateSelectionList,
changeSelectionMode,
} = useAppContext();
///
const updateDB = () => {};
const updateSelectionList = () => {};
const changeSelectionMode = () => {};
return (
<View
style={{