slorber / react-native-scroll-into-view

Scroll a ReactNative View into the visible screen. Similar to DOMElement.scrollIntoView() browser function.
https://thisweekinreact.com
MIT License
415 stars 13 forks source link

no works on react native 0.66.1 #41

Open mantegnous opened 2 years ago

mantegnous commented 2 years ago

i'm following your example, and then updated react native on the last version, the scroll dosent work.

TypeError: scrollView.getScrollResponder().scrollResponderScrollTo is not a function. (In 'scrollView.getScrollResponder().scrollResponderScrollTo({ x: 0, y: newScrollY, animated: animated })', 'scrollView.getScrollResponder().scrollResponderScrollTo' is undefined)

slorber commented 2 years ago

looks like the same issue as https://github.com/APSL/react-native-keyboard-aware-scroll-view/pull/510

will look into it later

slorber commented 2 years ago

see also https://github.com/slorber/react-native-scroll-into-view/pull/38

mantegnous commented 2 years ago

@slorber there are a lot of pull requests to merge, are you going to merge this fix? I'm looking in node_modulesb but i dont find src/api.tsx