react-native-picker-dropdown
react-native-picker-dropdown copied to clipboard
Design bug in iOS
There is this bug when implementing it in iOS. On Android it works fine.
My code:
<View style={{ margin: "2%", overflow: 'visible' }}> <DropDownPicker items={[ { label: "Seleccionar Opciones", value: "op", icon: () => <Feather name="list" size={24} color={Violeta} />, }, { label: "2 Personas", value: "2", icon: () => <Feather name="user" size={24} color={Violeta} />, }, { label: "3 Personas", value: "3", icon: () => <Feather name="user" size={24} color={Violeta} />, }, ]} defaultValue={state.country} containerStyle={{ height: 40 }} style={styles.Lista} itemStyle={{ justifyContent: "flex-start", }} dropDownStyle={{ backgroundColor: "#fafafa" }} onChangeItem={(item) => setState({ country: item.value, }) } arrowColor={blueDark} arrowSize={18} selectedLabelStyle={{ color: blueDark, fontWeight: "bold", }} /> </View>
