UNPKG

@vnaidin/react-native-cryptocurrency-icons

Version:
23 lines (22 loc) 5.08 kB
import { ImageStyle, StyleProp } from "react-native"; /** * Represents the supported cryptocurrency symbols. * * This type is a union of all supported coin symbol strings. * Used to ensure type safety when specifying a cryptocurrency symbol. */ export type CoinSymbol = "1inch" | "2give" | "0xbtc" | "ftm" | "ton" | "jst" | "usdj" | "busd" | "near" | "fx" | "lbtc" | "boba" | "hbar" | "alpha" | "cel" | "any" | "fet" | "zro" | "xno" | "win" | "aave" | "abt" | "act" | "actn" | "ada" | "add" | "adx" | "ae" | "aeon" | "aeur" | "agi" | "agrs" | "aion" | "algo" | "amb" | "amp" | "ampl" | "ankr" | "ant" | "ape" | "apex" | "appc" | "ardr" | "arg" | "ark" | "arn" | "arnx" | "ary" | "ast" | "atlas" | "atm" | "atom" | "audr" | "aury" | "auto" | "avax" | "aywa" | "bab" | "bal" | "band" | "bat" | "bay" | "bcbc" | "bcc" | "bcd" | "bch" | "bcio" | "bcn" | "bco" | "bcpt" | "bdl" | "beam" | "bela" | "bix" | "blcn" | "blk" | "block" | "blz" | "bnb" | "bnt" | "bnty" | "booty" | "bos" | "bpt" | "bq" | "brd" | "bsd" | "bsv" | "btc" | "btcd" | "btch" | "btcp" | "btcz" | "btdx" | "btg" | "btm" | "bts" | "btt" | "btx" | "burst" | "bze" | "call" | "cc" | "cdn" | "cdt" | "cenz" | "chain" | "chat" | "chips" | "chsb" | "chz" | "cix" | "clam" | "cloak" | "cmm" | "cmt" | "cnd" | "cnx" | "cny" | "cob" | "colx" | "comp" | "coqui" | "cred" | "crpt" | "crv" | "crw" | "cs" | "ctr" | "ctxc" | "cvc" | "d" | "dai" | "dash" | "dat" | "data" | "dbc" | "dcn" | "dcr" | "deez" | "dent" | "dew" | "dgb" | "dgd" | "dlt" | "dnt" | "dock" | "doge" | "dot" | "drgn" | "drop" | "dta" | "dth" | "dtr" | "ebst" | "eca" | "edg" | "edo" | "edoge" | "ela" | "elec" | "elf" | "elix" | "ella" | "emb" | "emc" | "emc2" | "eng" | "enj" | "entrp" | "eon" | "eop" | "eos" | "eqli" | "equa" | "etc" | "eth" | "ethos" | "etn" | "etp" | "eur" | "evx" | "exmo" | "exp" | "fair" | "fct" | "fida" | "fil" | "fjc" | "fldc" | "flo" | "flux" | "fsn" | "ftc" | "fuel" | "fun" | "game" | "gas" | "gbp" | "gbx" | "gbyte" | "generic" | "gin" | "glxt" | "gmr" | "gmt" | "gno" | "gnt" | "gold" | "grc" | "grin" | "grs" | "grt" | "gsc" | "gto" | "gup" | "gusd" | "gvt" | "gxs" | "gzr" | "hight" | "hns" | "hodl" | "hot" | "hpb" | "hsr" | "ht" | "html" | "huc" | "husd" | "hush" | "icn" | "icp" | "icx" | "ignis" | "ilk" | "ink" | "ins" | "ion" | "iop" | "iost" | "iotx" | "iq" | "itc" | "jnt" | "jpy" | "kcs" | "kin" | "klown" | "kmd" | "knc" | "krb" | "ksm" | "lbc" | "lend" | "leo" | "link" | "lkk" | "loom" | "lpt" | "lrc" | "lsk" | "ltc" | "lun" | "maid" | "mana" | "matic" | "max" | "mcap" | "mco" | "mda" | "mds" | "med" | "meetone" | "mft" | "miota" | "mith" | "mkr" | "mln" | "mnx" | "mnz" | "moac" | "mod" | "mona" | "msr" | "mth" | "mtl" | "music" | "mzc" | "nano" | "nas" | "nav" | "ncash" | "ndz" | "nebl" | "neo" | "neos" | "neu" | "nexo" | "ngc" | "nio" | "nkn" | "nlc2" | "nlg" | "nmc" | "nmr" | "npxs" | "ntbc" | "nuls" | "nxs" | "nxt" | "oax" | "ok" | "omg" | "omni" | "one" | "ong" | "ont" | "oot" | "ost" | "ox" | "oxt" | "oxy" | "part" | "pasc" | "pasl" | "pax" | "paxg" | "pay" | "payx" | "pink" | "pirl" | "pivx" | "plr" | "poa" | "poe" | "polis" | "poly" | "pot" | "powr" | "ppc" | "ppp" | "ppt" | "pre" | "prl" | "pungo" | "pura" | "qash" | "qiwi" | "qlc" | "qnt" | "qrl" | "qsp" | "qtum" | "r" | "rads" | "rap" | "ray" | "rcn" | "rdd" | "rdn" | "ren" | "rep" | "repv2" | "req" | "rhoc" | "ric" | "rise" | "rlc" | "rpx" | "rub" | "rvn" | "ryo" | "safe" | "safemoon" | "sai" | "salt" | "san" | "sand" | "sbd" | "sberbank" | "sc" | "ser" | "shib" | "shift" | "sib" | "sin" | "skl" | "sky" | "slr" | "sls" | "smart" | "sngls" | "snm" | "snt" | "snx" | "soc" | "sol" | "spacehbit" | "spank" | "sphtx" | "srn" | "stak" | "start" | "steem" | "storj" | "storm" | "stox" | "stq" | "strat" | "stx" | "sub" | "sumo" | "sun" | "sushi" | "sys" | "taas" | "tau" | "tbx" | "tel" | "ten" | "tern" | "tex" | "tgch" | "theta" | "tix" | "tkn" | "tks" | "tnb" | "tnc" | "tnt" | "tomo" | "tpay" | "trig" | "trtl" | "trx" | "tusd" | "tzc" | "ubq" | "uma" | "uni" | "unity" | "usd" | "usdc" | "usdp" | "usdt" | "utk" | "veri" | "vet" | "via" | "vib" | "vibe" | "vivo" | "vrc" | "vrsc" | "vtc" | "vtho" | "wabi" | "wan" | "waves" | "wax" | "wbtc" | "wgr" | "wicc" | "wings" | "wpr" | "wtc" | "x" | "xas" | "xbc" | "xbp" | "xby" | "xcp" | "xdn" | "xem" | "xin" | "xlm" | "xmcc" | "xmg" | "xmo" | "xmr" | "xmy" | "xp" | "xpa" | "xpm" | "xpr" | "xrp" | "xsg" | "xtz" | "xuc" | "xvc" | "xvg" | "xzc" | "yfi" | "yoyow" | "zcl" | "zec" | "zel" | "zen" | "zest" | "zil" | "zilla" | "zrx"; /** * Props for the CryptoIcon component. * * @property symbol - The symbol of the cryptocurrency to display. Must be one of the supported CoinSymbol values. * @property originSize - The original size of the icon. Allowed values: 32, 64, or 128. * @property size - (Optional) The desired display size of the icon. * @property style - (Optional) Additional style(s) to apply to the icon image. */ export type CryptoIconProps = { symbol: CoinSymbol; originSize: 32 | 64 | 128; size?: number; style?: StyleProp<ImageStyle>; };