React-native-reanimated: V2, Typescript support

Created on 29 May 2020  路  3Comments  路  Source: software-mansion/react-native-reanimated

Description

Is this version support typescript yet? I got those warnings when import from reanimtead.

[tsserver 2614] [E] Module '"react-native-reanimated"' has no exported member 'useAnimatedStyle'. Did you mean to use 'import useAnimatedStyle from "react-
 from "re native-reanimated"' instead?
  • React: 16.11.0
  • React Native: 0.62.2
  • React Native Reanimated: ^2.0.0-alpha.1
鉂換uestion 馃彔 Reanimated2

Most helpful comment

Unfortunately, there is no typings at the moment, but also you can't add typings to worklets right now. This is something which is on our roadmap. Stay tuned.

All 3 comments

Unfortunately, there is no typings at the moment, but also you can't add typings to worklets right now. This is something which is on our roadmap. Stay tuned.

Related #840

Only ability to use TS. typings are still on progress.

Was this page helpful?
0 / 5 - 0 ratings