Added ReactNative feature-flag switch between Stack and Fiber builds

Reviewed By: sebmarkbage

Differential Revision: D4606164

fbshipit-source-id: 5f25dbc52298d359e11e52341ff3570c797a6ea9
This commit is contained in:
Brian Vaughn 2017-03-16 19:23:24 -07:00 committed by Facebook Github Bot
parent 17cb70efdd
commit 6620b1ff7d
1 changed files with 5 additions and 2 deletions

View File

@ -11,5 +11,8 @@
*/
'use strict';
// TODO (bvaughn) Enable Fiber experiement via ReactNativeFeatureFlags
module.exports = require('ReactNativeStack');
const ReactNativeFeatureFlags = require('ReactNativeFeatureFlags');
module.exports = ReactNativeFeatureFlags.useFiber
? require('ReactNativeFiber')
: require('ReactNativeStack')