To add a text input with React Native, we use the TextInput
component.
For example, we write
<TextInput
label={label}
mode="outlined"
theme={{
colors: {
primary: "#FFF",
},
}}
/>;
to add a TextInput
with the label
set to the label text.
The mode
is outlined
makes the text input show an outline.
And the colors.primary
property set the main color of the text input.