Skip to main content

TPhrasing

export
type TPhrasing<
> = any

Fields​

attributes​

attributes: Record<string, string>;

children​

children: readonly Array<TNode>;

classes​

classes: Array<string>;

displayName​

displayName: string;

domNode​

domNode: Element | null;

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 | null;

type​

type: "phrasing";

Methods​

getNativeStyles​

function getNativeStyles() : NativeTextStyles

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