mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-16 22:09:52 +08:00
Summary: Motivation: ---------- This is one of the more sought after feature requests for RN: react-native.canny.io/feature-requests/p/add-speed-attribute-to-scrollto This PR adds the support to add a "duration" whenever using "scrollTo" or "scrollToEnd" with a scrollView. Currently this only exists for Android as the iOS implementation will be somewhat more involved. This PR is also backwards compatible and does not yet deprecate the "animated" boolean. It may not make sense to ever deprecate "animated", as it could be the flag that is used when devs want the system default duration (which is 250ms for Android). I'm not sure what it is for iOS. It would simplify things to remove "animated", though. Pull Request resolved: https://github.com/facebook/react-native/pull/22884 Differential Revision: D13860038 Pulled By: cpojer fbshipit-source-id: f06751d063a33d7046241c95348b6abbb327d36f