react-native-form-generator
react-native-form-generator copied to clipboard
Initial Value Example
Hi Could you provide me with the initial Value example for this as in my use case I need to render a form with some initial values and then change them . Also is it possible for pass initialValues as props to Form component itself.If yes then how and if no then can you tell me the workaround for this.
Yes, you can set values on componentDidMount()
this.refs.informationForm.refs.fullName.setValue('John Doe');
this.refs.informationForm.refs.birthday.setDate(new Date());
Hey @pnthach95 thanks for the reply. I will give it a try. Could you also help me with this issue https://github.com/MichaelCereda/react-native-form-generator/issues/128
Sorry, I can't help.