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

Not working with reanimated v2 #15

Open
tiotdev opened this issue May 1, 2023 · 0 comments
Open

Not working with reanimated v2 #15

tiotdev opened this issue May 1, 2023 · 0 comments

Comments

@tiotdev
Copy link

tiotdev commented May 1, 2023

I upgrade to [email protected] and am getting these errors

Error: Malformed calls from JS: field sizes are different

and

Invariant Violation: [234,{"type":"value","value":"<<NaN>>"}] is not usable as a native method argument

delay logs to LOG {"__children": [], "__initialized": false, "__inputNodes": undefined, "__lastLoopID": {"": -1}, "__memoizedValue": {"": null}, "__nodeConfig": {"type": "value", "value": NaN}, "__nodeID": 2649, "_animation": null, "_constant": false, "_startingValue": NaN, "_value": NaN}

If I comment out this part it works, but is no longer animated:

            cond(
              greaterThan(delay, 0),
              [set(delay, sub(delay, dt))],
              [
                set(yBase, add(yBase, dy)),
                spring(dt, x, xVel, anchor, tension), // swinging motion
                set(x, add(x, multiply(xVel, dt))),
                swingArc(x, y, xArc, yBase, anchor ), // create dip in swing
                set(angle, add(angle, dAngle)),
              ]
            )
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