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

后端 未结 15 2283
南笙
南笙 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 01:52

    I was having the same issue.
    What I did was in Xcode go to Products -> Scheme -> Edit Scheme -> Select the Run tab -> Change the build configuration to Release ( default it was debug mode ) and run the app in the device.

    It was much faster and run it as like a native app.

提交回复
热议问题