Clearing TextInput with React Native

Joseph Emswiler
4 min readAug 1, 2018

While developing a chat feature in a React Native app, I was attempting to create a TextInput component that would clear automatically after a submit button was pressed. It appears some methods included with React Native are not functioning correctly in certain environments when it comes to this task. Since I could not find an appropriate solution elsewhere, I figured I’d share my work-around for this problem.

--

--

Joseph Emswiler

Software engineer with experience in GovTech, FinTech, LegalTech, and HealthTech. Follow for stories about modern full stack web development.