-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picker Search not working #3166
Comments
Doing some more digger the |
So looks like it works if i move my items to the children like such: 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}
>
{longOptions.map(option => (
<Picker.Item key={option.value} value={option.value} label={option.label} disabled={option.disabled}/>
))}
</Picker>
);
} but if i do that i lose the label on selected item :( |
Above code is working |
Hi, we are working on fix for this. |
The fix was merged, should be released in the next version. |
Thanks for all the hard work here 🙏 |
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
Steps to reproduce
ada
to the searchExpected behavior
When I type
ada
the list should filter downActual behavior
Does nothing
More Info
Code snippet
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: