We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb86e1f + be56672 commit 3249824Copy full SHA for 3249824
packages/core/src/MenuDropdown/index.tsx
@@ -51,9 +51,14 @@ export default class MenuDropdown extends React.Component<MenuDropdownProps> {
51
};
52
53
animateClose = () => {
54
- this.setState({
55
- listHeightValue: new Animated.Value(0),
56
- });
+ // this.setState({
+ // listHeightValue: new Animated.Value(0),
+ // });
57
+ Animated.timing(this.state.listHeightValue, {
58
+ toValue: 0,
59
+ duration: 400,
60
+ useNativeDriver: false, // 动画值在不同的驱动方式之间是不能兼容的。因此如果你在某个动画中启用了原生驱动,那么所有和此动画依赖相同动画值的其他动画也必须启用原生驱动。
61
+ }).start();
62
63
64
menuContainer = (event: LayoutChangeEvent) => {
0 commit comments