Add getOptions to useNavigation
Guilherme Campos Camargo
Hi, currently there's a way of getting the current options through
navigationContainerRef.getCurrentOptions
. The problem however is that it requires us to save the ref somewhere and then providing that to our screens through a context/state.To simplify that process, I think that we could add a getOptions to useNavigation. The usage would be something like:
const { getOptions, setOptions } = useNavigation();
jOWNziE
We'd like to use this for a StandardWrapper component we have.
If options.headerShown, change some padding.