stream-chat-expo 6.4.0 → 6.4.1-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 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": "6.4.0",
4
+ "version": "6.4.1-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": "6.4.0"
13
+ "stream-chat-react-native-core": "6.4.1-beta.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "expo": ">=51.0.0",
@@ -27,6 +27,11 @@ type ReturnType = {
27
27
  export const getPhotos = MediaLibrary
28
28
  ? async ({ after, first }): Promise<ReturnType> => {
29
29
  try {
30
+ if (Platform.OS === 'android') {
31
+ console.warn(
32
+ 'expo-media-library can be removed in favour of new google policy(https://support.google.com/googleplay/android-developer/answer/14115180?hl=en) if you do not have gallery as your core feature of the app.\nYou can replace it with expo-image-picker and uninstall it. Guide - https://getstream.io/chat/docs/sdk/react-native/guides/native-image-picker/.',
33
+ );
34
+ }
30
35
  // NOTE:
31
36
  // should always check first before requesting permission
32
37
  // because always requesting permission will cause