Skip to content

MKS-01/react-native-network-error

Repository files navigation

React-Native-Network-Error Setup

React native network error setup using https://github.com/react-native-community/react-native-netinfo

For more details check out: https://mks-technophile.netlify.app/blog/react-native-network-error/

Getting Started

$ yarn install

before running apps on iOS

$ cd ios && pod install

$ cd ..

Running your React Native application

  • android

$ npx react-native run-android

  • iOS

$ npx react-native run-ios

Change default iOS Simulator

on root directory

$ xcrun simctl list devices

$ npx react-native run-ios --simulator="iPhone 11"

Status: connected Status: No Netwok