n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 598 forks source link

It's not possible to disable editing #180

Open erikamatesz opened 5 years ago

erikamatesz commented 5 years ago

I have an user profile screen with a dropdown. It also has a button "Edit" so when the user clicks on it, it enables all the fields. I'm using the prop 'editable' to try to control this but it's not working. Can you check this out, please?

<Dropdown containerStyle={styles.dropdownContainer} animationDuration={100} baseColor={dropdownTextColor} textColor={dropdownTextColor} label={gender} data={genderList} editable={false} onChangeText={ (value) => console.log('Debug: '+ value)} />

It's hard coded for false as an attempt but it will receive a variable.

1pocketaces1 commented 4 years ago

disabled={true}