'React-native the picker value not changing if it changes than all my prop's picker value changes
React-native the picker value not changing if it changes than all my prop's picker value changes: I am using this in TODO's list when I add new tasks and set priority, and when I change one of them priority it changes all tasks priority. This is my code :
const [pickerValue, setPickerValue] = useState('Low');
<Picker style={styles.picker} selectedValue = {pickerValue} onValueChange={(itemValue) => setPickerValue(itemValue)} >
<Picker.Item label="Low" value="Low"/>
<Picker.Item label="Medium" value="Medium"/>
<Picker.Item label="High" value="High"/>
</Picker>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
