Bottom sheet with list, fixed header & input #75
-
Feature requestHi. First of all thank you for the lib, it's really awesome. 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 and scrolled to the last item visible. Is possible to achieve this? Steps To Achieve
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @filippobarcellos, I moved it to the discussions section because there is nothing to be done from the library perspective. However use case is very interesting, so I'll try to recommend sth here. To simplify, I'll refer to 50% & 90% positions as "half-screen" bottom sheet and "fullscreen" bottom sheet. I have 2 recommended ways instead:
You may ask, why you have to handle it manually. Your use case is quite complex and if using I hope this will help, if you have any more questions, feel free to ask here or open a new discussion in Discussions tab |
Beta Was this translation helpful? Give feedback.
Hi @filippobarcellos, I moved it to the discussions section because there is nothing to be done from the library perspective. However use case is very interesting, so I'll try to recommend sth here.
To simplify, I'll refer to 50% & 90% positions as "half-screen" bottom sheet and "fullscreen" bottom sheet.
I have 2 recommended ways instead:
AvoidSoftInput
module disabled (disabled, because you will be handling it manually), you can useuseSoftInputHeightChanged
for both iOS & Android, to detect current keyboard height and apply that height as an additional bottom padding to bottom sheet's content view. (AvoidSoftInput.setAdjustNothing
)