react-native-persian-calendar-picker icon indicating copy to clipboard operation
react-native-persian-calendar-picker copied to clipboard

Unable to close the calendar

Open HadisSharif opened this issue 6 years ago • 2 comments

how can I close the calendar without selecting any date?

HadisSharif avatar Oct 12 '19 12:10 HadisSharif

@HadisSharif What do you mean by closing the calendar?

rghorbani avatar Oct 26 '19 08:10 rghorbani

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>

sam9010 avatar Apr 15 '20 14:04 sam9010