the scrollToCompat.js has a little bug, that is function scrollToCompat(scrollResponder, y, x, animated = false) { if (isLegacyReactNative()) { scrollResponder.scrollTo(y, x, animated) } else { scrollResponder.scrollTo({x, y, animated}) } }
'animate' to 'animated',because the official doc need {x:x,y:y,animated:true}
the scrollToCompat.js has a little bug, that is
function scrollToCompat(scrollResponder, y, x, animated = false) { if (isLegacyReactNative()) { scrollResponder.scrollTo(y, x, animated) } else { scrollResponder.scrollTo({x, y, animated}) } }
'animate' to 'animated',because the official doc need {x:x,y:y,animated:true}