Sunday, 26 September 2021

A Guide for trouble shooting react native errors

Well , while you download react native project from somewhere and try to run it is whole different game of errors and bugs , here I am trying to compile basics steps to try.

Here official trouble shooting page : https://reactnative.dev/docs/troubleshooting




  1. know the folder structure : https://medium.com/habilelabs/best-folder-structure-for-react-native-project-a46405bdba7
  2. Know your npm version : npm -v
  3. Know you node version : node -v
  4. Know your react native version : npm react-native -v
  5. remember there are 4 key folders : android , ios , nodejs, and root folder.
  6. package.json in root folder contains all information about packages to be installed
  7. Run : npm install , inside root directory.
  8. if this installed successfully : npx react-native run-android
  9. watch out any error at this point

No comments:

Post a Comment