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

undefined is not an object (evaluation 'prevVelocityRef.current[touch.id].x') when running Examples #800

Closed
xcoderreal opened this issue Aug 13, 2022 · 2 comments · Fixed by #798
Labels
bug Something isn't working

Comments

@xcoderreal
Copy link
Contributor

xcoderreal commented Aug 13, 2022

Description

Saw undefined is not an object (evaluation 'prevVelocityRef.current[touch.id].x') error
image

Version

latest

Steps to reproduce

Follow Library Development instructions, and start ios app by running:

  • npx react-native run-ios

in example/ folder.

Was successful in starting the iOS simulator.

But as soon as I tried to "touch" the simulator I saw the reported error.

Snack, code example, screenshot, or link to a repository

This is from running the example code on Mac OS with iOS simulator.

@xcoderreal xcoderreal added the bug Something isn't working label Aug 13, 2022
@xcoderreal
Copy link
Contributor Author

Poking around, wondering if it's related to #798

@wcandillon
Copy link
Collaborator

this is indeed related thank you for catching this.
While we're embarrassed to have created this regression, it helped catch another bug where the velocity values were wrong, so the spring functions are going to feel way more natural once we push this fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants