Browse Source

0.0.10 Flex alignItems (secondary axis).

Frederic G. MARAND 6 years ago
parent
commit
fc0d93f4a0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      App08FlexLayout.js

+ 2 - 0
App08FlexLayout.js

@@ -12,6 +12,8 @@ class FlexDirectionBasics extends React.Component {
         // flex-start, center, flex-end, space-around, space-between
         // space-evenly is also described, but throws invalid value error.
         justifyContent: 'space-around',
+        // flex-start, center, flex-end, and stretch
+        alignItems: 'center',
       }}>
         <View style={{ height: 50, width: 50, backgroundColor: 'powderblue' }} />
         <View style={{ height: 50, width: 50, backgroundColor: 'skyblue' }} />