Skip to content

Commit

Permalink
Reduce visibility of functions in ReactHostImpl (#39640)
Browse files Browse the repository at this point in the history
Summary:

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
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Sep 26, 2023
1 parent babbc3e commit 2073040
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ <T extends NativeModule> T getNativeModule(Class<T> nativeModuleInterface) {
return null;
}

public DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
/* package */
DefaultHardwareBackBtnHandler getDefaultBackButtonHandler() {
return () -> {
UiThreadUtil.assertOnUiThread();
if (mDefaultHardwareBackBtnHandler != null) {
Expand Down

0 comments on commit 2073040

Please sign in to comment.