Skip to content

Commit

Permalink
Break retain cycle in RCTLegacyViewManagerInteropCoordinator
Browse files Browse the repository at this point in the history
Summary: Breaks retain cycle by having weak reference to bridge.

Reviewed By: shergin

Differential Revision: D21501419

fbshipit-source-id: 7526ceefceb59e296c6f4944cac5069cb62b33a5
  • Loading branch information
sammy-SC authored and facebook-github-bot committed May 12, 2020
1 parent d30c920 commit 8f90ce2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@implementation RCTLegacyViewManagerInteropCoordinator {
RCTComponentData *_componentData;
RCTBridge *_bridge;
__weak RCTBridge *_bridge;
/*
Each instnace of `RCTLegacyViewManagerInteropComponentView` registers a block to which events are dispatched.
This is the container that maps unretained UIView pointer to a block to which the event is dispatched.
Expand Down

0 comments on commit 8f90ce2

Please sign in to comment.