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

feat!(metro-config): add unstable_styles to css modules #23002

Merged
merged 3 commits into from
Jun 21, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

It's too confusing to have React Native styles be the default for CSS modules. This PR makes CSS Modules in Expo work as expected by default. We now export (and squat) unstable_styles which can be used to access the CSS Modules as React Native Web style objects. This is a breaking change but only released in the alpha.

Test Plan

Updated tests.

Checklist

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jun 20, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 21, 2023
@EvanBacon EvanBacon merged commit e62df66 into main Jun 21, 2023
9 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/metro/unstable_styles-css-modules branch June 21, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants