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 22fae02 commit 43151d5Copy full SHA for 43151d5
src/components/WheelPicker/index.tsx
@@ -335,6 +335,8 @@ const WheelPicker = ({
335
);
336
}, []);
337
338
+ const offsets = items.map((_, i) => i * itemHeight);
339
+
340
return (
341
<View testID={testID} bg-$backgroundDefault style={style}>
342
<View row centerH>
@@ -356,7 +358,7 @@ const WheelPicker = ({
356
358
ref={scrollView}
357
359
// @ts-expect-error
360
contentContainerStyle={contentContainerStyle}
- snapToInterval={itemHeight}
361
+ snapToOffsets={offsets}
362
decelerationRate={Constants.isAndroid ? 0.98 : 'normal'}
363
renderItem={renderItem}
364
getItemLayout={getItemLayout}
0 commit comments