How it works...
In step 2 and step 3, we created styled View and Text components by using the corresponding glamorous method and passing in an object containing all the styles that should be applied to that particular component.
In step 4, we created a reusable Button styled component by applying the same method used for creating the View and Text components in previous steps. The way styles are declared in this component is different, however, and shows off the versatility glamorous-native has when processing styles. You can pass any number of style collections as parameters to a glamorous component constructor and they will all be applied. This includes dynamic styles, which usually take the form of using props defined on the component ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access