Reputation: 3060
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 :
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 .
Upvotes: 1
Views: 7379
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
Reputation: 1042
This gets you the android and and iOS projects
Upvotes: 0
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