We've now got our text input visible.
Remember just about every time we show a text input you're going to add in your own custom styling.
There are two other props that need to be aware of that you're going to add into almost every text input
you put together.
I want to show you something really quickly on the android and Iow simulators that I'm running.
All right I'm going to reset the screen here really quickly and I'll go back to my text demo and then
on both these I'm going to add in just a little bit of text to this text input.
It's on Android.
I'M GONNA WRITE OUT A SDF and same thing over here on IAW as well.
Now it's kind of hard to see and I know the text on the IOW simulator in particular is really small
but there actually is a very subtle difference between both these devices.
You might notice that on AOS over here the text I just entered into that input got capitalized automatically.
In other words that leading a in a SDF was automatically capitalized that occurs by default on ISIS
depending on pon your version of Android that you are running.
You will either see the same behavior on Android as well or it might not be capitalized at all automatically.
In addition on IOW over here if I type in a word and excellently make a little small misspelling inside
of it I'm going to try to write out keyboard bug and make a typo.
It's all right out keyboard but going to flip the O in the A like so I didn't quite take that one let's
try that again.
There we go.
So I just left off the O and so I can see this auto correct appear right here.
If I then hit spacebar it's going to automatically change that word for me.
Now sometimes we definitely want that auto correct functionality but very frequently if we are entering
in some text into say an email input or a user name input or a password input we really don't want ISIS
to mess around with the text we're entering at all.
So very frequently when we add in a text input right here there are two different props that are going
to add in to keep ISIS from capitalizing that string and trying to change any of the words so we enter
in there.
So let's figure out what those two different properties are so on my text input I'm going to first give
myself a little bit of space here so the first prop that we're going to add into the vast majority of
text inputs that you and I put together is auto capitalize equals none like so they might think that
this option would be receive a value of a boolean value.
So like something like false but that's not the case.
Instead when we select auto capitalize right here there are actually a couple of different options so
we can select.
We can either say auto capitalize all characters auto capitalize the start of every sentence or auto
capitalize every word that we enter.
Or alternatively just none.
So rather than putting an auto capitalize a false we generally going to say none like so to say please
don't mess around my text input the other text or the other proper going add in very frequently is auto
correct.
And this one does in fact take a billion value we're going to usually be sending it to false like so
as you might guess by default auto correct has a default value of true whenever putting together text
input.
Like I said if we're handling emails passwords user names we really don't want.
IOW to jump in and start changing words on our users because that's extremely annoying for them.
So now we've got these two props inside of here.
Let's save and test out again.
So now on Android I can put in a misspelt word like keyboard without a a and no issue whatsoever.
And then on ISIS I can put in keyboard that leading character does not get changed.
And if I make a typo in there that's totally fine as well.
It doesn't get changed as you might imagine there will be scenarios where you might not want to use
these two props right here.
So for example if you're prompting a user to enter in like a blog post or a blog title well chances
are you want that to be auto capitalized and you want spellcheck on.
But in this course you and I for the most part are going to be dealing with text that we don't want
to be changed like emails and passwords user names and so on.
And in those cases once again probably want those two prompts.
OK.
Now we've seen those too.
Let's take another quick pause when we come back the next video.
We're going to start to focus once again on the real goal this application.
That right there.
So I'll see you in just a minute.