Skip to content

TypeError: Cannot read property 'modes' of undefined #2779

Open
@reamal

Description

@reamal

Who has encountered a similar problem to me, this code says that modes cannot be found。

"react-native-ui-lib": "^7.6.2"

import { Picker } from "react-native-ui-lib";

<Picker
                    value={this.state.personValue}
                    onChange={this.changePerson}
                    mode={Picker.modes.SINGLE}
                    showSearch=true
                    searchPlaceholder={'筛选人员'}
                    searchStyle={{ color: Colors.blue30, placeholderTextColor: Colors.dark50 }}
                >
                    {_.map(this.state.personData, filter => (
                        <Picker.Item key={filter.value} value={filter} />
                    ))}
                </Picker>
### Tasks

Metadata

Metadata

Assignees

Labels

buga bug in one of the components

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions