stream-chat-react-native 6.6.8-beta.1 → 7.0.0-rc.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 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": "6.6.8-beta.1",
4
+ "version": "7.0.0-rc.1",
5
5
  "homepage": "https://www.npmjs.com/package/stream-chat-react-native",
6
6
  "author": {
7
7
  "company": "Stream.io Inc",
@@ -20,7 +20,7 @@
20
20
  "types": "types/index.d.ts",
21
21
  "dependencies": {
22
22
  "es6-symbol": "^3.1.3",
23
- "stream-chat-react-native-core": "6.6.8-beta.1"
23
+ "stream-chat-react-native-core": "7.0.0-rc.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@react-native-camera-roll/camera-roll": ">=7.8.0",
@@ -29,7 +29,6 @@
29
29
  "react-native": ">=0.67.0",
30
30
  "react-native-audio-recorder-player": ">=3.6.4",
31
31
  "react-native-blob-util": ">=0.19.9",
32
- "react-native-document-picker": ">=9.3.0",
33
32
  "@react-native-documents/picker": ">=10.1.1",
34
33
  "react-native-haptic-feedback": ">=2.2.0",
35
34
  "react-native-image-picker": ">=7.1.2",
@@ -49,9 +48,6 @@
49
48
  "react-native-share": {
50
49
  "optional": true
51
50
  },
52
- "react-native-document-picker": {
53
- "optional": true
54
- },
55
51
  "@react-native-documents/picker": {
56
52
  "optional": true
57
53
  },
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Types are approximated from what we need from the DocumentPicker API.
3
3
  *
4
- * For its full API, see https://github.com/rnmods/react-native-document-picker/blob/master/src/index.tsx
4
+ * For its full API, see https://github.com/react-native-documents/document-picker/blob/main/packages/document-picker/src/index.ts
5
5
  * */
6
6
  type ResponseValue = {
7
7
  name: string;
@@ -19,31 +19,12 @@ type DocumentPickerType =
19
19
 
20
20
  let DocumentPicker: DocumentPickerType;
21
21
 
22
- let OldDocumentPicker: DocumentPickerType;
23
- let NewDocumentPicker: DocumentPickerType;
24
-
25
- try {
26
- NewDocumentPicker = require('@react-native-documents/picker');
27
- } catch (err) {
28
- // we log below
29
- }
30
-
31
22
  try {
32
- OldDocumentPicker = require('react-native-document-picker').default;
23
+ DocumentPicker = require('@react-native-documents/picker');
33
24
  } catch (err) {
34
- // we log below
35
- }
36
-
37
- if (NewDocumentPicker) {
38
- DocumentPicker = NewDocumentPicker;
39
- } else if (OldDocumentPicker) {
40
- DocumentPicker = OldDocumentPicker;
41
- console.log(
42
- "You're using the react-native-document-picker library, which is no longer supported and has moved to @react-native-documents/picker. Things might not work as intended. Please migrate to the new library as soon as possible !",
43
- );
44
- } else {
25
+ // do nothing
45
26
  console.log(
46
- 'Neither react-native-document-picker nor @react-native-documents/picker are installed.',
27
+ 'The @react-native-documents/picker is not installed. Installing it will enable you to pick and upload files from within your app.',
47
28
  );
48
29
  }
49
30