Currently in my expo app, I am utilizing the useRoute() hook within a functional component from react-navigation while also incorporating typescript.
The specific route I am attempting to navigate to only requires one parameter: identificationUrl
However, when trying to navigate to this particular screen, I encounter the following error:
Property 'identificationUrl' does not exist on type 'object'.ts(2339)
const route = useRoute();
const navigation = useNavigation();
const [identificationUrl] = useState(route.params?.identificationUrl);
I am seeking guidance on how to correctly add the type for this parameter to useRoute.