Found Fix for that bug that makes you tap the screen to wake it up

Sometimes I was having this problem whenever i try to execute any Get Record, Update Record from inside a button tap event, execution would stall inside those Record functions until I tapped somewhere on the screen. I was informed that this was some known long-standing quirk with React Native.

I managed to fix this by putting a Delay function (100 ms) immediately after the component tap event, so its the first thing executed in the logic flow. For whatever reason this prevents the execution from going to sleep. I tried the “Invisible Toast” message trick someone suggested but i couldnt get that to work. Inserting the Delay function does work for me though.

Hopefully this might be helpful to someone having this same issue.


Thanks for sharing :slight_smile: