Skip to content

Commit

Permalink
chore(ios): yarn lint:ios:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Feb 9, 2022
1 parent c9c35b2 commit 73eeb5d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ - (BOOL)application:(UIApplication *)application
? @{}
: dynamicLink.utmParametersDictionary,
}];
}
};

// Per Apple Tech Support, a network failure could occur when returning from background on
// iOS 12. https://github.com/AFNetworking/AFNetworking/issues/4279#issuecomment-447108981 So
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ - (void)application_onDidEnterForeground {
RCTRootView *rctRootView =
(RCTRootView *)[UIApplication sharedApplication].delegate.window.rootViewController.view;

if (rctRootView.appProperties != nil && [rctRootView.appProperties[@"isHeadless"] isEqual: @(YES)]) {
if (rctRootView.appProperties != nil &&
[rctRootView.appProperties[@"isHeadless"] isEqual:@(YES)]) {
NSMutableDictionary *appPropertiesDict = [rctRootView.appProperties mutableCopy];
isHeadless = NO;
if ([appPropertiesDict objectForKey:@"isHeadless"] != nil &&
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

@interface RNFBMessagingModule : NSObject <RCTBridgeModule>
+ (NSDictionary *_Nonnull)addCustomPropsToUserProps:(NSDictionary *_Nullable)userProps
withLaunchOptions:(NSDictionary *_Nullable)launchOptions;
withLaunchOptions:(NSDictionary *_Nullable)launchOptions;
@end
7 changes: 5 additions & 2 deletions packages/storage/ios/RNFBStorage/RNFBStorageCommon.m
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,11 @@ + (NSMutableDictionary *)getDownloadTaskAsDictionary:(FIRStorageTaskSnapshot *)t
@"totalBytes" : @(task.progress.totalUnitCount)
} mutableCopy];
} else {
return [@{@"bytesTransferred" : @(0), @"state" : [self getTaskStatus:FIRStorageTaskStatusUnknown], @"totalBytes" : @(0)}
mutableCopy];
return [@{
@"bytesTransferred" : @(0),
@"state" : [self getTaskStatus:FIRStorageTaskStatusUnknown],
@"totalBytes" : @(0)
} mutableCopy];
}
}

Expand Down

0 comments on commit 73eeb5d

Please sign in to comment.