O'Reilly logo

Getting Started with React Native by Tom Bray, Ethan Holmes

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

Layout and Flexbox

Since Flexbox is the foundation of React Native's layout, we are going to explore it in depth. If you are already familiar with the intricacies of Flexbox, feel free to jump to the Styling the NavigationBar component section. There we will focus more on the styling of the components that we made in the previous chapter.

Flex container

The flex container is the parent element that describes how children or flex items are laid out. The flexDirection property of the container specifies the main-axis; the primary direction in which the items are rendered. The line perpendicular to the main-axis is called the cross-axis. Different flex properties on the container affect how the items are aligned across each axis. The flexDirection ...

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