lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 499 forks source link

Warning: Failed prop type: Invalid prop `items` of type `object` supplied to `RNPickerSelect`, expected an array. #425

Open Mersall opened 3 years ago

Mersall commented 3 years ago

` <RNPickerSelect Icon={() => } placeholder={{ label: "education", value: "", }} value={values.education} onValueChange={handleChange("education")} items={[ { label: "single", value: "single" }, { label: "married", value: "married" }, { label: "widowed", value: "widowed" }, { label: "divorced", value: "divorced" }, ]} />

` how can solve this

lfkwtz commented 3 years ago

@Mersall this issue was automatically closed because it did not follow one of the available issue templates. See here for available options.