renderLoading in not rendered in the correct position
See original GitHub issueI just observed that in the latest version (compared to an old one) I am not able to render an ActivityIndicator centered on the screen while the webview is loading
renderLoading = () => ( <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> <ActivityIndicator color={'#B9002F'} size="large" /> </View> );
render() { return ( <SafeAreaView forceInset={{top: 'always'}} style={{flex: 1, backgroundColor: '#fff'}}> <WebView source={this.source} startInLoadingState={true} renderLoading={this.renderLoading} /> </SafeAreaView> ); }
will not work as expected, the ActivityIndicator is rendered in the bottom of the screen
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:14 (4 by maintainers)
Top GitHub Comments
@mydesweb I have been faced with the same issue and found a solution by looking at the internal codes. The default style of loading view has following props:
which means that you can achieve what you expect if you pass following additional props to your style.
Hope this would be helpful for you.
What are the magic words needed to keep an unresolved issue open (as annjawn’s comment clearly was insufficient)?