I need to have a React Native TextInput component that will only allow numeric characters (0 - 9) to be entered. I can set the keyboardType to
TextInput
keyboardType
if (!/^[0-9]+$/.test('123456askm')) { consol.log('Enter Only Number'); } else { consol.log('Sucess'); }