stream-chat-expo 9.5.2-beta.3 → 9.5.2

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-expo",
3
3
  "description": "The official Expo SDK for Stream Chat, a service for building chat applications",
4
- "version": "9.5.2-beta.3",
4
+ "version": "9.5.2",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -27,7 +27,7 @@
27
27
  "types": "types/index.d.ts",
28
28
  "dependencies": {
29
29
  "mime": "^4.0.7",
30
- "stream-chat-react-native-core": "9.5.2-beta.3"
30
+ "stream-chat-react-native-core": "9.5.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "expo": ">=52.0.0",
@@ -3,9 +3,13 @@ import { Platform } from 'react-native';
3
3
  let MediaLibrary;
4
4
 
5
5
  try {
6
- MediaLibrary = require('expo-media-library');
6
+ MediaLibrary = require('expo-media-library/legacy');
7
7
  } catch (e) {
8
- // do nothing
8
+ try {
9
+ MediaLibrary = require('expo-media-library');
10
+ } catch (e) {
11
+ // do nothing
12
+ }
9
13
  }
10
14
 
11
15
  if (!MediaLibrary) {
@@ -10,9 +10,13 @@ import { getLocalAssetUri } from './getLocalAssetUri';
10
10
  let MediaLibrary;
11
11
 
12
12
  try {
13
- MediaLibrary = require('expo-media-library');
13
+ MediaLibrary = require('expo-media-library/legacy');
14
14
  } catch (e) {
15
- // do nothing
15
+ try {
16
+ MediaLibrary = require('expo-media-library');
17
+ } catch (e) {
18
+ // do nothing
19
+ }
16
20
  }
17
21
 
18
22
  if (!MediaLibrary) {
@@ -3,9 +3,13 @@ import { Platform } from 'react-native';
3
3
  let MediaLibrary;
4
4
 
5
5
  try {
6
- MediaLibrary = require('expo-media-library');
6
+ MediaLibrary = require('expo-media-library/legacy');
7
7
  } catch (e) {
8
- // do nothing
8
+ try {
9
+ MediaLibrary = require('expo-media-library');
10
+ } catch (e) {
11
+ // do nothing
12
+ }
9
13
  }
10
14
 
11
15
  if (!MediaLibrary) {
@@ -3,9 +3,13 @@ import { Platform } from 'react-native';
3
3
  let MediaLibrary;
4
4
 
5
5
  try {
6
- MediaLibrary = require('expo-media-library');
6
+ MediaLibrary = require('expo-media-library/legacy');
7
7
  } catch (e) {
8
- // do nothing
8
+ try {
9
+ MediaLibrary = require('expo-media-library');
10
+ } catch (e) {
11
+ // do nothing
12
+ }
9
13
  }
10
14
 
11
15
  if (!MediaLibrary) {