things to remember to add when making an expo webview app
- cacheEnabled is enabled by default.
- setup notifications
- specify redirects that need to update the cache. (check wifi each time)
- modify app.json to use correct status bar
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"androidStatusBarColor": "#447f5e",
"androidStatusBar": {
"barStyle": "light-content",
"backgroundColor": "#447f5e",
},
- make sure to wrap your app in a safe area view
<SafeAreaView style={styles.container}>
{Platform.OS === 'ios' && <StatusBar barStyle="default" />}
<WebView
source={{uri: 'https://google.com'}}
/>
</SafeAreaView>