Skip to content

Commit 6ae2654

Browse files
committed
WheelPicker - Android - fix missing values when initialValue is sent (#2618)
1 parent 6a41b44 commit 6ae2654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/WheelPicker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ const WheelPicker = ({
351351
decelerationRate={Constants.isAndroid ? 0.98 : 'normal'}
352352
renderItem={renderItem}
353353
getItemLayout={getItemLayout}
354-
initialScrollIndex={currentIndex}
354+
initialScrollIndex={Constants.isIOS ? currentIndex : undefined}
355355
onContentSizeChange={updateFlatListWidth}
356356
/* This fixes an issue with RTL when centering flatlist content using alignSelf */
357357
centerContent={align === 'center' && Constants.isRTL}

0 commit comments

Comments
 (0)