This application was developed in March 2020 and has not been updated since that time. The version of React, React Native, Expo and other dependencies reflect when this app was first created. For more recent React Native content, please refer to the following resources:
- The React Native Tutorial and accompanying sample app
- The React Native Getting Started documentation and the accompanying sample app
This repository contains code to build a sample chat app using the PubNub React Framework.
- 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.
- Clone the repository.
git clone https://github.com/pubnub/tutorial-app-react-native.git
- Install npm dependencies:
npm install
- Change
publishKey
andsubscribeKey
for your app inApp.js
and start the dev server.
npm start
For more information about this project, or how to create an app using PubNub, please check out the PubNub Documentation.