Skip to content

Commit cd51ee8

Browse files
Merge pull request #1219 from GetStream/khushal87-crns-290
feat: add isAttachmentEqual props around memoization of custom properties [CRNS - 290]
2 parents 50f4e87 + 090d40d commit cd51ee8

File tree

14 files changed

+295
-152
lines changed

14 files changed

+295
-152
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Function which returns true if passing nextAttachment to render would return the same result as passing prevAttachment to render, otherwise return false.
2+
3+
| Type |
4+
| -------- |
5+
| function |
6+
7+
| Parameter | Description |
8+
| -------------- | ------------------------------------------ |
9+
| prevAttachment | previous message attachment to be compared |
10+
| nextAttachment | next message attachment to be compared |

docusaurus/docs/reactnative/contexts/messages_context.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import HandleThreadReply from '../common-content/core-components/channel/props/h
3737
import InitialScrollToFirstUnreadMessage from '../common-content/core-components/channel/props/initial_scroll_to_first_unread_message.mdx';
3838
import InlineDateSeparator from '../common-content/core-components/channel/props/inline_date_separator.mdx';
3939
import InlineUnreadIndicator from '../common-content/core-components/channel/props/inline_unread_indicator.mdx';
40+
import IsAttachmentEqual from '../common-content/core-components/channel/props/is_attachment_equal.mdx';
4041
import LegacyImageViewerSwipeBehaviour from '../common-content/core-components/channel/props/legacy_image_viewer_swipe_behaviour.mdx';
4142
import MarkdownRules from '../common-content/core-components/channel/props/markdown_rules.mdx';
4243
import MessageAvatar from '../common-content/core-components/channel/props/message_avatar.mdx';
@@ -148,6 +149,10 @@ Id of current channel.
148149

149150
<InitialScrollToFirstUnreadMessage />
150151

152+
### <div class="label description">_forwarded from [Channel](../core-components/channel.mdx#isattachmentequal)_ props</div> isAttachmentEqual {#isattachmentequal}
153+
154+
<IsAttachmentEqual />
155+
151156
### <div class="label description">_forwarded from [Channel](../core-components/channel.mdx#legacyimageviewerswipebehaviour)_ props</div> legacyImageViewerSwipeBehaviour {#legacyimageviewerswipebehaviour}
152157

153158
<legacyImageViewerSwipeBehaviour />

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ import InputButtons from '../common-content/core-components/channel/props/input_
7676
import InputEditingStateHeader from '../common-content/core-components/channel/props/input_editing_state_header.mdx';
7777
import InputGiphySearch from '../common-content/core-components/channel/props/input_giphy_search.mdx';
7878
import InputReplyStateHeader from '../common-content/core-components/channel/props/input_reply_state_header.mdx';
79+
import IsAttachmentEqual from '../common-content/core-components/channel/props/is_attachment_equal.mdx';
7980
import LegacyImageViewerSwipeBehaviour from '../common-content/core-components/channel/props/legacy_image_viewer_swipe_behaviour.mdx';
8081
import MarkdownRules from '../common-content/core-components/channel/props/markdown_rules.mdx';
8182
import MaxMessageLength from '../common-content/core-components/channel/props/max_message_length.mdx';
@@ -516,6 +517,10 @@ The max allowable is 255, which when reached displays as `255+`.
516517

517518
<InitialValue />
518519

520+
### isAttachmentEqual
521+
522+
<IsAttachmentEqual />
523+
519524
### keyboardBehavior
520525

