<Text> this text is black <Text style={styles.redText}> this text is red </Text> </Text> redText: { color: "red" } <Text numberOfLines={1} ellipsizeMode="tail"> This text will never wrap into a new line, instead it will be cut off like this if it is too lon... </Text>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter