Skip to content

Instantly share code, notes, and snippets.

@janicduplessis
Created July 19, 2017 21:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janicduplessis/99f11297a369fbea96bfdfd4a89e1944 to your computer and use it in GitHub Desktop.
Save janicduplessis/99f11297a369fbea96bfdfd4a89e1944 to your computer and use it in GitHub Desktop.
// @flow
/**
* Enables Fiber by changing the ReactNativeFeatureFlags.js file. This is likely
* to break when updating React Native, make sure the file hasn't changed location.
*/
const path = require('path');
const { sed } = require('shelljs');
const REACT_FLAGS_FILE = path.resolve(
__dirname,
'../node_modules/react-native/Libraries/Renderer/shims/ReactNativeFeatureFlags.js',
);
sed('-i', 'useFiber: false,', 'useFiber: true,', REACT_FLAGS_FILE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment