UNPKG

698 BJavaScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 * @flow
9 */
10
11'use strict';
12
13import {BatchedBridge} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
14
15// TODO @sema: Adjust types
16import type {ReactNativeType} from './ReactNativeTypes';
17
18let ReactFabric;
19
20if (__DEV__) {
21 ReactFabric = require('../implementations/ReactFabric-dev');
22} else {
23 ReactFabric = require('../implementations/ReactFabric-prod');
24}
25
26BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
27
28module.exports = (ReactFabric: ReactNativeType);