title: How do you autofocus the input box in react-native-gifted-chat
body: <p>I'm using the gifted chat library and want to autofocus on the input with the keyboard up on initial render.  I see that there is an imperative function <code>focusTextInput</code> but how do I call it?</p>
  <pre><code>&lt;GiftedChat
    {...props}
    messages={this.state.messages}
    ref={(chat) =&gt; this.chat = chat }
    onSend={messages =&gt; this.onSend(messages)}
    user={{
        _id: 1,
    }}
  /&gt;
  </code></pre>
  <p><a href="https://github.com/FaridSafi/react-native-gifted-chat" rel="nofollow noreferrer">Github Repo</a></p>
  <p>I tried setting the <code>ref</code> and calling it directly on did mount but that didn't work.</p>