diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java index b14e49e8bf9afd..feede92d6e83b3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java @@ -114,6 +114,12 @@ protected void onLayout(boolean changed, return; } + if (!getReactContext().hasCatalystInstance()) { + // In bridgeless mode there's no Catalyst instance; in that case, bail. + // TODO (T45503888): Figure out how to support nested views from JS or cpp. + return; + } + UIManagerModule uiManager = getReactContext().getNativeModule(UIManagerModule.class); Spanned text = (Spanned) getText();