I tried all the above given solutions but didn't work for me. Just wrap your text input into a view and give flex : 1 to the view. It will work 100%.