react-native-popup-menu
Advanced tools
Comparing version 0.16.0 to 0.16.1
{ | ||
"name": "react-native-popup-menu", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"description": "extensible popup/context menu for react native", | ||
@@ -5,0 +5,0 @@ "main": "build/rnpm.js", |
@@ -212,3 +212,3 @@ import { I18nManager, Animated, Easing, StyleSheet, View } from 'react-native'; | ||
Animated.timing(this.state.scaleAnim, { | ||
duration: OPEN_ANIM_DURATION, | ||
duration: this.props.openAnimationDuration !== undefined ? this.props.openAnimationDuration : OPEN_ANIM_DURATION, | ||
toValue: 1, | ||
@@ -223,3 +223,3 @@ easing: Easing.out(Easing.cubic), | ||
Animated.timing(this.state.scaleAnim, { | ||
duration: CLOSE_ANIM_DURATION, | ||
duration: this.props.closeAnimationDuration !== undefined ? this.props.closeAnimationDuration : CLOSE_ANIM_DURATION, | ||
toValue: 0, | ||
@@ -239,2 +239,4 @@ easing: Easing.in(Easing.cubic), | ||
preferredPlacement, | ||
openAnimationDuration, | ||
closeAnimationDuration, | ||
placement: userPlacement, | ||
@@ -288,2 +290,4 @@ ...other | ||
preferredPlacement: PropTypes.oneOf(['top', 'right', 'bottom', 'left']), | ||
openAnimationDuration: PropTypes.number, | ||
closeAnimationDuration: PropTypes.number, | ||
}; | ||
@@ -290,0 +294,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
477312
4767