let fLCapital = s => s = s.charAt(0).toUpperCase() + s.slice(1);
fLCapital('this is a test') // "This is a test"
<Text>{str.charAt(0).toUpperCase() + str.slice(1);}</Text>
// Capitalize First Letter
function capitalName(text){
return text.charAt(0).toUpperCase() + text.slice(1);
}
console.log(capitalName("front"))
// Front
// I think the best way is to do it using styles (it will work for any UI framework)
// JS
<Text class="capitalize-me">sometext</Text>
// CSS
.capitalize-me::first-letter {
text-transform: capitalize;
}