stream-chat-expo 4.6.1 → 4.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/index.js +14 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-expo",
|
|
3
3
|
"description": "The official Expo SDK for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.7.0-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"main": "src/index.js",
|
|
11
11
|
"types": "types/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"stream-chat-react-native-core": "4.
|
|
13
|
+
"stream-chat-react-native-core": "4.7.0-beta.1"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@react-native-community/netinfo": "^6.0.0",
|
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { FlatList, Image, Platform } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import NetInfo from '@react-native-community/netinfo';
|
|
5
|
+
import { Video as ExpoVideoPlayer } from 'expo-av';
|
|
5
6
|
import * as DocumentPicker from 'expo-document-picker';
|
|
6
7
|
import * as FileSystem from 'expo-file-system';
|
|
7
8
|
import * as Haptics from 'expo-haptics';
|
|
@@ -218,6 +219,19 @@ registerNativeHandlers({
|
|
|
218
219
|
Haptics.selectionAsync();
|
|
219
220
|
}
|
|
220
221
|
},
|
|
222
|
+
// eslint-disable-next-line react/display-name
|
|
223
|
+
Video: ({ onPlaybackStatusUpdate, paused, style, uri, videoRef }) => (
|
|
224
|
+
<ExpoVideoPlayer
|
|
225
|
+
onPlaybackStatusUpdate={onPlaybackStatusUpdate}
|
|
226
|
+
ref={videoRef}
|
|
227
|
+
resizeMode='contain'
|
|
228
|
+
shouldPlay={!paused}
|
|
229
|
+
source={{
|
|
230
|
+
uri,
|
|
231
|
+
}}
|
|
232
|
+
style={[style]}
|
|
233
|
+
/>
|
|
234
|
+
),
|
|
221
235
|
});
|
|
222
236
|
|
|
223
237
|
export * from 'stream-chat-react-native-core';
|