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

Fast scroll to top show empty cell when selectedIndex is not 0

Open menghany opened this issue 2 years ago • 3 comments

https://user-images.githubusercontent.com/13767186/218925885-40e4274b-2279-43af-a362-bd9f9c3be82c.mov

menghany avatar Feb 15 '23 04:02 menghany

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
      }}
    />

menghany avatar Feb 15 '23 04:02 menghany

Thanks for reporting, Is this Android or iOS?

erksch avatar Feb 21 '23 13:02 erksch

Both Android and iOS

menghany avatar Feb 22 '23 01:02 menghany