Quantcast
Channel: How to make a react native input which gives validation state feedback to the user. [Valid, Printine, Error, Editing] - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How to make a react native input which gives validation state feedback to the user. [Valid, Printine, Error, Editing]

$
0
0

I would like to have an input that updates continuously as the user types and then loses focus. The feedback will be a border around the input.

1 Green: when valid2 Amber: when typing and is in error state (Green when valid)3 Red: when in error state and unfocused4 Nothing: when input is pristine (not touched and empty)

What is the best way to achieve this?

Ideally this will work with both iOS and Android.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images