commit by adnan

This commit is contained in:
Ninjas Code - 4 2023-03-31 10:56:34 +05:00
parent 782d88b9f1
commit b68ad15d6b
1 changed files with 3 additions and 12 deletions

View File

@ -87,6 +87,7 @@ function Settings() {
refetchQueries: [{ query: PROFILE }],
});
const modalizeRef = useRef(null);
const modalizeRef1 = useRef(null);
useEffect(() => {
navigation.setOptions({
@ -310,17 +311,7 @@ function Settings() {
<TouchableOpacity
activeOpacity={0.7}
onPress={() => modalizeRef.current.open("top")}
// onPress={
// async () => {
// await updateUserInformation();
// logout();
// navigation.reset({
// routes: [{ name: "Menu" }],
// }
// );
// //navigation.dispatch(DrawerActions.closeDrawer());
// }}
onPress={() => modalizeRef1.current.open("top")}
style={[styles.notificationContainer, styles.shadow]}
>
<View style={styles.notificationChekboxContainer}>
@ -370,7 +361,7 @@ function Settings() {
</Modalize>
{/* Modal for Delete Account */}
<Modalize
ref={modalizeRef}
ref={modalizeRef1}
adjustToContentHeight
handlePosition="inside"
avoidKeyboardLikeIOS={Platform.select({