Skip to content

Commit

Permalink
updated android hack
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqresig committed Jul 20, 2016
1 parent 8251ba6 commit 430e40d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions note.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
当数字位数只有1位时, 宽度小于高度, 此时宽度需要取高度的值, 并且不应在二边加上额外的预留空间
* 要注意要让元素的某个尺寸自适应内容长度(比如宽度), 需要先保证这个元素没有继承父元素的宽度
(父元素设置flexDirection: 'column'及设置alignItems: 'stretch', 父元素设置flexDirection: 'row'并且元素设置flex: 1)
* 要注意android的Text元素默认不会水平与垂直居中, 需要手动设置居中(ios则无需设置)

0 comments on commit 430e40d

Please sign in to comment.