update state managment

This commit is contained in:
ammarahm-ed
2020-01-17 00:23:16 +05:00
parent 978dee158c
commit 652033dfe5
31 changed files with 535 additions and 420 deletions

View File

@@ -21,8 +21,14 @@ import {h} from '../../utils/utils';
import {AnimatedSafeAreaView} from '../../views/Home';
import {useAppContext} from '../../provider/useAppContext';
import FastStorage from 'react-native-fast-storage';
import {useTracked} from '../../provider';
export const Menu = ({close = () => {}, hide, update = () => {}}) => {
const {colors, changeColorScheme} = useAppContext();
const [state, dispatch] = useTracked();
const {colors} = state;
// todo
const changeColorScheme = () => {};
const listItems = [
{