TypeScript is currently prohibiting usage of options prop as a function, to configure options depending on route instance. Note that it's solely typing issue, the library itself supports it (see useScreens.tsx)
Execution
Adjusted type according to original @react-navigation/coretypes
Screen
options
prop is missingfunction
typeMotivation
TypeScript is currently prohibiting usage of
options
prop as a function, to configure options depending onroute
instance. Note that it's solely typing issue, the library itself supports it (see useScreens.tsx)Execution
Adjusted type according to original
@react-navigation/core
typesTest Plan
No tests required for this typing fix