In NativeScript, you can extend native classes and implement interfaces for Android, and conform to iOS protocols.

See the following articles for examples: