Check out example codes for "input uppercase with css". It will help you in understanding the concepts better.

Code Example 1

input { 
    text-transform: uppercase;
}

Code Example 2

<input oninput="let p = this.selectionStart; this.value = this.value.toUpperCase();this.setSelectionRange(p, p);" />

Learn ReactJs, React Native from akashmittal.com