react-native-keyboard-aware-scroll-view icon indicating copy to clipboard operation
react-native-keyboard-aware-scroll-view copied to clipboard

Add accurate innerRefs to types

Open martsie opened this issue 3 years ago • 2 comments

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.

martsie avatar Aug 04 '21 22:08 martsie

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

Justinohallo avatar Dec 01 '21 19:12 Justinohallo

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

dmtuan97 avatar Aug 08 '23 09:08 dmtuan97