mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
9b3861c109
Reviewed By: fkgozali Differential Revision: D7114865 fbshipit-source-id: f0a1c47c983e610fe0dba3051ed8aa350ac052cc
28 lines
624 B
JavaScript
28 lines
624 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);
|