【React Native】AndroidのTextでlineHeight当ててるのにセンターにならない
何が起きたか
-
lineHeight
を当てた - iosはlineHight内でcenterになる
- Androidはcenterにならない・・・
どうしたか
-
textAlignVertical: 'center'
を当てれば同等のスタイルになる
<Text style={{textAlignVertical: 'center', textAlign:'center'}}>Horizontal and Vertical centerd text</Text>
参考
Author And Source
この問題について(【React Native】AndroidのTextでlineHeight当ててるのにセンターにならない), 我々は、より多くの情報をここで見つけました https://qiita.com/nitaking/items/763b200620a57722e9e2著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .