From c49e8d34350c5fb58c05040a1b9707dba9b55a0d Mon Sep 17 00:00:00 2001 From: Jonny Burger Date: Tue, 10 Mar 2020 20:19:53 +0100 Subject: [PATCH] Fix TextInput in dark mode: Unconditionally apply foreground color --- Libraries/Text/RCTTextAttributes.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Text/RCTTextAttributes.m b/Libraries/Text/RCTTextAttributes.m index e8df8b352ef013..8798e9d0950da8 100644 --- a/Libraries/Text/RCTTextAttributes.m +++ b/Libraries/Text/RCTTextAttributes.m @@ -131,9 +131,7 @@ - (NSParagraphStyle *)effectiveParagraphStyle // Colors UIColor *effectiveForegroundColor = self.effectiveForegroundColor; - if (_foregroundColor || !isnan(_opacity)) { - attributes[NSForegroundColorAttributeName] = effectiveForegroundColor; - } + attributes[NSForegroundColorAttributeName] = effectiveForegroundColor; if (_backgroundColor || !isnan(_opacity)) { attributes[NSBackgroundColorAttributeName] = self.effectiveBackgroundColor;