Skip to content

Commit 35a6630

Browse files
Reduce visibility of functions in ReactHostImpl (#39640)
Summary: Pull Request resolved: #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
1 parent 8c779cd commit 35a6630

File tree

1 file changed

+2
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime

1 file changed

+2
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ <T extends NativeModule> T getNativeModule(Class<T> nativeModuleInterface) {
597597
return null;
598598
}
599599

600-
public DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
600+
/* package */
601+
DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
601602
return () -> {
602603
UiThreadUtil.assertOnUiThread();
603604
if (mDefaultHardwareBackBtnHandler != null) {

0 commit comments

Comments
 (0)