소스 검색

0.0.10 Flex alignItems (secondary axis).

Frederic G. MARAND 7 년 전
부모
커밋
fc0d93f4a0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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' }} />