Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Bottom Sheet - Avoiding Keyboard

I'm having some problems trying to make the bottom sheet to respond based on the size of the content. My bottom sheet needs to have a fixed input on the bottom and 2 positions - 50% and 90%. On 50% the bottom sheet needs to be pushed when the keyboard appears and on 90% the content of my flat list needs to be pushed up. Is possible to achieve this?

Steps To Achieve On 50% - bottom sheet needs to be pushed up until the max size(90%)

on 90% - the flat list inside needs to be pushed up

enter image description here

like image 606
Dirk.b Avatar asked Nov 06 '25 12:11

Dirk.b


1 Answers

You can use the library react-native-bottom-sheet. It is very customizable and has some components that handle the keyboard automatically.

like image 178
Alireza Hadjar Avatar answered Nov 09 '25 10:11

Alireza Hadjar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!