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

modal doesn't close on selecting data inside condition. see the below code #68

Open
reenupanwar opened this issue Sep 13, 2017 · 1 comment

Comments

@reenupanwar
Copy link

reenupanwar commented Sep 13, 2017

{(this.state.modeOfPermission == 'SPECIFIC') && 
                         (<ModalPicker
                            data={this.state.mailList}
                            initValue="Select mail id"
                            onChange={(option) => { this.setState({selectedMail: option.label }) }}>
                            <TextInput
                                style={{ borderWidth: 1, borderColor: '#ccc', padding: 10, height: 50, marginLeft: 10, marginRight: 10, backgroundColor: '#FFF' }}
                                editable={false}
                                placeholder="Select E-mail id .."
                                value={this.state.selectedMail} />
                        </ModalPicker>
                         )} 

without this.state.modeOfPermission == 'SPECIFIC' condition it is working properly

@mikaello
Copy link

Not sure if I understand your problem. Is this iOS-only? If that is the case, then this may already be fixed in version 0.0.18 of react-native-modal-selector, see issue #4 in react-native-modal-selector

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

2 participants