Reference
/react-native
import { … } from "@johnmorrisdotca/hata/react-native";
4757.5 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
createFlag | function | Make the native flag component from react-native-svg's SvgXml. |
NativeFlagProps | type | What 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. |
preloadFlags | function | Load 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. |
SvgXmlLike | type | What createFlag needs of react-native-svg's SvgXml: a component that takes the SVG as xml, a size and an accessibility label. |