Skip to content

Commit

Permalink
Add back [RCTCxxBridge reactInstance] method (facebook#647)
Browse files Browse the repository at this point in the history
This method was removed for 0.63, but the `RCTBridge+Cxx.mm` category (which is marked OSS candidate) relies on it existing. This unblocks moving to 0.63, but we will consider upstreaming this to core.
  • Loading branch information
appden authored Nov 5, 2020
1 parent 5992bca commit d33a606
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions React/CxxBridge/RCTCxxBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ - (void)setRCTTurboModuleLookupDelegate:(id<RCTTurboModuleLookupDelegate>)turboM
return _jsMessageThread;
}

// [TODO(OSS Candidate ISS#2710739)
- (std::weak_ptr<Instance>)reactInstance
{
return _reactInstance;
}
// ]TODO(OSS Candidate ISS#2710739)

- (BOOL)isInspectable
{
return _reactInstance ? _reactInstance->isInspectable() : NO;
Expand Down

0 comments on commit d33a606

Please sign in to comment.