The textAlignVertical
style is an Android-only property. If you are developing on iOS, try using the flexbox alignment property alignItems: center
instead.
It also appears that the textAlignVertical
property was moved from TextInput
properties to the Text
element styles only three days ago, and is going to be released in React Native 0.19.
I am not sure how the React Native documentation is generated, but based on my reading of this commit diff, the documentation appears to be ahead of the latest released version.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…