I have developed an app in React Native and, at the time of publication through the *expo publish* command, it correctly generates the address where I can scan the QR code, but, once this is done, on my mobile I see the loading screen of the app but a white screen appears after that.
I can’t do anything, not even see if it generates any errors or not, it stays blank for more than five minutes (then I closed the app).
With npm start the app works perfectly for me, so I don’t know what the problem could be. I have searched around on the Internet but it seems that in very few we have encountered this hitch and, in the few cases where this has happened, I have tried to apply the solutions proposed by other users, but nothing has changed.
I’ve tried to change the settings.json file in the expo folder (from {“dev”: false,“minify”: true} to {“dev”: true,“minify”: false}), but nothing has changed.
I don’t think about reporting my code: first of all I don’t know what to put, as I have no clue as to where the error is and, above all, it would just get in the way.
I would suggest going through the changes you’ve made between your last successful publish and the one that caused the blank screen one by one to try to determine what the culprit code is.
I’ve been struggling the past three days with this error, but, thanks to your suggestion and a stroke of luck, i’ve finally resolved the issue.
In the link suggested by you Common developement errors - Expo Documentation, i’ve runned the command expo start --no-dev --minify, and i went against the error TypeError: (0,u.useState) is not a function. (In ‘(0,u.useState)(!1)’, ‘(0,u.useState)’ is undefined).
i’ve looked for the solution of this issue and, by pure chance, i’ve noticed that in one of my screens I was wrong to import React useState. Instead of importing him from “react”, the IDE generated this code, through the auto-input command:
import { useState } from “react/cjs/react.development”;