Skip to content

Clone of undefined #1130

Open
Open
@hari3110

Description

@hari3110

processed
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:

  1. Phone/emulator/simulator & version:

Platform Only android and only in production mode development working fine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions