【发布时间】:2019-05-09 15:28:15
【问题描述】:
documentation 为StyleSheet.absoluteFillObject() 提供了一个示例,其与StyleSheet.absoluteFill() 一起使用时的行为也相同:
const styles = StyleSheet.create({
wrapper: {
...StyleSheet.absoluteFillObject,
top: 10,
backgroundColor: 'transparent',
},
});
StyleSheet.absoluteFill() 和 StyleSheet.absoluteFillObject() 有什么区别?一个小例子将不胜感激。谢谢!!!
【问题讨论】:
标签: reactjs react-native css-position absolute