Skip to content

Debug react native offline #78

@heron2014

Description

@heron2014

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions