[fabric] register ReactFabric to be callable module (#12405)
Kevin Gozali committed
Mar 20, 2018 at 07:56 UTC
9d484edc4b64160cb335a23a2cb21667fb2cdf4c
1 file changed
+5
scripts/rollup/shims/react-native/ReactFabric.js
+5
@@ -9,6 +9,8 @@
9
*/
10
'use strict';
11
12
+const BatchedBridge = require('BatchedBridge');
13
+
14
// TODO @sema: Adjust types
15
import type {ReactNativeType} from 'ReactNativeTypes';
16
@@ -20,4 +22,7 @@ if (__DEV__) {
22
ReactFabric = require('ReactFabric-prod');
23
}
24
25
+BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
26
+
27
module.exports = (ReactFabric: ReactNativeType);
28
+