wix / wix/react-native-ui-lib

TypeError: Cannot read property 'modes' of undefined

Open
#2,779 4 comments 0 reactions 1 assignee View on GitHub

@nitzanyiz is already working on this.

Since Oct 26, 2023.

bug
Dominant language
TypeScript
Stars
7.2k
Forks
748
Avg merge
2d 18h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.