To debug offline IOS (react native) you can run two commands:
- once you turned off your wifi, run this command in the terminal:
sudo ifconfig lo0 alias 192.xx.xx.xx - 192.xx.xx.xx is your ip address (you can get the ip address running ifconfig command)
After running above command and being offline you should not have the red screen
To undo the above command you run:
sudo ifconfig lo0 -alias 192.xx.xx.xx, being still offline you will get now the red screen.
To debug offline IOS (react native) you can run two commands:
sudo ifconfig lo0 alias 192.xx.xx.xx- 192.xx.xx.xx is your ip address (you can get the ip address runningifconfigcommand)After running above command and being offline you should not have the red screen
To undo the above command you run:
sudo ifconfig lo0 -alias 192.xx.xx.xx, being still offline you will get now the red screen.