-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
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>;
}
Metadata
Metadata
Assignees
Labels
No labels