-
Notifications
You must be signed in to change notification settings - Fork 98
Home
In case you don't like rnpm, here are the steps to manually install this utility.
- Right click on the
Librariesfolder in XCode, and addRNZeroconf.xcodeproj - Go to your Build Phases, under Link Binary with Libraries, add
libRNZeroconf.a - Click on the
RNZeroconf.xcodeprojin theLibrariesfolder, search Header Search Paths and add$(SRCROOT)/../../react-native/Reactif it's not.
- Click on the
RNZeroconf.xcodeprojin theLibrariesfolder, search Header Search Paths and add${SRCROOT}/../../../ios/Pods/Headers/Public/React-Core.
-
Add the following line to the bottom of your project's
settings.gradlefile.project(':react-native-zeroconf').projectDir = new File(settingsDir, '../node_modules/react-native-zeroconf/android') -
Change the
includeline of your project'ssettings.gradleto include the:react-native-zeroconfproject.include ':react-native-zeroconf', ':app' -
Open your app's
build.gradlefile and add the following line to thedependenciesblock.compile project(":react-native-zeroconf") -
In your app's
MainActivity.javafile, include this line as part of theReactInstanceManager.builder()lines..addPackage(new ZeroconfReactPackage())
-
Add this to the includes in your app's
MainActivity.javafile:import com.balthazargronon.RCTZeroconf.ZeroconfReactPackage; -
And include this line as part of the
getPackages()method:new ZeroconfReactPackage()