Is there a way to limit the length of a TextInput in React-Native? -


i've been trying make program not allow input more amount of characters textinput component, similar how maxlength works input. haven't been able find similar maxlength textinput. there easy way set maximum number of characters < textinput /> component?

in props textinput can set maxlength attribute.

from documentation:

maxlength number

limits maximum number of characters can entered. use instead of implementing logic in js avoid flicker. @platform ios


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -