More Premium Hugo Themes Premium React Themes

React Native Zeroconf

:satellite: Discover Zeroconf services using react-native

React Native Zeroconf

:satellite: Discover Zeroconf services using react-native

Author Avatar Theme by balthazar
Github Stars Github Stars: 242
Last Commit Last Commit: Dec 30, 2025 -
First Commit Created: Feb 24, 2024 -
React Native Zeroconf screenshot

Overview:

The react-native-zeroconf is a basic implementation of Zeroconf for React Native, allowing users to discover and interact with services being advertised through Zeroconf implementations like Avahi, Bonjour, or NSD. The package supports iOS and Android devices with features like starting and stopping scans, resolving services, publishing and unpublishing services, and handling events like service discovery and removal.

Features:

  • Zeroconf Scan: Start and stop Zeroconf scan.
  • Resolved Services: Retrieve names of resolved services.
  • Listeners Management: Add and remove device listeners to avoid memory leaks.
  • Service Publication: Publish services for discoverability on the network.
  • Service Unpublication: Unpublish services from network discovery.
  • Events Handling: Support for various events like scan start/stop, service found/resolved/removed, and error handling.

Installation:

To install the react-native-zeroconf package, ensure that your manifest file requests all necessary permissions for Android. For iOS 14 compatibility, specify the services to scan for in the info.plist file with a description. You can refer to the example folder for a sample implementation. Install dependencies, run node server.js, and launch the project to get started with the Zeroconf scan.

Summary:

The react-native-zeroconf package provides a straightforward way to implement Zeroconf functionality in React Native applications. With features like scanning, resolving, publishing, and event handling, developers can easily integrate service discovery capabilities into their mobile applications. Proper installation steps for both iOS and Android platforms ensure seamless implementation and usage of the package.