Last updated on September 14, 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
Define the wrapper outside render and use the returned component. The original component is unchanged; styled does not register it globally and has no global option.
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.