Is there any way I could access navigator-screen options
object inside Home
component ?
<Stack.Navigator>
<Stack.Screen
name="Home"
component={Home}
options={
{
/** some options... */
}
}
/>
<Stack.Screen name="About" component={About} />
</Stack.Navigator>
Home
function Home() {
/** Get options object here */
return (
/** some jsx */
);
}
I'm using react-navigation 5