@umituz/react-native-firebase 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-firebase",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "description": "Unified Firebase package for React Native apps - Auth and Firestore services using Firebase JS SDK (no native modules).",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -32,6 +32,7 @@
32
32
  "url": "git+https://github.com/umituz/react-native-firebase.git"
33
33
  },
34
34
  "peerDependencies": {
35
+ "@gorhom/portal": "*",
35
36
  "@umituz/react-native-design-system": "*",
36
37
  "expo": ">=54.0.0",
37
38
  "expo-apple-authentication": ">=6.0.0",
@@ -5,6 +5,7 @@
5
5
 
6
6
  import React, { useState } from 'react';
7
7
  import { View, StyleSheet, Modal, KeyboardAvoidingView, Platform, TouchableOpacity } from 'react-native';
8
+ import { Portal } from '@gorhom/portal';
8
9
  import {
9
10
  AtomicInput,
10
11
  AtomicButton,
@@ -53,13 +54,16 @@ export const PasswordPromptScreen: React.FC<PasswordPromptScreenProps> = ({
53
54
  onCancel();
54
55
  };
55
56
 
57
+ if (!visible) return null;
58
+
56
59
  return (
57
- <Modal
58
- visible={visible}
59
- animationType="slide"
60
- presentationStyle="pageSheet"
61
- onRequestClose={handleCancel}
62
- >
60
+ <Portal>
61
+ <Modal
62
+ visible={visible}
63
+ animationType="slide"
64
+ presentationStyle="fullScreen"
65
+ onRequestClose={handleCancel}
66
+ >
63
67
  <SafeAreaView style={[styles.safeArea, { backgroundColor: tokens.colors.background }]} edges={['top', 'bottom']}>
64
68
  <View style={[styles.headerBar, { borderBottomColor: tokens.colors.border }]}>
65
69
  <TouchableOpacity onPress={handleCancel} style={styles.closeButton}>
@@ -115,7 +119,8 @@ export const PasswordPromptScreen: React.FC<PasswordPromptScreenProps> = ({
115
119
  </View>
116
120
  </KeyboardAvoidingView>
117
121
  </SafeAreaView>
118
- </Modal>
122
+ </Modal>
123
+ </Portal>
119
124
  );
120
125
  };
121
126
 
@@ -23,9 +23,11 @@ export const usePasswordPrompt = (options: UsePasswordPromptOptions = {}): UsePa
23
23
  const [resolvePromise, setResolvePromise] = useState<((value: string | null) => void) | null>(null);
24
24
 
25
25
  const showPasswordPrompt = useCallback((): Promise<string | null> => {
26
+ console.log("[usePasswordPrompt] showPasswordPrompt called - opening modal");
26
27
  return new Promise((resolve) => {
27
28
  setResolvePromise(() => resolve);
28
29
  setIsVisible(true);
30
+ console.log("[usePasswordPrompt] Modal visibility set to true");
29
31
  });
30
32
  }, []);
31
33