You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,23 +26,24 @@ if (global.__QuickSQLiteProxy == null) {
24
26
}
25
27
26
28
// Call the synchronous blocking install() function
27
-
constresult=RNQuickSQLiteInit.install()
28
-
if(result!==true){
29
-
thrownewError(
30
-
`Failed to install react-native-quick-sqlite: The QuickSQLite TurboModule could not be installed! Looks like something went wrong when installing JSI bindings: ${result}`
31
-
)
32
-
}
29
+
RNQuickSQLiteInit.install().then((result)=>{
30
+
if(result!==true){
31
+
thrownewError(
32
+
`Failed to install react-native-quick-sqlite: The QuickSQLite TurboModule could not be installed! Looks like something went wrong when installing JSI bindings: ${result}`
33
+
)
34
+
}
33
35
34
-
// Check again if the constructor now exists. If not, throw an error.
35
-
if(global.__QuickSQLiteProxy==null){
36
-
thrownewError(
37
-
'Failed to install react-native-quick-sqlite, the native initializer function does not exist. Are you trying to use QuickSQLite from different JS Runtimes?'
38
-
)
39
-
}
40
-
}
36
+
// Check again if the constructor now exists. If not, throw an error.
37
+
if(global.__QuickSQLiteProxy==null){
38
+
thrownewError(
39
+
'Failed to install react-native-quick-sqlite, the native initializer function does not exist. Are you trying to use QuickSQLite from different JS Runtimes?'
0 commit comments