DocumentMetadata
An object containing meta-data extracted from resource URL and HTML
<head> element.
Fields#
baseTarget#
baseTarget: "_blank"Â Â | "_self"Â Â | "_parent"Â Â | "_top";How anchors should be actioned on press?
Remarks
By default, renderersProps.a.onPress will always open the
system browser, equivalent to _blank target. However, you can customize
the behavior by providing your own implementation.
baseUrl#
baseUrl: string;The base URL of this resource. It will influence how relative URLs are
resolved such as href and src element properties. By order of
precedence:
baseUrlfrom<base/>html element;baseUrlfromsource.baseUrlprop;baseUrlas origin ofsource.uriprop.
dir#
dir: "ltr" | "rtl";The writing direction of this document, extracted from the dir attribute
of <html/> element.
lang#
lang: string;The language of this document, extracted from the lang attribute of the
<html/> element;
links#
links: Array<Record<string, string>>;A data array comprised of attributes from <link> elements.
meta#
meta: Array<{Â Â name: string;Â Â value: string;}>;A data array comprised of attributes from <meta> elements.
title#
title: string;The content of the <title> element.