How can I regenerate ios folder in React Native project?

后端 未结 13 675
忘掉有多难
忘掉有多难 2020-11-29 20:13

So a while ago I deleted the /ios directory in my react native app (let\'s call it X). I\'ve been developing and testing using the android emulator but now I\'d like to make

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 20:41

    As @Alok mentioned in the comments, you can do react-native eject to generate the ios and android folders. But you will need an app.json in your project first.

    {"name": "example", "displayName": "Example"}
    

提交回复
热议问题