Skip to content

Picker Search not working #3166

Closed
Closed
@LorenDorez

Description

@LorenDorez

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

  1. Load the component
  2. Click to open the picker and see the list of langs
  3. 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

Metadata

Metadata

Assignees

Labels

buga bug in one of the componentswaiting for releasePending issue that was resolved and waiting for next version releasewaiting-for-response

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions