react-native-persian-calendar-picker
react-native-persian-calendar-picker copied to clipboard
Unable to close the calendar
how can I close the calendar without selecting any date?
@HadisSharif What do you mean by closing the calendar?
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>