React native init android,ios and app folder missing

Viewed 25141

Missing android,ios & app folders and index js files

I'm using react native v 0.1.10 in windows 7 OS

7 Answers

Try this to generate the Android and iOS folder without change version

react-native eject

react-native link

Install a new file using powershell instead of cmd.

Run following commands

1. npx react-native eject

After running above command you can see output in console as follows

info Generating the iOS folder.

info Generating the Android folder.

Next below command

2. npx react-native run-android

npm run eject

next we will get some couple of questions,

? how would you like to eject from create-react-native-app
React-Native : I'd like a regular react native project
? What should your app appear as on a users's home screen? _Your wish____
? What should your Android Studio and Xcode projects be called? rncourse

After Ejected Successfully the project structure will change, added folders android and ios.

happy coding

Related