balthazar / react-native-zeroconf

:satellite: Discover Zeroconf services using react-native
MIT License
220 stars 98 forks source link

Expo Support #181

Open ManabBala opened 9 months ago

ManabBala commented 9 months ago

I am trying to build and IOT app which need to search for all local devices with mdns. i am using expo for this purpose. but i can't implement this zeroconf library in expo development build. does anyone know how to do this? i think it has something to do with the permissions.

Can anyone provide a simple expo example!?

as there is new support for native react library in expo with config-plugin. can anyone try/guide to make a plugin for this library.

jwverzijden commented 8 months ago

I added the following config to the app.json, following the guide on https://docs.expo.dev/guides/configuring-js-engines. after installing react-native-v8 and things it seems to work, i'm getting results on android.

{
    "jsEngine": "jsc",
    "plugins": [
      "react-native-v8"
    ]
}

I have not tested this on iOS yet.

tannersatch commented 2 days ago

I was able to get it working with expo. This was my solution: https://dev.to/bfforward/how-to-use-react-native-zeroconf-with-expo-2kjc

Hope this helps

ManabBala commented 2 days ago

@tannersatch, wow, thanks for the blog. definitely will be giving it a shot!