Skip to main content
Version: 7.0.0

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