React native app stuck on splash screen on device but works in simulator

后端 未结 15 2089
南笙
南笙 2021-02-01 01:27

My React Native app works in the XCode simulator with no issues, but when I run in a physical device, my iPhone, there\'s a problem. The app launches and gets stuck on the React

15条回答
  •  醉梦人生
    2021-02-01 02:14

    Best check with all outgoing calls. This might happened if you do call an http request to fetch user for example or during fetching user from storage.

    If this call returned error, you'll be stuck in Splash screen.

    Additionally, imagine that you have navigation that uses these calls it will be worse.

提交回复
热议问题