From 88a4be378f47fc45e3e4f625a9be2d9662f93897 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Mon, 9 Oct 2023 15:00:18 -0700 Subject: [PATCH] Reduce visibility of MaintainVisibleScrollPositionHelper Summary: In an attempt to reduce footprint of React Native Android public APIs we are reducing visibility of classes and interfaces that are not meant to be used publicly OR are public but have no usages. As part of our analysis, which involved looking for usages inside the Meta codebase and code search in OSS, we've detected that this class/interface is public but it's not used from other packages. If you are using this class or interface please comment in this PR and we will restate the public access. bypass-github-export-checks changelog: [Android][Changed] Reducing visibility of MaintainVisibleScrollPositionHelper Reviewed By: arushikesarwani94 Differential Revision: D49803271 fbshipit-source-id: ebc43e60dea8de5ef5c21deb623351e0c8ed00b7 --- .../react/views/scroll/MaintainVisibleScrollPositionHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.java index fff761feba26a2..f1630d0c556e39 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.java @@ -30,7 +30,7 @@ *

This uses UIManager to listen to updates and capture position of items before and after * layout. */ -public class MaintainVisibleScrollPositionHelper +class MaintainVisibleScrollPositionHelper implements UIManagerListener { private final ScrollViewT mScrollView; private final boolean mHorizontal;