rgommezz / react-native-scroll-bottom-sheet

Cross platform scrollable bottom sheet with virtualisation support, native animations at 60 FPS and fully implemented in JS land :fire:
MIT License
1.54k stars 64 forks source link

Recalculate content position #70

Closed aksejs closed 3 years ago

aksejs commented 3 years ago

Current Behavior

Hi, i have a problem with bottom offset that appears when i removing some element from initial layout. So when it happen the outer View seems forget to recalculate their position (or height) according to new layout. But then if we drag for e.g 1px, it becomes normal.

ezgif-2-89b376670412

Expected Behavior

Like on android where it works pretty decent.

How to reproduce

Run ios emulator, scroll to bottom, then tap on "remove" to see how it works: https://snack.expo.io/@akse/react-native-scroll-bottom-sheet-issue

aksejs commented 3 years ago

Sorry, actually it's not a library problem. Solved it by automaticallyAdjustContentInsets prop.