Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Variant build stylesheet for RNW #120

Closed
wants to merge 1 commit into from

Conversation

dobrea-v
Copy link
Contributor

@dobrea-v dobrea-v commented Dec 1, 2021

This PR tries to fix a bug on RNW, which consists in incorrect styles generation for variants. The issue is also mentioned here by @chris24elias

It happened after #94 fix, which introduced use of StyleSheet.create in buildStyle, however for createVariant this is causing incorrect styles resolution.

It can be seen in this codesanbox

Checked this fix on the web, and variants are working as expected, with atomic classes being generated. And on RN everything works as expected.

I understand that this library doesn't have official support for RNW, but would be nice to have variants working on the web.

@ghost ghost added the cla-needed label Dec 1, 2021
@dobrea-v dobrea-v closed this Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant