Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Backend

Sets up the navigators like so:

+----------+
| Screen n <-------+
+----------+       |
                   |
+----------+       |
| Screen 2 <-------+
+----------+       |                   +---------+
                   |             +-----> Modal n |
+----------+       |             |     +---------+
| Screen 1 <-------+             |
+----------+       |             |     +---------+
                   |             +-----> Modal 2 |
            +------+------+      |     +---------+
            | __Screens__ |      |
            +------+------+      |     +---------+
                   ^             +-----> Modal 1 |
                   |             |     +---------+
                   |             |
                   |        +----+-----+
                   +--------+ __Main__ |
                            +----------+

This is required as the modal style can only be set per-navigator not per-screen.

Hierarchy

  • Backend

Implements

  • IBackend

Index

Constructors

constructor

Methods

create

  • create(registered: RegistryIterator, __namedParameters: object): React.ReactNode
  • Parameters

    • registered: RegistryIterator
    • __namedParameters: object
      • defaultRoute: string
      • headerLeft: undefined | ReactElement<any> | IComponentClass<Component<any, object, any>, any> | function
      • headerRight: undefined | ReactElement<any> | IComponentClass<Component<any, object, any>, any> | function
      • theme: undefined | ITheme

    Returns React.ReactNode

fullscreen

  • fullscreen(node: React.ReactNode, __namedParameters: object): IFullscreen
  • Parameters

    • node: React.ReactNode
    • __namedParameters: object

    Returns IFullscreen

modal

  • modal(node: React.ReactNode, __namedParameters: object): IModal
  • Parameters

    • node: React.ReactNode
    • __namedParameters: object

    Returns IModal

pop

  • pop(count: number): void

push

  • push<P>(screen: ScreenComponentClass<P>, props: P): void
  • Type parameters

    • P

    Parameters

    • screen: ScreenComponentClass<P>
    • props: P

    Returns void

replace

  • replace<P>(screen: ScreenComponentClass<P>, props: P): void
  • Type parameters

    • P

    Parameters

    • screen: ScreenComponentClass<P>
    • props: P

    Returns void

reset

  • reset<P>(screen: ScreenComponentClass<P>, props: P): void
  • Type parameters

    • P

    Parameters

    • screen: ScreenComponentClass<P>
    • props: P

    Returns void