Dhiru
Dhiru

Reputation: 3060

Unable to see Android/iOS Folder in react native project

I am beginner in react-native , i am following the official website to create React-Native project .

create-react-native-app AwesomeProject

cd AwesomeProject
npm start

This is creating the the project structure like this :

enter image description here

But i want to add Splash in ios and android , and i am looking at tutorials all add the splash in the native code , why android and ios folder in not created in My React Native project .

enter image description here

Upvotes: 1

Views: 7379

Answers (3)

min3em
min3em

Reputation: 21

I just had a similar problem.

Here is how I solved it. run the following cli in your project directory. It will generate directories for both android and iOS.

npx expo prebuild 

After you ensure expo is installed and delete the previously created folders as shown in the above comment.

npm install -g expo-cli

Upvotes: 1

t.ios
t.ios

Reputation: 1042

  1. node -v
  2. brew install node
  3. brew install watchman
  4. npm install -g react-native-cli
  5. react-native init AwesomeProject
  6. cd AwesomeProject
  7. react-native run-ios or run android

This gets you the android and and iOS projects

Upvotes: 0

SmAster
SmAster

Reputation: 138

Running following commands should do the trick:

sudo rm -rf android/ ios/ #Delete Android and ios folders first...
react-native eject
react-native upgrade //rebuilds android/ios folders
react-native link
react-native run-android
react-native run-ios

Upvotes: 6

Related Questions