-
Notifications
You must be signed in to change notification settings - Fork 96
Home
Balthazar Gronon edited this page Jul 23, 2016
·
5 revisions
In case you don't like rnpm, here are the steps to manually install this utility.
- Right click on the
Libraries
folder in XCode, and addRNZeroconf.xcodeproj
- Go to your Build Phases, under Link Binary with Libraries, add
libRNZeroconf.a
- Click on the
RNZeroconf.xcodeproj
in theLibraries
folder, search Header Search Paths and add$(SRCROOT)/../../react-native/React
if it's not.
-
Add the following line to the bottom of your project's
settings.gradle
file.project(':react-native-zeroconf').projectDir = new File(settingsDir, '../node_modules/react-native-zeroconf/android')
-
Change the
include
line of your project'ssettings.gradle
to include the:react-native-zeroconf
project.include ':react-native-zeroconf', ':app'
-
Open your app's
build.gradle
file and add the following line to thedependencies
block.compile project(":react-native-zeroconf")
-
In your app's
MainActivity.java
file, include this line as part of theReactInstanceManager.builder()
lines..addPackage(new ZeroconfReactPackage())