Open menghany opened 1 year ago
const [selectedIndex,setSelectedIndex] = useState(15)
const onWheelChange = index => {
setSelectedIndex(index)
}
<WheelPicker
options={options}
selectedIndicatorStyle={{backgroundColor: '#F6F7F9'}}
itemHeight={36}
visibleRest={3}
selectedIndex={selectedIndex}
onChange={onWheelChange}
itemTextStyle={{
fontSize: 16,
color: '#333',
fontWeight: 500
}}
/>
Thanks for reporting, Is this Android or iOS?
Both Android and iOS
https://user-images.githubusercontent.com/13767186/218925885-40e4274b-2279-43af-a362-bd9f9c3be82c.mov