balthazar / react-native-zeroconf

:satellite: Discover Zeroconf services using react-native
MIT License
221 stars 99 forks source link

Expo Support #181

Open ManabBala opened 11 months ago

ManabBala commented 11 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 10 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 1 month 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 1 month ago

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