React-native-reanimated: Question about createAnimatedComponent type

Created on 3 Aug 2020  路  1Comment  路  Source: software-mansion/react-native-reanimated

Description

Is there a specific reason why createAnimatedComponent expects and returns any? instead of e.g. T?

If that would be a better solution, I'll gladly submit a PR. I just thought, maybe there's some specific reasoning behind it.

Package versions

  • React: 16.13.1
  • React Native: 0.63.2
  • React Native Reanimated: 1.10.1
鉂換uestion

>All comments

Yeah, here are few links regarding that issue. Problem is, we don't have TS tests setup (yet) and every change in types has to be checked locally.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dinhmai74 picture dinhmai74  路  3Comments

dinhmai74 picture dinhmai74  路  3Comments

colinux picture colinux  路  3Comments

zxccvvv picture zxccvvv  路  3Comments

robertgonzales picture robertgonzales  路  3Comments