[fabric] register ReactFabric to be callable module (#12405)

This commit is contained in:
Kevin Gozali authored and Dan Abramov committed 2018-03-20 14:56:18 +00:00
1 parent 8d09422424
commit 9d484edc4b
1 file changed
+5
+5
View File
@@ -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);