You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTML has <a> anchor links that let you scroll to a specific component using <a href="#some-target">.
With React Native, in a normal ScrollView, I'm not sure how to scroll to an item.
Is there a way to do something like:
// psuedo code// get the Y position of an element (relative to the scrollview)constyPositionOfElement=measure(elementRef).yscrollTo(scrollRef,{y: yPositionOfElement})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HTML has
<a>
anchor links that let you scroll to a specific component using<a href="#some-target">
.With React Native, in a normal
ScrollView
, I'm not sure how to scroll to an item.Is there a way to do something like:
Beta Was this translation helpful? Give feedback.
All reactions