title: react native datepicker works only in debug mode
body: <p>I'm using <a href="https://facebook.github.io/react-native/docs/datepickerandroid.html" rel="nofollow noreferrer">native datepicker of android</a> in react native app , only when I use debug mode I get date, but when I cancel debug mode using real phone I get in alert <strong>'invalid date'</strong> in same date I choose with the debug.</p>
  
  <pre><code>  showDatePicker = async () =&gt; {
      if (Platform.OS === 'ios') {
          this.setState({ datePickerIosPlatform: true })
      } else {
          try {
              const { action, year, month, day } = await DatePickerAndroid.open({
                  date: new Date()
              });
              if (action !== DatePickerAndroid.dismissedAction) {
                 console.log('action', action, 'year', year, ' month', month, 'day', day)
  
                  var stringDate = `${year} ${month} ${day}`;
                  var newDate = new Date(stringDate)
                  alert(newDate)
  
                  var convertDate = moment(newDate).format('DD.MM.YYYY') 
                  console.log('convertdata',convertDate)
  
                  // this.convertDate(stringDate)
              }
          } catch ({ code, message }) {
              console.warn('Cannot open date picker', message);
          }
      }
  
  }
  </code></pre>