Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set hidden fields in redux form in react native?

How to set hidden fields in redux form in react native ?

i jsut cannot find any way on how to do that . any help?

like image 373
Roy CL Avatar asked May 27 '17 14:05

Roy CL


2 Answers

you don't need to dispatch any action just perform this change whenever you need a hidden field in redux form.

this.props.change('Field_name', value)
like image 111
Sumit Kumar Avatar answered Sep 22 '22 17:09

Sumit Kumar


i ended using this :

this.props.dispatch(change("FORM_NAME","FIELD_NAME","VALUE")) 

after this code runs, the form will create the field if it does not exists

like image 29
Roy CL Avatar answered Sep 24 '22 17:09

Roy CL