Fixed a strongSelf that was accidentally marked as __weak
This commit is contained in:
parent
68f1a223fb
commit
f5d8e4d6e0
|
@ -468,7 +468,7 @@ RCT_EXPORT_METHOD(reload)
|
|||
^(__unused NSData *data, NSURLResponse *response, NSError *error) {
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
__strong RCTDevMenu *strongSelf = weakSelf;
|
||||
RCTDevMenu *strongSelf = weakSelf;
|
||||
if (strongSelf && strongSelf->_liveReloadEnabled) {
|
||||
NSHTTPURLResponse *HTTPResponse = (NSHTTPURLResponse *)response;
|
||||
if (!error && HTTPResponse.statusCode == 205) {
|
||||
|
|
|
@ -244,7 +244,7 @@ extern NSString *RCTBridgeModuleNameForClass(Class cls);
|
|||
{
|
||||
__weak RCTUIManager *weakSelf = self;
|
||||
dispatch_async(self.methodQueue, ^{
|
||||
__weak RCTUIManager *strongSelf = weakSelf;
|
||||
RCTUIManager *strongSelf = weakSelf;
|
||||
if (strongSelf) {
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RCTUIManagerWillUpdateViewsDueToContentSizeMultiplierChangeNotification
|
||||
object:strongSelf];
|
||||
|
|
Loading…
Reference in New Issue