diff --git a/src/index.js b/src/index.js index 8b5186e1..b977c97d 100644 --- a/src/index.js +++ b/src/index.js @@ -181,6 +181,12 @@ export default class RNPickerSelect extends PureComponent { } }; + componentWillUnmount() { + if (this.context) { + this.context.setIsModalShown(false); + } + } + onUpArrow() { const { onUpArrow } = this.props;