反应本机:通知文本未在android中显示
我有一个通知徽章,上面有这样的文字:反应本机:通知文本未在android中显示,android,reactjs,react-native,react-native-android,Android,Reactjs,React Native,React Native Android,我有一个通知徽章,上面有这样的文字: <View style={styles.notificationBadge}> <Text style={styles.notificationText}> notification </Text> </View> 如果您对如何解决此问题有任何想法,请告诉我。由于线宽为零,文本不显示。试试这种风格: notificationText: { alignSelf: 'center',
<View style={styles.notificationBadge}>
<Text style={styles.notificationText}>
notification
</Text>
</View>
如果您对如何解决此问题有任何想法,请告诉我。由于线宽为零,文本不显示。试试这种风格:
notificationText: {
alignSelf: 'center',
textAlign: 'center',
fontSize: 12,
fontWeight: 'bold',
color: '#fff',
marginTop: 0
}
notificationText: {
alignSelf: 'center',
textAlign: 'center',
fontSize: 12,
fontWeight: 'bold',
color: '#fff',
marginTop: 0
}