react-native-sass-transformer
react-native-sass-transformer copied to clipboard
Does not work for Expo Web View
Unfortunately this transformer does not work for Expo Web view, just for the iOS and android views.
@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.
Any update on this? Is it possible to create a plugin for Expo Web? Can you provide more info in order to build it?
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