react native text wrap
<View
style={{ flexDirection: 'row' }}
>
<Text style={{ flexShrink: 1 }}>
Really really long text...
</Text>
</View>
react native text wrap
<View
style={{ flexDirection: 'row' }}
>
<Text style={{ flexShrink: 1 }}>
Really really long text...
</Text>
</View>
color text react native
// Some code....
<Text
// Topic 2: Text Style
style={styles.headline}>Hi, Lunox!
</Text>
// Some code....
headline: {
color: 'white', // <-- The magic
textAlign: 'center', // <-- The magic
fontWeight: 'bold',
fontSize: 50,
backgroundColor: 'purple',
}
// Some code....
Look how I use it here:
https://github.com/Lunox-code/100dayscode-react.native/blob/master/App.js
react native ellipsis
// For Text compoment use numberOfLines and augment with ellipsizeMode
<View style = { styles.MainContainer }>
<Text style={styles.TextStyle} numberOfLines = { 1 } >
This is the Sample Ellipsis Text for Ellipsis from End.
</Text>
<Text style={styles.TextStyle} numberOfLines = { 1 } ellipsizeMode = 'head'>
This is the Sample Ellipsis Text for Ellipsis from Start.
</Text>
<Text style={styles.TextStyle} numberOfLines = { 1 } ellipsizeMode = 'middle'>
This is the Sample Ellipsis Text for Ellipsis from Middle.
</Text>
</View>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us