How to run React-Native Examples?

后端 未结 9 2327
暗喜
暗喜 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:09

    1) Open your terminal and cd to the specific example you want to run cd home/XYZ/react-native-master/Examples/UIExplorer

    2) run npm install

    3) run npm start

    4) Open the example in Xcode and run it from there It should work fine.

    PS: It was so simple but a lot of answers mislead me too.

提交回复
热议问题