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