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

custom field >> Field Class should be exposed #80

Open
florianbepunkt opened this issue Nov 19, 2016 · 2 comments
Open

custom field >> Field Class should be exposed #80

florianbepunkt opened this issue Nov 19, 2016 · 2 comments

Comments

@florianbepunkt
Copy link

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
Copy link
Author

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';

@florianbepunkt florianbepunkt changed the title custom field broken custom field >> Field Class should be exposed Nov 19, 2016
@jan-happy
Copy link

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

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