Hello, I started to use this library, everything works fine until I need to set a `selectedIndex `. Here the code: ``` const [selectedIndex, setSelectedIndex] = useState(10) const {t} = useTranslation('account') const options = useRef( Array.from( {length: MAX_WEEK - MIN_WEEK + 1}, (_, index) => `${t('changeYourPregnancyWeek.week')} ${index + MIN_WEEK}` ) ) const onChangeOption = useCallback((index: number) => { setSelectedIndex(index) }, []) return ( <WheelPicker selectedIndex={selectedIndex} options={options.current} onChange={onChangeOption} /> ) } ``` What happens is: https://github.com/erksch/react-native-wheely/assets/8778613/85106032-01f1-4f41-904d-6c34e2d77b35 It happens for me on both platform. I try to investigate a bit and apparently setting the `animated` option to true inside the `scrollToIndex` methods fixes the problem
Hello,
I started to use this library, everything works fine until I need to set a
selectedIndex.Here the code:
What happens is:
Registrazione.schermo.2023-10-26.alle.09.44.25.mov
It happens for me on both platform.
I try to investigate a bit and apparently setting the
animatedoption to true inside thescrollToIndexmethods fixes the problem