Options
All
  • Public
  • Public/Protected
  • All
Menu

Module core/renderer

Index

Type aliases

BreakSegment: { node: MachinatNode; path: string; type: "break"; value: null }

Type declaration

InnerRenderFn: <UnitValue, PartValue>(node: MachinatNode, path: string) => Promise<null | IntermediateSegment<UnitValue, PartValue>[]>

Type declaration

IntermediateSegment<UnitValue, PartValue>: OutputSegment<UnitValue> | BreakSegment | PartSegment<PartValue>

Type parameters

  • UnitValue

  • PartValue = any

OutputSegment<Value>: TextSegment | UnitSegment<Value> | RawSegment<Value> | PauseSegment | ThunkSegment

Type parameters

  • Value

PartSegment<Value>: { node: MachinatNode; path: string; type: "part"; value: Value }

Type parameters

  • Value

Type declaration

PauseSegment: { node: MachinatNode; path: string; type: "pause"; value: null | PauseDelayFn }

Type declaration

RawSegment<Value>: { node: RawElement; path: string; type: "raw"; value: Value }

Type parameters

  • Value

Type declaration

  • node: RawElement
  • path: string
  • type: "raw"
  • value: Value
TextSegment: { node: MachinatNode; path: string; type: "text"; value: string }

Type declaration

ThunkSegment: { node: MachinatNode; path: string; type: "thunk"; value: ThunkEffectFn }

Type declaration

UnitSegment<Value>: { node: MachinatNode; path: string; type: "unit"; value: Value }

Type parameters

  • Value

Type declaration

Functions

  • makeNativeComponent(platform: string): <Component>(componentFn: FunctionOf<Component>) => Component
  • Parameters

    • platform: string

    Returns <Component>(componentFn: FunctionOf<Component>) => Component

      • <Component>(componentFn: FunctionOf<Component>): Component
      • Type parameters

        Parameters

        • componentFn: FunctionOf<Component>

        Returns Component

Generated using TypeDoc