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
This commit is contained in:
Rick Hanlon
2019-11-07 06:15:36 -08:00
committed by Facebook Github Bot
parent 5b19464b81
commit 1c9a792ca4
+4 -10
View File
@@ -62,7 +62,7 @@ function CountBadge(props) {
return (
<View style={countStyles.outside}>
<View style={[countStyles.inside, countStyles[props.level]]}>
<Text style={[countStyles.text, countStyles[`${props.level}Text`]]}>
<Text style={countStyles.text}>
{props.count <= 1 ? '!' : props.count}
</Text>
</View>
@@ -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,
},
});