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 388274b commit 00ecaeaCopy full SHA for 00ecaea
src/components/segmentedControl/index.tsx
@@ -116,7 +116,7 @@ const SegmentedControl = (props: SegmentedControlProps) => {
116
},
117
throttleTime,
118
{trailing: true, leading: false}),
119
- [throttleTime]);
+ [throttleTime, onChangeIndex]);
120
121
useAnimatedReaction(() => {
122
return animatedSelectedIndex.value;
@@ -126,7 +126,7 @@ const SegmentedControl = (props: SegmentedControlProps) => {
126
onChangeIndex && runOnJS(changeIndex)();
127
}
128
129
- []);
+ [changeIndex]);
130
131
const onSegmentPress = useCallback((index: number) => {
132
animatedSelectedIndex.value = index;
0 commit comments