We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a363303 commit 96a5f0eCopy full SHA for 96a5f0e
src/incubator/WheelPicker/index.tsx
@@ -123,7 +123,7 @@ const WheelPicker = React.memo(({
123
124
const scrollToIndex = (index: number, animated: boolean) => {
125
//@ts-ignore for some reason scrollToOffset isn't recognized
126
- scrollView.current?.scrollToOffset({offset: index * itemHeight, animated});
+ setTimeout(() => scrollView.current?.getNode()?.scrollToOffset({offset: index * itemHeight, animated}), 100);
127
};
128
129
const selectItem = useCallback(index => {
0 commit comments