Options
All
  • Public
  • Public/Protected
  • All
Menu

Module core/renderer

Index

Type aliases

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

Type declaration

InnerRenderFn: <UnitValue, PartValue>(node: SociablyNode, 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: SociablyNode; path: string; type: "part"; value: Value }

Type parameters

  • Value

Type declaration

PauseSegment: { node: SociablyNode; 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: SociablyNode; path: string; type: "text"; value: string }

Type declaration

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

Type declaration

UnitSegment<Value>: { node: SociablyNode; 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