react-native-popup-menu
Advanced tools
Comparing version 0.13.1 to 0.13.2
{ | ||
"name": "react-native-popup-menu", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "extensible popup/context menu for react native", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -87,7 +87,7 @@ # react-native-popup-menu | ||
| popup-menu version | min RN version | | ||
| popup-menu version | min RN (React) version | | ||
| ------------------ | -------------- | | ||
| 0.13 | 0.55 | | ||
| 0.13 | 0.55 (16.3.1) | | ||
| 0.9 | 0.40 | | ||
| 0.8 | 0.38 | | ||
| 0.7 | 0.18 | |
@@ -10,4 +10,4 @@ /*globals jasmine*/ | ||
savePath: __dirname + '/target/', | ||
consolidateAll: false | ||
consolidateAll: false, | ||
}); | ||
jasmine.getEnv().addReporter(junitReporter); |
@@ -11,3 +11,3 @@ import React from 'react'; | ||
x: pageX, y: pageY, | ||
width, height | ||
width, height, | ||
}) | ||
@@ -14,0 +14,0 @@ }); |
/** | ||
* TypeScript decleartion for https://github.com/instea/react-native-popup-menu | ||
* TypeScript declaration for https://github.com/instea/react-native-popup-menu | ||
* | ||
* @author Wang Guan <momocraft@gmail> | ||
*/ | ||
declare module 'react-native-popup-menu' { | ||
import * as React from 'react'; | ||
declare module "react-native-popup-menu" { | ||
import * as React from "react"; | ||
import { StyleProp, ViewStyle } from "react-native"; | ||
@@ -17,3 +17,3 @@ | ||
style?: StyleProp<ViewStyle>; | ||
customStyle?: { | ||
customStyles?: { | ||
menuProviderWrapper?: StyleProp<ViewStyle>; | ||
@@ -113,2 +113,4 @@ backdrop?: StyleProp<ViewStyle>; | ||
style?: StyleProp<ViewStyle>; | ||
onSelect?(): any; | ||
@@ -115,0 +117,0 @@ } |
@@ -82,3 +82,3 @@ import React, { Component } from 'react'; | ||
menuName: this._name, | ||
onRef: (t => this._trigger = t) | ||
onRef: (t => this._trigger = t), | ||
})); | ||
@@ -85,0 +85,0 @@ } |
@@ -46,3 +46,3 @@ import React, { Component } from 'react'; | ||
bottom: 0, | ||
} | ||
}, | ||
}); |
@@ -56,3 +56,3 @@ import React from 'react'; | ||
easing: Easing.out(Easing.cubic), | ||
useNativeDriver: true | ||
useNativeDriver: true, | ||
}).start(); | ||
@@ -67,3 +67,3 @@ } | ||
easing: Easing.in(Easing.cubic), | ||
useNativeDriver: true | ||
useNativeDriver: true, | ||
}).start(resolve); | ||
@@ -70,0 +70,0 @@ }); |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
top: windowLayout.height, | ||
left: windowLayout.width | ||
left: windowLayout.width, | ||
}); | ||
@@ -9,0 +9,0 @@ |
@@ -238,3 +238,3 @@ import { I18nManager, Animated, Easing, StyleSheet, View } from 'react-native'; | ||
placement: userPlacement, | ||
...other, | ||
...other | ||
} = this.props; | ||
@@ -241,0 +241,0 @@ const isRTL = I18nManager.isRTL; |
@@ -27,3 +27,3 @@ import React from 'react'; | ||
easing: Easing.out(Easing.cubic), | ||
useNativeDriver: true | ||
useNativeDriver: true, | ||
}).start(); | ||
@@ -38,3 +38,3 @@ } | ||
easing: Easing.in(Easing.cubic), | ||
useNativeDriver: true | ||
useNativeDriver: true, | ||
}).start(resolve); | ||
@@ -52,5 +52,5 @@ }); | ||
inputRange: [0, 1], | ||
outputRange: [oHeight, 0] | ||
outputRange: [oHeight, 0], | ||
}), | ||
}] | ||
}], | ||
}; | ||
@@ -57,0 +57,0 @@ const position = computePosition(layouts); |
@@ -14,3 +14,3 @@ import React from "react"; | ||
[propName]: value, | ||
ref: forwardedRef | ||
ref: forwardedRef, | ||
}; | ||
@@ -17,0 +17,0 @@ return <Component {...custom} {...rest} />; |
Sorry, the diff of this file is not supported yet
323135
1585