Add scrollEventThrottle prop support in Android

Summary:
This diff adds `scrollEventThrottle` prop to Android platform. See [public doc](https://reactnative.dev/docs/scrollview#scrolleventthrottle-ios) for this prop. Currently this is only supported in iOS.

The throttling logic is [following](https://github.com/facebook/react-native/blob/main/React/Views/ScrollView/RCTScrollView.m#L650) iOS existing one.

Changelog:
[Android][Added] - Add scrollEventThrottle prop support in Android

Reviewed By: mdvacca

Differential Revision: D35735978

fbshipit-source-id: 97b73b4d5fbb93696555917b9252e95fd79ca581
This commit is contained in:
Xin Chen
2022-04-19 20:28:17 -07:00
committed by Facebook GitHub Bot
parent dd6325bafe
commit cf55fd587e
6 changed files with 108 additions and 13 deletions
@@ -114,4 +114,7 @@ public class ReactFeatureFlags {
public static boolean enableSpannableCache = false;
public static boolean dispatchPointerEvents = false;
/** Feature Flag to control RN Android scrollEventThrottle prop. */
public static boolean enableScrollEventThrottle = false;
}