Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jachiliz opened this issue May 5, 2025 · 1 comment

Comments

@jachiliz
Copy link

jachiliz commented May 5, 2025

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

Copy link

linear bot commented May 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant