Text
Display a string in a native label.
App.tsx
<Text numberOfLines={1} ellipsizeMode="tail"> {headline}</Text>Today's editionTrail journal
The long way home through the orchard and across Willow Bridge
Pass the label as a string child. Set typography directly on Text. The label measures its text within the width available to it.
import { Text } from 'react-nitro-renderer'
export function NoteTitle({ title }: { title: string }) {
return <Text fontSize={20} fontWeight="semibold" numberOfLines={1}>{title}</Text>
}Use color for the text color and style.background for the fill behind it. numberOfLines limits wrapping and ellipsizeMode controls how to display text that exceeds the limit. To display a number, convert it to a string first. Text and input