File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
package/src/components/Attachment Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ const GalleryImage: React.FC<
5252
5353 return (
5454 < Image
55- key = { uri }
5655 { ...rest }
5756 onError = { ( ) => setError ( true ) }
5857 source = { {
@@ -70,7 +69,8 @@ const GalleryImage: React.FC<
7069const MemoizedGalleryImage = React . memo (
7170 GalleryImage ,
7271 ( prevProps , nextProps ) =>
73- prevProps . height === nextProps . height && prevProps . uri === nextProps . uri ,
72+ prevProps . height === nextProps . height &&
73+ getUrlWithoutParams ( prevProps . uri ) === getUrlWithoutParams ( nextProps . uri ) ,
7474) as typeof GalleryImage ;
7575
7676const styles = StyleSheet . create ( {
@@ -258,7 +258,7 @@ const GalleryWithContext = <
258258 < TouchableOpacity
259259 activeOpacity = { 0.8 }
260260 disabled = { preventPress }
261- key = { `gallery-item-${ url } /${ rowIndex } /${ images . length } ` }
261+ key = { `gallery-item-${ messageId } / ${ colIndex } /${ rowIndex } /${ images . length } ` }
262262 onLongPress = { ( event ) => {
263263 if ( onLongPress ) {
264264 onLongPress ( {
You can’t perform that action at this time.
0 commit comments