【发布时间】:2017-11-12 10:40:08
【问题描述】:
我需要在 TextInput 中显示多行文本,但我需要从右侧对齐它们。
我使用textAlign: 'justify',作为组件的样式,但它没有从右对齐。
<TextInput multiline={true}
underlineColorAndroid='transparent'
editable={this.props.editable}
style={[{backgroundColor: 'transparent',
left: 10,
right: 10,
textAlign: 'justify',
textAlignVertical: 'top',
fontFamily: 'B Yekan',
fontSize: 12,
lineHeight: 17,
}, this.props.style]} >
//My text is showing here
</TextInput>
【问题讨论】:
标签: javascript android ios react-native