Kevin Gozali 94dac23583 Added ReactFabric shim
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
2018-02-06 21:49:37 -08:00

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);