stream-chat-react-native 5.11.3-beta.4 → 5.11.3-beta.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native",
3
3
  "description": "The official React Native SDK for Stream Chat, a service for building chat applications",
4
- "version": "5.11.3-beta.4",
4
+ "version": "5.11.3-beta.6",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -11,7 +11,7 @@
11
11
  "types": "types/index.d.ts",
12
12
  "dependencies": {
13
13
  "es6-symbol": "^3.1.3",
14
- "stream-chat-react-native-core": "5.11.3-beta.4"
14
+ "stream-chat-react-native-core": "5.11.3-beta.6"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@react-native-camera-roll/camera-roll": ">=5.0.0",
@@ -1,4 +1,4 @@
1
- import { default as OriginalNetInfo, NetInfoState } from '@react-native-community/netinfo';
1
+ import { NetInfoState, default as OriginalNetInfo } from '@react-native-community/netinfo';
2
2
 
3
3
  export const NetInfo = {
4
4
  addEventListener(listener) {
@@ -24,7 +24,7 @@ export const compressImage = async ({
24
24
  0,
25
25
  undefined,
26
26
  false,
27
- 'cover',
27
+ { mode: 'cover' },
28
28
  );
29
29
  return compressedUri;
30
30
  } catch (error) {
@@ -1,4 +1,5 @@
1
1
  import { PermissionsAndroid, Platform } from 'react-native';
2
+
2
3
  import { CameraRoll, GetPhotosParams } from '@react-native-camera-roll/camera-roll';
3
4
 
4
5
  export const getPhotos = async ({ after, first }: Pick<GetPhotosParams, 'after' | 'first'>) => {
@@ -5,14 +5,14 @@
5
5
  * */
6
6
  type ResponseValue = {
7
7
  name: string;
8
- uri: string;
9
8
  size: number;
10
9
  type: string;
10
+ uri: string;
11
11
  };
12
12
 
13
13
  let DocumentPicker: {
14
- types: { allFiles: string };
15
14
  pickMultiple: (opts?: { type: string[] }) => Promise<ResponseValue[]>;
15
+ types: { allFiles: string };
16
16
  };
17
17
 
18
18
  try {
@@ -1,5 +1,5 @@
1
- import RNFS from 'react-native-fs';
2
1
  import { Platform } from 'react-native';
2
+ import RNFS from 'react-native-fs';
3
3
 
4
4
  let RNShare;
5
5