Skip to content

Latest commit

 

History

History

SampleApp

Fully featured messaging application

react native chat

How to run the app

  • Please make sure you have installed necessary dependencies depending on your development OS and target OS. Follow the guidelines given on official React Native documentation for installing dependencies: https://facebook.github.io/react-native/docs/getting-started
  • Make sure node version is >= v10.13.0

Clone the project

git clone https://github.com/GetStream/stream-chat-react-native.git

Install the dependencies

  1. In the root install the dependencies:
yarn install
  1. Move to the package directory and install the dependencies:
cd package && yarn install
  1. Move to the native-package directory and install the dependencies:
cd native-package && yarn install
  1. Finally, Move to the app directory and install the dependencies:
cd ../../examples/SampleApp && yarn install

Install Pods for iOS

cd ios && pod install

Run

To run the application for different platforms, use the following commands:

yarn start
  • For iOS
yarn ios
  • For android
yarn android

If you run into following error on android:

Execution failed for task ':app:validateSigningDebug'.
> Keystore file '/path_to_project/stream-chat-react-native/examples/NativeMessaging/android/app/debug.keystore' not found for signing config 'debug'.

You can generate the debug Keystore by running this command in the android/app/ directory: keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 - Reference