title: Set value from string to number
body: <p>I am using React-native and the <code>&lt;Picker /&gt;</code> component.</p>
  
  <p>The problem I am having, is that the <code>value='1'</code> is a string, but I would like it to return a number. I have seen ways to parse it, but I am unsure how to do this in react-native.</p>
  
  <pre><code>class TestPage extends Component {
    constructor(props){
      super(props);
      this.state = {
        myNumber:0
      }   
    }
  
    componentDidMount(){
    }
  
    render(){
      console.log('My value : ',this.state.myNumber);
      return (
        &lt;View&gt;
          &lt;Picker
            selectedValue={this.state.myNumber}
            style={{ height: 50, width: 150 }}
            onValueChange={(itemValue) =&gt; this.setState({myNumber: itemValue})}&gt;
            &lt;Picker.Item label="One" value="1" /&gt;//The value here 
            &lt;Picker.Item label="Two" value="2" /&gt;
          &lt;/Picker&gt;
        &lt;/View&gt;
      );
    }
  }
  </code></pre>
  
  <p>Thank you.</p>