MosesEsan / react-native-basic-form

React Native Basic Form by Moses Esan
3 stars 7 forks source link

maxLenght is not taken into account #5

Closed lucj closed 4 years ago

lucj commented 4 years ago

To limit the number of char for a TYPES.Number field I use the maxLength properties but it is not taken into account in the form.

   const fields = [
      {
         name: 'value',
         label: 'Enter a numeric value',
         required: true,
         type:TYPES.Number,
         maxLength: 10
      }
    ];
MosesEsan commented 4 years ago

@lucj Hi, this is a basic component, the documentation details what is possible, feel free to add more capabilities and create a pull request

lucj commented 4 years ago

Hi @MosesEsan I'm not that fluent in react-native yet but I'll try :)