Skip to content

Commit fc8ba1f

Browse files
authored
Merge pull request #2616 from GetStream/develop
Next Release
2 parents 3ae97ed + 5593db9 commit fc8ba1f

File tree

131 files changed

+1990
-1426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+1990
-1426
lines changed
445 KB
Loading

docusaurus/docs/reactnative/basics/installation.mdx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ Stream Chat React Native SDK requires installing some peer dependencies to provi
5656
<TabItem value='rncli'>
5757

5858
```bash title="Terminal"
59-
yarn add @react-native-camera-roll/camera-roll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-fs react-native-gesture-handler react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-svg
59+
yarn add @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-fs react-native-gesture-handler react-native-image-resizer react-native-reanimated react-native-svg
6060
```
6161

6262
</TabItem>
6363

6464
<TabItem value='expo'>
6565

6666
```bash title="Terminal"
67-
npx expo install @stream-io/flat-list-mvcp @react-native-community/netinfo expo-file-system expo-image-manipulator expo-image-picker expo-media-library react-native-gesture-handler react-native-reanimated react-native-svg
67+
npx expo install @stream-io/flat-list-mvcp @react-native-community/netinfo expo-file-system expo-image-manipulator react-native-gesture-handler react-native-reanimated react-native-svg
6868
```
6969

