Skip to content

Commit

Permalink
Fix NSDictionary crash in bridgeless RN
Browse files Browse the repository at this point in the history
Summary: Changelog: [iOS] [Fixed] Fixed crash in TurboModules when bridge isn't set

Reviewed By: RSNara

Differential Revision: D17939896

fbshipit-source-id: 4c59de00da30fa8ceb32e590d65663ac37ff3ca2
  • Loading branch information
Peter Argany authored and facebook-github-bot committed Oct 15, 2019
1 parent 101f864 commit 474f12e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ - (void)notifyAboutTurboModuleSetup:(const char *)name
object:strongBridge
userInfo:@{
@"module" : module,
@"bridge" : RCTNullIfNil(strongBridge == nil ? nil : strongBridge.parentBridge)
@"bridge" : RCTNullIfNil([strongBridge parentBridge])
}];
};

Expand Down

0 comments on commit 474f12e

Please sign in to comment.