There is a way to define navigation params typing on useNavigation with typescript ? ```typescript const navigation = useNavigation<{ params: { title: string } }>(); const title = navigation.getParam("title"); // title is inferred as "any" not "string"... ``` This is not working useNavigation because of this (P default value/type) : ```typescript export interface NavigationScreenProp<S, P = NavigationParams> { state: S & { params?: P }; ... ``` there is no access to optional second type on NavigationScreenProp...
There is a way to define navigation params typing on useNavigation with typescript ?
This is not working useNavigation because of this (P default value/type) :
there is no access to optional second type on NavigationScreenProp...