Open SumitLubal opened 2 years ago
Any updates on this? Cant use the lib without it. Thanks
This can be achieved by setting animated: true
in the optional options arg. For example:
const App = () => {
const pagerRef = useRef<InfinitePagerImperativeApi>(null);
const incrementPage = () => {
pagerRef.current?.incrementPage({animated: true})
}
const setPage = (index: number) => {
pagerRef.current?.setPage(index, {animated: true})
}
return (
<Pager ref={pagerRef} renderPage={() => <View />} />
);
}
I am loving this library and for our project it is very improtant to have iterative api usage for those with accessibility so they can touch instead of drag.
incrementPage
works beautifully but doesn't show any animation in scrolling. Any idea how we can add this?