title: How to set navigationOptions on stateless component with Typescript
body: <p>I have a react component like</p>
  
  <pre><code>const Example = () =&gt; (&lt;View&gt;...&lt;/View&gt;);
  </code></pre>
  
  <p>Using react-navigation I would normally apply navigation options by saying</p>
  
  <pre><code>Example.navigationOptions = { options };
  </code></pre>
  
  <p>With typescript I am getting the error </p>
  
  <p><code>[ts] Property 'navigationOptions' does not exist on type '(props: Props) =&gt; Element'.</code></p>
  
  <p>How can I fix this?</p>
  
  <p>I tried writing an interface</p>
  
  <pre><code>interface ExampleWithNavigationOptions extends Element {
      navigationOptions?;
  }
  </code></pre>
  
  <p>But with no luck.</p>