Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

currency value with react native

$
0
0

I'm trying to create a currency conversion app, the user needs to enter a value like "120" and the app will do the conversion.

the result should look like this:$ 129.189,12

but it’s getting like this: 129189.12

my function:

currencyBrToAr = () => {        const real = 17.90;        const v = this.state.coinValue;        let result = this.state.resultValue;        const type = this.state.currencyCoin;        result = v * real;        this.setState({             showMessage: true,             resultValue: result,        });    }

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>