title: react native expo undefined is note un object (evaluating navigation.state.params)
body: <p>I have passed data from screen to other screen but when I am trying to access it . it keeps saying undefined is not an object (evaluating navigation.state.params).
  I am using N5 . I tried also route.params and it gave me undefined is not an object (evaluating route.params)</p>
  <pre><code>const EditeScreen = ({ navigation , route}) =&gt; {
    // mange textinput height
    const [height, setHeight] = useState(42);
    // manges textInput starts
    const [notes, setNotes] = useState(&quot;&quot;);
    // onSvaeNote
    function onSaveNote(){
      // navigation.state.params.addNotes({notes})
      route.params.addNotes({notes})
      navigation.goBack();
    }
  </code></pre>