mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-05-11 23:48:56 +08:00
[internals] check _NATIVE_DISABLED before throwing native not found error
This commit is contained in:
@@ -74,7 +74,7 @@ export default class ModuleBase {
|
||||
// modules are now optionally part of build
|
||||
const nativeModule = NativeModules[this.constructor._NATIVE_MODULE];
|
||||
|
||||
if (!nativeModule) {
|
||||
if (!nativeModule && !this.constructor._NATIVE_DISABLED) {
|
||||
throw new Error(INTERNALS.STRINGS.ERROR_MISSING_MODULE(this.constructor._NAMESPACE, this.constructor._NATIVE_MODULE));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user