ttdung11t2 / react-native-confirmation-code-input

A react-native component to input confirmation code for both Android and IOS
MIT License
411 stars 349 forks source link

Ability to change active and inactive border color #32

Open aks1994 opened 6 years ago

aks1994 commented 6 years ago

Hi, is it possible to change the active and inactive border color? By default, the active border has opacity 1 and inactive has 0.2. I want to maintain this but also change the color of the border. If I change the borderColor, it applies to all fields (active and inactive). Is there any workaround or can this be added?

Thanks.

ouoru commented 6 years ago

just use the props activeColor and inactiveColor. If you want to keep the opacity 1 and 0.2, pass the color as an rgba value instead of hexcode.