diff --git a/src/components/dropdown/index.js b/src/components/dropdown/index.js index b1e65a1f..87de060f 100644 --- a/src/components/dropdown/index.js +++ b/src/components/dropdown/index.js @@ -153,6 +153,8 @@ export default class Dropdown extends PureComponent { supportedOrientations: PropTypes.arrayOf(PropTypes.string), useNativeDriver: PropTypes.bool, + + preprocessFunc: PropTypes.func }; constructor(props) { @@ -214,8 +216,17 @@ export default class Dropdown extends PureComponent { animationDuration, absoluteRTLLayout, useNativeDriver, + preprocessFunc } = this.props; + if ( + preprocessFunc && + typeof preprocessFunc === "function" && + !disabled + ) { + preprocessFunc(); + } + if (disabled) { return; }