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

Does not work for Expo Web View #50

Open
PPillau opened this issue Aug 11, 2021 · 3 comments
Open

Does not work for Expo Web View #50

PPillau opened this issue Aug 11, 2021 · 3 comments

Comments

@PPillau
Copy link

PPillau commented Aug 11, 2021

Unfortunately this transformer does not work for Expo Web view, just for the iOS and android views.

@kristerkari
Copy link
Owner

@PPillau Thanks! Not working in Expo Web is a common problem, and the reason is that transformer is specific to React Native's Javascript packager Metro, which probably (?) does not run when using Expo Web.

To get the support for Expo Web, there would need to be a plugin for Expo Web that would compile the Sass files.

@lucarducci
Copy link

Any update on this? Is it possible to create a plugin for Expo Web? Can you provide more info in order to build it?

@VityaSchel
Copy link

imported styles is empty object with sass-loader so I think it has something to do with webpack or any bundler you use. by the way, this library uses custom babel transformer that is connected to metro, so maybe try to adapt it for web? or even connect existing one to babel through bundler

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

No branches or pull requests

4 participants