2018-02-07 05:31:57 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*
|
2018-05-15 20:08:47 +00:00
|
|
|
* @format
|
2018-02-07 05:31:57 +00:00
|
|
|
* @flow
|
|
|
|
*/
|
2018-05-15 20:08:47 +00:00
|
|
|
|
2018-02-07 05:31:57 +00:00
|
|
|
'use strict';
|
|
|
|
|
2018-03-21 00:03:06 +00:00
|
|
|
const BatchedBridge = require('BatchedBridge');
|
|
|
|
|
2018-02-07 05:31:57 +00:00
|
|
|
// TODO @sema: Adjust types
|
|
|
|
import type {ReactNativeType} from 'ReactNativeTypes';
|
|
|
|
|
|
|
|
let ReactFabric;
|
|
|
|
|
|
|
|
if (__DEV__) {
|
|
|
|
ReactFabric = require('ReactFabric-dev');
|
|
|
|
} else {
|
|
|
|
ReactFabric = require('ReactFabric-prod');
|
|
|
|
}
|
|
|
|
|
2018-03-21 00:03:06 +00:00
|
|
|
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
|
|
|
|
|
2018-02-07 05:31:57 +00:00
|
|
|
module.exports = (ReactFabric: ReactNativeType);
|