react native text capitalize 1

react native text capitalize

 {'Test'.toUpperCase()} 

Here is what the above code is Doing:
1. We’re importing the Text component from React Native.
2. We’re creating a new component called HelloWorldApp.
3. We’re using the Text component to display the text ‘Test’.
4. We’re using the toUpperCase() method to convert the text to uppercase.
5. We’re using the AppRegistry to register our HelloWorldApp component.
6. We’re using the AppRegistry to run our HelloWorldApp component.

Similar Posts