react-native-net-state
Setting
- Android:
To request network info, you need to add the following line to your app'sAndroidManifest.xml: Asynchronously determine if the device is connected and details about that connection.
Example
;; { return <View style=flex: 1> <NetState message="No internet access"/> </View> ; }); moduleexports = Run;
Installation
npm install react-native-net-state --save
Props
message
you can customize messagestyle
you can customize styles boxstyleText
you can customize styles message