title: Change a dot '.' to a comma ',' and add a zero '0' to a price in react native
body: <p>I want to change a string in the format of 2.8 to 2,80 in react native</p>
  <pre><code>class HomeComponent extends React.Component {
    constructor(props) {
      super(props);
    }
  
  state= {
  
  price : '2.8', // I get it in this format from Mysql
  }
  
  render() {
      return (
  &lt;View&gt;
  &lt;TouchableOpacity&gt;
  &lt;Text&gt; Price : {this.state.price}&lt;/Text&gt;
  &lt;/TouchableOpacity&gt;&lt;/View&gt;)}
  }
  
  export default HomeComponent;
  </code></pre>
  <p>I thought about using split like this</p>
  <pre><code>
  {this.state.price !== undefined ? this.state.price.split('.') : ''}
  
  </code></pre>
  <p>But it didn't work</p>