react capitalize first letter code example Example: react native capitalize first letter <Text>{str.charAt(0).toUpperCase() + str.slice(1);}</Text>