react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

app crashed when press on dropDownmodal

Open FatmaMahmoud698 opened this issue 2 years ago • 4 comments

I hide the ModalDropdown when I show it and try to press it, all app crashed and closed I hade many dropDown in the screen , show or hide as user request

"expo": "~42.0.1",
"expo-status-bar": "~1.0.4",
"react": "16.13.1",
"react-native-modal-dropdown": "^1.0.2",
<ModalDropdown
       options={['Male', 'Female']}
           style={{
               width: '100%',
               borderBottomWidth: 1,
               borderColor: '#CCCCCC',
               paddingVertical: 10
           }}
           showsVerticalScrollIndicator={true}
           dropdownStyle={{
               width: '80%',
               backgroundColor: '#CCCCCC',
               alignSelf: 'flex-end',
               shadowRadius: 16,
               shadowColor: 'rgba(0, 0, 0, 0)',
               shadowOffset: { width: 1, height: 6 },
               shadowOpacity: 0.25,
               elevation: 2,
               marginTop: -20,
               height: 'auto'
           }}
           dropdownTextStyle={{
               fontSize: 16,
               textAlign: 'left',
               color: 'rgba(0, 0, 0, 1)',
           }}
           textStyle={{ fontSize: 16, color: '#424242', }}
           defaultValue="Select your Gender"
           onSelect={(index)=>console.log(index)}
       />

FatmaMahmoud698 avatar Nov 04 '21 15:11 FatmaMahmoud698

@FatmaMahmoud698 Had you been able to resolve this issue? as I'm also getting the same issue.

Mohammad-Khalid avatar May 07 '22 04:05 Mohammad-Khalid

the issue solved when I changed this line height: 'auto' to be height: 300 @Mohammad-Khalid

FatmaMahmoud698 avatar May 08 '22 12:05 FatmaMahmoud698

@FatmaMahmoud698 Thank you, it really helped

Mohammad-Khalid avatar May 23 '22 01:05 Mohammad-Khalid

Please use 1.0.2 version , it's working fine for me.

urvidparmar avatar Aug 30 '22 07:08 urvidparmar