TextInput is a Core Component that allows the user to enter text. It has an onChangeText prop that takes a function to be called every time the text changed, and an onSubmitEditing prop that takes a function to be called when the text is submitted.
For example, letโs say that as the user types, youโre translating their words into a different language. In this new language, every single word is written the same way: ๐. So the sentence โHello there Bobโ would be translated as โ๐ ๐ ๐โ.
text in the state, because it changes over time.
There are a lot more things you might want to do with a text input. For example, you could validate the text inside while the user types. For more detailed examples, see the React docs on controlled components, or the reference docs for TextInput.
A TextInput is one of many ways for the user to interact with your app. For examples of other ways to handle input, see the documentation on how to handle touches.
Now, letโs take a look at ScrollView, another Core Component.
