-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Summary
Handle the offline state by not performing certain tasks and letting the user know he's offline
Todo / ordered steps
- Add
expo-network - Create a
useNetworkState()hook that returns a booleanisOnline - Inside the
App.tsxadd auseEffectthat checks forisOnlineand eventually displays a toast letting the user know he's not online and tho he can't access the latest notifications - Disable the queries if the user is offline to not make them wait till the timeout
Possible impacts / side effects on existing features
- Whole application
Additional notes
Expo Network: https://docs.expo.dev/versions/latest/sdk/network/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels