score:0

Accepted answer

You can't modify the inputValues without affecting the text fields, because both values are using the same variable, you are using the same state.

...

This would be an option if your Text were to show the default value only

const values = [
value1:'value1',
value2:'value2',
value3:'value3',
value4:'value4'
]

const [inputValues,setInputValues] = useState(values)
...
//this should be taken from your values, to be static. or from another state
<Text>{values.value1}</Text>
<Input value={inputValues.value1} onChange={onChange} name={value1}/>


Related Query

More Query from same tag