Expo NetInfo Crashes iOS/Android App Upon Import

SDK Version: 43
Platforms: iOS and Android

Importing NetInfo crashes the Google Play and App Store versions on launch whereas it’s fine when I’m running it locally with ‘expo start’. Came to the conclusion after multiple tests with expo publishing.

Any suggestions? I’m out of ideas. Do I need to add any permissions or modify app.json?

Package.json version is “@react-native-community/netinfo”: “6.0.2”.
Both import NetInfo and { useNetInfo } from “@react-native-community/netinfo” crashes the app.

Solution: EAS Build and Submit. Expo Publish works afterward with NetInfo.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.