From 1c9a792ca4e13804f70883bf5532810aaec65002 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Thu, 7 Nov 2019 06:15:36 -0800 Subject: [PATCH] LogBox - Re-apply badge color fix Summary: The previous diff mistakenly landed an old version Changelog: [Internal] Reviewed By: cpojer Differential Revision: D18358917 fbshipit-source-id: 284dd6754c4aea3814e5f45dae6f68ed2c261b6a --- Libraries/LogBox/UI/LogBoxLogNotification.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Libraries/LogBox/UI/LogBoxLogNotification.js b/Libraries/LogBox/UI/LogBoxLogNotification.js index 398d7a2fa99..41cad233c92 100644 --- a/Libraries/LogBox/UI/LogBoxLogNotification.js +++ b/Libraries/LogBox/UI/LogBoxLogNotification.js @@ -62,7 +62,7 @@ function CountBadge(props) { return ( - + {props.count <= 1 ? '!' : props.count} @@ -113,21 +113,12 @@ const countStyles = StyleSheet.create({ warn: { backgroundColor: LogBoxStyle.getWarningColor(1), }, - warnText: { - color: LogBoxStyle.getBackgroundLightColor(), - }, error: { backgroundColor: LogBoxStyle.getErrorColor(1), }, - errorText: { - color: LogBoxStyle.getTextColor(1), - }, log: { backgroundColor: LogBoxStyle.getLogColor(1), }, - logText: { - color: LogBoxStyle.getTextColor(1), - }, outside: { padding: 2, borderRadius: 25, @@ -147,6 +138,9 @@ const countStyles = StyleSheet.create({ lineHeight: 18, textAlign: 'center', fontWeight: '600', + textShadowColor: LogBoxStyle.getBackgroundColor(0.4), + textShadowOffset: {width: 0, height: 0}, + textShadowRadius: 3, }, });