title: Using let to change the opacity of a view
body: <p>I am using React Native and have it set up so when a TouchableOpacity has been touched the opacity of another TouchableOpacity change and the touched TouchableOpacity has a higher opacity. Looking for how to fix or suggestions for improvement. </p>
  
  <pre><code>let opacityEnglish= true ? 1 : 0.5
  let opacitySpanish = false ? 1 : 0.5
  
  const languageSetHandler = (language) =&gt; {
      if(language == 'English') {
          opacityEnglish = true;
          opacitySpanish = false;
      }
      else if (language== 'Spanish') {
          opacitySpanish = true;
          opacityEnglish = false;
      }
      setLanguage(language);
  }
  
  &lt;TouchableOpacity 
      style={styles.OtherStyles, {opacity: opacityEnglish}} onPress={() =&gt; languageSetHandler('English')}&gt;
           &lt;Text&gt;English&lt;/Text&gt;
           &lt;Text&gt;Has been selected&lt;/Text&gt;
  &lt;/TouchableOpacity&gt;
  </code></pre>
  
  <p>It has been suggested not to use a boolean for the let. Any Alternative ways to change the opacity from outside the TouchOpacity? </p>