Skip to content

Commit 665a304

Browse files
authored
Picker - filter children (for long lists with search) (#1254)
* Picker - filter children * Remove filtering (search) from PickerItem * Stop passing showSearch and searchValue in the context provided by the Picker
1 parent cfc2c94 commit 665a304

File tree

4 files changed

+629
-11
lines changed

4 files changed

+629
-11
lines changed

demo/src/screens/componentScreens/PickerScreen.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {View, Colors, Dialog, Text, Picker, Avatar, Assets, PanningProvider} fro
55
import contactsData from '../../data/conversations';
66
import tagIcon from '../../assets/icons/tags.png';
77
import dropdown from '../../assets/icons/chevronDown.png';
8+
import {longOptions} from './PickerScreenLongOptions';
89

910
const contacts = _.map(contactsData, c => ({...c, value: c.name, label: c.name}));
1011

@@ -94,7 +95,7 @@ export default class PickerScreen extends Component {
9495
searchStyle={{color: Colors.blue30, placeholderTextColor: Colors.dark50}}
9596
// onSearchChange={value => console.warn('value', value)}
9697
>
97-
{_.map(options, option => (
98+
{_.map(longOptions, option => (
9899
<Picker.Item key={option.value} value={option} disabled={option.disabled}/>
99100
))}
100101
</Picker>

0 commit comments

Comments
 (0)