From 3f6bed6e7e0d055f6d7b98b8576fe5805e5d0ee4 Mon Sep 17 00:00:00 2001 From: Francois Nadeau Date: Mon, 3 Dec 2018 10:40:27 -0500 Subject: [PATCH] Clear the Input's text after closing the Dialog Fixed for the following problem: https://github.com/joseestrella89/react-native-dialog-input/issues/2 --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 6026e8e..b9ceb5c 100644 --- a/index.js +++ b/index.js @@ -49,6 +49,7 @@ class DialogInput extends React.Component{ { + this.setState({inputModal:''}) this.props.closeDialog(); }}> {cancelText} @@ -57,6 +58,7 @@ class DialogInput extends React.Component{ { this.props.submitInput(this.state.inputModal); + this.setState({inputModal:''}) }}> {submitText}