mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[crashlytics][ios] Fix a couple of minor issues
This commit is contained in:
@@ -238,7 +238,11 @@ class FirebaseCore {
|
||||
// default to the 'DEFAULT' app if no arg provided - will throw an error
|
||||
// if default app not initialized
|
||||
else if (!_app) _app = this.app(INTERNALS.STRINGS.DEFAULT_APP_NAME);
|
||||
return INTERNALS.APPS[_app._name][namespace](_app);
|
||||
const firebaseApp = INTERNALS.APPS[_app._name];
|
||||
if (namespace === 'crashlytics') {
|
||||
return firebaseApp.fabric[namespace](_app);
|
||||
}
|
||||
return firebaseApp[namespace](_app);
|
||||
};
|
||||
|
||||
return Object.assign(getNamespace, statics, {
|
||||
|
||||
Reference in New Issue
Block a user