stream-chat-react-native 8.7.0-beta.2 → 8.7.0-beta.4

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": "8.7.0-beta.2",
4
+ "version": "8.7.0-beta.4",
5
5
  "homepage": "https://www.npmjs.com/package/stream-chat-react-native",
6
6
  "author": {
7
7
  "company": "Stream.io Inc",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "es6-symbol": "^3.1.3",
23
23
  "mime": "^4.0.7",
24
- "stream-chat-react-native-core": "8.7.0-beta.2"
24
+ "stream-chat-react-native-core": "8.7.0-beta.4"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@react-native-camera-roll/camera-roll": ">=7.8.0",
@@ -1,4 +1,5 @@
1
1
  import { Platform } from 'react-native';
2
+ import { PickImageOptions } from 'stream-chat-react-native-core';
2
3
  let ImagePicker;
3
4
 
4
5
  try {
@@ -8,11 +9,12 @@ try {
8
9
  }
9
10
 
10
11
  export const pickImage = ImagePicker
11
- ? async () => {
12
+ ? async ({ maxNumberOfFiles }: PickImageOptions = {}) => {
12
13
  try {
13
14
  const result = await ImagePicker.launchImageLibrary({
14
15
  assetRepresentationMode: 'current',
15
16
  mediaType: 'mixed',
17
+ selectionLimit: maxNumberOfFiles,
16
18
  });
17
19
  const canceled = result.didCancel;
18
20
  const errorCode = result.errorCode;