简体   繁体   中英

how can i import or open react-native project in android studio?

I'm trying to import or open react-native project in android studio.

My project name is cooking2-master.

However, I am confused whether I need to import the entire project ie (cooking2-master) or the android in the project.

This is my android studio image

在此处输入图像描述

What should I import? cooking2-master(which is my entire project folder)? or android in my project folder?

Here are the steps to open a react native app on Android Studio:

  1. Open Android Studio
  2. Click Open an Existing Project
  3. Browse to the folder with the react native project
  4. Click the android folder INSIDE the react native project folder
  5. Click Open

The important bit is that you open the android folder inside the react native project, not the react native folder itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM