--- title: Wrap Strings in Text Components impact: CRITICAL impactDescription: prevents runtime crash tags: rendering, text, core --- ## Wrap Strings in Text Components Strings must be rendered inside ``. React Native crashes if a string is a direct child of ``. **Incorrect (crashes):** ```tsx import { View } from 'react-native' function Greeting({ name }: { name: string }) { return Hello, {name}! } // Error: Text strings must be rendered within a component. ``` **Correct:** ```tsx import { View, Text } from 'react-native' function Greeting({ name }: { name: string }) { return ( Hello, {name}! ) } ```