react-native-picker-select

install

npm install react-native-picker-select
 
# React Native users
npm install @react-native-picker/picker
 
import RNPickerSelect from "react-native-picker-select";
 
export const Dropdown = () => {
  return (
    <RNPickerSelect
      onValueChange={(value) => console.log(value)}
      items={[
        { label: "Football", value: "football" },
        { label: "Baseball", value: "baseball" },
        { label: "Hockey", value: "hockey" },
      ]}
    />
  );
};