Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug react native offline #78

Open
heron2014 opened this issue Aug 6, 2018 · 0 comments
Open

Debug react native offline #78

heron2014 opened this issue Aug 6, 2018 · 0 comments

Comments

@heron2014
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant