Identify Return Key action in React Native : <p>I have a <code>TextInput</code> which I have enabled <code>multiline</code> as true. Thing is the Keyboard won't hide after Return is pressed. It goes to a new line. So I was hoping to use <a href="https://www.npmjs.com/package/react-native-dismiss-keyboard" rel="noreferrer">react-native-dismiss-keyboard</a>. To exploit this I need to identify the Return key action. How to do this?</p>

<pre><code>&lt;TextInput
    style={styles.additionalTextInput}
    multiline={true}
    autoCapitalize="sentences"
    autoCorrect={true}
    onChangeText={(text) =&gt; this.setState({text})}
    keyboardType="default"
    returnKeyType="done"
    onKeyPress={(keyPress) =&gt; console.log(keyPress)}
    placeholder="Enter text here..."
/&gt;
</code></pre>
