On a promise resolution from a fetch call, I do two things:
- Hide the spinner by setting a state variable bound to `<Spinner visible={myVar} ... />
- Display a
react-native-navigation modal using Navigation.showModal(...)
I have found that having (1) here means the modal is immediately hidden, right after being presented.
Any ideas what could be going wrong here, and how these two things can be reconciled?
I tried a setTimeout with low timeout > 0 and it works... sometimes. So it leads to non-deterministic behaviour.
On a promise resolution from a
fetchcall, I do two things:react-native-navigationmodal usingNavigation.showModal(...)I have found that having (1) here means the modal is immediately hidden, right after being presented.
Any ideas what could be going wrong here, and how these two things can be reconciled?
I tried a
setTimeoutwith low timeout> 0and it works... sometimes. So it leads to non-deterministic behaviour.