PubNub React Native App

This repository contains code to build a sample chat app using the PubNub React Framework.

Prerequisites

  • Node.js 10+: make sure that you have a recent version of Node installed. If you are not sure, just type this in your terminal node --version.
  • Expo CLI: you can install expo-cli using npm.
npm install expo-cli --global
  • PubNub Account: create a free account with PubNub and obtain your publish and subscribe keys.

Running the project

  1. Clone the repository.
git clone https://github.com/pubnub/tutorial-app-react-native.git
  1. Install npm dependencies:
npm install
  1. Change publishKey and subscribeKey for your app in App.js and start the dev server.
npm start

Further Information

For more information about this project, or how to create an app using PubNub, please check out the PubNub Documentation.