Skip to content

Commit

Permalink
Fixing Bridgeless Exception caused by the UIManager changes
Browse files Browse the repository at this point in the history
Summary:
Forward-fixing the crash in Bridgeless mode caused by UIManagerProvider changes to replace JSI Module

bypass-github-export-checks

Reviewed By: philIip

Differential Revision: D51778494

fbshipit-source-id: f1837d7b164051e326e1227c432e493bad16cd51
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Dec 2, 2023
1 parent 01c627e commit 5e406cc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ private static UIManager getUIManager(
@UIManagerType int uiManagerType,
boolean returnNullIfCatalystIsInactive) {
if (context.isBridgeless()) {
if (!context.hasActiveReactInstance()) {
throw new IllegalStateException(
"Unable to retrieve a UIManager if CatalystInstance is not active.");
}
@Nullable UIManager uiManager = context.getFabricUIManager();
if (uiManager == null) {
ReactSoftExceptionLogger.logSoftException(
Expand Down

0 comments on commit 5e406cc

Please sign in to comment.