react-native-keyboard-aware-scroll-view
react-native-keyboard-aware-scroll-view copied to clipboard
Add accurate innerRefs to types
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.
This looks good to me and would be a great addition.
This PR will allow my project to use scrollToIndex
with KeyboardAwareFlatList
, I will use patch-package first. Thank @martsie