Skip to content

Commit 8f90ce2

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Break retain cycle in RCTLegacyViewManagerInteropCoordinator
Summary: Breaks retain cycle by having weak reference to bridge. Reviewed By: shergin Differential Revision: D21501419 fbshipit-source-id: 7526ceefceb59e296c6f4944cac5069cb62b33a5
1 parent d30c920 commit 8f90ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/fabric/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@implementation RCTLegacyViewManagerInteropCoordinator {
2222
RCTComponentData *_componentData;
23-
RCTBridge *_bridge;
23+
__weak RCTBridge *_bridge;
2424
/*
2525
Each instnace of `RCTLegacyViewManagerInteropComponentView` registers a block to which events are dispatched.
2626
This is the container that maps unretained UIView pointer to a block to which the event is dispatched.

0 commit comments

Comments
 (0)