From 6620b1ff7db9e9cf906a2bcee3184a35c350f95b Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Thu, 16 Mar 2017 19:23:24 -0700 Subject: [PATCH] Added ReactNative feature-flag switch between Stack and Fiber builds Reviewed By: sebmarkbage Differential Revision: D4606164 fbshipit-source-id: 5f25dbc52298d359e11e52341ff3570c797a6ea9 --- Libraries/Renderer/src/renderers/native/ReactNative.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Libraries/Renderer/src/renderers/native/ReactNative.js b/Libraries/Renderer/src/renderers/native/ReactNative.js index 27c56d54b..527a53920 100644 --- a/Libraries/Renderer/src/renderers/native/ReactNative.js +++ b/Libraries/Renderer/src/renderers/native/ReactNative.js @@ -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')