ink-cartridge
    Preparing search index...

    Function registerComponent

    • Register a component as a screen in the navigation tree.

      Type Parameters

      • C extends ComponentType<any>

      Parameters

      • component: C

        The React component (used as the unique token).

      • template: ComponentProps<C> = ...

        Default props for the component. Optional — when omitted, the screen registers with no default props (equivalent to {}).

      • Optionaloptions: RegisterOptions

        Optional registration options (e.g. parent to attach the component under an existing node in the tree).

      Returns void

      If the component has already been registered.