【发布时间】:2020-02-18 13:37:03
【问题描述】:
我想达到这个结果
但这是当前的行为
您可以注意到两个 Text 组件没有正确对齐。
这是代码
<View style={{ flexDirection: 'row', marginRight: 7, borderWidth: 2 }}>
<Text style={{ color: '#0022FF', fontWeight: 'bold', fontSize: 20, alignSelf: 'flex-end', marginRight: 5 }}>2.6</Text>
<Text style={{ color: '#0022FF', fontSize: 9, alignSelf: 'flex-end' }}>Bar</Text>
</View>
你们能帮我解决这个问题吗?
【问题讨论】:
标签: react-native react-native-android react-native-ios react-native-component