What happened?
When no custom mapping is provided, the wrapped component will merge className and style as expected.
But when when custom mapping is provided, there seems to be no way to replicate this merging behaviour?
Steps to Reproduce
- call
withUniwind on some component providing custom mapping (or not)
- Try to provide
className and style together
If custom mapping is not provided, observe that className and style are merged.
If custom mapping is provided, (with className -> style mapping), style gets ignored.
If custom mapping is provided, (without className -> style mapping), className does not exist in the wrapped component, even provided is ignored.
Snack or Repository Link
https://github.com/ycmjason/uniwind-playground/tree/reproduction-with-unistyles
Uniwind version
1.0.5
React Native Version
0.81.5
Platforms
Android, iOS
Expo
Yes
Additional information
What happened?
When no custom mapping is provided, the wrapped component will merge
classNameandstyleas expected.But when when custom mapping is provided, there seems to be no way to replicate this merging behaviour?
Steps to Reproduce
withUniwindon some component providing custom mapping (or not)classNameandstyletogetherIf custom mapping is not provided, observe that
classNameandstyleare merged.If custom mapping is provided, (with
className -> stylemapping),stylegets ignored.If custom mapping is provided, (without
className -> stylemapping),classNamedoes not exist in the wrapped component, even provided is ignored.Snack or Repository Link
https://github.com/ycmjason/uniwind-playground/tree/reproduction-with-unistyles
Uniwind version
1.0.5
React Native Version
0.81.5
Platforms
Android, iOS
Expo
Yes
Additional information