title: How can pass params along with fetch request in react native?
body: <p>As i am doing an app in react native. Am i able to pass data along with fetch request? Also how to pass data from one page to another within <code>TouchableOpacity</code>?Following is my code..</p>
  
  <p><strong>screenOne.js</strong></p>
  
  <pre><code> &lt;TouchableOpacity onPress={() =&gt; this.props.navigation.navigate('ScreenTwo', {course.term_id})}&gt;
          {this.props.course.term_id == '28' ? (&lt;Text&gt;&lt;/Text&gt;) : (
           &lt;Text style={styles.userStyle}&gt;{this.props.course.name}
           &lt;/Text&gt; )}
  </code></pre>
  
  <p>But above code is showing syntax error. Also i want this <code>term_id</code> to be passed along with fetch request.How can i do that?Can i do like the following?</p>
  
  <p><strong>ScreenTwo.js</strong></p>
  
  <pre><code>fetch('https:/asdfcokn/lm-json/course + term_id')
  </code></pre>
  
  <p>Please do help..</p>