Check out example codes for "convert string to uppercase while typing". It will help you in understanding the concepts better.

Code Example 1

#Using JS
function uppercase(obj){
    obj.value = obj.value.toUpperCase();
}

#Using CSS
#id{text-transform: uppercase;}

Learn ReactJs, React Native from akashmittal.com