Skip to content

Commit 5b81d82

Browse files
committed
set isModalShown context to false on unmount
1 parent 107b378 commit 5b81d82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ export default class RNPickerSelect extends PureComponent {
181181
}
182182
};
183183

184+
componentWillUnmount() {
185+
if (this.context) {
186+
this.context.setIsModalShown(false);
187+
}
188+
}
189+
184190
onUpArrow() {
185191
const { onUpArrow } = this.props;
186192

0 commit comments

Comments
 (0)