From 278c9dfd0cf7e7f63f85a34a5ffe6758e59ec207 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Wed, 11 Dec 2024 12:24:56 +0530 Subject: [PATCH 1/2] fix: image gallery header and footer safe area view --- .../components/ImageGalleryFooter.tsx | 64 +++++++++---------- .../components/ImageGalleryHeader.tsx | 11 ++-- 2 files changed, 37 insertions(+), 38 deletions(-) diff --git a/package/src/components/ImageGallery/components/ImageGalleryFooter.tsx b/package/src/components/ImageGallery/components/ImageGalleryFooter.tsx index a5ae6d6e2f..8a6a338071 100644 --- a/package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +++ b/package/src/components/ImageGallery/components/ImageGalleryFooter.tsx @@ -154,14 +154,14 @@ export const ImageGalleryFooterWithContext = < }; return ( - setHeight(event.nativeEvent.layout.height)} pointerEvents={'box-none'} style={styles.wrapper} > - + {photo.type === FileTypes.Video ? ( videoControlElement ? ( videoControlElement({ duration, onPlayPause, paused, progress, videoRef }) @@ -175,37 +175,37 @@ export const ImageGalleryFooterWithContext = < /> ) ) : null} - - {leftElement ? ( - leftElement({ openGridView, photo, share, shareMenuOpen }) - ) : ( - - )} - {centerElement ? ( - centerElement({ openGridView, photo, share, shareMenuOpen }) - ) : ( - - - {t('{{ index }} of {{ photoLength }}', { - index: photoLength - selectedIndex, - photoLength, - })} - + + + {leftElement ? ( + leftElement({ openGridView, photo, share, shareMenuOpen }) + ) : ( + + )} + {centerElement ? ( + centerElement({ openGridView, photo, share, shareMenuOpen }) + ) : ( + + + {t('{{ index }} of {{ photoLength }}', { + index: photoLength - selectedIndex, + photoLength, + })} + + + )} + {rightElement ? ( + rightElement({ openGridView, photo, share, shareMenuOpen }) + ) : ( + + + {GridIcon ? GridIcon : } - )} - {rightElement ? ( - rightElement({ openGridView, photo, share, shareMenuOpen }) - ) : ( - - - {GridIcon ? GridIcon : } - - - )} - - + + )} + - + ); }; @@ -300,7 +300,7 @@ const styles = StyleSheet.create({ }, innerContainer: { flexDirection: 'row', - height: 56, + paddingVertical: 4, }, leftContainer: { flex: 1, diff --git a/package/src/components/ImageGallery/components/ImageGalleryHeader.tsx b/package/src/components/ImageGallery/components/ImageGalleryHeader.tsx index 05b2a3520d..ef835f842c 100644 --- a/package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +++ b/package/src/components/ImageGallery/components/ImageGalleryHeader.tsx @@ -93,12 +93,12 @@ export const ImageGalleryHeader = < }; return ( - setHeight(event.nativeEvent.layout.height)} pointerEvents={'box-none'} > - + {leftElement ? ( leftElement({ hideOverlay, photo }) ) : ( @@ -123,9 +123,9 @@ export const ImageGalleryHeader = < ) : ( )} - + - + ); }; @@ -140,12 +140,11 @@ const styles = StyleSheet.create({ container: { flexDirection: 'row', justifyContent: 'space-between', - paddingVertical: 4, + paddingVertical: 8, }, date: { fontSize: 12, fontWeight: '500', - marginBottom: 8, opacity: 0.5, }, leftContainer: { From 1d4748743b254fc5adb9487ee8890218a9f6c3a0 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Wed, 11 Dec 2024 17:57:58 +0530 Subject: [PATCH 2/2] fix: old arch image resizer native module spec file name fix --- ...{StreamChatReactNativeSpec.java => StreamChatReactNative.java} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename package/native-package/android/src/oldarch/com/streamchatreactnative/{StreamChatReactNativeSpec.java => StreamChatReactNative.java} (100%) diff --git a/package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNativeSpec.java b/package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNative.java similarity index 100% rename from package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNativeSpec.java rename to package/native-package/android/src/oldarch/com/streamchatreactnative/StreamChatReactNative.java