ConnectionStatusBar
Top bar to show a 'no internet' connection status
(code example)
note
Run on real device for best results,The component requires installing the '@react-native-community/netinfo' native library
Usageβ
Live Editor
<ConnectionStatusBar onConnectionChange={() => console.log('connection changed')}/>
Result
Loading...
APIβ
allowDismissβ
Whethere to allow the user to dismiss
boolean
labelβ
Text to show as the status
string
onConnectionChangeβ
Handler to get connection change events propagation
(isConnected: boolean, isInitial: boolean) => void
useAbsolutePositionβ
Use absolute position for the component
boolean