Skip to main content

TBlock

export
type TBlock<
> = any

Fields

attributes

attributes: Record<string, string>;

children

children: readonly Array<TNode>;

classes

classes: Array<string>;

displayName

displayName: string;

domNode

domNode: Element;

getReactNativeProps

getReactNativeProps: function __type() : ReactNativePropsSwitch | null;

id

id: string | null;

isUnregistered

isUnregistered: boolean;

markers

markers: Readonly<Markers>;

nodeIndex

nodeIndex: number;

parent

parent: TBlock
  | TDocument
  | TPhrasing
  | null;

styles

styles: TStylesShape;

tagName

tagName: string;

type

type: "block";

Methods

getNativeStyles

function getNativeStyles() : NativeBlockStyles

getWebStyles

function getWebStyles() : Partial<WebTextFlowProperties>
  & CSSProperties
  & Partial<Pick<ViewStyle, "position">>

hasClass

function hasClass(
  className: string
) : boolean

Parameters

  • className

matchContentModel

function matchContentModel(
  contentModel: HTMLContentModel
) : boolean

Parameters

  • contentModel

snapshot

function snapshot(
  options?: Partial<TNodePrintOptions>
) : string

Parameters

  • options