SyntaxFix
Write A Post
Hire A Developer
Questions
If you set the text state, why not use that directly?
_handlePress(event) { var username=this.state.text;
Of course the variable naming could be more descriptive than 'text' but your call.