Open
Description
Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Description
When using react-native-calendars, in android only in production mode as i open calendar an error message shows up "TypeError: Cannot read property 'clone' of undefined"
Expected Behavior
Should open calendar
Observed Behavior
Throws an error
If there's an error message, please paste the full terminal output and error message in this code block:
This is i called in did mount
this.setState(
{
startingDay: Platform.select({
ios: moment(fromDate).format('YYYY-MM-DD'),
android: moment(fromDate, 'DD MMM YYYY').format('YYYY-MM-DD'),
}),
endingDay: Platform.select({
ios: moment(toDate).format('YYYY-MM-DD'),
android: moment(toDate, 'DD MMM YYYY').format('YYYY-MM-DD'),
}),
})
Also specify:
- Phone/emulator/simulator & version:
Platform Only android and only in production mode development working fine