We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e3552 commit 8a612c2Copy full SHA for 8a612c2
src/BottomSheetView.tsx
@@ -65,8 +65,9 @@ function BottomSheetModalScreen({
65
66
const onChange = React.useCallback(
67
(newIndex: number) => {
68
+ const currentIndex = lastIndexRef.current;
69
lastIndexRef.current = newIndex;
- if (newIndex >= 0) {
70
+ if (newIndex >= 0 && newIndex !== currentIndex) {
71
navigation.snapTo(newIndex);
72
}
73
},
0 commit comments