Skip to content

Commit

Permalink
Merge pull request #41 from hasithaWalpola/master
Browse files Browse the repository at this point in the history
codeInputHighlightStyle apply for all fields issue fix
  • Loading branch information
fpena authored Feb 7, 2020
2 parents abb321e + 59056b1 commit c8214ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default class OTPInputView extends Component {
<View pointerEvents="none" key={index + "view"}>
<TextInput
underlineColorAndroid='rgba(0,0,0,0)'
style={selectedIndex === index || digits[index] ? [defaultTextFieldStyle, codeInputFieldStyle, codeInputHighlightStyle] : [defaultTextFieldStyle, codeInputFieldStyle]}
style={selectedIndex === index ? [defaultTextFieldStyle, codeInputFieldStyle, codeInputHighlightStyle] : [defaultTextFieldStyle, codeInputFieldStyle]}
ref={ref => { this.fields[index] = ref }}
onChangeText={text => {
this.handleChangeText(index, text)
Expand Down

0 comments on commit c8214ae

Please sign in to comment.