'A blank white screen in the React Navigation. React Native
I have a project on React Native and sometimes when errors occur, the application gets on the wrong route in the React Navigation. Therefore, I get a blank white screen as in the picture.
I would like to make the default page something like 404 pages like on the web. Is it possible?
Can I change this default white screen, write something there and indicate the link?
Thanks in advance!
Solution 1:[1]
You could wrap whatever might cause an error in a try {} catch {}
and then inside the catch
, navigate to an error screen.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | harold__hadrada |