Last updated on February 21, 2026
styled
styled is a function from react-native-css (re-exported by Nativewind) that creates a wrapper component with className support and optional prop/style mapping. It is primarily used for third-party native components that don't pass through the className prop.
Basic Usage
Mapping Styles to Props
Some React Native components expect style values as direct props rather than inside a style object. Use styled to extract specific style properties and pass them as props:
For most custom components you write yourself, you don't need styled. Simply accept and pass through the className prop. styled is for third-party components that don't support className. See the third-party components guide for more details.