I have a function to format numbers which I use in my project in React Native
function formatedNumber(value){
return value ? parseFloat(value).toLocaleString("pt-br", {minimumFractionDigits: 2 }) : "0.00"
}
and example of using
<Text style={{fontSize:16}}>Valor of the value: {obj.value!= null && <Text>{formatedNumber(obj.value)}</Text>}</Text>
The problem is that on it shows formatted value ( so instead 10000 shows 10.000,00) only when I am on debugging mode, otherwise the value stays unformatted.
Versions
"expo": "^33.0.0",
"react": "16.8.3",
"react-native": "0.61.2"