Bläddra i källkod

0.0.10 Flex alignItems (secondary axis).

Frederic G. MARAND 6 år sedan
förälder
incheckning
fc0d93f4a0
1 ändrade filer med 2 tillägg och 0 borttagningar
  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' }} />