The variable props.title is "Reichsbahn\u00ADausbesserungs\u00ADwerk Warschauer Straße" but the word breaks like this: Reichsbahnausbesse- rungswerk Warschauer Straße
How is this possible?
function Header(props) {
const navigation = useNavigation();
return (
<View style={[styles.header, props.noArrow ? styles.headerNoArrow : null ]}>
<Text style={[styles.headerText, props.style=="grey" ? styles.textDark : null ]}>{props.title}</Text>
{ !props.noArrow &&
<TouchableOpacity onPress={() => navigation.goBack()}>
<Image
style={{width: 24, height: 22, top: 8, marginRight: 25 }}
source={require('../../assets/images/arrow-left-yellow.png')}
/>
</TouchableOpacity>
}
</View>
)
}
export default Header
const styles = StyleSheet.create({
header: {
flexDirection: 'row',
marginBottom: 20,
paddingLeft: CSS.margin,
marginTop: 20,
minHeight: 70,
},
headerText: {
color: CSS.grey,
fontFamily: CSS.font1,
fontSize: CSS.headlineSize,
marginLeft: 5,
marginRight: 10,
lineHeight: CSS.headlineLH,
flex: 1,
},
headerNoArrow: {
marginBottom: 38
},
textDark: {
color: '#1A2637'
}
});