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

Unable to close the calendar #37

Open
HadisSharif opened this issue Oct 12, 2019 · 2 comments
Open

Unable to close the calendar #37

HadisSharif opened this issue Oct 12, 2019 · 2 comments

Comments

@HadisSharif
Copy link

how can I close the calendar without selecting any date?

@rghorbani
Copy link
Owner

@HadisSharif What do you mean by closing the calendar?

@sam9010
Copy link

sam9010 commented Apr 15, 2020

you can show it in modal
this.setState({ isShowPiker: true});

and after that close modal
this.setState({ isShowPiker: false });

<Modal style={styles.modal} animationType="slide" transparent={true} visible={this.state.isShowPiker} onRequestClose={() => { this.closePicker() }} > <View style={styles.modalWrapperView}> <View style={styles.modalInnerWrapper}> <PersianCalendarPicker onDateChange={this.onDateChange} selectedBackgroundColor="red" allowRangeSelection = {true} isRTL = {true} /> </View> </View> </Modal>

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

3 participants