react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

Consider dropping or fixing saveScrollPosition

Open henriksteen opened this issue 1 year ago • 0 comments

Changing line 437 from initialScrollIndex={saveScrollPosition ? selectedIndex : -1} to initialScrollIndex={saveScrollPosition ? selectedIndex : 0} makes it possible to disable saveScrollPosition and avoid the -1 warnings.

As it happens saveScrollPosition doesn't work reliably on the latest versions of react anyway, often not rendering the full list, so simply having the option to directly override initialScrollIndex to 0 would be better.

henriksteen avatar Mar 15 '24 17:03 henriksteen