TypeError: Cannot read property 'modes' of undefined
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.