- Install the react command line tools and watchman, if necessary:
npm install -g react-native-cli
brew install watchman
- In the root module directory, link the development module:
npm link
- In
sample/AirshipSampleprepare the sample:
npm link urbanairship-react-native
npm install
react-native link urbanairship-react-native
-
Run
pod installinsample/AirshipSample/iOS -
Open the
.xcworkspaceProject -
Create the
AirshipConfig.plistfile -
Start the webserver by running
react-native startinsample/AirshipSample -
Build and run the sample
You should now be able to modify the iOS plugin source directly in the sample's workspace.
-
Open
sample/AirshipSample/androidin Android Studio -
Create the
airshipconfig.propertiesfile insrc/main/assets -
Start the webserver by running
react-native startinsample/AirshipSample -
Build and run the sample
You should now be able to modify the Android plugin source directly in the Android Studio.