title: Text Input Amount Formatting
body: <p>I'm new to react-native and I have used a text input for entering numbers but I'm not able to format the value i.e, when I enter 5555 or 5555.5 I want it to be  5,555.00 or 5,555.50. Can anyone help me with this?
       Thanks.</p>
  
  <pre><code>export default class UselessTextInput extends Component {
    constructor(props) {
      super(props);
      this.state = {
        amount: 0.0
      };
    }
  
    numberformat(amount) {
      this.setState({
        num: Number(amount).toFixed(2)
      });
    }
  
  
    render() {
      console.log('numberFormat', this.state.amount);
      return (
        &lt;TextInput
          placeholder={this.state.amount.fixed(2)}
          onChangeText={(amount) =&gt; this.numberformat(amount)}
        /&gt;
      );
    }
  }
  </code></pre>