Type alias NavigationProp<ParamList, RouteName, NavigatorID, State, ScreenOptions, EventMap>

NavigationProp<ParamList, RouteName, NavigatorID, State, ScreenOptions, EventMap>: Omit<NavigationHelpersCommon<ParamList, State>, "getParent"> & {
    getParent<T>(id?): T;
    setOptions(options): void;
    setParams(params): void;
} & EventConsumer<EventMap & EventMapCore<State>> & PrivateValueStore<[ParamList, RouteName, EventMap]>

Type Parameters

Type declaration

  • getParent:function
    • Returns the navigation prop from a parent navigator based on the ID. If an ID is provided, the navigation prop from the parent navigator with matching ID (including current) will be returned. If no ID is provided, the navigation prop from the immediate parent navigator will be returned.

      Type Parameters

      Parameters

      • Optional id: NavigatorID

        Optional ID of a parent navigator.

      Returns T

  • setOptions:function
    • Update the options for the route. The options object will be shallow merged with default options object.

      Parameters

      Returns void

  • setParams:function
    • Update the param object for the route. The new params will be shallow merged with the old one.

      Parameters

      Returns void