Skip to content

Instantly share code, notes, and snippets.

@Rockncoder
Last active August 27, 2017 17:37
Show Gist options
  • Save Rockncoder/b51f074481736f96721e5fffef1e13ef to your computer and use it in GitHub Desktop.
Save Rockncoder/b51f074481736f96721e5fffef1e13ef to your computer and use it in GitHub Desktop.
The command line fix for the react native transform error.
yarn remove babel-preset-react-native
yarn add babel-preset-react-native@2.1.0
npm link #(babel-preset-react-native -- sometimes you may need to included the package)
rm -rf node_modules (PC delete node_modules directory)
npm install
react-native run-android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment