Does vue-native support working with SCSS?

Viewed 243

I'm trying to use SCSS to style my elements in vue-native project. I just created a fresh project and ran it with Expo and it ran just fine. Then in my App.vue I tried to change <style> to <style scoped lang='scss'> and my app crashed.

I didn't find anything about SCSS in vue-native documentation. So I tried to follow the vue.js docs, I installed sass-loader with npm install -D sass-loader sass, installed fibers... and my app couldn't compile.

So does vue-native support working with SCSS at all? And if it does - how? What did I do wrong?

1 Answers

Vue native is just a wrapper for React Native. React Native doesn't support CSS or SCSS as it has its own StyleSheet system as you are writing native code and styling. In response to your comment, vue native compiles css-like styles to react native styling, so you can still use vue-native instead of directly writing JS!

Related