react-native-ui-lib
react-native-ui-lib copied to clipboard
Picker doesn't update activeTextColor when scroll fast
Description
Related to
- [x] Components
- [ ] Demo
- [ ] Docs
- [ ] Typings
Steps to reproduce
Scroll the panel fast
Expected behavior
When scroll stop the focus item will apply activeTextColor style
Actual behavior
Not
More Info
Code snippet
<WheelPicker
items={[{ label: 'Yes', value: 'yes' }, { label: 'No', value: 'no' }, { label: 'Maybe', value: 'maybe' }]}
activeTextColor='red'
inactiveTextColor='yellow'
onChange={(item) => console.log('changed', item)}
/>
Screenshots/Video
Environment
- React Native version: 18.2.0
- React Native UI Lib version: 7.16.0
Affected platforms
- [x] Android
- [ ] iOS
- [ ] Web