React Native .toUpperCase() function works fine in a string but if you used the numbers
or other non-string data types
, it doesn't work. The error
will have occurred.
Below Two are string properties:
<Text>{props.complexity.toUpperCase()}</Text>
<Text>{props.affordability.toUpperCase()}</Text>