react-native-picky icon indicating copy to clipboard operation
react-native-picky copied to clipboard

No more than the 24th serial number

Open levi-li-yi opened this issue 3 years ago • 0 comments

Hi, the PickerColumn`s 'selectedValue' prop error is no more than the 24th serial number. such as:

const [list, setList] = useState([ {label: '1', value: 1}, {label: '2', value: 2}, ... {label: '29', value: 29}, {label: '30', value: 30}, ]) const [defaultValue, setDefaultValue] = useState(29)

' <Picker loop={true}> <PickerColumn selectedValue={defaultValue} onChange={obj=> setDefaultValue({value})}> {list.map((item, index) => ( <PickerItem label={item.label} value={item.value} key={index} /> ))} </PickerColumn> </ Picker >

'

but, the initialized view result show '24'

levi-li-yi avatar Dec 04 '22 04:12 levi-li-yi