Skip to content
Balthazar edited this page Oct 2, 2026 · 1 revision

Installation with Expo

The library works in Expo development builds. It does not work in Expo Go, which only contains the native modules bundled by Expo.

Tested with Expo SDK 54 and the New Architecture.

npx expo install react-native-zeroconf
npx expo run:ios       # or: npx expo run:android, or an EAS Build

Declare the iOS keys in app.json so they are written to Info.plist on prebuild:

{
  "expo": {
    "ios": {
      "infoPlist": {
        "NSBonjourServices": ["_http._tcp"],
        "NSLocalNetworkUsageDescription": "This app uses the local network to discover devices."
      }
    }
  }
}

No config plugin is needed. Android permissions come from the library manifest. Apps targeting Android 17 (API 37) add the local network permission to app.json, see Permissions and Setup:

{
  "expo": {
    "android": {
      "permissions": ["android.permission.ACCESS_LOCAL_NETWORK"]
    }
  }
}

If you see react-native-zeroconf: native module not found, you are running in Expo Go or the app was not rebuilt after installing. See Troubleshooting and FAQ.

Clone this wiki locally