API Reference / @gtkx/navigation / RootNavigator
Interface: RootNavigator
Root navigator used in the app. It's used for the global types in the app.
Users need to use module augmentation to add their navigator type:
ts
// Navigator created with static or dynamic API
const RootStack = createStackNavigator({
// ...
});
type RootStackType = typeof RootStack;
declare module '@react-navigation/core' {
interface RootNavigator extends RootStackType {}
}