React Native iOS and Android folders not present

前端 未结 10 989
旧巷少年郎
旧巷少年郎 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:17

    I think I am little late but follow this steps if you don't want to read any document.

    android and ios folder are not present when react native project is created with expo. so you have to detach expo from your project to create android and ios folder.

    first add required package name in app.json file

        ios: {
           bundleIdentifier: "com.yourcompany.yourappname",
        },
        android: {
           package: "com.yourcompany.yourappname",
        }
    

    then run below command in terminal

    exp detach
    

    after command is successfully executed you will find android and ios folder

提交回复
热议问题