I am trying to send prop to component inside Drawer.Screen. I am using @react-navigation/drawer. I finally send props to navigation container but I cant send props to component={homeStackScreen} in Drawer.Screen.How can I send props to homeStackScreen class. And it is not written in documentation. need help please.
const Drawer = createDrawerNavigator();
<NavigationContainer>
<Drawer.Navigator initialRouteName="Home">
{props.leftMenu.map((x,index) =>
<Drawer.Screen name={x.name} key = {index} component={homeStackScreen} />
)}
</Drawer.Navigator>
</NavigationContainer>