I have just started to learn ReactNative because I want to build mobile apps. For that purpose I use my Mac with installed yarn, create-react-native-app and Xcode.
When I run the command:
sudo yarn run ios
the build is successful. No error displayed and the simulator opens but the screen does not display the icon of the app (my project).
If I run the android simulator with Android Studio and the command:
sudo yarn run android
the Android simulator runs and displayed the app.
What might be the issue with the iOS simulator? Please help!
=============
MORE DETAILS:
Here are the commands I use to set up the project:
brew install yarn --without-node
mkdir projectX
cd projectX
sudo yarn global add create-react-native-app
sudo create-react-native .
NodeJS, JDK, JSK are initially installed. After entering these commands I had to upgrade the versions of react and react-native with:
sudo yarn remove react-native
sudo yarn add react-native
sudo yarn remove react
sudo yarn add react
After that:
sudo yarn run eject
adb
sudo yarn run ios