Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accurate innerRefs to types #496

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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