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

Type 'Timeout' is not assignable to type 'number' caused by wrong typing by gesture-handler #1954

Closed
3 tasks
hamidhadi opened this issue Mar 25, 2022 · 2 comments

Comments

@hamidhadi
Copy link

hamidhadi commented Mar 25, 2022

Description

After upgrading to the latest version, all the setTimeouts and SetIntervals types are broken.
It turned out that somehow RN-Gesture-Handler picks the Node types as default instead of the RN types.
I checked the previous versions and found that this issue was introduced by v2.0.0.
Also, these are related to this issue:

Platforms

  • iOS
  • Android
  • Web

Screenshots

Steps To Reproduce

Expected behavior

Actual behavior

Snack or minimal code example

Package versions

  • React: 17.0.2
  • React Native: 0.65.2
  • React Native Gesture Handler: 2.3.2
  • React Native Reanimated: 2.4.1
@github-actions
Copy link

github-actions bot commented Mar 25, 2022

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Steps To Reproduce and Snack or minimal code example sections.

@github-actions
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?

@hamidhadi hamidhadi changed the title Type 'Timeout' is not assignable to type 'number' caused by wrong typing by gesture-handler Type 'Timeout' is not assignable to type 'number' caused by wrong typing by gesture-handler Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant