Skip to content

Commit 6620b1f

Browse files
Brian Vaughnfacebook-github-bot
Brian Vaughn
authored andcommitted
Added ReactNative feature-flag switch between Stack and Fiber builds
Reviewed By: sebmarkbage Differential Revision: D4606164 fbshipit-source-id: 5f25dbc52298d359e11e52341ff3570c797a6ea9
1 parent 17cb70e commit 6620b1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Libraries/Renderer/src/renderers/native/ReactNative.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
*/
1212
'use strict';
1313

14-
// TODO (bvaughn) Enable Fiber experiement via ReactNativeFeatureFlags
15-
module.exports = require('ReactNativeStack');
14+
const ReactNativeFeatureFlags = require('ReactNativeFeatureFlags');
15+
16+
module.exports = ReactNativeFeatureFlags.useFiber
17+
? require('ReactNativeFiber')
18+
: require('ReactNativeStack')

0 commit comments

Comments
 (0)