react-native-intersection-observer
react-native-intersection-observer copied to clipboard
How to reset IOScrollView to the starting position?
I trying get ref of IOScrollView for reset this to initial position, but it did not work.
How i can reset this scrollView to initial position?
just like ScrollView#scrollto
function Demo () {
const scroller = useRef();
useEffect(() => {
scroller.current.scrollTo({ x: 0, y: 1000 }); // @see https://reactnative.dev/docs/scrollview#scrollto
}, []);
return (
<IOScrollView ref={scroller}>
</IOScrollView>
);
}