mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Compile-out UIManagerModule from ReactHostImpl (#50156)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50156 Compile-out UIManagerModule from ReactHostImpl changelog: [internal] internal Reviewed By: rshest Differential Revision: D70742208 fbshipit-source-id: ae915ee41681b9e4275ecc6c7cfd475f42a03333
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a8668319ad
commit
4ca670e5ca
+3
-1
@@ -699,7 +699,9 @@ public class ReactHostImpl implements ReactHost {
|
||||
/* package */
|
||||
@Nullable
|
||||
<T extends NativeModule> T getNativeModule(Class<T> nativeModuleInterface) {
|
||||
if (nativeModuleInterface == UIManagerModule.class) {
|
||||
if (!ReactBuildConfig.UNSTABLE_ENABLE_MINIFY_LEGACY_ARCHITECTURE
|
||||
&& nativeModuleInterface == UIManagerModule.class) {
|
||||
|
||||
ReactSoftExceptionLogger.logSoftExceptionVerbose(
|
||||
TAG,
|
||||
new ReactNoCrashBridgeNotAllowedSoftException(
|
||||
|
||||
Reference in New Issue
Block a user