title: Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating '_this.props.navigation.navigate')
body: <p>I'm trying to display an image I have captured using expo-camera, from the camera component I'm trying to navigate to a new file which will display the image but after I took the image it won't navigate to the new page.</p>
  
  <p>I tried importing the file and then navigate it but it still won't work and give me the warning instead.</p>
  
  <p>This is the code where I tried to navigate to the new file.</p>
  
  <pre><code>    export default class CameraExample extends React.Component {
    state = {
      hasCameraPermission: null,
      type: Camera.Constants.Type.back,
    };
  
    async componentDidMount() {
      const { status } = await Permissions.askAsync(Permissions.CAMERA);
      this.setState({ hasCameraPermission: status === 'granted' });
    }
  
    snap = async() =&gt; {
        if(this.camera) {
            console.log('Taking photo');
            const options = {quality: 1, base64: true, fixOrientation: true, exif: true};
            const photo = await this.camera.takePictureAsync(options);
            this.props.navigation.navigate("Show", {photouri: photo.uri})
        }
    }
  
    render() {
      const { hasCameraPermission } = this.state;
      if (hasCameraPermission === null) {
        return &lt;View /&gt;;
      } else if (hasCameraPermission === false) {
        return &lt;Text&gt;No access to camera&lt;/Text&gt;;
      } else {
        return (
          &lt;View style={{ flex: 1 }}&gt;
            &lt;Camera style={{ flex: 1 }} type={this.state.type}
              ref = {ref =&gt; {
                  this.camera = ref;
              }}
            &gt;
              &lt;View
                style={{
                  flex: 1,
                  backgroundColor: 'transparent',
                  flexDirection: 'row',
                }}&gt;
  
                &lt;TouchableOpacity onPress={this.snap.bind(this)}&gt;
                    &lt;Ionicons
                      name = "md-camera"
                      color = "white"
                      size = {30}
                    /&gt;
                &lt;/TouchableOpacity&gt;
  
                &lt;TouchableOpacity
                  style={{
                    flex: 0.1,
                    alignSelf: 'flex-end',
                    alignItems: 'center',
                  }}
                  onPress={() =&gt; {
                    this.setState({
                      type:
                        this.state.type === Camera.Constants.Type.back
                          ? Camera.Constants.Type.front
                          : Camera.Constants.Type.back,
                    });
                  }}&gt;
                  &lt;Ionicons
                      name = "md-reverse-camera"
                      color = "white"
                      size = {30}
                  /&gt;
                &lt;/TouchableOpacity&gt;
              &lt;/View&gt;
            &lt;/Camera&gt;
          &lt;/View&gt;
        );
      }
    }
  }
  </code></pre>
  
  <p>And this is the code where I try to display the image.</p>
  
  <pre><code>export default class ShowImages extends React.Component{
      render(){ 
         console.log('OK')
         const { navigation } = this.props;
         const paramm = navigation.getParam('photouri');
          return(
              &lt;Content&gt;
                  &lt;View&gt;
                      &lt;Text&gt;
                          paramm: {JSON.stringify(paramm)}
                      &lt;/Text&gt;
                      &lt;Image style={{height: 700, width: 850, alignSelf: "center"}}
                      source={{uri: this.props.navigation.state.paramm.photouri}}
                      resizeMode="contain"/&gt;
                  &lt;/View&gt;
              &lt;/Content&gt;
          )
      }
  }
  </code></pre>
  
  <p>I expect it to navigate to the new page and display the captured 
  image but it gave me the warning. I can't seem to find what is wrong with my code. Can anyone suggest what I should do? Thank you.</p>