Skip to content

Conversation

martsie
Copy link

@martsie martsie commented Aug 4, 2021

Currently when using innerRef in a Typescript project the ref provided is a generic React Element which removes the ability to do FlatList/SectionList/ScrollView methods like scrollToIndex. The PR types innerRef to the internal element that's being rendered.

@Justinohallo
Copy link

This looks good to me and would be a great addition.

@naut97
Copy link

naut97 commented Aug 8, 2023

This PR will allow my project to use scrollToIndex with KeyboardAwareFlatList, I will use patch-package first. Thank @martsie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants