我想达到这个结果
但这是当前的行为
您可以注意到两个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>
你们能帮我解决这个问题吗?