The official React Native and Expo components for Stream Chat, a service for building chat applications.
You can sign up for a Stream account at https://getstream.io/chat/get_started/.
You can find detailed and set-by-step tutorial at https://getstream.io/chat/react-native-chat/tutorial/
You can find the design kit for this project at https://getstream.io/chat/ui-kit/
- Navigation between different component is something we expect consumers to implement. You can checkout the example given in this repository
Library currently exposes following components:
- Avatar
- Chat
- Channel
- MessageList
- TypingIndicator
- MessageInput
- MessageSimple
- ChannelList
- Thread
- ChannelPreviewMessenger
- CloseButton
- IconBadge
You can see detailed documentation about the components at https://getstream.github.io/stream-chat-react-native
yarn global add expo-cli
expo init StreamChatExpoExample
cd StreamChatExpoExample
yarn add stream-chat-expoPlease check Example to see usage of the components.
OR you can swap this file for your App.js in the root folder with additional following steps:
yarn add react-navigationand finally
yarn startreact-native init StreamChatReactNativeExample
cd StreamChatReactNativeExample
yarn add stream-chat-react-native
react-native link @react-native-community/netinfo
# if you are plannign to use image picker or file picker or both
react-native link react-native-image-picker
react-native link react-native-document-picker
Please check Example to see usage of components.
OR you can swap this file for your App.js in root folder with additional following steps:
yarn add react-navigation
yarn add react-native-gesture-handler
react-native link react-native-gesture-handlerand finally
react-native run-iosNOTE If you are planning to use file picker functionality, make sure you enable iCloud capability in your app
git clone https://github.com/GetStream/stream-chat-react-native.git
cd stream-chat-react-native
make
cd examples/one
yarn start