FaridSafi / react-native-gifted-form

📝 « One React-Native form component to rule them all »
MIT License
1.44k stars 214 forks source link

Allow passing an option to validate on empty fields #51

Closed gabceb closed 8 years ago

gabceb commented 8 years ago

This PR adds a property for widgets to be validated even when they are empty. This allows a field to be validated as soon as the user focuses on them instead of waiting for an onChangeText event. Note that this PR is backwards compatible since the property is false by default.

I've also simplified the logic around when to render the orders

FaridSafi commented 8 years ago

Thank you @gabceb

samdturner commented 8 years ago

@sparkdreamstudio and I are running into an issue that may be related to this PR.

Here is our discussion: https://github.com/FaridSafi/react-native-gifted-form/issues/61

gabceb commented 8 years ago

Sorry about that @samdturner. Can you go into your node_modules and change const ImageSrc to include the full path? If that works ill submit another PR with the fix

samdturner commented 8 years ago

@gabceb I opened up PR #62. I would really appreciate a code review :)