walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

Make @react-native-community/netinfo dependency optional, allow using expo-network

Open jachiliz opened this issue 7 months ago • 1 comments

Is your feature request related to a problem? Please describe. On expo projects, it doesn't make much sense to have a dependency on react-native-netinfo/react-native-netinfo ( poorly maintained ) when there's a better alternative from expo's oficial libs ( expo-network )

Describe the solution you'd like mark dependencies as optional ( similar to expo-application ) so the consumer can decide which dependency to opt in for

Describe alternatives you've considered patching the package manually to consume expo-network directly

Additional context For expo project and latest react native, the new architecture is enabled by default, currently react-native-netinfo/react-native-netinfo does not supports the new architecture

jachiliz avatar May 05 '25 10:05 jachiliz