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

  1. Open Android Studio
  2. Import the sample project from ./android/ folder
  3. Run the project

Run on iOS

  1. Open sample project at ./ios/*.xcodeproj in Xcode
  2. Set a team for the targets

    Xcode import project

  3. Run the project

Next Steps