In this video, I’ll show you how to create custom XML tags in NativeScript. This is very useful for creating re-usable components, and breaking up your markup into smaller, more modular files.
For anyone more curious. You can even pass custom properties to that custom xml
refer to this repo for a sample