From 053b0c17653ef63502b26d2569aebef1ca5b259f Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Thu, 26 Sep 2024 18:50:48 -0500 Subject: [PATCH] style(lint): note that nullability lint issue is an upstream bug --- ios/RCTFBSDK/login/RCTFBSDKLoginManager.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m b/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m index db100fc0..3ffb92ff 100644 --- a/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m +++ b/ios/RCTFBSDK/login/RCTFBSDKLoginManager.m @@ -107,7 +107,13 @@ + (BOOL)requiresMainQueueSetup } }; + // the nil argument is a ViewController, it should be nullable but Xcode complains + // I logged an upstream bug (and proposed a PR), hopefully will resolve. + // https://github.com/facebook/facebook-ios-sdk/issues/2476 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wnonnull" [_loginManager reauthorizeDataAccess:nil handler:requestHandler]; +#pragma clang diagnostic pop }; RCT_EXPORT_METHOD(logOut)