Fix: dont let notifications count go behind the icon (#3505)

zio/stable
Paul Frazee 2024-04-12 10:21:55 -07:00 committed by GitHub
parent eb2fd53340
commit 14208eef11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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>
) )
} }