I wanted to clear Text Component using ref on timeout but can't find.
<Text style={{ color: "#fff" }} ref={text => this._text = text}>
{isKeyValid === undefined
? null
: isKeyValid
? "Key is been verified."
: "Your key is invalid or expired."}
</Text>
clearErrorMessages = () => {
setTimeout(() => {
//something like that here which i have no idea
this._text.clear()
}, 2000);
}
Any idea about this guys thanks...