kristerkari / react-native-sass-transformer

Use Sass to style your React Native apps.
MIT License
222 stars 19 forks source link

Does not work for Expo Web View #50

Open PPillau opened 3 years ago

PPillau commented 3 years ago

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

kristerkari commented 3 years ago

@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 commented 2 years ago

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 commented 2 years ago

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