Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot get it to work on 0.39.2 #13

Open
kanhaic opened this issue Feb 8, 2017 · 1 comment
Open

I cannot get it to work on 0.39.2 #13

kanhaic opened this issue Feb 8, 2017 · 1 comment

Comments

@kanhaic
Copy link

kanhaic commented Feb 8, 2017

I am not able to get the value onSubmit. I am using react 0.39.2

@kanhaic
Copy link
Author

kanhaic commented Feb 8, 2017

Here is the code I wrote

             <Prompt
                    title="Say something"
                    placeholder="Start typing"
                    visible={ this.state.promptVisible }
                    onChangeText={ (value) =>  this.setState({
                        promptNotes: value
                    })}
                    onCancel={ () => this.setState({
                      promptVisible: false,
                      promptNotes: "You cancelled"
                    }) }
                    onSubmit={ (value) => {
                        console.log(value);
                        this.setState({promptVisible: false});
                    }}/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant