mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
5b19464b81
commit
1c9a792ca4
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user