FaridSafi / react-native-gifted-form

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

this library (validator.js) validates strings only #75

Closed bionimic closed 7 years ago

bionimic commented 8 years ago

how can i solve this? im using RN 32

sambwest commented 8 years ago

I had that issue but was able to solve it by adding defaults to the GiftedForm.

Hope this helps.

bionimic commented 8 years ago

Can you give me example? Which default config are you refering to? Is the default value?

sambwest commented 8 years ago

Yes, a default value...

<GiftedForm
          defaults={{
            duration: '1',
            atendee: 'Me'
          }}
bionimic commented 8 years ago

Noted. Thanks!

frmdstryr commented 7 years ago

This doesn't seem to work for the DatePickerIOSWidget, anyone else seeing this?

cooperka commented 7 years ago

Hmm, this is still something we should solve, even if there is a workaround (thank you @sambwest). @frmdstryr would you be willing to submit a PR to fix it?

cooperka commented 7 years ago

Closing as there is a duplicate issue with better details: https://github.com/FaridSafi/react-native-gifted-form/issues/90