Using in conjunction with native SDK? #5360
-
Will the react-native-firebase framework work in conjunction with the native iOS Firebase SDK? For example, to make some calls from native and some from React Native. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It should yes. Be careful though, react-native-firebase has a strong expectation that it is in control of initialization for the apps in firebase-ios-sdk and you will run in to problems if you attempt to configure firebase-ios-sdk using non-react-native-firebase configuration mechanisms. Instead, if your native code has any execution paths that touch firebase-ios-sdk prior to react-native-firebase starting up and initializing you should call the react-native-firebase initialization machinery to make sure it is set up internally and in a consistent state This is not really something we support because no one really does it and the ones that do know what they're doing, although not always related discussion #4889 |
Beta Was this translation helpful? Give feedback.
It should yes. Be careful though, react-native-firebase has a strong expectation that it is in control of initialization for the apps in firebase-ios-sdk and you will run in to problems if you attempt to configure firebase-ios-sdk using non-react-native-firebase configuration mechanisms.
Instead, if your native code has any execution paths that touch firebase-ios-sdk prior to react-native-firebase starting up and initializing you should call the react-native-firebase initialization machinery to make sure it is set up internally and in a consistent state
This is not really something we support because no one really does it and the ones that do know what they're doing, although not always
r…