Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum length of input #29

Open
rubinim1995 opened this issue Feb 9, 2018 · 1 comment
Open

maximum length of input #29

rubinim1995 opened this issue Feb 9, 2018 · 1 comment

Comments

@rubinim1995
Copy link

how to set limit of input and also it wont accept any special characters except numbers

how to achieve this

@Noitidart
Copy link

This module doesn't support max length yet. However this is how to add it:

https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java#L475-L514

I'm a beginner at modifying native code, and this is a bit complicated for me. But maybe the author can copy paste this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants