xamous / react-native-smooth-pincode-input

A cross-platform, smooth, lightweight, customizable PIN code input component for React Native.
MIT License
406 stars 138 forks source link

preserve colour of previous cell (style) #9

Open ajaykotnala opened 5 years ago

ajaykotnala commented 5 years ago

initially the code style is (text style) is gray. once i start filling code it should turn into white which i am able to achieve via

cellStyle={{ borderBottomWidth: 9, borderColor: PURE_WHITE,

        }}
        cellStyleFocused={{
          borderColor: PURE_WHITE,

        }}
        textStyle={{
          fontSize: 24,
          color: GREY
        }}

but once focus moved to next cell the previous cell should remain white. is that possible?