-
Notifications
You must be signed in to change notification settings - Fork 100
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 error HoldItem onpress prop #65
Comments
Thanks for fast reaction, but I think the any type can cause a worklet error. I looked a bit deeper into the source code and I saw you use reanimated worklet feature. When I passed a nested object as a param I got worklet error. I will check it again in next days and write the result. |
Oh, good catch. Not a fan of |
Ok, I have checked it. So the problem is coming when I try to pass a redux element and it is a frozen object because of that need a deep copy. |
@enesozturk other thing, I can see the type update in the src/comp.../types.d.ts but in the lib folder the type is the original, do you have any idea, why? |
There is a type error If I use the actionParams with multiple args.
The original type of
onPress?: (arg?: string | number) => void;
Maybe this can be a solution for it:
onPress?: (...args: (string | number)[]) => void;
The text was updated successfully, but these errors were encountered: