Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

Declarative UI


We are going to look at how the Declarative UI makes our lives much simpler in that we typically only have to create a single XML file to cover the way our app looks on all the platforms.

In this section, we will be exploring how the XML system works behind the scenes. We'll dissect more components, check out the event system, and finally, look at the component hierarchy and what it offers us. So, let us dive right into the main-page.xml file and figure out how it all works.

XML parser

Whoa! Bet you thought we were going to dive right into the main-page.xml file, didn't you? Well, not so fast; we have to take a small detour. We need to look at how the XML parser works to understand what is going on when NativeScript handles a Declarative UI XML file. So, let's get this show on the road.

Now, if you are coming from an HMTL background, you can probably teach me some really cool HTML tricks. But, since all of us are not so blessed, we will cover it for those who aren't familiar with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime