react-native-ui-kitten
react-native-ui-kitten copied to clipboard
Changing selectedIndex in ViewPager doesnt work
Changing timelineIndex in setSelectedIndex doenst change page in ViewPager at all.
<ViewPager
selectedIndex={timelineIndex}
onSelect={index => setSelectedIndex(index)}
>
<View key={0}><Text>0</Text></View>
<View key={1}><Text>1</Text></View>
</ViewPager>
Have you tried with layout ? Is it working with layout?
No it still doesnt work.
Show the hook, too.
@qbunia can you please provide some code snippet, which allows to reproduce the issue? I've check on a sample project changing selectedIndex
makes ViewPager
to change the page, can't reproduce the issue for now
@qbunia which version did you use?