-
-
Notifications
You must be signed in to change notification settings - Fork 921
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
Hi,
I swipe down the modal to close it and it throws this error.
I think call to the function is wrong
PR has been created:
#1367

Environment info
| Library | Version |
|---|---|
| @gorhom/bottom-sheet | 4.4.6 |
| react-native | 0.71 |
| react-native-reanimated | ~3.1.0 |
| react-native-gesture-handler | ~2.9.0 |
Steps To Reproduce
1.create bottom-sheet input in the bottom-sheet modal
2. try to swipe down to close the modal
3. lib will crash on keyboard close
Describe what you expected to happen:
- it shouldn't crash on close
Reproducible sample code
const Modal = () =>{
const ref = useRef(null);
const sheetRef = useRef(null);
const renderBackdrop = useCallback(
(props) => (
<BottomSheetBackdrop
{...props}
disappearsOnIndex={0}
appearsOnIndex={1}
/>
),
[],
);
return (
<BottomSheet
ref={sheetRef}
snapPoints={[250]}
backdropComponent={renderBackdrop}
>
<View>
<BottomSheetTextInput
placeholder={'Enter Amount'}
keyboardType={'decimal-pad'}
value={value}
ref={ref}
/>
</View>
</BottomSheet>
)
}JuEunSung, pjk5 and Steffi3rdLuisRego, pjk5, iliapnmrv and Steffi3rdiliapnmrv and Steffi3rd
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working