Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React Native Modal Not Closing

$
0
0

I'm overlaying the following Modal component in my iOS app while waiting for several async requests to come back.

<Modal transparent={true} visible={this.state.visible}><View style={{flex: 1}}><ActivityIndicator color="white" size="large"/></View></Modal>

this.state.visible is set to false once all the requests have returned. However, about 50% of the time the modal remains on the screen indefinitely, even after the requests have come back. I've logged this.state.visible at the top of my render function and it is false as expected, yet the modal does not disappear. Any thoughts as to why this may be happening?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>