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

React Native - sometimes app freezes when opened from background

$
0
0

Recently I noticed some strange bug in my IOS app (on Android I did not see that problem so far).

When the release mode is installed on my real device (the same problem happens even with production app from App Store), and when the app is opened from a background where it was for example 1,2 hours - my app freezes for several seconds (I can scroll my lists but Touchables are not working). Sometimes it freezes 5sec, sometimes 10sec... The freeze time is not constant.

For navigation, I use React Native Navigation. First of all, I thought that it can be a navigation problem - but I can navigate through tabs. So I can navigate through tabs, can scroll FlatLists in the tabs, but the list items are not Touchable - I can click them but onPress is not called. And after several sec when the freeze is over - my app does all pending navigations. Namely it opens all screens which were tapped while the app was frozen...

Who had such kind of problem? And how can I solve this? Please help, I am stuck here a couple of days :(

React-Native: 0.59.10; React: 16.8.3;

Thanks in advance


Viewing all articles
Browse latest Browse all 16552

Trending Articles



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