We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reactInstance
shared_ptr
weak_ptr
RCTCxxBridge.mm
1 parent 622b877 commit 38d91b7Copy full SHA for 38d91b7
React/Base/RCTBridge+Cxx.h
@@ -12,6 +12,6 @@
12
13
@interface RCTBridge (Cxx)
14
15
-- (std::shared_ptr<facebook::react::Instance>)reactInstance;
+- (std::weak_ptr<facebook::react::Instance>)reactInstance;
16
17
@end
React/Base/RCTBridge+Cxx.mm
@@ -13,8 +13,8 @@
@implementation RCTBridge (Cxx)
-- (std::shared_ptr<facebook::react::Instance>)reactInstance {
- std::shared_ptr<facebook::react::Instance> instance;
+- (std::weak_ptr<facebook::react::Instance>)reactInstance {
+ std::weak_ptr<facebook::react::Instance> instance;
18
RCTBridge *batchBridge = [self batchedBridge];
19
if ([batchBridge isKindOfClass:[RCTCxxBridge class]]) {
20
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)batchBridge;
0 commit comments