【发布时间】:2021-11-19 17:16:31
【问题描述】:
这是我的视图代码sn-p
<View style={[{
flexDirection: 'row',
backgroundColor: 'white',
borderRadius: 8
}]}>
<Text style={{
color: 'white',
backgroundColor: 'red',
paddingStart: 12,
paddingEnd: 12,
transform: [
{ rotate: '-90deg' },
]
}}>{`Sample Text`}</Text>
<View >
<Text>Right Content will be here</Text>
</View>
</View>
输出
我当前实现的问题是
- 旋转的视图未定位在定位
- 容器视图的高度不受旋转视图的宽度或高度的影响
如何以一种可以调整字体大小可访问性设置的方式修复它?
【问题讨论】:
标签: react-native layout view styles