-
Notifications
You must be signed in to change notification settings - Fork 97
Home
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.
- Click on the
RNZeroconf.xcodeproj
in theLibraries
folder, 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.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())
-
Add this to the includes in your app's
MainActivity.java
file:import com.balthazargronon.RCTZeroconf.ZeroconfReactPackage;
-
And include this line as part of the
getPackages()
method:new ZeroconfReactPackage()