react-native-select-pro
react-native-select-pro copied to clipboard
[BUG] Doesn't scroll to selected option
Describe the bug If one of the options is selected where you need to scroll to see it, after you reopen the select it is not "preselected" - it doesn't scroll to it like in the examples in the docs.
Expected behavior It should scroll to the selected option.
Screenshots
Video https://github.com/MobileReality/react-native-select-pro/assets/34303783/eed8988d-d840-4f1d-9231-e724a0141e48
Environment (please complete the following information):
- OS: [iOS/Android]
- OS Version: iOS 17.0
- React Native Version: 0.72.6
- Device on which issue is presented: iPhone 15 Pro Simulator as well as my physical device iPhone 13
Additional context Here is my code - the most basic example there is:
const TEST_DATA = [
{
label: 'test1',
value: 'test1',
},
{
label: 'test2',
value: 'test2',
},
{
label: 'test3',
value: 'test3',
},
{
label: 'test4',
value: 'test4',
},
{
label: 'test5',
value: 'test5',
},
{
label: 'test6',
value: 'test6',
},
{
label: 'test7',
value: 'test7',
},
{
label: 'test8',
value: 'test8',
},
{
label: 'test9',
value: 'test9',
},
{
label: 'test10',
value: 'test10',
},
{
label: 'test11',
value: 'test11',
},
{
label: 'test12',
value: 'test12',
},
];
<Select
options={TEST_DATA}
/>
Also, I should mention that I have wrapped my app inside <SelectProvider />
Is there something I'm missing here? Something I'm doing wrong? The version of the package that I have installed is 2.2.3
.
@brilliantinsane Same Issue. No response from this team.
Btw please check out another issue that I raised in this section itself , if any help possible.
it's resolved https://github.com/MobileReality/react-native-select-pro/pull/239/files