Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - Prop: selectedItem, WheelPicker on Modal not selected item at given index when open Modal. #163

Open
bhuvnesh93 opened this issue Oct 8, 2021 · 2 comments

Comments

@bhuvnesh93
Copy link

In Android, When we use WheelPicker on a Modal, on open Modal its not selected automatically given index after react native upgrade 0.65.

<WheelPicker
selectedItem={props.selectedIndex}
data={props.data}
onItemSelected={(index) => props.onSelectedIndex(index)}
/>

npm - "react-native-wheel-picker-android": "^2.0.6",

Any solution? TIA.

@linconkusunoki
Copy link

any updates on this?

@i6mi6
Copy link

i6mi6 commented May 10, 2022

Try passing initPosition as a property on android

 <WheelPicker
       initPosition={Platform.OS === 'android' ? initialIndex : null}
      ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants