Reduce visibility of functions in ReactHostImpl (#39640)

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

changelog: [internal] internal

Reducing visibility from public to package only for `ReactHostImpl.getDefaultHardwareBackBtnHandler()` since it's only used within package

Reviewed By: mdvacca

Differential Revision: D49612859

fbshipit-source-id: 3c40888da732f33dc046d9363b08119e707f4ea4
This commit is contained in:
Arushi Kesarwani
2023-09-27 13:03:16 -04:00
committed by Luna Wei
parent 69e0c2d916
commit a57a8b7782
@@ -597,7 +597,8 @@ public class ReactHostImpl implements ReactHost {
return null;
}
public DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
/* package */
DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
return () -> {
UiThreadUtil.assertOnUiThread();
if (mDefaultHardwareBackBtnHandler != null) {