gorhom / react-native-bottom-sheet

A performant interactive bottom sheet with fully configurable options 🚀
https://gorhom.dev/react-native-bottom-sheet/
MIT License
7.08k stars 777 forks source link

[Bug]: renderFooter custom container Flickers When Using renderFooter with Multiline BottomSheetTextInput #2033

Open MaximeDemurger opened 1 week ago

MaximeDemurger commented 1 week ago

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS, Android

What happened?

When using the renderFooter prop to include a BottomSheetTextInput with the multiline feature enabled, the send icon within the footer starts to flicker. This flickering occurs because the size of the BottomSheetTextInput changes dynamically as the user types, causing the footer's position to be recalculated repeatedly and leading to instability in the send icon's display.

Key Points:

  1. Components Involved:
  1. Issue Details:
  1. Impact:

Reproduction steps

Reproduction sample

https://snack.expo.dev/@maximedemurger/bottom-sheet---issue-reproduction-template

Relevant log output

https://github.com/user-attachments/assets/f8bbe974-0290-4e7a-b617-605c163fba7d