stream-chat-react-native-core 4.1.3-beta.1 → 4.1.4-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/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +9 -9
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +9 -9
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +10 -5
- package/src/components/Channel/Channel.tsx +1 -1
- package/src/version.json +1 -1
|
@@ -89,7 +89,7 @@ export declare type ChannelPropsWithContext<StreamChatGenerics extends DefaultSt
|
|
|
89
89
|
maxMessageLength?: number;
|
|
90
90
|
messageId?: string;
|
|
91
91
|
newMessageStateUpdateThrottleInterval?: number;
|
|
92
|
-
overrideOwnCapabilities?: OwnCapabilitiesContextValue
|
|
92
|
+
overrideOwnCapabilities?: Partial<OwnCapabilitiesContextValue>;
|
|
93
93
|
stateUpdateThrottleInterval?: number;
|
|
94
94
|
/**
|
|
95
95
|
* Tells if channel is rendering a thread list
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.4-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -248,13 +248,18 @@ export const AttachmentPicker = React.forwardRef(
|
|
|
248
248
|
}, [selectedPicker]);
|
|
249
249
|
|
|
250
250
|
useEffect(() => {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
251
|
+
const keyboardSubscription =
|
|
252
|
+
Platform.OS === 'ios'
|
|
253
|
+
? Keyboard.addListener('keyboardWillShow', hideAttachmentPicker)
|
|
254
|
+
: Keyboard.addListener('keyboardDidShow', hideAttachmentPicker);
|
|
256
255
|
|
|
257
256
|
return () => {
|
|
257
|
+
if (keyboardSubscription?.remove) {
|
|
258
|
+
keyboardSubscription.remove();
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// To keep compatibility with older versions of React Native, where `remove()` is not available
|
|
258
263
|
if (Platform.OS === 'ios') {
|
|
259
264
|
Keyboard.removeListener('keyboardWillShow', hideAttachmentPicker);
|
|
260
265
|
} else {
|
|
@@ -366,7 +366,7 @@ export type ChannelPropsWithContext<
|
|
|
366
366
|
maxMessageLength?: number;
|
|
367
367
|
messageId?: string;
|
|
368
368
|
newMessageStateUpdateThrottleInterval?: number;
|
|
369
|
-
overrideOwnCapabilities?: OwnCapabilitiesContextValue
|
|
369
|
+
overrideOwnCapabilities?: Partial<OwnCapabilitiesContextValue>;
|
|
370
370
|
stateUpdateThrottleInterval?: number;
|
|
371
371
|
/**
|
|
372
372
|
* Tells if channel is rendering a thread list
|
package/src/version.json
CHANGED