AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
322 stars 139 forks source link

styles not working in IOS #143

Closed RonakBansal321 closed 1 year ago

RonakBansal321 commented 1 year ago

in below dropdown this 3 styles are not working for IOS , for android it is working fine.|

shadowOpacity: 0.3, elevation: 3, shadowOffset: { width: 0.1, height: 0.1 },

<SelectDropdown data={GenderData.map((name) => { return name.name; })} onSelect={(name, value) => { setGender({ name, value }); //{"name": "Male", "value": 1} }} buttonStyle={{ width: wp("43.3%"), height: hp("4.5%"), backgroundColor: "#ffffff", borderRadius: 8, borderWidth: 0.4, borderColor: "#d3d3d3", shadowOpacity: 0.3, elevation: 3, shadowOffset: { width: 0.1, height: 0.1 }, justifyContent: "space-between", }} dropdownStyle={{ borderRadius: 8, backgroundColor: "#ffffff", shadowOpacity: 0.3, elevation: 3, shadowOffset: { width: 0.1, height: 0.1 }, }} dropdownOverlayColor="false" buttonTextStyle={{ fontSize: hp("1.6%"), flex: 0.7, }} rowStyle={{ width: wp("45%"), height: 32, backgroundColor: "#ffffff", }} defaultValue={gender.name} rowTextStyle={{ color: "#6159a1", fontSize: hp("1.45%"), textAlign: "left", marginLeft: wp("3.75%"), }} renderDropdownIcon={() => ( <Icon size={15} color={"#6159a1"} name="caret-down" /> )} dropdownIconPosition="right" defaultButtonText={Strings.select_gender_new} />

RonakBansal321 commented 1 year ago
Screenshot 2023-06-15 at 7 52 14 PM Screenshot 2023-06-15 at 7 52 45 PM

difference between IOS and android with the same styles..please help

AdelRedaa97 commented 1 year ago

add overflow: 'visible' in dropdownStyle Inform me if it still doesn't work.

RonakBansal321 commented 1 year ago

overflow: 'visible'

Thanks buddy it worked.

lucyanddarlin commented 1 year ago

when I add overflow: 'visible' in dropdownStyle, I find borderRadius doesn't work, please help me, thanks a lot!