Can*_*ğlu 4 typescript react-native
我正在尝试将现有样式与 React Native 的常规方法中的额外样式合并StyleSheet.create:
const styles = StyleSheet.create({
blurView:{
...StyleSheet.absoluteFill,
borderRadius: 24
},
});
Run Code Online (Sandbox Code Playgroud)
但是我在网上收到以下错误...StyleSheet.absoluteFill:
Spread types may only be created from object types.
我究竟做错了什么?我知道我可以将数组传递给styleprop,但我只是好奇为什么这不起作用。
| 归档时间: |
|
| 查看次数: |
1937 次 |
| 最近记录: |