question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type erros in react-native-reanimated.d.ts

See original GitHub issue

Description

Many type errors are thrown when skipLibCheck is false and you run yarn type:check

Expected behavior

Should not return type errors when running yarn type:check with skipLibCheck as false

Actual behavior & steps to reproduce

In the react-native-reanimated repository Set skipLibCheck in tsconfig.json to false > run yarn type:check

Snack or minimal code example

https://github.com/software-mansion/react-native-reanimated

Package versions

n/a

Affected platforms

  • Android
  • iOS
  • Web

Errors log: erros.txt

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
haveneersrobincommented, Mar 22, 2022

Duplicate of https://github.com/software-mansion/react-native-reanimated/issues/3087 which contains a bit more information 😃

1reaction
AlexanderEggerscommented, Mar 21, 2022

Same here using the latest version. It is also impacting other dependencies like react-native-modalize.

Read more comments on GitHub >

github_iconTop Results From Across the Web

typescript - Error with types when using AnimatedSlider and ...
So I have an AnimatedSlider , which changes color by getting a useSharedValue . And I use a useAnimatedProps to update the colors....
Read more >
react-native-reanimated - npm
react-native-reanimated. TypeScript icon, indicating that this package has built-in type declarations · Readme · Code Beta · 7 Dependencies · 768 ...
Read more >
TypeScript errors and how to fix them
Fixed Code ✔️. You cannot write a function implementation inside a declaration file ( *.d.ts ). You can only declare its signature: index.d.ts ......
Read more >
TS animated Flatlist type error : r/reactnative - Reddit
Type 'unknown' is not assignable to type 'IArr'.ts(2322) index.d.ts(4134, 5): The expected type comes from property 'renderItem' which is ...
Read more >
Installation | React Native Reanimated - Software Mansion
First step is to install react-native-reanimated as a dependency in your project: ... a false-positive "Reanimated 2 failed to create a worklet" error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found