Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

illegal callback invocation from native module #837

Open
thinh1991999 opened this issue Jun 26, 2024 · 2 comments
Open

illegal callback invocation from native module #837

thinh1991999 opened this issue Jun 26, 2024 · 2 comments

Comments

@thinh1991999
Copy link

Describe the bug
When I quickly click open and then cancel the date picker, sometimes an error modal appears with the message "Illegal callback invocation from native module." After this, I am unable to open the modal again. The state of open remains true even though the modal is closed.

Expected behavior
I should be able to repeatedly open and close the modal without encountering any errors or issues.

To Reproduce
When I click to open the date picker, the modal should appear.
If I cancel the date picker, the modal should close without any errors.
The state of open should correctly reflect the visibility of the modal. If the modal is closed, the state should be false; if the modal is open, the state should be true.

export default class App extends Component {

  state = { date: new Date() }

  render = () =>
    <DatePicker
      date={this.state.date}
      onDateChange={date => this.setState({ date })}
      open={open}
    />

}

Smartphone (please complete the following information):

  • OS: [iOS]
  • React Native version [0.73.6]
  • react-native-date-picker version [5.0.0]
Screenshot at Jun 26 10-54-28
@thinh1991999
Copy link
Author

Hi @henninghall , can you help me with this issue?

1 similar comment
@thinh1991999
Copy link
Author

Hi @henninghall , can you help me with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant