innerRef prop actually gets a an AnimatedComponent<FlatList | ScrollView | SectionList> rather than just a FlatList | ScrollView | SectionList (the type AnimatedComponent<T> does not exist in reanimated though).
We should do something like this:
class AnimatedFlatList extends Component<AnimateProps<FlatListStyle, FlatListProps>> {
getNode(): ReactNativeView;
}
// same for AnimatedScrollView and AnimatedSectionList
type Props = {
...,
innerRef: RefObject<AnimatedFlatList | AnimatedScrollView | AnimatedSectionList>;
}
innerRef
prop actually gets a anAnimatedComponent<FlatList | ScrollView | SectionList>
rather than just aFlatList | ScrollView | SectionList
(the typeAnimatedComponent<T>
does not exist inreanimated
though).We should do something like this: