I try to save my Username and Password in cache. I couldnt save two data so I try to save just username below code.
but when I enter letter to TextInput, data g
AsyncStorage.setItem and this.setState are async funtion, so your console.log() will not be work as you wish. To console you can try
savedata = async (value) => {
try {
await AsyncStorage.setItem("myKey", value);
this.setState({myKey: value}, () => {
console.log("deneme",value);
})
} catch (error) {
console.log('Store error');
}
}