title: React Native changing let value does not get changed in child component as props
body: <p>Hey I got little bit stuck on this problem. Whole problem is that I can't use state inside navigationOptions. So I tried this:</p>
  
  <p>I declare my let <code>let isFilterVisible: boolean = false;</code></p>
  
  <p>There is navigationOptions block where I call function inside onPress event.</p>
  
  <pre><code>static navigationOptions = ({ navigation }: NavigationInjectedProps) =&gt; ({
      headerRight: (
              &lt;FilterButton onPress={() =&gt; {Installations.handleFilterVisibility(isfilterVisibile)}}/&gt;
     ),
  });
  </code></pre>
  
  <p>Simple <code>static</code> function where I handle value</p>
  
  <pre><code>static handleFilterVisibility(filterVisibility: boolean){
      isfilterVisibile = !filterVisibility;
  }
  </code></pre>
  
  <p>Then it's passed to child as props</p>
  
  <pre><code>&lt;Filter isFilterVisible={isfilterVisibile}/&gt;
  </code></pre>
  
  <p>Everything seems fine but when I try to log props in child component.</p>
  
  <p><code>ComponentDidUpdate</code> even <code>ComponentWillReceiveProps</code> does not log anything.</p>
  
  <p>Any ideas where might be mistake?</p>