# Bug Janky bottom sheet dynamic size if using `BottomSheetTextInput` `BottomSheetTextInput` https://github.com/gorhom/react-native-bottom-sheet/assets/57757211/e6769106-1b98-4b91-8066-8ef295babe71 `TextInput` https://github.com/gorhom/react-native-bottom-sheet/assets/57757211/962b74b7-3415-42f3-b485-2b0be41ba5f6 ## Environment info | Library | Version | | ------------------------------- | ------- | | @gorhom/bottom-sheet | 4.6.1 | | react-native | 0.73.7 | | react-native-reanimated | 3.8.1 | | react-native-gesture-handler | 2.16.0 | ## Steps To Reproduce 1. Type something to the input Describe what you expected to happen: 1. Bottom sheet size changes smoothly ## Reproducible sample code ```tsx const Component = () => { const [text, setText] = useState(""); const ref = useRef(null); useEffect(() => { ref.current?.present(); }, []); return ( <BottomSheetModal ref={ref} enableDynamicSizing enableContentPanningGesture={false} > <BottomSheetTextInput className="py-10" value={text} onChangeText={setText} /> {text.split("").map((it) => ( <View className="h-1 bg-red py-1" /> ))} </BottomSheetModal> ); }; ``` <!-- Please use the Bottom Sheet issue snack template https://snack.expo.io/@gorhom/bottom-sheet-v4-reproducible-issue-template or provide a minimal runnable repro as explained above so that the bug can be tested in isolation. or use -->
Bug
Janky bottom sheet dynamic size if using
BottomSheetTextInputBottomSheetTextInputbottom-sheet-input.mp4
TextInputbottom-sheet-regular-input.mp4
Environment info
Steps To Reproduce
Describe what you expected to happen:
Reproducible sample code