Open anujkaushik1512 opened 1 year ago
Like if i have 4 otp inputs and i focus on any box then only color of that box should be changed.
styles ->
enterOtpView: { width: '100%', minHeight: responsiveHeight(20), justifyContent: 'center', alignItems: 'center' }, enterOtpStyle: { flexDirection: 'row', }, enterOtpText: { fontSize: responsiveFontSize(2.5), borderWidth: 2, // borderColor: props?.color || 'lightgray', borderRadius: 10, marginRight: 20, textAlign: 'center', color: '#052F5F', fontWeight: 'bold', // paddingBottom: 0, paddingTop: 10, paddingBottom: 10, paddingLeft: 12, paddingRight: 12, },
Hello,
focusStyle only affect on container view. You can use like this.
<OtpInputs inputContainerStyles={{ borderWidth: 1, borderColor: 'black', }} focusStyles={{ borderColor: 'red', }} ...>
Like if i have 4 otp inputs and i focus on any box then only color of that box should be changed.
styles ->