danish1658 / react-native-dropdown-select-list

☝️ React Native Select List Equivalent to Html's Select with options"
https://www.npmjs.com/package/react-native-dropdown-select-list
MIT License
193 stars 90 forks source link

SyntaxError: Invalid RegExp with "(", ")", "?", "\", ... #111

Open SiBorho opened 5 months ago

SiBorho commented 5 months ago

When entering characters I get an error:

minimal Set-Up: const localData = [ { key: 'a', value: 'aa' }, { key: 'b', value: 'bb' }, { key: 'c', value: 'cc' } ];

<SelectList data={localData} setSelected={() => console.log()} />

When Input:

Throw error on InputText at: https://github.com/danish1658/react-native-dropdown-select-list/blob/f4f01abcb80708adb5575b67f635f521b9d0b03c/components/SelectList.tsx#L147

Is there a fix or workaround for this issue?

You can also reproduce the error on (Expo Snack) with the inputs