Mak*_*hko 6 react-native styled-components
我可以在 React Native 的样式组件中使用转换吗?
我这样定义样式组件:
const StyledAnimatedView = Animated.createAnimatedComponent(styled.View<
ViewProps
>`
transform: translateY(-100);
`);
Run Code Online (Sandbox Code Playgroud)
但在安装组件时它会引发错误:
错误:无法解析声明“transform:translateY(-100)”
我知道这在网络中是可能的,但在 React Native 中可能不行?
| 归档时间: |
|
| 查看次数: |
3619 次 |
| 最近记录: |