This starter project isn't completely off the shelf, you will need to sign up to the Chirp Admin Centre, and download both iOS and Android SDK's from the downloads page.
-
Clone the project
git clone https://github.com/chirp/chirp-connect-react-native-starter
-
Install node_modules
cd chirp-connect-react-native-starter
yarn install
-
Download iOS and Android SDKs
-
Open
./ios/ReactNativeStarter.xcodeproj
and copyChirpConnect.framework
into the project by dragging and dropping. -
Open the
./android
directory in Android Studio, and create a directory atapp/libs
. Drag and drop thechirp-connect-vx.x.aar
file to the libs directory. Ensure the .aar reference has the same version number as that of the .aar file. -
Update
local.properties
file with your ownsdk.dir
location. -
Enter your application key and secret into
App.js
.const key = 'YOUR_CHIRP_APPLICATION_KEY';
const secret = 'YOUR_CHIRP_APPLICATION_SECRET';
-
Run the demo.
react-native run-ios
react-native run-android