I'm trying to apply platform-specific-css in my Nativescript Angular Mobile App.
For example, for the home component, currently I have home.component.tns.css to style it. But I also need to handle some styles separately for IOS and Android.
Here's what I have tried:
Add a css file named as
home.component.ios.tns.css. Not working, the css in this file won't be applied.Add a css file named as
home.component.ios.css. This time the css is applied. But I lost the css inhome.component.tns.cssI import
home.component.tns.cssinhome.component.ios.csslike this:@import './home.component.tns.css';This time I got an error saying NativeScript encountered a fatal error: Error: Could not resolve home.component.tns.css
I guess I wasn't using the platform specific css in the right way. Anyone can help?