Here is a comparison of some buttons with and without shadows.
The first line sticks out a lot more due to the applied shadows. So how can shadow be added to a text in when using NativeScript. The key is the Label component of NativeScript. Under the hood, Label uses an instance of the native TextView view that allows us to set shadows with its setShadowLayer method.
Here is how to do it:
You can find the complete source code on Github at https://github.com/milannankov/nativescript-label-shadows .