This commit is contained in:
ammarahm-ed
2020-01-17 21:24:29 +05:00
33 changed files with 238 additions and 146 deletions

View File

@@ -20,7 +20,8 @@ import Icon from 'react-native-vector-icons/Feather';
import NavigationService from '../../services/NavigationService';
import {db} from '../../../App';
import FastStorage from 'react-native-fast-storage';
import {useTracked} from '../../provider';
import {_recieveEvent, _unSubscribeEvent} from '../DialogManager';
const w = Dimensions.get('window').width;
const h = Dimensions.get('window').height;
@@ -34,11 +35,11 @@ export const ActionSheetComponent = ({
rowItems = [],
columnItems = [],
}) => {
const [state, dispatch] = useTracked();
const {colors} = state;
const {colors, updateDB, changeColorScheme} = useAppContext();
// Todo
<<<<<<< HEAD
function changeColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
let newColors = setColorScheme(colors, accent);
StatusBar.setBarStyle(newColors.night ? 'light-content' : 'dark-content');
@@ -46,6 +47,8 @@ export const ActionSheetComponent = ({
dispatch({type: ACTIONS.THEME, colors: newColors});
}
=======
>>>>>>> cfee96fb230bdd33c710a5e72a80ccf2b82a8646
const [focused, setFocused] = useState(false);
const [note, setNote] = useState(
item
@@ -160,7 +163,7 @@ export const ActionSheetComponent = ({
}
}
dispatch({type: type});
updateDB();
setNote({...toAdd});
};