shimohq / react-native-prompt-android

A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform.
MIT License
129 stars 74 forks source link

maximum length of input #29

Open rubinim1995 opened 6 years ago

rubinim1995 commented 6 years ago

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

how to achieve this

Noitidart commented 6 years ago

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.