npx react-native@latest init foo
cd foo
npx install-expo-modules@latest
Update your index.js
file like so:
import {registerRootComponent} from 'expo';
import App from './App';
registerRootComponent(App);
Update your app.json
file like so:
{
"expo": {
"name": "foo",
"splash": {
"backgroundColor": "#ffffff"
},
"android": {
"package": "com.anonymous.foo"
},
"ios": {
"bundleIdentifier": "com.anonymous.foo"
}
}
}
Adding splash
fixes the splashscreen error:
AAPT: error: resource color/splashscreen_background (aka com.anonymous.foo:color/splashscreen_background) not found
rm -rf android ios
npm install expo
npx expo prebuild --clean
npx expo run:android