title: Typescript & react-navigation: Type Information on NavigationContainer ref?
body: <p>I am using react-navigation &amp; I have encountered a use case where I need to navigate from outside a component (navigation after receiving push notification).</p>
  <p>The issue is, when using the <code>navigation.navigate</code> method from inside a component, I get proper Typescript Autocomplete and Intellisense based on all the types defined as per the documentation.</p>
  <p>However, when using the <code>navigationRef.current?.navigate</code> method, type information is absent.</p>
  <p>Is there any way to bring type information to the ref object too?</p>