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

Support RNW 0.18, remove StyleSheet.resolve API. Refs #147 #148

Closed
wants to merge 2 commits into from

Conversation

badsyntax
Copy link

@badsyntax badsyntax commented Nov 29, 2022

Fixes #147
Fixes #139

This change adds support for RNW 0.18. Refer to #139 for notes on why we should remove the Stylesheet.resolve API.

RNW 0.18 has changed its stylesheet implementation to closely match RN.

That RNW change is required to fix a bug in the emotion library (see emotion-js/emotion#1543).

The final piece of the puzzle is to upgrade react-primitives to support RNW 0.18. The react-primitives upgrade is blocking us from fixing that emotion bug.

@badsyntax
Copy link
Author

badsyntax commented Nov 29, 2022

@mathieudutour @lelandrichardson any chance this can be reviewed and released?

@macintoshhelper
Copy link
Contributor

Thanks for submitting this PR. Won’t this break projects that depend on older versions of RNW (pre 0.18) and depend on StyleSheet.resolve? Maybe a try/catch for the import with some dependency injection would be better?

@badsyntax
Copy link
Author

It's been a while since I looked at this and I have moved on from trying to fix the emotion bug. I dislike having to close PR's but I won't be able to contribute any further, I apologise. I'll keep the branch around on my fork for reference.

@badsyntax badsyntax closed this Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support RNW 0.18 Remove StyleSheet.resolve method on web
2 participants