MichaelCereda / react-native-form-generator

Generate forms with native look and feel in a breeze
MIT License
377 stars 105 forks source link

custom field >> Field Class should be exposed #80

Open florianbepunkt opened 7 years ago

florianbepunkt commented 7 years ago

Hi, your example for a custom field is not working. I think there is also an error in the constructor markup ( one } too much).

Using this simple input cstom field produces follwing error for me:

Element type is invalid: exspected a string (for built-in components) or a class/function (for composite components) but got undefined. check the render method of 'Form'

florianbepunkt commented 7 years ago

Okay, pinned down the issue… the Field Class is not exposed. IMO it should be as users likely will store their custom components not within your module, so basically you should be able to do

import { Field } from 'react-native-form-generator';

jan-happy commented 7 years ago

Any news on this? I also would like to build custom fields.