Open workninja19 opened 4 years ago
Are you still having this issue?
onChangeText={(text) =>onChangeTagValue(text)}
//OnChangeTagValue Function
const onChangeTagValue = (val)=>{
let lastCharacter = val.charAt(val.length - 1);
if(lastCharacter == " " && val.trim().length){
setTagText('');
setTags([...tags,val.trim()]);
}
else{
setTagText(val);
}
}