diff --git a/React/Base/RCTAssert.h b/React/Base/RCTAssert.h index 95d210a5e..6117390db 100644 --- a/React/Base/RCTAssert.h +++ b/React/Base/RCTAssert.h @@ -24,7 +24,7 @@ RCT_EXTERN BOOL RCTIsMainQueue(void); if ((condition) == 0) { \ _RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \ if (RCT_NSASSERT) { \ - [[NSAssertionHandler currentHandler] handleFailureInFunction:@(__func__) \ + [[NSAssertionHandler currentHandler] handleFailureInFunction:(NSString * _Nonnull)@(__func__) \ file:(NSString * _Nonnull)@(__FILE__) lineNumber:__LINE__ description:__VA_ARGS__]; \ } \ } \