521526
Behavior for the keyboard passed to the underlying [KeyboardAvoidingView](https://reactnative.dev/docs/keyboardavoidingview#behavior).

docusaurus/docs/reactnative/guides/attachment_customizations.mdx

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ const CustomGallery = ({ images, onPressIn }) => {
8787
}
8888

8989
const CustomFileAttachment = ({ attachment }) => {
90-
console.log(attachemnt.mime_type);
91-
console.log(attachemnt.title);
92-
console.log(attachemnt.file_size);
93-
console.log(attachemnt.actions);
90+
console.log(attachment.mime_type);
91+
console.log(attachment.title);
92+
console.log(attachment.file_size);
93+
console.log(attachment.actions);
9494

9595
return (/** Your custom UI */)
9696
}
@@ -334,3 +334,52 @@ export default function App() {
334334
);
335335
}
336336
```
337+
338+
## Handling Custom Properties On Attachment
339+
340+
Default UI components and context providers from the SDK are memoized for performance purpose, and will not trigger re-renders upon updates to
341+
custom properties on attachment. Please refer to [memoization guide](../customization/custom_components.mdx#equality) for reference.
342+
343+
Eg: Suppose we add a `customField` property to the attachment object and use it the UI in custom `Card` component.
344+
345+
```tsx
346+
<Channel
347+
Card={attachment => {
348+
return (
349+
<View>
350+
<Text>{attachment.customField}</Text>
351+
</View>
352+
);
353+
}}
354+
/>
355+
```
356+
357+
In this example, if you try to update `customField` on particular attachment from backend (or anywhere), you will not see it updated on UI until you refresh the chat.
358+
359+
The reason being, the default memoization logic only checks for fixed set of properties on attachment, and doesn't check for custom properties.
360+
361+
This can be solved by providing a function which checks for changes in custom properties which you may have been defined on attachment.
362+
363+
```tsx
364+
import { Channel } from 'stream-chat-react-native';
365+
366+
const isAttachmentEqualHandler = (prevAttachment, nextAttachment) => {
367+
const attachmentEqual = prevAttachment.customField === nextAttachment.customField;
368+
if (!attachmentEqual) return false;
369+
return true;
370+
};
371+
372+
<Channel
373+
channel={channel}
374+
isAttachmentEqual={isAttachmentEqualHandler}
375+
Card={attachment => {
376+
return (
377+
<View>
378+
<Text>{attachment.customField}</Text>
379+
</View>
380+
);
381+
}}
382+
>
383+
{/* The underlying components */}
384+
</Channel>;
385+
```

examples/TypeScriptMessaging/yarn.lock

Lines changed: 8 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.0.tgz#86850b8597ea6962089770952075dcaabb8dba34"
2929
integrity sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==
3030

31-
"@babel/core@^7.0.0", "@babel/core@^7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.12.3", "@babel/core@^7.12.9", "@babel/core@^7.14.0", "@babel/core@^7.7.5":
31+
"@babel/core@^7.1.0", "@babel/core@^7.1.6", "@babel/core@^7.12.3", "@babel/core@^7.12.9", "@babel/core@^7.14.0", "@babel/core@^7.7.5":
3232
version "7.17.5"
3333
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.5.tgz#6cd2e836058c28f06a4ca8ee7ed955bbf37c8225"
3434
integrity sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==
@@ -719,13 +719,6 @@
719719
pirates "^4.0.5"
720720
source-map-support "^0.5.16"
721721

722-
723-
version "7.13.10"
724-
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d"
725-
integrity sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==
726-
dependencies:
727-
regenerator-runtime "^0.13.4"
728-
729722
"@babel/runtime@^7.12.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.16.3", "@babel/runtime@^7.8.4":
730723
version "7.17.2"
731724
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941"
@@ -5074,52 +5067,6 @@ [email protected]:
50745067
dependencies:
50755068
uglify-es "^3.1.9"
50765069

5077-
5078-
version "0.66.0"
5079-
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.66.0.tgz#a4495df4b24a2eb9f82705e0a53f4cbbd36d983e"
5080-
integrity sha512-rO3yayxplLNxFDc7HyMShN+psgEb2mbw15EMreNvgV8QnXNYHmgU6e15tLbtEvC8LuftOLuSufEdSmR/ykm+aA==
5081-
dependencies:
5082-
"@babel/core" "^7.0.0"
5083-
"@babel/plugin-proposal-class-properties" "^7.0.0"
5084-
"@babel/plugin-proposal-export-default-from" "^7.0.0"
5085-
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0"
5086-
"@babel/plugin-proposal-object-rest-spread" "^7.0.0"
5087-
"@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
5088-
"@babel/plugin-proposal-optional-chaining" "^7.0.0"
5089-
"@babel/plugin-syntax-dynamic-import" "^7.0.0"
5090-
"@babel/plugin-syntax-export-default-from" "^7.0.0"
5091-
"@babel/plugin-syntax-flow" "^7.2.0"
5092-
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.0.0"
5093-
"@babel/plugin-syntax-optional-chaining" "^7.0.0"
5094-
"@babel/plugin-transform-arrow-functions" "^7.0.0"
5095-
"@babel/plugin-transform-async-to-generator" "^7.0.0"
5096-
"@babel/plugin-transform-block-scoping" "^7.0.0"
5097-
"@babel/plugin-transform-classes" "^7.0.0"
5098-
"@babel/plugin-transform-computed-properties" "^7.0.0"
5099-
"@babel/plugin-transform-destructuring" "^7.0.0"
5100-
"@babel/plugin-transform-exponentiation-operator" "^7.0.0"
5101-
"@babel/plugin-transform-flow-strip-types" "^7.0.0"
5102-
"@babel/plugin-transform-for-of" "^7.0.0"
5103-
"@babel/plugin-transform-function-name" "^7.0.0"
5104-
"@babel/plugin-transform-literals" "^7.0.0"
5105-
"@babel/plugin-transform-modules-commonjs" "^7.0.0"
5106-
"@babel/plugin-transform-object-assign" "^7.0.0"
5107-
"@babel/plugin-transform-parameters" "^7.0.0"
5108-
"@babel/plugin-transform-react-display-name" "^7.0.0"
5109-
"@babel/plugin-transform-react-jsx" "^7.0.0"
5110-
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
5111-
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
5112-
"@babel/plugin-transform-regenerator" "^7.0.0"
5113-
"@babel/plugin-transform-runtime" "^7.0.0"
5114-
"@babel/plugin-transform-shorthand-properties" "^7.0.0"
5115-
"@babel/plugin-transform-spread" "^7.0.0"
5116-
"@babel/plugin-transform-sticky-regex" "^7.0.0"
5117-
"@babel/plugin-transform-template-literals" "^7.0.0"
5118-
"@babel/plugin-transform-typescript" "^7.5.0"
5119-
"@babel/plugin-transform-unicode-regex" "^7.0.0"
5120-
"@babel/template" "^7.0.0"
5121-
react-refresh "^0.4.0"
5122-
51235070
51245071
version "0.66.2"
51255072
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.66.2.tgz#fddebcf413ad4ea617d4f47f7c1da401052de734"
@@ -6914,24 +6861,24 @@ [email protected]:
69146861
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
69156862
integrity sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ=
69166863

6917-
stream-chat-react-native-core@4.1.4:
6918-
version "4.1.4"
6919-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-4.1.4.tgz#2fd5599f9d2d44b75d278c30319da5dd67c6f390"
6920-
integrity sha512-HaYZNtNryJ1cJ6D0O0B6xW3YBVuezVxL0lUFg5pAP19M+sae7v7zw5ofU/dyEmP5/aQbeRuQj/cym3dQuvyxDg==
6864+
stream-chat-react-native-core@4.2.0:
6865+
version "4.2.0"
6866+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-4.2.0.tgz#f3d183e2340aa515051582975ec8c9f9a2ffe284"
6867+
integrity sha512-d8gfi9OljPKB1l9+VhdLBfacBbZyKVsd/kZ9+neVuPIAtigrfCbGjhPDyxzeQfE8lg0iQEn4A+tHMuBpGGKrdg==
69216868
dependencies:
6922-
"@babel/runtime" "7.13.10"
6869+
"@babel/runtime" "^7.12.5"
69236870
"@gorhom/bottom-sheet" "4.1.5"
69246871
dayjs "1.10.5"
69256872
file-loader "6.2.0"
69266873
i18next "20.2.4"
69276874
lodash-es "4.17.21"
6928-
metro-react-native-babel-preset "0.66.0"
6875+
metro-react-native-babel-preset "0.66.2"
69296876
mime-types "^2.1.34"
69306877
path "0.12.7"
69316878
react-art "^17.0.2"
69326879
react-native-markdown-package "1.8.1"
69336880
react-native-url-polyfill "^1.3.0"
6934-
stream-chat "6.0.0"
6881+
stream-chat "6.2.0"
69356882

69366883
"stream-chat-react-native-core@link:../../package":
69376884
version "0.0.0"
@@ -6941,21 +6888,6 @@ [email protected]:
69416888
version "0.0.0"
69426889
uid ""
69436890

6944-
6945-
version "6.0.0"
6946-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-6.0.0.tgz#39ec7cefc911a1cbb4debccce142222b05167f4d"
6947-
integrity sha512-zpzpiMsR2eTYS7UluimGwVcA4vsaP/GQtEUufwlZWhxS07GaSd9SCIDYbJlmdtV47TfiMDOcDKRrm50adkBlBQ==
6948-
dependencies:
6949-
"@babel/runtime" "^7.16.3"
6950-
"@types/jsonwebtoken" "^8.5.6"
6951-
"@types/ws" "^7.4.0"
6952-
axios "^0.22.0"
6953-
base64-js "^1.5.1"
6954-
form-data "^4.0.0"
6955-
isomorphic-ws "^4.0.1"
6956-
jsonwebtoken "^8.5.1"
6957-
ws "^7.4.4"
6958-
69596891
69606892
version "6.2.0"
69616893
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-6.2.0.tgz#9d01c2926cc7a0270b187c90e24bf52739d14e16"

package/native-package/yarn.lock

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.7.tgz#078d8b833fbbcc95286613be8c716cef2b519fa2"
2727
integrity sha512-p8pdE6j0a29TNGebNm7NzYZWB3xVZJBZ7XGs42uAKzQo8VQ3F0By/cQCtUEABwIqw5zo6WA4NbmxsfzADzMKnQ==
2828

29-
"@babel/core@^7.0.0":
30-
version "7.17.7"
31-
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.7.tgz#f7c28228c83cdf2dbd1b9baa06eaf9df07f0c2f9"
32-
integrity sha512-djHlEfFHnSnTAcPb7dATbiM5HxGOP98+3JLBZtjRb5I7RXrw7kFRoG2dXM8cm3H+o11A8IFH/uprmJpwFynRNQ==
29+
"@babel/core@^7.14.0":
30+
version "7.17.8"
31+
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.8.tgz#3dac27c190ebc3a4381110d46c80e77efe172e1a"
32+
integrity sha512-OdQDV/7cRBtJHLSOBqqbYNkOcydOgnX59TZx4puf41fzcVtN3e/4yqY8lMQsK+5X2lJtAdmA+6OHqsj1hBJ4IQ==
3333
dependencies:
3434
"@ampproject/remapping" "^2.1.0"
3535
"@babel/code-frame" "^7.16.7"
3636
"@babel/generator" "^7.17.7"
3737
"@babel/helper-compilation-targets" "^7.17.7"
3838
"@babel/helper-module-transforms" "^7.17.7"
39-
"@babel/helpers" "^7.17.7"
40-
"@babel/parser" "^7.17.7"
39+
"@babel/helpers" "^7.17.8"
40+
"@babel/parser" "^7.17.8"
4141
"@babel/template" "^7.16.7"
4242
"@babel/traverse" "^7.17.3"
4343
"@babel/types" "^7.17.0"
@@ -294,10 +294,10 @@
294294
"@babel/traverse" "^7.16.8"
295295
"@babel/types" "^7.16.8"
296296

297-
"@babel/helpers@^7.17.7":
298-
version "7.17.7"
299-
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.7.tgz#6fc0a24280fd00026e85424bbfed4650e76d7127"
300-
integrity sha512-TKsj9NkjJfTBxM7Phfy7kv6yYc4ZcOo+AaWGqQOKTPDOmcGkIFb5xNA746eKisQkm4yavUYh4InYM9S+VnO01w==
297+
"@babel/helpers@^7.17.8":
298+
version "7.17.8"
299+
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.8.tgz#288450be8c6ac7e4e44df37bcc53d345e07bc106"
300+
integrity sha512-QcL86FGxpfSJwGtAvv4iG93UL6bmqBdmoVY0CMCU2g+oD2ezQse3PT5Pa+jiD6LJndBQi0EDlpzOWNlLuhz5gw==
301301
dependencies:
302302
"@babel/template" "^7.16.7"
303303
"@babel/traverse" "^7.17.3"
@@ -317,10 +317,10 @@
317317
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.3.tgz#b07702b982990bf6fdc1da5049a23fece4c5c3d0"
318318
integrity sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==
319319

320-
"@babel/parser@^7.17.7":
321-
version "7.17.7"
322-
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.7.tgz#fc19b645a5456c8d6fdb6cecd3c66c0173902800"
323-
integrity sha512-bm3AQf45vR4gKggRfvJdYJ0gFLoCbsPxiFLSH6hTVYABptNHY6l9NrhnucVjQ/X+SPtLANT9lc0fFhikj+VBRA==
320+
"@babel/parser@^7.17.8":
321+
version "7.17.8"
322+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.8.tgz#2817fb9d885dd8132ea0f8eb615a6388cca1c240"
323+
integrity sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==
324324

325325
"@babel/plugin-proposal-class-properties@^7.0.0":
326326
version "7.16.7"
@@ -648,20 +648,20 @@
648648
"@babel/helper-create-regexp-features-plugin" "^7.16.7"
649649
"@babel/helper-plugin-utils" "^7.16.7"
650650

651-
652-
version "7.13.10"
653-
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d"
654-
integrity sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==
655-
dependencies:
656-
regenerator-runtime "^0.13.4"
657-
658651
"@babel/runtime@^7.12.0", "@babel/runtime@^7.8.4":
659652
version "7.17.2"
660653
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941"
661654
integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==
662655
dependencies:
663656
regenerator-runtime "^0.13.4"
664657

658+
"@babel/runtime@^7.12.5":
659+
version "7.17.8"
660+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.8.tgz#3e56e4aff81befa55ac3ac6a0967349fd1c5bca2"
661+
integrity sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA==
662+
dependencies:
663+
regenerator-runtime "^0.13.4"
664+
665665
"@babel/runtime@^7.16.3":
666666
version "7.17.7"
667667
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.7.tgz#a5f3328dc41ff39d803f311cfe17703418cf9825"
@@ -1285,12 +1285,12 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1, loose-envify@^1.4
12851285
dependencies:
12861286
js-tokens "^3.0.0 || ^4.0.0"
12871287

1288-
1289-
version "0.66.0"
1290-
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.66.0.tgz#a4495df4b24a2eb9f82705e0a53f4cbbd36d983e"
1291-
integrity sha512-rO3yayxplLNxFDc7HyMShN+psgEb2mbw15EMreNvgV8QnXNYHmgU6e15tLbtEvC8LuftOLuSufEdSmR/ykm+aA==
1288+
1289+
version "0.66.2"
1290+
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.66.2.tgz#fddebcf413ad4ea617d4f47f7c1da401052de734"
1291+
integrity sha512-H/nLBAz0MgfDloSe1FjyH4EnbokHFdncyERvLPXDACY3ROVRCeUyFNo70ywRGXW2NMbrV4H7KUyU4zkfWhC2HQ==
12921292
dependencies:
1293-
"@babel/core" "^7.0.0"
1293+
"@babel/core" "^7.14.0"
12941294
"@babel/plugin-proposal-class-properties" "^7.0.0"
12951295
"@babel/plugin-proposal-export-default-from" "^7.0.0"
12961296
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0"
@@ -1619,29 +1619,29 @@ source-map@^0.5.0:
16191619
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
16201620
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
16211621

1622-
stream-chat-react-native-core@4.1.4:
1623-
version "4.1.4"
1624-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-4.1.4.tgz#2fd5599f9d2d44b75d278c30319da5dd67c6f390"
1625-
integrity sha512-HaYZNtNryJ1cJ6D0O0B6xW3YBVuezVxL0lUFg5pAP19M+sae7v7zw5ofU/dyEmP5/aQbeRuQj/cym3dQuvyxDg==
1622+
stream-chat-react-native-core@4.2.0:
1623+
version "4.2.0"
1624+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-4.2.0.tgz#f3d183e2340aa515051582975ec8c9f9a2ffe284"
1625+
integrity sha512-d8gfi9OljPKB1l9+VhdLBfacBbZyKVsd/kZ9+neVuPIAtigrfCbGjhPDyxzeQfE8lg0iQEn4A+tHMuBpGGKrdg==
16261626
dependencies:
1627-
"@babel/runtime" "7.13.10"
1627+
"@babel/runtime" "^7.12.5"
16281628
"@gorhom/bottom-sheet" "4.1.5"
16291629
dayjs "1.10.5"
16301630
file-loader "6.2.0"
16311631
i18next "20.2.4"
16321632
lodash-es "4.17.21"
1633-
metro-react-native-babel-preset "0.66.0"
1633+
metro-react-native-babel-preset "0.66.2"
16341634
mime-types "^2.1.34"
16351635
path "0.12.7"
16361636
react-art "^17.0.2"
16371637
react-native-markdown-package "1.8.1"
16381638
react-native-url-polyfill "^1.3.0"
1639-
stream-chat "6.0.0"
1639+
stream-chat "6.2.0"
16401640

1641-
stream-chat@6.0.0:
1642-
version "6.0.0"
1643-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-6.0.0.tgz#39ec7cefc911a1cbb4debccce142222b05167f4d"
1644-
integrity sha512-zpzpiMsR2eTYS7UluimGwVcA4vsaP/GQtEUufwlZWhxS07GaSd9SCIDYbJlmdtV47TfiMDOcDKRrm50adkBlBQ==
1641+
stream-chat@6.2.0:
1642+
version "6.2.0"
1643+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-6.2.0.tgz#9d01c2926cc7a0270b187c90e24bf52739d14e16"
1644+
integrity sha512-s6BkkU0IJJyaPDNGc3V8d3WF/ZnM6bgFNdEpHGkwS9oX8+caxvhmKSpEY6l5srq4+O61trUHF3yyij8CLno7ew==
16451645
dependencies:
16461646
"@babel/runtime" "^7.16.3"
16471647
"@types/jsonwebtoken" "^8.5.6"

0 commit comments

Comments
 (0)