Permalink
Browse files

Fix crash when overriding native modules on RCTJSCExecutor

Reviewed By: alexeylang

Differential Revision: D4769955

fbshipit-source-id: 20f4f4c469eafbe2c7a81ad9f5b9a8386195a8ac
  • Loading branch information...
javache authored and facebook-github-bot committed Mar 24, 2017
1 parent 893689c commit 3f46e591ff3e661ada68c15519a0dba13a81ecde
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/BatchedBridge/NativeModules.js
@@ -13,7 +13,6 @@
const BatchedBridge = require('BatchedBridge');
const defineLazyObjectProperty = require('defineLazyObjectProperty');
const invariant = require('fbjs/lib/invariant');
type ModuleConfig = [
@@ -125,6 +124,7 @@ if (global.nativeModuleProxy) {
const bridgeConfig = global.__fbBatchedBridgeConfig;
invariant(bridgeConfig, '__fbBatchedBridgeConfig is not set, cannot invoke native modules');
const defineLazyObjectProperty = require('defineLazyObjectProperty');
(bridgeConfig.remoteModuleConfig || []).forEach((config: ModuleConfig, moduleID: number) => {
// Initially this config will only contain the module name when running in JSC. The actual
// configuration of the module will be lazily loaded.

0 comments on commit 3f46e59

Please sign in to comment.