Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

react native : value of the picker does not change

$
0
0

The value of the picker does not change if I select another value from itIt just happened when I added onValueChangeI would be happy to help with this

const [eventType, setEventType] = useState<any>();<Picker                onValueChange={(itemValue, itemIndex) => { setEventType(itemValue) }}                dropdownIconColor='black'                mode="dropdown">                {stateList.map(option => <Picker.Item label={option.label} key={option.key} value={option.value} />)}</Picker>

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>