O'Reilly logo

Mastering React Native by Jacob Friedmann, Eric Masiello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Styling is a big topic, and we've covered a lot of ground. We introduced how styling works in React Native and how in many ways it's similar to CSS. We also discussed where React Native and CSS differ, particularly with their approach to inheritance. To address this, we demonstrated how to create reusable components that encapsulate styles. Then we discussed all the different ways you can apply style properties, be it for Text or non-Text components. Because flexbox is critical to layout in React Native, we did a deep dive on the many facets of flexbox. And while debugging React Native styles is not as great a developer experience as debugging business logic, we reviewed how you can diagnose some of those pesky layout questions you're ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required