[英]React Native:How to get the date of the calendar view
I am using React-native-calendar to show the date of the existing booking. 我正在使用React-native-calendar来显示现有预订的日期。 I am looking how to get the date of the month after going to previous month of the calendar 我正在寻找如何转到日历的上个月之后的月份
https://github.com/wix/react-native-calendars https://github.com/wix/react-native-calendars
i can see they specify at the top a calendar object but how i can access it, in react native. 我可以看到他们在顶部指定了一个日历对象,但是我如何在本机中访问它。
You can use onMonthChange
event to get the current visible month of the calendar. 您可以使用onMonthChange
事件获取日历的当前可见月份。
// Handler which gets executed when visible month changes in calendar. Default = undefined
onMonthChange={(month) => {console.log('month changed', month)}}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.