Bit6 React Native Quick Start
The easiest way to get started with Bit6 communication services is to deploy the sample applications.
Sample App
Download or clone the sample app into a local directory:
git clone https://github.com/bit6/bit6-react-native-samples
Prerequisites
The complete guide for getting started with React Native development is available here.
Node, Watchman
We recommend to install Node.js and Watchman using Homebrew on Mac. Run the following commands in a terminal after installing Homebrew:
brew install node
brew install watchman
If you have already installed Node on your system, make sure it is version 6 or newer.
Watchman is a tool by Facebook to watch for file changes. It is highly recommended you install it for better performance.
React Native CLI
Run the following command in a Terminal:
npm install -g react-native-cli
Development
Navigate to the sample project folder in Terminal and run the following command to install dependencies:
npm install
Build and Run
Run on Android
- Open Android Studio
- Import the sample project from
./android/
folder - Run the project
Run on iOS
- Open sample project at
./ios/*.xcodeproj
in Xcode -
Set a team for the targets
-
Run the project
Next Steps
-
View Bit6 JS SDK documentation
-
Change the sample apps to authenticate with your Bit6 credentials
-
Check out other Bit6 resources at GitHub