mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 17:45:59 +00:00
3b36a6bf06
Reviewed By: bvaughn Differential Revision: D7338640 fbshipit-source-id: e2d75d2f1795fb3c37f193d15216951c707711d9
29 lines
625 B
JavaScript
29 lines
625 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @providesModule ReactFabric
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
const BatchedBridge = require('BatchedBridge');
|
|
|
|
// TODO @sema: Adjust types
|
|
import type {ReactNativeType} from 'ReactNativeTypes';
|
|
|
|
let ReactFabric;
|
|
|
|
if (__DEV__) {
|
|
ReactFabric = require('ReactFabric-dev');
|
|
} else {
|
|
ReactFabric = require('ReactFabric-prod');
|
|
}
|
|
|
|
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
|
|
|
|
module.exports = (ReactFabric: ReactNativeType);
|
|
|