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 5aadf72 commit 3c49ce4Copy full SHA for 3c49ce4
src/incubator/WheelPicker/index.tsx
@@ -130,7 +130,7 @@ const WheelPicker = React.memo(({
130
onChange?.(items?.[index]?.value, index);
131
}
132
//@ts-ignore for some reason scrollToOffset isn't recognized
133
- setTimeout(() => scrollView.current?.scrollToOffset({offset: index * itemHeight, animated}), 100);
+ setTimeout(() => scrollView.current?.getNode()?.scrollToOffset({offset: index * itemHeight, animated}), 100);
134
};
135
136
const selectItem = useCallback(index => {
0 commit comments