From e05c4f6bd2d71b42040928ec95c5d8ea3afd066c Mon Sep 17 00:00:00 2001 From: Woodpav Date: Wed, 10 Apr 2019 11:48:04 -0700 Subject: [PATCH] Fix: text shadow displays on iOS when textShadowOffset is {0,0} --- Libraries/Text/RCTTextAttributes.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Text/RCTTextAttributes.m b/Libraries/Text/RCTTextAttributes.m index 15b6851ed96310..ceefb2e49df1ce 100644 --- a/Libraries/Text/RCTTextAttributes.m +++ b/Libraries/Text/RCTTextAttributes.m @@ -170,7 +170,7 @@ - (NSParagraphStyle *)effectiveParagraphStyle } // Shadow - if (!CGSizeEqualToSize(_textShadowOffset, CGSizeZero)) { + if (!isnan(_textShadowRadius)) { NSShadow *shadow = [NSShadow new]; shadow.shadowOffset = _textShadowOffset; shadow.shadowBlurRadius = _textShadowRadius;