title: Possibly the object is 'null'
body: <p>I'm getting the following Typescript errors in my code<br />
  I'm getting these parameters from a previous screen. As in the example of the react nativigation documentation.
  <a href="https://reactnavigation.org/docs/params/" rel="nofollow noreferrer">https://reactnavigation.org/docs/params/</a></p>
  <pre><code>interface PixChargeAmountProps {
    route?: string;
  }
  
  const Amount: React.FC&lt;PixChargeAmountProps&gt; = ({ route }) =&gt; {
  const { trackOriginFlow } = route.params;
  }
  </code></pre>
  <p><strong>console.log(route) -&gt;</strong></p>
  <pre><code>&quot;params&quot;: {&quot;trackOriginFlow&quot;: &quot;ACTIVITIES_SCREEN_BUTTON&quot;}, &quot;path&quot;: undefined}
  </code></pre>
  <p>I get the following errors from <strong>route.params</strong></p>
  <p>route = Possibly the object is 'null'</p>
  <p>params = Property 'params' does not exist in type 'string'</p>