stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Attachment picker tabs gets hidden when an Image/Attachment is selected on Android

Open khushal87 opened this issue 2 years ago • 2 comments

Describe the bug

The attachment picker tabs with image, file and camera picker are hidden when an image is selected from the image picker.

Dev environment info (please complete/provide the following information):

  • Package version - 5.1.0
  • Android only

To Reproduce Steps to reproduce the behaviour:

  1. Go to Message input in a channel
  2. Select an image from the Image picker
  3. Notice that the tabs get hidden when the image is selected

Expected behaviour The tabs should be clearly visible.

Additional context NIL

Screenshots https://images.zenhubusercontent.com/178163307/1f3b6406-ff32-465d-a5cb-a6de9d347735/screen_recording_2022_09_02_at_15_42_25.mov

khushal87 avatar Sep 02 '22 10:09 khushal87

Hey team! Please add your planning poker estimate with Zenhub @khushal87 @santhoshvai

vanGalilea avatar Sep 13 '22 08:09 vanGalilea

This issue must be solved in all places once and for all. We should calculate the snap points of the bottom sheet dynamically and use the same logic everywhere (Screen vs. window dimensions etc.)

vanGalilea avatar Sep 13 '22 08:09 vanGalilea

This issue is not reproducible anymore, therefore it will be closed

vanGalilea avatar Mar 08 '23 14:03 vanGalilea

@vanGalilea

This seems to happen again on some Android devices i.e. reproducable on a AVD Pixel 4 to a lesser extend and Pixel 6 pro more prominently.

See screenshot.

I've tried using bottomInset with OverlayProvider as suggested in another issue, but that doesn't work because even using calculations for screen height and navigation bar height lead to different results on different devices. The bar will increase too much on devices that don't have this issue or too little on devices that experience more cut-off.

I'm running version 5.22.1

Screenshot 2023-12-06 at 12 33 48

Stofkat avatar Feb 01 '24 15:02 Stofkat