This may be a problem with your field definition field definition.
<Field name="name" component={TextInput} /> <Field name="age" component={TextInput} />
Make sure this is the correct definition for your form. if you can also add the Markup component to make it easy to debug.
In addition, another tricky part in the native reaction with the redux form is the onChangeText callback, not the onChange callback, so in order to take this into account, you will have to create a wrapper around the TextInput component responsible for the reaction
const TextInputNative = ({ input: { onChange, ...inputProps }}) => { return <TextInput onChangeText={onChange} {...inputProps} /> } const EmployeesFormComponent = () => ( <Field name="name" component={TextInputNative} /> <Field name="age" component={TextInputNative} /> );
This can also prevent updating the form with the initial values.
Appunni m
source share