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

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


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)

I have faced the same issue. What I do is to declare a Field like this and set the height to 0. It is a little bit hacky but it works in my case.

<Field
    component={TextInput}
    name="departure_city_name"
    type="hidden"
    style={{ height: 0 }}
/>

And I change the value like this : this.props.change("departure_city_name", cityData.name);

Hope it helps.