stream-chat-react-native
stream-chat-react-native copied to clipboard
Attachment picker tabs gets hidden when an Image/Attachment is selected on Android
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:
- Go to Message input in a channel
- Select an image from the Image picker
- 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
Hey team! Please add your planning poker estimate with Zenhub @khushal87 @santhoshvai
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.)
This issue is not reproducible anymore, therefore it will be closed
@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