我已经检查了文档,现在它只说
create, config for animating in new views (see Anim type)
update, config for animating views that have been updated (see Anim type)
事实是我不明白动画类型是什么以及我应该在哪里处理它。感谢您的帮助
https://facebook.github.io/react-native/docs/layoutanimation.html
最佳答案
我在React Native的LayoutAnimation.js源代码中找到了它
const TypesEnum = {
spring: true,
linear: true,
easeInEaseOut: true,
easeIn: true,
easeOut: true,
keyboard: true,
};
const PropertiesEnum = {
opacity: true,
scaleXY: true,
};
我可能遗漏了一些内容,如果有更多内容请随时添加,谢谢:)
关于javascript - 是否有 LayoutAnimation.Types 和 LayoutAnimation.Properties 的可用选项列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45052404/