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
Copy file name to clipboardExpand all lines: docusaurus/reactnative_versioned_docs/version-4.x.x/basics/getting_started.mdx
+51-15Lines changed: 51 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Stream Chat has a number of peer dependencies that are required to take advantag
47
47
It is suggested you follow the install instructions for each package to ensure it is properly setup.
48
48
Most if not all of the required packages now support auto-linking so setup should be minimal. Those with known [additional steps](#additional-steps) have been noted.
Install `react-native-video` in your React Native project.
167
167
168
-
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default
169
-
browser of the device.
168
+
> Available in stream-chat-react-native >= v4.7.0
169
+
170
+
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default browser of the device.
171
+
172
+
<Tabs
173
+
defaultValue='yarn'
174
+
values={[
175
+
{ label: 'Yarn', value: 'yarn' },
176
+
{ label: 'npm', value: 'npm' },
177
+
]}
178
+
>
179
+
<TabItemvalue='yarn'>
180
+
181
+
```bash
182
+
yarn add react-native-video
183
+
```
184
+
185
+
</TabItem>
186
+
<TabItemvalue='npm'>
187
+
188
+
```bash
189
+
npm install react-native-video
190
+
```
191
+
192
+
</TabItem>
193
+
</Tabs>
194
+
195
+
We require [exoplayer](https://github.com/google/ExoPlayer) to be the media player on Android. To make `react-native-video` to use exoplayer, add the following in `android/settings.gradle`:
196
+
197
+
```
198
+
include ':react-native-video'
199
+
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer')
200
+
```
170
201
171
202
### AndroidX Support
172
203
@@ -187,7 +218,7 @@ Stream Chat for React Native is set up for parity on Expo, expo requires a diffe
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default
247
-
browser of the device.
279
+
Installing this package allows you to play the video files/attachments in the chat. Otherwise by default, video files will be opened in default browser of the device.
0 commit comments