title: React Native: How do you implement DatePickerAndroid?
body: <p>According to the RN docs, you have to call an async/await function to open the Android Date Picker.  I've tried installing the Async to generator transform Babel preset and adding a .babelrc file with </p>
  
  <p><code>{
    "plugins": ["transform-async-to-generator"]
  }</code></p>
  
  <p>but that just seems to throw an unexpected token error when adding any RN component using tags (eg &lt; Image ... /> would throw and unexpected token error).  This is what my function to open the Android Date Picker looks like </p>
  
  <pre><code>async openAndroidDatePicker: function() {
    try {
      const {action, year, month, day} = await DatePickerAndroid.open({
        date: new Date()
      });
    } catch ({code, message}) {
      console.warn('Cannot open date picker', message);
    }
  }
  </code></pre>