mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Fixed bug where module with moduleID of zero wouldn't be loaded
Reviewed By: jspahrsummers Differential Revision: D2744167 fb-gh-sync-id: b442af60618703ab19290d042b3614984cd9a3ae
This commit is contained in:
parent
ec5ca67044
commit
da153d3928
@ -44,7 +44,7 @@ Object.keys(RemoteModules).forEach((moduleName) => {
|
||||
enumerable: true,
|
||||
get: () => {
|
||||
let module = RemoteModules[moduleName];
|
||||
if (module && module.moduleID && global.nativeRequireModuleConfig) {
|
||||
if (module && typeof module.moduleID === 'number' && global.nativeRequireModuleConfig) {
|
||||
const json = global.nativeRequireModuleConfig(moduleName);
|
||||
const config = json && JSON.parse(json);
|
||||
module = config && BatchedBridge.processModuleConfig(config, module.moduleID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user