title: Open Keyboard and/or DatePickerIOS when TextInput touched in React Native
body: <p>I am new to React Native and am simply looking to have a DatePickerIOS component slide up from the bottom of the screen when a TextInput is touched.</p>
  
  <p>Can someone please point me in the right direction or give me a simple example?</p>
  
  <p>Below is my component.  It is very simple.  I'm trying to get either the keyboard or the DatePickerIOS to open once the user touches the TextInput.</p>
  
  <pre><code>import React, {
    AppRegistry,
    Component,
    StyleSheet,
    Text,
    TextInput,
    View,
    DatePickerIOS
  } from 'react-native';
  
  class AddChildVisit extends Component {
  
  render() {
    return (
      &lt;View&gt;
        &lt;Text&gt;Visit Date&lt;/Text&gt;
        &lt;TextInput
          style={{height: 40, width: 300, padding: 4, borderColor: 'gray', borderWidth: 1}}
          keyboardType= 'numeric'
        /&gt;
        &lt;DatePickerIOS
          date={new Date()}
          mode="date"
        /&gt;
      &lt;/View&gt;
    );
   }
  
  
  }
  
  
  module.exports = AddChildVisit;
  </code></pre>