Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference

/react-native

import { … } from "@johnmorrisdotca/hata/react-native";

4757.5 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
createFlagfunctionMake the native flag component from react-native-svg's SvgXml.
NativeFlagPropstypeWhat a native flag takes: <hata-flag>'s code, shape, fit, label, lang, date, variant, which and allowRestricted, and a size (small, medium, large or a number of points, 24 by default) for its height, or a width.
preloadFlagsfunctionLoad flags before a render that cannot wait: a server render to a string, a static build, the first render on the client that must match it.
SvgXmlLiketypeWhat createFlag needs of react-native-svg's SvgXml: a component that takes the SVG as xml, a size and an accessibility label.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.