TanStackT
TanStack2y ago
2 replies
nursing-lime

Any alternatives to Netinfo for RN?

[Resolved] I am trying to implement react-query for an Expo RN app, following the instructions here: https://tanstack.com/query/v5/docs/framework/react/react-native#online-status-management

I have tried everything I can think of, but installing Netinfo causes the app to fail on startup with a "No callback found with cbID ..." error every time. None of the advice I've found has helped, so I'm wondering if anyone has successfully used a different library that might provide the same basic functionality needed for auto refetch.
React Query is designed to work out of the box with React Native, with the exception of the devtools, which are only supported with React DOM at this time.

There is a 3rd party Flipper plugin which you can try: https://github.com/bgaleotti/react-query-native-devtools
React Native | TanStack Query React Docs
Was this page helpful?