React Native iOS and Android folders not present

前端 未结 10 974
旧巷少年郎
旧巷少年郎 2020-12-13 00:03

I\'m new to react native, and I\'ve been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creati

相关标签:
10条回答
  • 2020-12-13 00:21

    Try this to generate the Android and iOS folder

    react-native eject
    
    react-native link
    
    0 讨论(0)
  • 2020-12-13 00:21

    in the begining install react native, after run expo init YourProject , choose minimal (Typescript) . after that go to YourProject directory and do not run npm start. but run npm run android. hope this help

    0 讨论(0)
  • 2020-12-13 00:23

    i think if you want to develop app with ReactNative you start follow this : Getting Started use React Native.

    If you create project with ReactNative just write on your terminal like:

    react-native init YourProjectName
    cd YourProjectName
    react-native run-ios //for iOS
    

    I hope my answer helping you to create project with ReactNative. thanks..

    0 讨论(0)
  • 2020-12-13 00:28

    You can get to that project structure by running:

    npm run eject
    

    However, it removes the app from the Expo framework, which adds a lot of nice benefits and abstraction from the Android/iOS code.

    0 讨论(0)
提交回复
热议问题