title: React-Native Navigation with typescript
body: <p>I was trying to implement react native with Typescript. while trying to access react-navigation library . Its throwing typescript errors.</p>
  
  <blockquote>
    <p>Property 'navigation' does not exist on type 'Readonly&lt;{}> &amp; Readonly&lt;{ children?: ReactNode; }>'.</p>
  </blockquote>
  
  <p>My component.tsx</p>
  
  <pre><code>    import React, { Component } from "react";
  import { View, Text, TouchableHighlight, Alert } from "react-native";
  import {
    NavigationParams,
    NavigationScreenProp,
    NavigationState,
  } from 'react-navigation';
  
  class FirstPage extends Component {
  
    public static navigationOptions = {
      title: 'Test Screen',
    };
  
  constructor(props: any) {
      super(props);
  }
  
  
  
  _call = (firstName:string,lastName:string) =&gt; {
  
      Alert.alert(
          'Title',
          `${firstName} ${lastName}`,
          [
            {text: 'Ask me later', onPress: () =&gt; console.log('Ask me later pressed')},
            {
              text: 'Cancel',
              onPress: () =&gt; console.log('Cancel Pressed'),
              style: 'cancel',
            },
            {text: 'OK', onPress: () =&gt; console.log('OK Pressed')},
          ],
          {cancelable: false},
        );
     // Alert( `$(firstname) $(lastName)`)
  }
  
  
  _nav=()=&gt;
  {
   this.props.navigation.navigate('second');
  }
  
  render() {
  
      return (
          &lt;View&gt;
              &lt;Text&gt;Hello First Page&lt;/Text&gt;
              &lt;TouchableHighlight onPress={()=&gt;this._call('hello','user')} &gt;
                  &lt;Text&gt;Types Button&lt;/Text&gt;
              &lt;/TouchableHighlight&gt;
              &lt;TouchableHighlight onPress={()=&gt;this._nav} &gt;
                  &lt;Text&gt;Types Button&lt;/Text&gt;
              &lt;/TouchableHighlight&gt;
          &lt;/View&gt;
      )
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>export default FirstPage;</p>
  
  <p>Please let me know how to resolve this errors. In addition please point me towards implementing types using interfaces.</p>