title: How to get text input data and pass it to email via linking - react native expo
body: <p>I am trying to pass whatever the user types into the TextInput, to send to email using linking.
  I am using Expo and haven't come across anything that might do this.</p>
  <pre><code>export default class Completed extends Component {
  
  state = {
            email: '',
         }
      
      
         handleEmail = (text) =&gt; {
            this.setState({ email: text })
         }
      
     render() {
          return ( 
      
      &lt;View&gt;
          &lt;TextInput style={[styles.input, styles.pushUp]} 
          multiline
              placeholder={&quot;Description&quot;}&gt;
          onChangeText = {this.handleEmail}
          &lt;/TextInput&gt;
      
             &lt;TouchableOpacity style={styles.button} onPress={() =&gt; Linking.openURL('mailto:support@example.com?subject=SendMail&amp;body=Description')}&gt;
              &lt;Text style={{color: &quot;#FFF&quot;, fontWeight: &quot;500&quot;}}&gt;NEXT&lt;/Text&gt;
             &lt;/TouchableOpacity&gt;
      
      &lt;/View&gt;
  
      )
  
      }
  
      }
  </code></pre>