title: Number Format in React Native
body: <p>It might be a silly question, but I haven't found a solution for it. How can I format my native base input to accept only numbers and format it as dollar format?</p>
  
  <pre><code>import { Input } from 'native-base';
  ...
  onChangeText = (text, input) =&gt; {
      const obj = { ...this.state.myData };
  
      obj[input] = text;
  
      this.setState({
        myData: obj
      });
  };
  ...
  
  const { Total } = this.state.myData;
  ...
  &lt;Input
      value={Total}
      onChangeText={(text) =&gt; this.onChangeText(text, 'Total')}
      style={styles.valueText}
  /&gt;
  </code></pre>
  
  <p>It is working, but how can I change to accept only numbers and format with dollar sign?</p>
  
  <p>thanks</p>