You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand this might not be ideal but it would help with styling when using nativewind.
Updated example of why this currently won't work:
// ❌ This component will not work with NativeWind
// This component is 'picking' the props.
// Any props that are not explicitly defined will not be passed down
function ThirdPartyComponent({ style }) {
return <View style={style} />;
}
// ✅ This component will work with NativeWind
function ThirdPartyComponent({ style, ...props }) {
return <View style={style} {...props} />;
}
The text was updated successfully, but these errors were encountered:
cmaycumber
changed the title
Pass className as prop on web
Pass through props on web
Sep 16, 2024
I understand this might not be ideal but it would help with styling when using nativewind.
Updated example of why this currently won't work:
The text was updated successfully, but these errors were encountered: