Fix: dont let notifications count go behind the icon (#3505)
parent
eb2fd53340
commit
14208eef11
|
@ -348,12 +348,12 @@ function Btn({
|
||||||
accessible={accessible}
|
accessible={accessible}
|
||||||
accessibilityLabel={accessibilityLabel}
|
accessibilityLabel={accessibilityLabel}
|
||||||
accessibilityHint={accessibilityHint}>
|
accessibilityHint={accessibilityHint}>
|
||||||
|
{icon}
|
||||||
{notificationCount ? (
|
{notificationCount ? (
|
||||||
<View style={[styles.notificationCount]}>
|
<View style={[styles.notificationCount]}>
|
||||||
<Text style={styles.notificationCountLabel}>{notificationCount}</Text>
|
<Text style={styles.notificationCountLabel}>{notificationCount}</Text>
|
||||||
</View>
|
</View>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
{icon}
|
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue