React Navigation has a dynamic API which makes it possible to achieve advanced and use cases. But it can result in additional boilerplate and duplication. The goal of this static API is to provide a simpler API for simple use cases.
const MyNavigation = createNavigation({
// Type of the navigator, takes the 'createXNavigator' function from respective package
type: createStackNavigator,