bietkul / react-native-form-builder

Handle your forms in a smart way
MIT License
121 stars 68 forks source link

Customizing the select page #7

Open jwoertink opened 6 years ago

jwoertink commented 6 years ago

When you use select as a type, it takes you to a new page with those options you can select from. Is it possible to customize this page? In your example gif, I see blue icons next to your words, but in my app I don't see any icons. Your example code also doesn't mention any icons.

Along with being able to display icons next to each selection, I would like to add a text field at the bottom of the select options to allow a user to type in and use a new option that doesn't exist in the current list.

bietkul commented 6 years ago

As mentioned, form-builder uses the NativeBase Components, so the icon you see next to the options is the Checkbox component of NativeBase. By Default NativeBase uses the react-native-vector-icons.

For better customization of form-builder you can wrap the form-builder component in the StyleProvider of Nativebase. I hope that it'll help you. https://docs.nativebase.io/Customize.html#Customize

For the second thing it's an extra feature.I'll look on to it.

jwoertink commented 6 years ago

ah, ok. Awesome. Thanks for the help.