From 9d484edc4b64160cb335a23a2cb21667fb2cdf4c Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 20 Mar 2018 07:56:18 -0700 Subject: [PATCH] [fabric] register ReactFabric to be callable module (#12405) --- scripts/rollup/shims/react-native/ReactFabric.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/rollup/shims/react-native/ReactFabric.js b/scripts/rollup/shims/react-native/ReactFabric.js index 4a396c224c..6ab336bf11 100644 --- a/scripts/rollup/shims/react-native/ReactFabric.js +++ b/scripts/rollup/shims/react-native/ReactFabric.js @@ -9,6 +9,8 @@ */ 'use strict'; +const BatchedBridge = require('BatchedBridge'); + // TODO @sema: Adjust types import type {ReactNativeType} from 'ReactNativeTypes'; @@ -20,4 +22,7 @@ if (__DEV__) { ReactFabric = require('ReactFabric-prod'); } +BatchedBridge.registerCallableModule('ReactFabric', ReactFabric); + module.exports = (ReactFabric: ReactNativeType); +