Repository navigation
Installation iOS
After installing the package, install the pod:
cd ios && pod installThen rebuild the app (yarn ios or from Xcode). A JavaScript reload is not enough after adding a native module.
Before scanning, declare your service types in NSBonjourServices and add NSLocalNetworkUsageDescription, see Permissions and Setup. Discovery fails on iOS 14+ without them.
React Native 0.87 and later can autolink with Swift Package Manager instead of CocoaPods. The package ships a Package.swift for it, so nothing else is needed: run npx react-native spm update after installing and rebuild. iOS 15 or later.
cd macos && pod installmacOS 10.15 or later.
The podspec supports tvOS 13.4 or later, pod install in your tvOS project as on iOS.
Documentation for react-native-zeroconf 0.17. Found a mistake? Open an issue. | Home | API Reference | Troubleshooting