Scenario: You need to validate user input in a TextInput component for legal values.
Solution : Use the 'textInput' event to intercept the characters a users types before they are committed and cancel the committing of the character if it is illegal.