Rename MaintainVisibleScrollPositionHelper.getUIManagerModule() -> MaintainVisibleScrollPositionHelper.getUIManager() (#50177)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50177

This diff renames MaintainVisibleScrollPositionHelper.getUIManagerModule() -> MaintainVisibleScrollPositionHelper.getUIManager() to move away from the UIManagerModule naming

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D71050639

fbshipit-source-id: 4d9aaf66af0f2a881146a83ec170344adc1bad7b
This commit is contained in:
David Vacca
2025-03-20 13:08:29 -07:00
committed by Facebook GitHub Bot
parent 5e2eedc116
commit 204ca2ec95
@@ -77,7 +77,7 @@ class MaintainVisibleScrollPositionHelper<ScrollViewT extends ViewGroup & HasSmo
return;
}
mListening = true;
getUIManagerModule().addUIManagerEventListener(this);
getUIManager().addUIManagerEventListener(this);
}
/** Stop listening to view hierarchy updates. Should be called before this is destroyed. */
@@ -86,7 +86,7 @@ class MaintainVisibleScrollPositionHelper<ScrollViewT extends ViewGroup & HasSmo
return;
}
mListening = false;
getUIManagerModule().removeUIManagerEventListener(this);
getUIManager().removeUIManagerEventListener(this);
}
/**
@@ -143,7 +143,7 @@ class MaintainVisibleScrollPositionHelper<ScrollViewT extends ViewGroup & HasSmo
return (ReactViewGroup) mScrollView.getChildAt(0);
}
private UIManager getUIManagerModule() {
private UIManager getUIManager() {
return Assertions.assertNotNull(
UIManagerHelper.getUIManager(
(ReactContext) mScrollView.getContext(),