You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo includes 4 example apps. One made with Expo, one Native JavaScript code, and two in TypeScript. One TypeScript app is a simple implementation for reference, the other is a more full featured app example.
Check out our tutorial on how to build a slack clone using react-native and stream-chat-react-native
81
-
82
-
<divstyle="display: inline">
83
-
<imgsrc="https://camo.githubusercontent.com/386a2991e444ecff465372637699f1dba6913de1224effbb4b2520ae3a9d7593/68747470733a2f2f73747265616d2d626c6f672d76322e696d6769782e6e65742f626c6f672f77702d636f6e74656e742f75706c6f6164732f38306166346662623734613737613434363536373966363131386166373432372f696d6167652e706e67"alt="IMAGE ALT TEXT HERE"/>
Besides, our team maintains a dedicated repository for fully-fledged sample applications and demos at [GetStream/react-native-samples](https://github.com/GetStream/react-native-samples). Please consider checking following sample applications:
92
65
93
-
## 📋 Docs
94
-
95
-
Please check following url for all the detailed documentation - https://github.com/GetStream/stream-chat-react-native/wiki#v300
@@ -102,66 +74,6 @@ Please check following url for all the detailed documentation - https://github.c
102
74
103
75
You can see detailed documentation about the components at <https://getstream.github.io/stream-chat-react-native>
104
76
105
-
## 🛠 Setup (Setting up a chat app)
106
-
107
-
Please follow this doc for setup - [Setup Docs](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#installation)
108
-
## 💪 TypeScript Support
109
-
110
-
As of version `2.0.0``stream-chat-react-native` has been converted to TypeScript. Please read [Typescript guide](https://github.com/GetStream/stream-chat-react-native/wiki/Typescript-support) for details.
111
-
112
-
## ✈️ Internationalization
113
-
114
-
Please read [Internationalization doc](https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n)) for details.
115
-
116
-
## 🚀 Upgrading
117
-
118
-
Please refer to [Upgrade Helper](https://github.com/GetStream/stream-chat-react-native/wiki/Upgrade-helper)
119
-
120
-
## ⚠️ Common issues
121
-
122
-
#### While running native example, you may (not necessarily) run into the following issues
123
-
124
-
1. When you execute `yarn ios` for the first time, it starts a metro bundler in parallel. It can result in some errors since the build process isn't complete yet. Try the following to fix this:
125
-
1. Close/stop the metro bundler process.
126
-
2. Let the build process finish. It can usually take around 2-3 minutes for the first time.
127
-
3. Start the metro bundler manually by executing `yarn start` inside `stream-chat-react-native/examples/NativeMessaging` directory.
128
-
2. When you execute `yarn android`, you may (not necessarily) run into following error:
129
-
130
-
```ERROR
131
-
info Starting JS server...
132
-
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
133
-
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
134
-
135
-
FAILURE: Build failed with an exception.
136
-
137
-
* What went wrong:
138
-
A problem occurred configuring project ':@react-native-community_netinfo'.
139
-
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
140
-
141
-
* Try:
142
-
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
143
-
144
-
* Get more help at https://help.gradle.org
145
-
146
-
BUILD FAILED in 13s
147
-
error Could not install the app on the device, read the error above for details.
148
-
Make sure you have an Android emulator running or a device connected and have
error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.
152
-
```
153
-
154
-
To resolve this, do the following.
155
-
156
-
1. Create a file named `local.properties` inside `stream-chat-react-native/examples/NativeMessaging/android` directory
157
-
2. Put the this line in that file. Make sure sdk path is correctly mentioned as per your system:
158
-
159
-
```
160
-
sdk.dir=/Users/{user_name}/Library/Android/sdk/
161
-
```
162
-
163
-
3. Rerun `yarn android` in `stream-chat-react-native/examples/NativeMessaging` directory
164
-
165
77
## 👏 Contributing
166
78
167
79
We welcome code changes that improve this library or fix a problem, and please make sure to follow all best practices and test all the changes. Please check our [dev setup docs](https://github.com/GetStream/stream-chat-react-native/wiki/Dev-setup-for-contributing-to-the-library) to get you started. We are pleased to merge your code into the official repository. Make sure to sign our [Contributor License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) first. See our license file for more details.
0 commit comments