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

Cannot read property 'c1' of undefined #525

Open
Nehal-Zeller opened this issue Jul 1, 2024 · 1 comment
Open

Cannot read property 'c1' of undefined #525

Nehal-Zeller opened this issue Jul 1, 2024 · 1 comment

Comments

@Nehal-Zeller
Copy link

Nehal-Zeller commented Jul 1, 2024

I'm getting this intermittent crash in my project and can't seem to understand what could have caused this?

I'm using mixPath and getYForX functions but from the library, it seems the functions can't accept undefined or null values as parameter.
export const interpolatePath = ( value: number, inputRange: number[], outputRange: Path[], extrapolate = Extrapolation.CLAMP ) => { "worklet"; ..... return serialize(path);
export type Path = { move: Vector; curves: Curve[]; close: boolean; };

Both outputRange and curves don't accept null or undefined.

    "d3": "^7.9.0",
    "react-native-reanimated": "^3.8.1",
    "react-native-redash": "^18.1.3",
    "react-native-gesture-handler": "^2.15.0",
    "react-native": "0.73.6",
    "react": "18.2.0",

Screenshot 2024-07-01 at 10 34 27 PM

I can't seem to reproduce it but a lot of people are running into this issue so If anyone can help with any pointers, much appreciated. Thanks!

@Nehal-Zeller
Copy link
Author

@wcandillon any help would be much appreciated, Thanks!

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