リファレンス
/react-native
import { … } from "@johnmorrisdotca/hata/react-native";
最小化と gzip 圧縮をしたサイズは 4757.5 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
createFlag | 関数 | Make the native flag component from react-native-svg's SvgXml. |
NativeFlagProps | 型 | 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 | 関数 | 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 | 型 | What createFlag needs of react-native-svg's SvgXml: a component that takes the SVG as xml, a size and an accessibility label. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。