Closed Medkhat closed 9 months ago
Hey. How did you fix this issue? Facing the same
@nishanthbhat07 Hi! When you provide a className to the custom component, you need to use a different name instead of "className".
Example:
function MyCustomView({ customViewCn }) { return <View className={cn("p-3", customViewCn)}> {* Children *} </View> }
Hi there!
I wanted to use this package with
NativeWind
inReact Native
. But,clsx
function returns only the first item of the array. It doesn't merge classes.Here example:
Output