react-native - 错误:原生动画模块不支持样式属性
问题描述
由于我的代码中的这一行,我的应用程序崩溃了,<Animated.View style={[{ marginBottom: marginAnim }]}>
并且出现错误Error: Style property 'marginBottom' is not supported by native animated module
。我marginAnim
的state
设置为marginAnim: new Animated.Value(10, { useNativeDriver: true })
. 我如何申请marginBottom
组件Animated.View
?
解决方案
推荐阅读
- python - QueuePool 限制和超时问题
- c++ - 为什么我在 CSES Coin Combination 2 上获得 TLE?
- qt - 使用 Tab 键选择按钮的代码
- security - “用另一个证书签署证书”是什么意思?
- laravel - Laravel,如何被选中,数据库字段
- laravel - 如何停止 laravel 服务器中的调度程序?
- php - 错误:函数名必须是带有闭包回调的字符串
- javascript - 如何相对于图像定位 div?
- firebase - Firebase 云消息传递控制台拒绝自定义数据中的“子类型”键
- react-native - React Native Expo App 在生产模式下崩溃