Skip to content
Discussion options

You must be logged in to vote

It seems that you're encountering type errors when trying to upgrade dependencies to v3 and add Animated as the default view in your project. Specifically, you're running into issues with the props for Animated components, which are causing TypeScript errors.

The problem with the testID prop becoming a string | AnimateSharedValue is likely due to the fact that the AnimateSharedValue type is being included in the union type. To resolve this issue, you could try explicitly typing the testID prop as a string, like this:

testID?: string;

Regarding the issue with the createContext provider, it seems that the ReactNode type is being extended to include Animated.SharedValue. One way to handle t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wcastand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants