title: if...else condition in React Native
body: <p>i am new to react native. In my application i am stuck with if..else condition in which i am displaying  views based on a condition. Here is the code.</p>
  
  <pre><code>if ({ this.state.isSignUp }) {
       &lt;Text&gt; Sign Up &lt;/Text&gt;
  } else {
       &lt;Text&gt; Forgot Password &lt;/Text&gt;
  }
  </code></pre>
  
  <p>In my login page i have links for Forgot password and Sign Up pages for which i am showing a Modal page based on isSignUp bool value. I am jus trying to display a text in the Modal page based on the condition, but i am stuck with the below error.<a href="https://i.stack.imgur.com/3m5lO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3m5lO.png" alt="enter image description here"></a> Can anyone tell me if i am doing this in the right way. Any help is appreciated. Thank you.</p>