How to run React-Native Examples?

后端 未结 9 2151
暗喜
暗喜 2021-01-31 21:18

I can\'t find any instructions on how to install and run one of the other Examples provided in \'https://github.com/facebook/react-native/tree/master/Examples\' such as \'https:

9条回答
  •  清酒与你
    2021-01-31 22:15

    Just wanted to update this for people just trying to run an existing react-native project/app like me:

    In Terminal:

    1. npm install
    2. npm start (should open a separate window to run react package manager or it may use the existing terminal window, if that is the case you will need to open a new terminal window to type the command for step 3)
    3. react-native run-ios/react-native run-android

    **you may want to run npm update -g (while in the react native folder) to ensure all the npm packages are up to date before running npm install

提交回复
热议问题