7070
</TabItem>
@@ -82,25 +82,21 @@ values={[
8282
>
8383
<TabItem value='rncli'>
8484

85-
- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery.
8685
- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery.
8786
- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support.
8887
- [`react-native-fs`](https://github.com/itinance/react-native-fs) to perform file operations like save, delete, etc.
8988
- [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK.
90-
- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) to capture images to attach them in the message.
9189
- [`react-native-image-resizer`](https://github.com/bamlab/react-native-image-resizer) to compress image uploads.
9290
- [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads.
9391
- [`react-native-svg`](https://github.com/react-native-svg/react-native-svg) for SVG support.
9492

9593
</TabItem>
9694
<TabItem value="expo">
9795

98-
- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery.
9996
- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery.
10097
- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support.
10198
- [`expo-file-system`](https://docs.expo.dev/versions/latest/sdk/filesystem/) to perform file operations like save, delete, etc.
10299
- [`react-native-gesture-handler`](https://github.com/software-mansion/react-native-gesture-handler) to handle gestures within the SDK.
103-
- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message.
104100
- [`expo-image-manipulator`](https://docs.expo.dev/versions/latest/sdk/imagemanipulator/) to compress image uploads.
105101
- [`react-native-reanimated`](https://github.com/software-mansion/react-native-reanimated) to compress image uploads.
106102
- [`react-native-svg`](https://docs.expo.dev/versions/latest/sdk/svg/) for SVG support.
@@ -110,6 +106,10 @@ values={[
110106

111107
### Optional Dependencies
112108

109+
:::note
110+
Starting from `v5.35.0` the `react-native-image-crop-picker` and `expo-image-picker` is no longer a required dependency. You can use it if you want to capture images to attach them in the message else feel free to uninstall it.
111+
:::
112+
113113
There are a few optional dependencies that can be added to have more features within the SDK.
114114

115115
<Tabs
@@ -122,18 +122,23 @@ values={[
122122
>
123123
<TabItem value='rncli'>
124124

125+
- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery.
126+
- [`react-native-image-crop-picker`](https://github.com/ivpusic/react-native-image-crop-picker) to capture images to attach them in the message.
125127
- [`react-native-video`](https://github.com/react-native-video/react-native-video) for Video and Audio playback support.
126128
- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and async audio messages support.
127129
- [`react-native-share`](https://github.com/react-native-share/react-native-share) for Attachment sharing support.
128130
- [`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback.
129131
- [`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support.
130132
- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files.
131133
- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app.
134+
- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to use native photo picker.
132135

133136
</TabItem>
134137
<TabItem value="expo">
135138

136139
- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) for Video and Audio playback, recording and async audio messages support.
140+
- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery.
141+
- [`expo-image-picker`](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to capture images to attach them in the message.
137142
- [`expo-sharing`](https://docs.expo.dev/versions/latest/sdk/sharing/) for Attachments sharing support.
138143
- [`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support.
139144
- [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support.
@@ -275,7 +280,7 @@ Please also follow the steps mentioned in the links below for corresponding depe
275280

276281
- `react-native` - [additional installation steps](https://reactnative.dev/docs/image#gif-and-webp-support-on-android)
277282
- `react-native-image-crop-picker` - [additional installation steps](https://github.com/ivpusic/react-native-image-crop-picker#step-3)
278-
- `react-native-cameraroll` - [additional installation steps](https://github.com/react-native-cameraroll/react-native-cameraroll#permissions)
283+
- `@react-native-camera-roll/camera-roll` - [additional installation steps](https://github.com/react-native-cameraroll/react-native-cameraroll#permissions)
279284

280285
Now you should be able to run the app on simulator by running following command:
281286

docusaurus/docs/reactnative/basics/overview.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ The SDK tries to keep the list of external dependencies to a minimum, these are
6060
>
6161
<TabItem value='rncli'>
6262

63-
- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery.
6463
- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery.
6564
- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support.
6665
- [`react-native-fs`](https://github.com/itinance/react-native-fs) to perform file operations like save, delete, etc.
@@ -74,7 +73,6 @@ The SDK tries to keep the list of external dependencies to a minimum, these are
7473
</TabItem>
7574
<TabItem value="expo">
7675

77-
- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery.
7876
- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) for accessing device gallery.
7977
- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp) for bi-directional FlatList support.
8078
- [`expo-file-system`](https://docs.expo.dev/versions/latest/sdk/filesystem/) to perform file operations like save, delete, etc.
@@ -102,18 +100,21 @@ There are a few optional dependencies that can be added by our users to have mor
102100
>
103101
<TabItem value='rncli'>
104102

103+
- [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) for accessing device gallery.
105104
- [`react-native-video`](https://github.com/react-native-video/react-native-video) for Video and Audio playback support.
106105
- [`react-native-audio-recorder-player`](https://github.com/hyochan/react-native-audio-recorder-player) for Audio recording and async audio messages support.
107106
- [`react-native-share`](https://github.com/react-native-share/react-native-share) for Attachment sharing support.
108107
- [`react-native-haptic-feedback`](https://github.com/junina-de/react-native-haptic-feedback) for user haptics feedback.
109108
- [`@react-native-clipboard/clipboard`](https://github.com/react-native-clipboard/clipboard) for Copy message support.
110109
- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker) to access device media files.
111110
- [`react-native-quick-sqlite`](https://github.com/margelo/react-native-quick-sqlite) to enable Offline support in the app.
111+
- [`react-native-image-picker`](https://github.com/react-native-image-picker/react-native-image-picker) to use native photo picker.
112112

113113
</TabItem>
114114
<TabItem value="expo">
115115

116116
- [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) for Video and Audio playback, recording and async audio messages support.
117+
- [`expo-media-library`](https://docs.expo.dev/versions/latest/sdk/media-library/) for accessing device gallery.
117118
- [`expo-sharing`](https://docs.expo.dev/versions/latest/sdk/sharing/) for Attachments sharing support.
118119
- [`expo-haptics`](https://docs.expo.dev/versions/latest/sdk/haptics/) for user haptics support.
119120
- [`expo-clipboard`](https://docs.expo.dev/versions/latest/sdk/clipboard/) for Copy message support.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Function to customize the behaviour when the [AttachButton](../../../../ui-components/attach-button.mdx) is pressed in the message input.
2+
3+
| Type |
4+
| ------------ |
5+
| `() => void` |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Enable the file picker on the [`MessageInput`](../../../../ui-components/message-input.mdx) component.
2+
3+
| Type | Default |
4+
| ------- | ------- |
5+
| Boolean | `true` |

docusaurus/docs/reactnative/common-content/ui-components/channel/props/has_file_picker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Enable the file picker on the [`MessageInput`](../../../../ui-components/message
22

33
| Type | Default |
44
| ------- | ------- |
5-
| boolean | true |
5+
| Boolean | `true` |

docusaurus/docs/reactnative/common-content/ui-components/channel/props/has_image_picker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Enable the image picker on the [`MessageInput`](../../../../ui-components/messag
22

33
| Type | Default |
44
| ------- | ------- |
5-
| boolean | true |
5+
| Boolean | `true` |

docusaurus/docs/reactnative/contexts/message-context.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ id: message-context
33
title: MessageContext
44
---
55

6-
import Disabled from '../common-content/contexts/channel-context/disabled.mdx';
7-
86
import Alignment from '../common-content/contexts/message-context/alignment.mdx';
97
import Files from '../common-content/contexts/message-context/files.mdx';
108
import GroupStyles from '../common-content/contexts/message-context/group_styles.mdx';
@@ -80,10 +78,6 @@ True if one of the following condition is true:
8078
| ------- |
8179
| boolean |
8280

83-
### disabled
84-
85-
<Disabled />
86-
8781
### files
8882

8983
<Files />

docusaurus/docs/reactnative/contexts/message-input-context.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import DoDocUploadRequest from '../common-content/ui-components/channel/props/do
2626
import DoImageUploadRequest from '../common-content/ui-components/channel/props/do_image_upload_request.mdx';
2727
import EmojiSearchIndex from '../common-content/ui-components/channel/props/emoji_search_index.mdx';
2828
import FileUploadPreview from '../common-content/ui-components/channel/props/file_upload_preview.mdx';
29+
import HandleAttachButtonPress from '../common-content/ui-components/channel/props/handle_attach_button_press.mdx';
30+
import HasCameraPicker from '../common-content/ui-components/channel/props/has_camera_picker.mdx';
2931
import HasCommands from '../common-content/ui-components/channel/props/has_commands.mdx';
3032
import HasFilePicker from '../common-content/ui-components/channel/props/has_file_picker.mdx';
3133
import HasImagePicker from '../common-content/ui-components/channel/props/has_image_picker.mdx';
@@ -182,15 +184,23 @@ const { sendMessage, toggleAttachmentPicker } = useMessageInputContext();
182184

183185
<EmojiSearchIndex />
184186

187+
### <div class="label description">_forwarded from [Channel](../../core-components/channel#handleattachbuttonpress)_ props</div> `handleAttachButtonPress` {#handleAttachButtonPress}
188+
189+
<HandleAttachButtonPress />
190+
191+
### <div class="label description">_forwarded from [Channel](../../core-components/channel#hascamerapicker)_ props</div> `hasCameraPicker` {#hascamerapicker}
192+
193+
<HasCameraPicker />
194+
185195
### <div class="label description">_forwarded from [Channel](../../core-components/channel#hascommands)_ props</div> `hasCommands` {#hascommands}
186196

187197
<HasCommands />
188198

189-
### <div class="label description">_forwarded from [Channel](../../core-components/channel#hasfilepicker)_ props</div> hasFilePicker {#hasfilepicker}
199+
### <div class="label description">_forwarded from [Channel](../../core-components/channel#hasfilepicker)_ props</div> `hasFilePicker` {#hasfilepicker}
190200

191201
<HasFilePicker />
192202

193-
### <div class="label description">_forwarded from [Channel](../../core-components/channel#hasimagepicker)_ props</div> hasImagePicker {#hasimagepicker}
203+
### <div class="label description">_forwarded from [Channel](../../core-components/channel#hasimagepicker)_ props</div> `hasImagePicker` {#hasimagepicker}
194204

195205
<HasImagePicker />
196206

docusaurus/docs/reactnative/core-components/channel.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import GetMessagesGroupStyles from '../common-content/ui-components/channel/prop
6363
import Giphy from '../common-content/ui-components/channel/props/giphy.mdx';
6464
import GiphyEnabled from '../common-content/ui-components/channel/props/giphy_enabled.mdx';
6565
import GiphyVersion from '../common-content/ui-components/channel/props/giphy_version.mdx';
66+
import HandleAttachButtonPress from '../common-content/ui-components/channel/props/handle_attach_button_press.mdx';
6667
import HandleBlock from '../common-content/ui-components/channel/props/handle_block.mdx';
6768
import HandleCopy from '../common-content/ui-components/channel/props/handle_copy.mdx';
6869
import HandleDelete from '../common-content/ui-components/channel/props/handle_delete.mdx';
@@ -74,6 +75,7 @@ import HandleQuotedReply from '../common-content/ui-components/channel/props/han
7475
import HandleReaction from '../common-content/ui-components/channel/props/handle_reaction.mdx';
7576
import HandleRetry from '../common-content/ui-components/channel/props/handle_retry.mdx';
7677
import HandleThreadReply from '../common-content/ui-components/channel/props/handle_thread_reply.mdx';
78+
import HasCameraPicker from '../common-content/ui-components/channel/props/has_camera_picker.mdx';
7779
import HasCommands from '../common-content/ui-components/channel/props/has_commands.mdx';
7880
import HasFilePicker from '../common-content/ui-components/channel/props/has_file_picker.mdx';
7981
import HasImagePicker from '../common-content/ui-components/channel/props/has_image_picker.mdx';
@@ -480,6 +482,10 @@ The max allowable is 255, which when reached displays as `255+`.
480482

481483
<GiphyVersion />
482484

485+
### `handleAttachButtonPress`
486+
487+
<HandleAttachButtonPress />
488+
483489
### `handleBlock`
484490

485491
<HandleBlock />
@@ -524,6 +530,10 @@ The max allowable is 255, which when reached displays as `255+`.
524530

525531
<HandleThreadReply />
526532

533+
### `hasCameraPicker`
534+
535+
<HasCameraPicker />
536+
527537
### `hasCommands`
528538

529539
<HasCommands />

0 commit comments

Comments
 (0)