React Native App crashes on Launch Screen on device

前端 未结 6 1939
轮回少年
轮回少年 2021-02-05 12:50

I\'m starting with React Native, everything works fine in the iOS simulator. I decide to try it on a device.

The app launches, I can play with it, I close/reopen it arou

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 13:22

    I had a similar issue. My application crashed on emulator device every time I ran the application without throwing any error in the console.

    Here are a bunch of solutions that might work:

    Solution 1 Remove node_modules

    rm -rf /node_modules
    npm install
    

    Solution 2 Remove /android/app/build directory (This one worked for me)

    rm -rf /android/app/build
    

    After this, uninstall the application from emulator device and then run your application again

提交回复
热议问题