This might be more of a JavaScript question, but I'm not entirely sure. I'm currently learning React-native. I'm using createStackNavigator for routing, which passes in props for the component.
I'm confused as to why accessing the navigate function is through props.navigation.navigate() but not props.navigation.actions.navigate()?