react-native-modal-dropdown
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -99,6 +99,2 @@ /** | ||
updatePosition() { | ||
console.warn(`[ModalDropdown]'updatePosition' is depreciated. You don't need to call this function anymore and it will do nothing. This function will be removed in next version.`); | ||
} | ||
_updatePosition(callback) { | ||
@@ -198,3 +194,3 @@ if (this._button && this._button.measure) { | ||
let dropdownHeight = (this.props.dropdownStyle && StyleSheet.flatten(this.props.dropdownStyle.height)) || | ||
let dropdownHeight = (this.props.dropdownStyle && StyleSheet.flatten(this.props.dropdownStyle).height) || | ||
StyleSheet.flatten(styles.dropdown).height; | ||
@@ -350,2 +346,2 @@ | ||
} | ||
}); | ||
}); |
{ | ||
"name": "react-native-modal-dropdown", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A react-native dropdown component for both iOS and Android.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ [![npm version](https://badge.fury.io/js/react-native-modal-dropdown.svg)](https://badge.fury.io/js/react-native-modal-dropdown) | ||
- Zero configuration. (Options are needed of course or a loading indicator will show.) | ||
- Highly customizable. | ||
- Highly customizable. | ||
- Controllable with API by code. (Show/Hide/Select) | ||
@@ -19,3 +19,3 @@ - Change everything into a dropdown list trigger. | ||
<img src="https://github.com/sohobloo/react-native-modal-dropdown/blob/master/docs/demo_2.gif?raw=true" width = "160" height = "287.5" alt="Demo 2"/> | ||
<img src="https://github.com/sohobloo/react-native-modal-dropdown/blob/master/docs/demo_3.gif?raw=true" width = "160" height = "287.5" alt="Demo 3"/> | ||
<img src="https://github.com/sohobloo/react-native-modal-dropdown/blob/master/docs/demo_3.gif?raw=true" width = "160" height = "287.5" alt="Demo 3"/> | ||
@@ -26,2 +26,6 @@ You can find them in the example. | ||
### v3.0.1 | ||
- Fix bug: [\#6](https://github.com/sohobloo/react-native-modal-dropdown/issues/6) Can not specify `height` style for `dropdownStyle`. | ||
- Remove `updatePosition` function. | ||
### v0.3.0 | ||
@@ -28,0 +32,0 @@ - Auto update position before show. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96
56518
308
1