标签: reactjs react-native react-native-animatable
为什么我用 transform 样式为 Animated.View 设置动画,它有效。 但是当我更新一些数据(使用 useState)时,transformed 状态会回到原点。 但是,其他样式属性(例如 padding)将保留更新后的值。 为什么以及如何解决?
transform
useState
transformed
padding