September 2018
Intermediate to advanced
302 pages
7h 17m
English
This is one of the greatest patterns that I have learned about when it comes to styling. Flexible Box (Flexbox) literally make your boxes flexible.
Let's see a small example. The goal is to flex your box to fill the whole width of the screen:
// src/ Chapter_3/ Example_8/ App.jsexport default () => ( <View style={{ flex: 1 }}> <View style={{ backgroundColor: 'powderblue', height: 50 }} /> </View>);
Here is the result of the preceding code:

It's not too fancy, but you don't need to use Dimensions. It is obviously just a start.
You know already ...
Read now
Unlock full access