mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[fabric] register ReactFabric to be callable module (#12405)
This commit is contained in:
committed by
Dan Abramov
parent
8d09422424
commit
9d484edc4b
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user