-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
Description
What happened?
When resolving styles with useResolveClassNames or using the HOC withUniwind on the WEB, the text-base class returns nothing. Consequently, using it to style properties based on font size or line height does not work on the WEB.
The following code does not work to get the line-height and pass it to the size property on the WEB:
const MaterialIcons = withUniwind($MaterialIcons, {
size: {
fromClassName: "className",
styleProperty: "lineHeight",
},
});The following code returns an empty object on the WEB:
const stylesWithTextBase = useResolveClassNames("text-base");This is expected to return the font-size and line-height of text-base, just like on iOS and Android.
Steps to Reproduce
- Clone the repository link
- Install packages
- Run expo
npm start - Open WEB browser (press
worlocalhost:8081)
Snack or Repository Link
https://github.com/fiuzagr/uniwind-extract-styles-bug
Uniwind version
1.3.2
React Native Version
0.81.5
Platforms
Web
Expo
Yes
Additional information
- I've searched for similar issues in this repository and found none
Reactions are currently unavailable