react-native-picker-scrollview icon indicating copy to clipboard operation
react-native-picker-scrollview copied to clipboard

this.sview is null during component unmounting.

Open shay-te opened this issue 4 years ago • 1 comments

while un-mounting the component ScrollPicker. the function scrollToIndex is called when this.sview is not set. causing an error.

shay-te avatar Nov 28 '21 13:11 shay-te

Seeing this too. In the meantime I've patched it with patch-package and added optional chaining in the two places that ref is accessed.

this.sview?.scrollTo()

kjossendal avatar Nov 29 '21 19:11 kjossendal