mirror of
https://github.com/status-im/react-native.git
synced 2025-01-20 06:18:57 +00:00
94dac23583
Summary: A simple shim just like ReactNative.js Plus a fork of renderApplication that exclusively will call ReactFabric. Reviewed By: mdvacca Differential Revision: D6919080 fbshipit-source-id: 5807105a6c45dd99584eb92a5570c6076e2d56b9
24 lines
508 B
JavaScript
24 lines
508 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';
|
|
|
|
// TODO @sema: Adjust types
|
|
import type {ReactNativeType} from 'ReactNativeTypes';
|
|
|
|
let ReactFabric;
|
|
|
|
if (__DEV__) {
|
|
ReactFabric = require('ReactFabric-dev');
|
|
} else {
|
|
ReactFabric = require('ReactFabric-prod');
|
|
}
|
|
|
|
module.exports = (ReactFabric: ReactNativeType);
|