mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Reduce visibility of BridgelessReactContext (#38009)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38009 This diff reduces dependency of BridgelessReactContext to package only, this way we are removing BridgelessReactContext out of the Stable API, and app developers won't be able to access it directly. changelog: [internal] internal Reviewed By: cortinico Differential Revision: D46410796 fbshipit-source-id: e887faecdc62b3109bdc7c9616821338e7b66136
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1334594704
commit
55786f26c6
+3
-4
@@ -40,8 +40,7 @@ import javax.annotation.Nullable;
|
||||
* com.facebook.react.bridge.CatalystInstance}, which doesn't exist in bridgeless mode.
|
||||
*/
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class BridgelessReactContext extends ReactApplicationContext
|
||||
implements EventDispatcherProvider {
|
||||
class BridgelessReactContext extends ReactApplicationContext implements EventDispatcherProvider {
|
||||
|
||||
private final ReactHost mReactHost;
|
||||
private final AtomicReference<String> mSourceURL = new AtomicReference<>();
|
||||
@@ -95,7 +94,7 @@ public class BridgelessReactContext extends ReactApplicationContext
|
||||
return mReactHost.isInstanceInitialized();
|
||||
}
|
||||
|
||||
public DevSupportManager getDevSupportManager() {
|
||||
DevSupportManager getDevSupportManager() {
|
||||
return mReactHost.getDevSupportManager();
|
||||
}
|
||||
|
||||
@@ -154,7 +153,7 @@ public class BridgelessReactContext extends ReactApplicationContext
|
||||
mReactHost.handleHostException(e);
|
||||
}
|
||||
|
||||
public DefaultHardwareBackBtnHandler getDefaultHardwareBackBtnHandler() {
|
||||
DefaultHardwareBackBtnHandler getDefaultHardwareBackBtnHandler() {
|
||||
return mReactHost.getDefaultBackButtonHandler();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user