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

This commit is contained in:
Kevin Gozali
2018-03-20 14:56:18 +00:00
committed by Dan Abramov
parent 8d09422424
commit 9d484edc4b
+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);