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