To run a code sample, follow the steps below:
- Install Node.js and npm if you don’t have it.
- Install CocoaPods (for iOS project only) if you don’t have it.
- Setup the React Native environment if you don’t have it.
- Clone repository with the sample.
- Register a FREE QuickBlox account at https://admin.quickblox.com/signup, then create your 1st QuickBlox app and obtain an app credential. Put
appId
,authKey
,authSecret
andaccountKey
in filesrc/QBConfig.js
. - Open a terminal and enter the commands below in your project path
npm install
# if you're going to run iOS then install Pods
cd ios && pod install
- Start application with
react-native run-android
orreact-native run-ios