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} />;
}
Activity
[-]Pass `className` as prop on web[/-][+]Pass through props on web[/+]