thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
394 stars 447 forks source link

There is no disable for TextInput and CountrySelect by default #30

Closed allmaxgit closed 6 years ago

allmaxgit commented 6 years ago

With my project I need to disable component with certain conditions, but component have no this prop by default. I think, you should add prop editable for component, which disable onPress for CountryPicker and makes TextInput uneditable. Now I can do it only with props

onPressFlag={() => false}
textProps={{ editable: false }}

for PhoneInput component, but it's crutch!

gaston4930-zz commented 6 years ago

Thank you i was looking for that

thegamenicorus commented 6 years ago

Hi all,

disabled was added in v 0.2.0

thanks for your request.