netinfo with android

Please provide the following:

  1. SDK Version:32
  2. Platforms(ios/android/both):android
    I am using the managed workflow of expo.

I am building an app which required netinfo. The documentation states:

To request network info, you need to add the following line to your app’s AndroidManifest.xml :

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

My question is, how can I do this given that I don’t have the manifest file. Is there something i can do on the app.json which will automatically translate to that entry in the manifest for example?

If I recall correctly, the networking permission is included by default.

In app.json, just include permissions like so:

    "android": {
      "permissions": [],

Hey @aalsamarrai,

@siddemo is correct. A Managed Expo project will have this permission included by default. You can just use the NetInfo module without any native configuration.


Thank you both.

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