Closed
Description
Description
I copied the example picker from the Demo app but unfortunately searching doesnt appear to work. Im using Expo Go incase that might be an issue.
Related to
- Picker
Steps to reproduce
- Load the component
- Click to open the picker and see the list of langs
- Type in
ada
to the search
Expected behavior
When I type ada
the list should filter down
Actual behavior
Does nothing
More Info
Code snippet
import { longOptions } from "@/utils/dev/PickerScreenLongOptions";
import { useState } from "react";
import { Colors, Picker } from "react-native-ui-lib";
export default function CompanyPicker() {
const [language, setLanguage] = useState();
return (
<Picker
placeholder="Favorite Language"
floatingPlaceholder
value={language}
enableModalBlur={false}
onChange={item => setLanguage(item)}
topBarProps={{title: 'Languages'}}
// style={{color: Colors.red20}}
showSearch
searchPlaceholder={'Search a language'}
searchStyle={{color: Colors.blue30, placeholderTextColor: Colors.grey50}}
// onSearchChange={value => console.warn('value', value)}
items={longOptions}
/>
);
}
Environment
- React Native version: 0.74.3
- React Native UI Lib version: ^7.25.0
- Expo: 51
Affected platforms
- Android
- iOS