Updated fonts

This commit is contained in:
Evan Bacon
2019-03-12 22:44:48 -07:00
parent b8903e4e40
commit b4e07ab3d0
37 changed files with 2842 additions and 427 deletions

View File

@@ -0,0 +1,2 @@
import createMultiStyleIconSet from './build/createMultiStyleIconSet';
export default createMultiStyleIconSet;

View File

@@ -10,6 +10,11 @@ export { default as MaterialIcons } from './MaterialIcons';
export { default as Octicons } from './Octicons';
export { default as SimpleLineIcons } from './SimpleLineIcons';
export { default as Zocial } from './Zocial';
export { default as createIconSet } from './createIconSet';
export { default as createIconSetFromFontello } from './createIconSetFromFontello';
export { default as createIconSetFromIcoMoon } from './createIconSetFromIcoMoon';
export { default as createMultiStyleIconSet } from './createMultiStyleIconSet';
export {
default as createIconSetFromFontello,
} from './createIconSetFromFontello';
export {
default as createIconSetFromIcoMoon,
} from './createIconSetFromIcoMoon';
export { default as createMu } from './createIconSetFromIcoMoon';

View File

@@ -0,0 +1,5 @@
import createMultiStyleIconSet from './vendor/react-native-vector-icons/lib/create-multi-style-icon-set';
export default function(config, expoFontName, expoAssetId) {
return createMultiStyleIconSet(config, expoFontName, expoAssetId);
}

0
src/vendor/react-native-vector-icons/Fonts/AntDesign.ttf vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/Fonts/Entypo.ttf vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/Fonts/EvilIcons.ttf vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/Fonts/FontAwesome.ttf vendored Normal file → Executable file
View File

BIN
src/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf vendored Normal file → Executable file

Binary file not shown.

BIN
src/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf vendored Normal file → Executable file

Binary file not shown.

BIN
src/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf vendored Normal file → Executable file

Binary file not shown.

0
src/vendor/react-native-vector-icons/Fonts/Foundation.ttf vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/Fonts/Ionicons.ttf vendored Normal file → Executable file
View File

BIN
src/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf vendored Normal file → Executable file

Binary file not shown.

0
src/vendor/react-native-vector-icons/Fonts/MaterialIcons.ttf vendored Normal file → Executable file
View File

BIN
src/vendor/react-native-vector-icons/Fonts/Octicons.ttf vendored Normal file → Executable file

Binary file not shown.

0
src/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.ttf vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/Fonts/Zocial.ttf vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/AntDesign.json vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/Entypo.json vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/EvilIcons.json vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/Feather.json vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/FontAwesome.json vendored Normal file → Executable file
View File

161
src/vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free.json vendored Normal file → Executable file
View File

@@ -2,11 +2,13 @@
"500px": 62062,
"accessible-icon": 62312,
"accusoft": 62313,
"acquisitions-incorporated": 63151,
"ad": 63041,
"address-book": 62137,
"address-card": 62139,
"adjust": 61506,
"adn": 61808,
"adobe": 63352,
"adversal": 62314,
"affiliatetheme": 62315,
"air-freshener": 62928,
@@ -60,11 +62,13 @@
"arrows-alt": 61618,
"arrows-alt-h": 62263,
"arrows-alt-v": 62264,
"artstation": 63354,
"assistive-listening-systems": 62114,
"asterisk": 61545,
"asymmetrik": 62322,
"at": 61946,
"atlas": 62808,
"atlassian": 63355,
"atom": 62930,
"audible": 62323,
"audio-description": 62110,
@@ -73,8 +77,11 @@
"aviato": 62497,
"award": 62809,
"aws": 62325,
"baby": 63356,
"baby-carriage": 63357,
"backspace": 62810,
"backward": 61514,
"bacon": 63461,
"balance-scale": 62030,
"ban": 61534,
"band-aid": 62562,
@@ -100,6 +107,7 @@
"bicycle": 61958,
"bimobject": 62328,
"binoculars": 61925,
"biohazard": 63360,
"birthday-cake": 61949,
"bitbucket": 61809,
"bitcoin": 62329,
@@ -107,7 +115,9 @@
"black-tie": 62078,
"blackberry": 62331,
"blender": 62743,
"blender-phone": 63158,
"blind": 62109,
"blog": 63361,
"blogger": 62332,
"blogger-b": 62333,
"bluetooth": 62099,
@@ -118,6 +128,8 @@
"bone": 62935,
"bong": 62812,
"book": 61485,
"book-dead": 63159,
"book-medical": 63462,
"book-open": 62744,
"book-reader": 62938,
"bookmark": 61486,
@@ -127,6 +139,7 @@
"boxes": 62568,
"braille": 62113,
"brain": 62940,
"bread-slice": 63468,
"briefcase": 61617,
"briefcase-medical": 62569,
"broadcast-tower": 62745,
@@ -147,11 +160,16 @@
"calendar": 61747,
"calendar-alt": 61555,
"calendar-check": 62068,
"calendar-day": 63363,
"calendar-minus": 62066,
"calendar-plus": 62065,
"calendar-times": 62067,
"calendar-week": 63364,
"camera": 61488,
"camera-retro": 61571,
"campground": 63163,
"canadian-maple-leaf": 63365,
"candy-cane": 63366,
"cannabis": 62815,
"capsules": 62571,
"car": 61881,
@@ -167,8 +185,11 @@
"caret-square-right": 61778,
"caret-square-up": 61777,
"caret-up": 61656,
"carrot": 63367,
"cart-arrow-down": 61976,
"cart-plus": 61975,
"cash-register": 63368,
"cat": 63166,
"cc-amazon-pay": 62509,
"cc-amex": 61939,
"cc-apple-pay": 62486,
@@ -180,7 +201,9 @@
"cc-stripe": 61941,
"cc-visa": 61936,
"centercode": 62336,
"centos": 63369,
"certificate": 61603,
"chair": 63168,
"chalkboard": 62747,
"chalkboard-teacher": 62748,
"charging-station": 62951,
@@ -192,6 +215,7 @@
"check-circle": 61528,
"check-double": 62816,
"check-square": 61770,
"cheese": 63471,
"chess": 62521,
"chess-bishop": 62522,
"chess-board": 62524,
@@ -214,6 +238,7 @@
"circle": 61713,
"circle-notch": 61902,
"city": 63055,
"clinic-medical": 63474,
"clipboard": 62248,
"clipboard-check": 62572,
"clipboard-list": 62573,
@@ -222,6 +247,13 @@
"closed-captioning": 61962,
"cloud": 61634,
"cloud-download-alt": 62337,
"cloud-meatball": 63291,
"cloud-moon": 63171,
"cloud-moon-rain": 63292,
"cloud-rain": 63293,
"cloud-showers-heavy": 63296,
"cloud-sun": 63172,
"cloud-sun-rain": 63299,
"cloud-upload-alt": 62338,
"cloudscale": 62339,
"cloudsmith": 62340,
@@ -240,13 +272,16 @@
"comment-alt": 62074,
"comment-dollar": 63057,
"comment-dots": 62637,
"comment-medical": 63477,
"comment-slash": 62643,
"comments": 61574,
"comments-dollar": 63059,
"compact-disc": 62751,
"compass": 61774,
"compress": 61542,
"compress-arrows-alt": 63372,
"concierge-bell": 62818,
"confluence": 63373,
"connectdevelop": 61966,
"contao": 62061,
"cookie": 62819,
@@ -268,13 +303,16 @@
"creative-commons-sampling": 62704,
"creative-commons-sampling-plus": 62705,
"creative-commons-share": 62706,
"creative-commons-zero": 62707,
"credit-card": 61597,
"critical-role": 63177,
"crop": 61733,
"crop-alt": 62821,
"cross": 63060,
"crosshairs": 61531,
"crow": 62752,
"crown": 62753,
"crutch": 63479,
"css3": 61756,
"css3-alt": 62347,
"cube": 61874,
@@ -282,17 +320,24 @@
"cut": 61636,
"cuttlefish": 62348,
"d-and-d": 62349,
"d-and-d-beyond": 63178,
"dashcube": 61968,
"database": 61888,
"deaf": 62116,
"delicious": 61861,
"democrat": 63303,
"deploydog": 62350,
"deskpro": 62351,
"desktop": 61704,
"dev": 63180,
"deviantart": 61885,
"dharmachakra": 63061,
"dhl": 63376,
"diagnoses": 62576,
"diaspora": 63377,
"dice": 62754,
"dice-d20": 63183,
"dice-d6": 63185,
"dice-five": 62755,
"dice-four": 62756,
"dice-one": 62757,
@@ -310,6 +355,7 @@
"dna": 62577,
"dochub": 62356,
"docker": 62357,
"dog": 63187,
"dollar-sign": 61781,
"dolly": 62578,
"dolly-flatbed": 62580,
@@ -321,19 +367,25 @@
"download": 61465,
"draft2digital": 62358,
"drafting-compass": 62824,
"dragon": 63189,
"draw-polygon": 62958,
"dribbble": 61821,
"dribbble-square": 62359,
"dropbox": 61803,
"drum": 62825,
"drum-steelpan": 62826,
"drumstick-bite": 63191,
"drupal": 61865,
"dumbbell": 62539,
"dumpster": 63379,
"dumpster-fire": 63380,
"dungeon": 63193,
"dyalog": 62361,
"earlybirds": 62362,
"ebay": 62708,
"edge": 62082,
"edit": 61508,
"egg": 63483,
"eject": 61522,
"elementor": 62512,
"ellipsis-h": 61761,
@@ -350,6 +402,7 @@
"eraser": 61741,
"erlang": 62365,
"ethereum": 62510,
"ethernet": 63382,
"etsy": 62167,
"euro-sign": 61779,
"exchange-alt": 62306,
@@ -368,19 +421,24 @@
"facebook-f": 62366,
"facebook-messenger": 62367,
"facebook-square": 61570,
"fantasy-flight-games": 63196,
"fast-backward": 61513,
"fast-forward": 61520,
"fax": 61868,
"feather": 62765,
"feather-alt": 62827,
"fedex": 63383,
"fedora": 63384,
"female": 61826,
"fighter-jet": 61691,
"figma": 63385,
"file": 61787,
"file-alt": 61788,
"file-archive": 61894,
"file-audio": 61895,
"file-code": 61897,
"file-contract": 62828,
"file-csv": 63197,
"file-download": 62829,
"file-excel": 61891,
"file-export": 62830,
@@ -403,6 +461,7 @@
"filter": 61616,
"fingerprint": 62839,
"fire": 61549,
"fire-alt": 63460,
"fire-extinguisher": 61748,
"firefox": 62057,
"first-aid": 62585,
@@ -410,8 +469,10 @@
"first-order-alt": 62730,
"firstdraft": 62369,
"fish": 62840,
"fist-raised": 63198,
"flag": 61476,
"flag-checkered": 61726,
"flag-usa": 63309,
"flask": 61635,
"flickr": 61806,
"flipboard": 62541,
@@ -452,7 +513,9 @@
"get-pocket": 62053,
"gg": 62048,
"gg-circle": 62049,
"ghost": 63202,
"gift": 61547,
"gifts": 63388,
"git": 61907,
"git-square": 61906,
"github": 61595,
@@ -461,8 +524,10 @@
"gitkraken": 62374,
"gitlab": 62102,
"gitter": 62502,
"glass-cheers": 63391,
"glass-martini": 61440,
"glass-martini-alt": 62843,
"glass-whiskey": 63392,
"glasses": 62768,
"glide": 62117,
"glide-g": 62118,
@@ -470,6 +535,7 @@
"globe-africa": 62844,
"globe-americas": 62845,
"globe-asia": 62846,
"globe-europe": 63394,
"gofore": 62375,
"golf-ball": 62544,
"goodreads": 62376,
@@ -502,19 +568,25 @@
"grin-tongue-wink": 62859,
"grin-wink": 62860,
"grip-horizontal": 62861,
"grip-lines": 63396,
"grip-lines-vertical": 63397,
"grip-vertical": 62862,
"gripfire": 62380,
"grunt": 62381,
"guitar": 63398,
"gulp": 62382,
"h-square": 61693,
"hacker-news": 61908,
"hacker-news-square": 62383,
"hackerrank": 62967,
"hamburger": 63493,
"hammer": 63203,
"hamsa": 63077,
"hand-holding": 62653,
"hand-holding-heart": 62654,
"hand-holding-usd": 62656,
"hand-lizard": 62040,
"hand-middle-finger": 63494,
"hand-paper": 62038,
"hand-peace": 62043,
"hand-point-down": 61607,
@@ -528,7 +600,10 @@
"hands": 62658,
"hands-helping": 62660,
"handshake": 62133,
"hanukiah": 63206,
"hard-hat": 63495,
"hashtag": 62098,
"hat-wizard": 63208,
"haykal": 63078,
"hdd": 61600,
"heading": 61916,
@@ -536,33 +611,45 @@
"headphones-alt": 62863,
"headset": 62864,
"heart": 61444,
"heart-broken": 63401,
"heartbeat": 61982,
"helicopter": 62771,
"highlighter": 62865,
"hiking": 63212,
"hippo": 63213,
"hips": 62546,
"hire-a-helper": 62384,
"history": 61914,
"hockey-puck": 62547,
"holly-berry": 63402,
"home": 61461,
"hooli": 62503,
"hornbill": 62866,
"horse": 63216,
"horse-head": 63403,
"hospital": 61688,
"hospital-alt": 62589,
"hospital-symbol": 62590,
"hot-tub": 62867,
"hotdog": 63503,
"hotel": 62868,
"hotjar": 62385,
"hourglass": 62036,
"hourglass-end": 62035,
"hourglass-half": 62034,
"hourglass-start": 62033,
"house-damage": 63217,
"houzz": 62076,
"hryvnia": 63218,
"html5": 61755,
"hubspot": 62386,
"i-cursor": 62022,
"ice-cream": 63504,
"icicles": 63405,
"id-badge": 62145,
"id-card": 62146,
"id-card-alt": 62591,
"igloo": 63406,
"image": 61502,
"images": 62210,
"imdb": 62168,
@@ -573,7 +660,9 @@
"info": 61737,
"info-circle": 61530,
"instagram": 61805,
"intercom": 63407,
"internet-explorer": 62059,
"invision": 63408,
"ioxhost": 61960,
"italic": 61491,
"itunes": 62388,
@@ -582,6 +671,7 @@
"jedi": 63081,
"jedi-order": 62734,
"jenkins": 62390,
"jira": 63409,
"joget": 62391,
"joint": 62869,
"joomla": 61866,
@@ -607,6 +697,7 @@
"language": 61867,
"laptop": 61705,
"laptop-code": 62972,
"laptop-medical": 63506,
"laravel": 62397,
"lastfm": 61954,
"lastfm-square": 61955,
@@ -667,6 +758,7 @@
"mars-stroke": 61993,
"mars-stroke-h": 61995,
"mars-stroke-v": 61994,
"mask": 63226,
"mastodon": 62710,
"maxcdn": 61750,
"medal": 62882,
@@ -681,8 +773,10 @@
"meh-blank": 62884,
"meh-rolling-eyes": 62885,
"memory": 62776,
"mendeley": 63411,
"menorah": 63094,
"mercury": 61987,
"meteor": 63315,
"microchip": 62171,
"microphone": 61744,
"microphone-alt": 62409,
@@ -693,6 +787,7 @@
"minus": 61544,
"minus-circle": 61526,
"minus-square": 61766,
"mitten": 63413,
"mix": 62411,
"mixcloud": 62089,
"mizuni": 62412,
@@ -711,10 +806,13 @@
"mortar-pestle": 62887,
"mosque": 63096,
"motorcycle": 61980,
"mountain": 63228,
"mouse-pointer": 62021,
"mug-hot": 63414,
"music": 61441,
"napster": 62418,
"neos": 62994,
"network-wired": 63231,
"neuter": 61996,
"newspaper": 61930,
"nimblr": 62888,
@@ -738,9 +836,11 @@
"opera": 62058,
"optin-monster": 62012,
"osi": 62490,
"otter": 63232,
"outdent": 61499,
"page4": 62423,
"pagelines": 61836,
"pager": 63509,
"paint-brush": 61948,
"paint-roller": 62890,
"palette": 62783,
@@ -767,10 +867,13 @@
"pen-square": 61771,
"pencil-alt": 62211,
"pencil-ruler": 62894,
"penny-arcade": 63236,
"people-carry": 62670,
"pepper-hot": 63510,
"percent": 62101,
"percentage": 62785,
"periscope": 62426,
"person-booth": 63318,
"phabricator": 62427,
"phoenix-framework": 62428,
"phoenix-squadron": 62737,
@@ -788,6 +891,7 @@
"pinterest": 61650,
"pinterest-p": 62001,
"pinterest-square": 61651,
"pizza-slice": 63512,
"place-of-worship": 63103,
"plane": 61554,
"plane-arrival": 62895,
@@ -803,6 +907,7 @@
"poll": 63105,
"poll-h": 63106,
"poo": 62206,
"poo-storm": 63322,
"poop": 63001,
"portrait": 62432,
"pound-sign": 61780,
@@ -830,9 +935,14 @@
"quote-right": 61710,
"quran": 63111,
"r-project": 62711,
"radiation": 63417,
"radiation-alt": 63418,
"rainbow": 63323,
"random": 61556,
"raspberry-pi": 63419,
"ravelry": 62169,
"react": 62491,
"reacteurope": 63325,
"readme": 62677,
"rebel": 61904,
"receipt": 62787,
@@ -841,19 +951,22 @@
"reddit": 61857,
"reddit-alien": 62081,
"reddit-square": 61858,
"redhat": 63420,
"redo": 61470,
"redo-alt": 62201,
"registered": 62045,
"rendact": 62436,
"renren": 61835,
"reply": 62437,
"reply-all": 61730,
"replyd": 62438,
"republican": 63326,
"researchgate": 62712,
"resolving": 62439,
"restroom": 63421,
"retweet": 61561,
"rev": 62898,
"ribbon": 62678,
"ring": 63243,
"road": 61464,
"robot": 62788,
"rocket": 61749,
@@ -867,16 +980,21 @@
"ruler-combined": 62790,
"ruler-horizontal": 62791,
"ruler-vertical": 62792,
"running": 63244,
"rupee-sign": 61782,
"sad-cry": 62899,
"sad-tear": 62900,
"safari": 62055,
"sass": 62494,
"satellite": 63423,
"satellite-dish": 63424,
"save": 61639,
"schlix": 62442,
"school": 62793,
"screwdriver": 62794,
"scribd": 62090,
"scroll": 63246,
"sd-card": 63426,
"search": 61442,
"search-dollar": 63112,
"search-location": 63113,
@@ -911,26 +1029,39 @@
"sign-out-alt": 62197,
"signal": 61458,
"signature": 62903,
"sim-card": 63428,
"simplybuilt": 61973,
"sistrix": 62446,
"sitemap": 61672,
"sith": 62738,
"skating": 63429,
"sketch": 63430,
"skiing": 63433,
"skiing-nordic": 63434,
"skull": 62796,
"skull-crossbones": 63252,
"skyatlas": 61974,
"skype": 61822,
"slack": 61848,
"slack-hash": 62447,
"slash": 63253,
"sleigh": 63436,
"sliders-h": 61918,
"slideshare": 61927,
"smile": 61720,
"smile-beam": 62904,
"smile-wink": 62682,
"smog": 63327,
"smoking": 62605,
"smoking-ban": 62797,
"sms": 63437,
"snapchat": 62123,
"snapchat-ghost": 62124,
"snapchat-square": 62125,
"snowboarding": 63438,
"snowflake": 62172,
"snowman": 63440,
"snowplow": 63442,
"socks": 63126,
"solar-panel": 62906,
"sort": 61660,
@@ -943,9 +1074,11 @@
"sort-numeric-up": 61795,
"sort-up": 61662,
"soundcloud": 61886,
"sourcetree": 63443,
"spa": 62907,
"space-shuttle": 61847,
"speakap": 62451,
"spider": 63255,
"spinner": 61712,
"splotch": 62908,
"spotify": 61884,
@@ -996,6 +1129,7 @@
"superscript": 61739,
"supple": 62457,
"surprise": 62914,
"suse": 63446,
"swatchbook": 62915,
"swimmer": 62916,
"swimming-pool": 62917,
@@ -1019,7 +1153,10 @@
"teeth-open": 63023,
"telegram": 62150,
"telegram-plane": 62462,
"temperature-high": 63337,
"temperature-low": 63339,
"tencent-weibo": 61909,
"tenge": 63447,
"terminal": 61728,
"text-height": 61492,
"text-width": 61493,
@@ -1036,6 +1173,7 @@
"thermometer-half": 62153,
"thermometer-quarter": 62154,
"thermometer-three-quarters": 62152,
"think-peaks": 63281,
"thumbs-down": 61797,
"thumbs-up": 61796,
"thumbtack": 61581,
@@ -1047,18 +1185,25 @@
"tired": 62920,
"toggle-off": 61956,
"toggle-on": 61957,
"toilet": 63448,
"toilet-paper": 63262,
"toolbox": 62802,
"tools": 63449,
"tooth": 62921,
"torah": 63136,
"torii-gate": 63137,
"tractor": 63266,
"trade-federation": 62739,
"trademark": 62044,
"traffic-light": 63031,
"train": 62008,
"tram": 63450,
"transgender": 61988,
"transgender-alt": 61989,
"trash": 61944,
"trash-alt": 62189,
"trash-restore": 63529,
"trash-restore-alt": 63530,
"tree": 61883,
"trello": 61825,
"tripadvisor": 62050,
@@ -1078,6 +1223,7 @@
"twitter-square": 61569,
"typo3": 62507,
"uber": 62466,
"ubuntu": 63455,
"uikit": 62467,
"umbrella": 61673,
"umbrella-beach": 62922,
@@ -1092,6 +1238,7 @@
"unlock-alt": 61758,
"untappd": 62469,
"upload": 61587,
"ups": 63456,
"usb": 62087,
"user": 61447,
"user-alt": 62470,
@@ -1104,10 +1251,12 @@
"user-edit": 62719,
"user-friends": 62720,
"user-graduate": 62721,
"user-injured": 63272,
"user-lock": 62722,
"user-md": 61680,
"user-minus": 62723,
"user-ninja": 62724,
"user-nurse": 63535,
"user-plus": 62004,
"user-secret": 61979,
"user-shield": 62725,
@@ -1117,6 +1266,7 @@
"user-times": 62005,
"users": 61632,
"users-cog": 62729,
"usps": 63457,
"ussunnah": 62471,
"utensil-spoon": 62181,
"utensils": 62183,
@@ -1142,12 +1292,16 @@
"vnv": 62475,
"volleyball-ball": 62559,
"volume-down": 61479,
"volume-mute": 63145,
"volume-off": 61478,
"volume-up": 61480,
"vote-yea": 63346,
"vr-cardboard": 63273,
"vuejs": 62495,
"walking": 62804,
"wallet": 62805,
"warehouse": 62612,
"water": 63347,
"weebly": 62924,
"weibo": 61834,
"weight": 62614,
@@ -1159,14 +1313,17 @@
"whmcs": 62477,
"wifi": 61931,
"wikipedia-w": 62054,
"wind": 63278,
"window-close": 62480,
"window-maximize": 62160,
"window-minimize": 62161,
"window-restore": 62162,
"windows": 61818,
"wine-bottle": 63279,
"wine-glass": 62691,
"wine-glass-alt": 62926,
"wix": 62927,
"wizards-of-the-coast": 63280,
"wolf-pack-battalion": 62740,
"won-sign": 61785,
"wordpress": 61850,
@@ -1174,6 +1331,7 @@
"wpbeginner": 62103,
"wpexplorer": 62174,
"wpforms": 62104,
"wpressr": 62436,
"wrench": 61613,
"x-ray": 62615,
"xbox": 62482,
@@ -1183,6 +1341,7 @@
"yahoo": 61854,
"yandex": 62483,
"yandex-international": 62484,
"yarn": 63459,
"yelp": 61929,
"yen-sign": 61783,
"yin-yang": 63149,

View File

@@ -3,7 +3,9 @@
"500px",
"accessible-icon",
"accusoft",
"acquisitions-incorporated",
"adn",
"adobe",
"adversal",
"affiliatetheme",
"algolia",
@@ -20,7 +22,9 @@
"apper",
"apple-pay",
"apple",
"artstation",
"asymmetrik",
"atlassian",
"audible",
"autoprefixer",
"avianex",
@@ -42,6 +46,7 @@
"btc",
"buromobelexperte",
"buysellads",
"canadian-maple-leaf",
"cc-amazon-pay",
"cc-amex",
"cc-apple-pay",
@@ -53,12 +58,14 @@
"cc-stripe",
"cc-visa",
"centercode",
"centos",
"chrome",
"cloudscale",
"cloudsmith",
"cloudversify",
"codepen",
"codiepie",
"confluence",
"connectdevelop",
"contao",
"cpanel",
@@ -74,16 +81,22 @@
"creative-commons-sampling-plus",
"creative-commons-sampling",
"creative-commons-share",
"creative-commons-zero",
"creative-commons",
"critical-role",
"css3-alt",
"css3",
"cuttlefish",
"d-and-d-beyond",
"d-and-d",
"dashcube",
"delicious",
"deploydog",
"deskpro",
"dev",
"deviantart",
"dhl",
"diaspora",
"digg",
"digital-ocean",
"discord",
@@ -112,6 +125,10 @@
"facebook-messenger",
"facebook-square",
"facebook",
"fantasy-flight-games",
"fedex",
"fedora",
"figma",
"firefox",
"first-order-alt",
"first-order",
@@ -175,13 +192,16 @@
"hubspot",
"imdb",
"instagram",
"intercom",
"internet-explorer",
"invision",
"ioxhost",
"itunes-note",
"itunes",
"java",
"jedi-order",
"jenkins",
"jira",
"joget",
"joomla",
"js-square",
@@ -216,6 +236,7 @@
"medrt",
"meetup",
"megaport",
"mendeley",
"microsoft",
"mix",
"mixcloud",
@@ -244,6 +265,7 @@
"palfed",
"patreon",
"paypal",
"penny-arcade",
"periscope",
"phabricator",
"phoenix-framework",
@@ -264,15 +286,17 @@
"quinscape",
"quora",
"r-project",
"raspberry-pi",
"ravelry",
"react",
"reacteurope",
"readme",
"rebel",
"red-river",
"reddit-alien",
"reddit-square",
"reddit",
"rendact",
"redhat",
"renren",
"replyd",
"researchgate",
@@ -293,6 +317,7 @@
"simplybuilt",
"sistrix",
"sith",
"sketch",
"skyatlas",
"skype",
"slack-hash",
@@ -302,6 +327,7 @@
"snapchat-square",
"snapchat",
"soundcloud",
"sourcetree",
"speakap",
"spotify",
"squarespace",
@@ -320,6 +346,7 @@
"stumbleupon",
"superpowers",
"supple",
"suse",
"teamspeak",
"telegram-plane",
"telegram",
@@ -327,6 +354,7 @@
"the-red-yeti",
"themeco",
"themeisle",
"think-peaks",
"trade-federation",
"trello",
"tripadvisor",
@@ -337,10 +365,13 @@
"twitter",
"typo3",
"uber",
"ubuntu",
"uikit",
"uniregistry",
"untappd",
"ups",
"usb",
"usps",
"ussunnah",
"vaadin",
"viacoin",
@@ -363,12 +394,14 @@
"wikipedia-w",
"windows",
"wix",
"wizards-of-the-coast",
"wolf-pack-battalion",
"wordpress-simple",
"wordpress",
"wpbeginner",
"wpexplorer",
"wpforms",
"wpressr",
"xbox",
"xing-square",
"xing",
@@ -376,6 +409,7 @@
"yahoo",
"yandex-international",
"yandex",
"yarn",
"yelp",
"yoast",
"youtube-square",
@@ -585,8 +619,11 @@
"atom",
"audio-description",
"award",
"baby-carriage",
"baby",
"backspace",
"backward",
"bacon",
"balance-scale",
"ban",
"band-aid",
@@ -608,14 +645,19 @@
"bible",
"bicycle",
"binoculars",
"biohazard",
"birthday-cake",
"blender-phone",
"blender",
"blind",
"blog",
"bold",
"bolt",
"bomb",
"bone",
"bong",
"book-dead",
"book-medical",
"book-open",
"book-reader",
"book",
@@ -626,6 +668,7 @@
"boxes",
"braille",
"brain",
"bread-slice",
"briefcase-medical",
"briefcase",
"broadcast-tower",
@@ -642,12 +685,16 @@
"calculator",
"calendar-alt",
"calendar-check",
"calendar-day",
"calendar-minus",
"calendar-plus",
"calendar-times",
"calendar-week",
"calendar",
"camera-retro",
"camera",
"campground",
"candy-cane",
"cannabis",
"capsules",
"car-alt",
@@ -663,9 +710,13 @@
"caret-square-right",
"caret-square-up",
"caret-up",
"carrot",
"cart-arrow-down",
"cart-plus",
"cash-register",
"cat",
"certificate",
"chair",
"chalkboard-teacher",
"chalkboard",
"charging-station",
@@ -677,6 +728,7 @@
"check-double",
"check-square",
"check",
"cheese",
"chess-bishop",
"chess-board",
"chess-king",
@@ -698,6 +750,7 @@
"circle-notch",
"circle",
"city",
"clinic-medical",
"clipboard-check",
"clipboard-list",
"clipboard",
@@ -705,6 +758,13 @@
"clone",
"closed-captioning",
"cloud-download-alt",
"cloud-meatball",
"cloud-moon-rain",
"cloud-moon",
"cloud-rain",
"cloud-showers-heavy",
"cloud-sun-rain",
"cloud-sun",
"cloud-upload-alt",
"cloud",
"cocktail",
@@ -718,12 +778,14 @@
"comment-alt",
"comment-dollar",
"comment-dots",
"comment-medical",
"comment-slash",
"comment",
"comments-dollar",
"comments",
"compact-disc",
"compass",
"compress-arrows-alt",
"compress",
"concierge-bell",
"cookie-bite",
@@ -738,14 +800,18 @@
"crosshairs",
"crow",
"crown",
"crutch",
"cube",
"cubes",
"cut",
"database",
"deaf",
"democrat",
"desktop",
"dharmachakra",
"diagnoses",
"dice-d20",
"dice-d6",
"dice-five",
"dice-four",
"dice-one",
@@ -758,6 +824,7 @@
"divide",
"dizzy",
"dna",
"dog",
"dollar-sign",
"dolly-flatbed",
"dolly",
@@ -768,11 +835,17 @@
"dove",
"download",
"drafting-compass",
"dragon",
"draw-polygon",
"drum-steelpan",
"drum",
"drumstick-bite",
"dumbbell",
"dumpster-fire",
"dumpster",
"dungeon",
"edit",
"egg",
"eject",
"ellipsis-h",
"ellipsis-v",
@@ -782,6 +855,7 @@
"envelope",
"equals",
"eraser",
"ethernet",
"euro-sign",
"exchange-alt",
"exclamation-circle",
@@ -806,6 +880,7 @@
"file-audio",
"file-code",
"file-contract",
"file-csv",
"file-download",
"file-excel",
"file-export",
@@ -828,11 +903,14 @@
"film",
"filter",
"fingerprint",
"fire-alt",
"fire-extinguisher",
"fire",
"first-aid",
"fish",
"fist-raised",
"flag-checkered",
"flag-usa",
"flag",
"flask",
"flushed",
@@ -854,13 +932,18 @@
"gavel",
"gem",
"genderless",
"ghost",
"gift",
"gifts",
"glass-cheers",
"glass-martini-alt",
"glass-martini",
"glass-whiskey",
"glasses",
"globe-africa",
"globe-americas",
"globe-asia",
"globe-europe",
"globe",
"golf-ball",
"gopuram",
@@ -882,13 +965,19 @@
"grin-wink",
"grin",
"grip-horizontal",
"grip-lines-vertical",
"grip-lines",
"grip-vertical",
"guitar",
"h-square",
"hamburger",
"hammer",
"hamsa",
"hand-holding-heart",
"hand-holding-usd",
"hand-holding",
"hand-lizard",
"hand-middle-finger",
"hand-paper",
"hand-peace",
"hand-point-down",
@@ -902,33 +991,48 @@
"hands-helping",
"hands",
"handshake",
"hanukiah",
"hard-hat",
"hashtag",
"hat-wizard",
"haykal",
"hdd",
"heading",
"headphones-alt",
"headphones",
"headset",
"heart-broken",
"heart",
"heartbeat",
"helicopter",
"highlighter",
"hiking",
"hippo",
"history",
"hockey-puck",
"holly-berry",
"home",
"horse-head",
"horse",
"hospital-alt",
"hospital-symbol",
"hospital",
"hot-tub",
"hotdog",
"hotel",
"hourglass-end",
"hourglass-half",
"hourglass-start",
"hourglass",
"house-damage",
"hryvnia",
"i-cursor",
"ice-cream",
"icicles",
"id-badge",
"id-card-alt",
"id-card",
"igloo",
"image",
"images",
"inbox",
@@ -952,6 +1056,7 @@
"landmark",
"language",
"laptop-code",
"laptop-medical",
"laptop",
"laugh-beam",
"laugh-squint",
@@ -998,6 +1103,7 @@
"mars-stroke-v",
"mars-stroke",
"mars",
"mask",
"medal",
"medkit",
"meh-blank",
@@ -1006,6 +1112,7 @@
"memory",
"menorah",
"mercury",
"meteor",
"microchip",
"microphone-alt-slash",
"microphone-alt",
@@ -1015,6 +1122,7 @@
"minus-circle",
"minus-square",
"minus",
"mitten",
"mobile-alt",
"mobile",
"money-bill-alt",
@@ -1028,8 +1136,11 @@
"mortar-pestle",
"mosque",
"motorcycle",
"mountain",
"mouse-pointer",
"mug-hot",
"music",
"network-wired",
"neuter",
"newspaper",
"not-equal",
@@ -1038,7 +1149,9 @@
"object-ungroup",
"oil-can",
"om",
"otter",
"outdent",
"pager",
"paint-brush",
"paint-roller",
"palette",
@@ -1063,14 +1176,17 @@
"pencil-alt",
"pencil-ruler",
"people-carry",
"pepper-hot",
"percent",
"percentage",
"person-booth",
"phone-slash",
"phone-square",
"phone-volume",
"phone",
"piggy-bank",
"pills",
"pizza-slice",
"place-of-worship",
"plane-arrival",
"plane-departure",
@@ -1084,6 +1200,7 @@
"podcast",
"poll-h",
"poll",
"poo-storm",
"poo",
"poop",
"portrait",
@@ -1105,6 +1222,9 @@
"quote-left",
"quote-right",
"quran",
"radiation-alt",
"radiation",
"rainbow",
"random",
"receipt",
"recycle",
@@ -1113,8 +1233,11 @@
"registered",
"reply-all",
"reply",
"republican",
"restroom",
"retweet",
"ribbon",
"ring",
"road",
"robot",
"rocket",
@@ -1126,12 +1249,17 @@
"ruler-horizontal",
"ruler-vertical",
"ruler",
"running",
"rupee-sign",
"sad-cry",
"sad-tear",
"satellite-dish",
"satellite",
"save",
"school",
"screwdriver",
"scroll",
"sd-card",
"search-dollar",
"search-location",
"search-minus",
@@ -1160,15 +1288,27 @@
"sign",
"signal",
"signature",
"sim-card",
"sitemap",
"skating",
"skiing-nordic",
"skiing",
"skull-crossbones",
"skull",
"slash",
"sleigh",
"sliders-h",
"smile-beam",
"smile-wink",
"smile",
"smog",
"smoking-ban",
"smoking",
"sms",
"snowboarding",
"snowflake",
"snowman",
"snowplow",
"socks",
"solar-panel",
"sort-alpha-down",
@@ -1182,6 +1322,7 @@
"sort",
"spa",
"space-shuttle",
"spider",
"spinner",
"splotch",
"spray-can",
@@ -1235,6 +1376,9 @@
"taxi",
"teeth-open",
"teeth",
"temperature-high",
"temperature-low",
"tenge",
"terminal",
"text-height",
"text-width",
@@ -1259,16 +1403,23 @@
"tired",
"toggle-off",
"toggle-on",
"toilet-paper",
"toilet",
"toolbox",
"tools",
"tooth",
"torah",
"torii-gate",
"tractor",
"trademark",
"traffic-light",
"train",
"tram",
"transgender-alt",
"transgender",
"trash-alt",
"trash-restore-alt",
"trash-restore",
"trash",
"tree",
"trophy",
@@ -1301,10 +1452,12 @@
"user-edit",
"user-friends",
"user-graduate",
"user-injured",
"user-lock",
"user-md",
"user-minus",
"user-ninja",
"user-nurse",
"user-plus",
"user-secret",
"user-shield",
@@ -1328,19 +1481,25 @@
"vihara",
"volleyball-ball",
"volume-down",
"volume-mute",
"volume-off",
"volume-up",
"vote-yea",
"vr-cardboard",
"walking",
"wallet",
"warehouse",
"water",
"weight-hanging",
"weight",
"wheelchair",
"wifi",
"wind",
"window-close",
"window-maximize",
"window-minimize",
"window-restore",
"wine-bottle",
"wine-glass-alt",
"wine-glass",
"won-sign",
@@ -1349,4 +1508,4 @@
"yen-sign",
"yin-yang"
]
}
}

392
src/vendor/react-native-vector-icons/glyphmaps/FontAwesome5Pro.json vendored Normal file → Executable file

File diff suppressed because it is too large Load Diff

1108
src/vendor/react-native-vector-icons/glyphmaps/FontAwesome5Pro_meta.json vendored Normal file → Executable file

File diff suppressed because it is too large Load Diff

0
src/vendor/react-native-vector-icons/glyphmaps/Foundation.json vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/Ionicons.json vendored Normal file → Executable file
View File

File diff suppressed because it is too large Load Diff

0
src/vendor/react-native-vector-icons/glyphmaps/MaterialIcons.json vendored Normal file → Executable file
View File

357
src/vendor/react-native-vector-icons/glyphmaps/Octicons.json vendored Normal file → Executable file
View File

@@ -1,179 +1,186 @@
{
"alert": 61696,
"archive": 61697,
"arrow-down": 61698,
"arrow-left": 61699,
"arrow-right": 61700,
"arrow-small-down": 61701,
"arrow-small-left": 61702,
"arrow-small-right": 61703,
"arrow-small-up": 61704,
"arrow-up": 61705,
"beaker": 61706,
"bell": 61707,
"bold": 61708,
"book": 61709,
"bookmark": 61710,
"briefcase": 61711,
"broadcast": 61712,
"browser": 61713,
"bug": 61714,
"calendar": 61715,
"check": 61716,
"checklist": 61717,
"chevron-down": 61718,
"chevron-left": 61719,
"chevron-right": 61720,
"chevron-up": 61721,
"circle-slash": 61722,
"circuit-board": 61723,
"clippy": 61724,
"clock": 61725,
"cloud-download": 61726,
"cloud-upload": 61727,
"code": 61728,
"comment": 61729,
"comment-discussion": 61730,
"credit-card": 61731,
"dash": 61732,
"dashboard": 61733,
"database": 61734,
"desktop-download": 61735,
"device-camera": 61736,
"device-camera-video": 61737,
"device-desktop": 61738,
"device-mobile": 61739,
"diff": 61740,
"diff-added": 61741,
"diff-ignored": 61742,
"diff-modified": 61743,
"diff-removed": 61744,
"diff-renamed": 61745,
"ellipsis": 61746,
"eye": 61747,
"file": 61748,
"file-binary": 61749,
"file-code": 61750,
"file-directory": 61751,
"file-media": 61752,
"file-pdf": 61753,
"file-submodule": 61754,
"file-symlink-directory": 61755,
"file-symlink-file": 61756,
"file-zip": 61757,
"flame": 61758,
"fold": 61759,
"gear": 61760,
"gift": 61761,
"gist": 61762,
"gist-secret": 61763,
"git-branch": 61764,
"git-commit": 61765,
"git-compare": 61766,
"git-merge": 61767,
"git-pull-request": 61768,
"globe": 61769,
"grabber": 61770,
"graph": 61771,
"heart": 61772,
"history": 61773,
"home": 61774,
"horizontal-rule": 61775,
"hubot": 61776,
"inbox": 61777,
"info": 61778,
"issue-closed": 61779,
"issue-opened": 61780,
"issue-reopened": 61781,
"italic": 61782,
"jersey": 61783,
"kebab-horizontal": 61784,
"kebab-vertical": 61785,
"key": 61786,
"keyboard": 61787,
"law": 61788,
"light-bulb": 61789,
"link": 61790,
"link-external": 61791,
"list-ordered": 61792,
"list-unordered": 61793,
"location": 61794,
"lock": 61795,
"logo-gist": 61796,
"logo-github": 61797,
"mail": 61798,
"mail-read": 61799,
"mark-github": 61800,
"markdown": 61801,
"megaphone": 61802,
"mention": 61803,
"milestone": 61804,
"mirror": 61805,
"mortar-board": 61806,
"mute": 61807,
"no-newline": 61808,
"note": 61809,
"octoface": 61810,
"organization": 61811,
"package": 61812,
"paintcan": 61813,
"pencil": 61814,
"person": 61815,
"pin": 61816,
"plug": 61817,
"plus": 61818,
"plus-small": 61819,
"primitive-dot": 61820,
"primitive-square": 61821,
"project": 61822,
"pulse": 61823,
"question": 61824,
"quote": 61825,
"radio-tower": 61826,
"reply": 61827,
"repo": 61828,
"repo-clone": 61829,
"repo-force-push": 61830,
"repo-forked": 61831,
"repo-pull": 61832,
"repo-push": 61833,
"report": 61834,
"rocket": 61835,
"rss": 61836,
"ruby": 61837,
"screen-full": 61838,
"screen-normal": 61839,
"search": 61840,
"server": 61841,
"settings": 61842,
"shield": 61843,
"sign-in": 61844,
"sign-out": 61845,
"smiley": 61846,
"squirrel": 61847,
"star": 61848,
"stop": 61849,
"sync": 61850,
"tag": 61851,
"tasklist": 61852,
"telescope": 61853,
"terminal": 61854,
"text-size": 61855,
"three-bars": 61856,
"thumbsdown": 61857,
"thumbsup": 61858,
"tools": 61859,
"trashcan": 61860,
"triangle-down": 61861,
"triangle-left": 61862,
"triangle-right": 61863,
"triangle-up": 61864,
"unfold": 61865,
"unmute": 61866,
"unverified": 61867,
"verified": 61868,
"versions": 61869,
"watch": 61870,
"x": 61871,
"zap": 61872
"arrow-both": 61698,
"arrow-down": 61699,
"arrow-left": 61700,
"arrow-right": 61701,
"arrow-small-down": 61702,
"arrow-small-left": 61703,
"arrow-small-right": 61704,
"arrow-small-up": 61705,
"arrow-up": 61706,
"beaker": 61707,
"bell": 61708,
"bold": 61709,
"book": 61710,
"bookmark": 61711,
"briefcase": 61712,
"broadcast": 61713,
"browser": 61714,
"bug": 61715,
"calendar": 61716,
"check": 61717,
"checklist": 61718,
"chevron-down": 61719,
"chevron-left": 61720,
"chevron-right": 61721,
"chevron-up": 61722,
"circle-slash": 61723,
"circuit-board": 61724,
"clippy": 61725,
"clock": 61726,
"cloud-download": 61727,
"cloud-upload": 61728,
"code": 61729,
"comment": 61730,
"comment-discussion": 61731,
"credit-card": 61732,
"dash": 61733,
"dashboard": 61734,
"database": 61735,
"desktop-download": 61736,
"device-camera": 61737,
"device-camera-video": 61738,
"device-desktop": 61739,
"device-mobile": 61740,
"diff": 61741,
"diff-added": 61742,
"diff-ignored": 61743,
"diff-modified": 61744,
"diff-removed": 61745,
"diff-renamed": 61746,
"ellipsis": 61747,
"eye": 61748,
"eye-closed": 61749,
"file": 61750,
"file-binary": 61751,
"file-code": 61752,
"file-directory": 61753,
"file-media": 61754,
"file-pdf": 61755,
"file-submodule": 61756,
"file-symlink-directory": 61757,
"file-symlink-file": 61758,
"file-zip": 61759,
"flame": 61760,
"fold": 61761,
"fold-down": 61762,
"fold-up": 61763,
"gear": 61764,
"gift": 61765,
"gist": 61766,
"gist-secret": 61767,
"git-branch": 61768,
"git-commit": 61769,
"git-compare": 61770,
"git-merge": 61771,
"git-pull-request": 61772,
"github-action": 61773,
"globe": 61774,
"grabber": 61775,
"graph": 61776,
"heart": 61777,
"history": 61778,
"home": 61779,
"horizontal-rule": 61780,
"hubot": 61781,
"inbox": 61782,
"info": 61783,
"issue-closed": 61784,
"issue-opened": 61785,
"issue-reopened": 61786,
"italic": 61787,
"jersey": 61788,
"kebab-horizontal": 61789,
"kebab-vertical": 61790,
"key": 61791,
"keyboard": 61792,
"law": 61793,
"light-bulb": 61794,
"link": 61795,
"link-external": 61796,
"list-ordered": 61797,
"list-unordered": 61798,
"location": 61799,
"lock": 61800,
"logo-gist": 61801,
"logo-github": 61802,
"mail": 61803,
"mail-read": 61804,
"mark-github": 61805,
"markdown": 61806,
"megaphone": 61807,
"mention": 61808,
"milestone": 61809,
"mirror": 61810,
"mortar-board": 61811,
"mute": 61812,
"no-newline": 61813,
"note": 61814,
"octoface": 61815,
"organization": 61816,
"package": 61817,
"paintcan": 61818,
"pencil": 61819,
"person": 61820,
"pin": 61821,
"play": 61822,
"plug": 61823,
"plus": 61824,
"plus-small": 61825,
"primitive-dot": 61826,
"primitive-square": 61827,
"project": 61828,
"pulse": 61829,
"question": 61830,
"quote": 61831,
"radio-tower": 61832,
"reply": 61833,
"repo": 61834,
"repo-clone": 61835,
"repo-force-push": 61836,
"repo-forked": 61837,
"repo-pull": 61838,
"repo-push": 61839,
"report": 61840,
"request-changes": 61841,
"rocket": 61842,
"rss": 61843,
"ruby": 61844,
"screen-full": 61845,
"screen-normal": 61846,
"search": 61847,
"server": 61848,
"settings": 61849,
"shield": 61850,
"sign-in": 61851,
"sign-out": 61852,
"smiley": 61853,
"squirrel": 61854,
"star": 61855,
"stop": 61856,
"sync": 61857,
"tag": 61858,
"tasklist": 61859,
"telescope": 61860,
"terminal": 61861,
"text-size": 61862,
"three-bars": 61863,
"thumbsdown": 61864,
"thumbsup": 61865,
"tools": 61866,
"trashcan": 61867,
"triangle-down": 61868,
"triangle-left": 61869,
"triangle-right": 61870,
"triangle-up": 61871,
"unfold": 61872,
"unmute": 61873,
"unverified": 61874,
"verified": 61875,
"versions": 61876,
"watch": 61877,
"x": 61878,
"zap": 61879
}

0
src/vendor/react-native-vector-icons/glyphmaps/SimpleLineIcons.json vendored Normal file → Executable file
View File

0
src/vendor/react-native-vector-icons/glyphmaps/Zocial.json vendored Normal file → Executable file
View File

View File

@@ -5,3 +5,6 @@ export {
export {
default as createIconSetFromIcoMoon,
} from './lib/create-icon-set-from-icomoon';
export {
default as createMultiStyleIconSet,
} from './lib/create-multi-style-icon-set';

View File

@@ -1,235 +1,73 @@
import React, { PureComponent } from 'react';
import createMultiStyleIconSet from './create-multi-style-icon-set';
import { PixelRatio, Platform, processColor } from 'react-native';
import PropTypes from 'prop-types';
import createIconSet, {
DEFAULT_ICON_COLOR,
DEFAULT_ICON_SIZE,
NativeIconAPI,
} from './create-icon-set';
import ensureNativeModuleAvailable from './ensure-native-module-available';
export const FA5Style = {
regular: 0,
light: 1,
solid: 2,
brand: 3,
const FA5Style = {
regular: 'regular',
light: 'light',
solid: 'solid',
brand: 'brand',
};
export function createFA5iconSet(glyphMap, metadata = {}, proVersion = false) {
const familyName = `Font Awesome 5 ${proVersion ? 'Pro' : 'Free'}`;
function createFA5iconSet(glyphMap, metadata = {}, pro = false) {
const metadataKeys = Object.keys(metadata);
const fontFamily = `FontAwesome5${pro ? 'Pro' : 'Free'}`;
function createFA5iconSubset(type, weight = '400', family = familyName) {
const fontFileID = proVersion ? `Pro_${type}` : type;
return createIconSet(glyphMap, family, `FontAwesome5_${fontFileID}.ttf`, {
fontWeight: Platform.OS === 'ios' ? weight : undefined,
});
}
const RegularSet = createFA5iconSubset('Regular');
const SolidSet = createFA5iconSubset('Solid', '700');
const LightSet = proVersion
? createFA5iconSubset('Light', '100')
: RegularSet;
const BrandsSet = createFA5iconSubset(
'Brands',
'400',
'Font Awesome 5 Brands'
);
function iconSetFromStyle(style) {
switch (style) {
case FA5Style.brand:
return BrandsSet;
case FA5Style.light:
return LightSet;
case FA5Style.solid:
return SolidSet;
default:
return RegularSet;
}
}
function iconSetFromFamily(family) {
switch (family) {
case 'brands':
return BrandsSet;
case 'regular':
return LightSet;
case 'solid':
return SolidSet;
default:
return RegularSet;
}
}
function styleFromProps(props) {
const { light, solid } = props;
if (light) return FA5Style.light;
if (solid) return FA5Style.solid;
return FA5Style.regular;
}
function styleToFamily(style) {
switch (style) {
case FA5Style.brand:
return 'brands';
case FA5Style.light:
return 'light';
case FA5Style.solid:
return 'solid';
default:
return 'regular';
}
}
function familyToStyle(family) {
switch (family) {
case 'brands':
return FA5Style.brand;
case 'light':
return FA5Style.light;
case 'solid':
return FA5Style.solid;
default:
return FA5Style.regular;
}
}
function fallbackForGlyph(glyph) {
function fallbackFamily(glyph) {
for (let i = 0; i < metadataKeys.length; i += 1) {
const family = metadataKeys[i];
if (metadata[family].indexOf(glyph) !== -1) return family;
if (metadata[family].indexOf(glyph) !== -1) {
return family === 'brands' ? 'brand' : family;
}
}
return 'regular';
}
function hasIconForStyle(glyph, style) {
const family = styleToFamily(style);
function glyphValidator(glyph, style) {
const family = style === 'brand' ? 'brands' : style;
if (metadataKeys.indexOf(family) === -1) return false;
return metadata[family].indexOf(glyph) !== -1;
}
function getIconSetForProps(props) {
const { name } = props;
const style = styleFromProps(props);
function createFontAwesomeStyle(styleName, fontWeight, family = fontFamily) {
let fontFile = `FontAwesome5_${pro ? `Pro_${styleName}` : styleName}.ttf`;
if (hasIconForStyle(name, style)) return iconSetFromStyle(style);
const fallbackFamily = fallbackForGlyph(name);
return iconSetFromFamily(fallbackFamily);
}
function createFA5iconClass(baseClass, selectClass = iconSet => iconSet) {
class FA5iconClass extends PureComponent {
static propTypes = {
light: PropTypes.bool,
solid: PropTypes.bool,
};
static defaultProps = {
light: false,
solid: false,
};
render() {
const selectedIconSet = getIconSetForProps(this.props);
const SelectedIconClass = selectClass(selectedIconSet);
const { light, solid, ...restProps } = this.props;
return <SelectedIconClass {...restProps} />;
}
if (styleName === 'Brands') {
fontFile = 'FontAwesome5_Brands.ttf';
}
return FA5iconClass;
return {
fontFamily: `${family}-${styleName}`,
fontFile,
fontStyle: {
fontWeight,
},
glyphMap,
};
}
const Base = RegularSet;
const FA5icon = createFA5iconClass(Base);
FA5icon.Button = createFA5iconClass(Base.Button, iconSet => iconSet.Button);
FA5icon.TabBarItem = createFA5iconClass(
Base.TabBarItem,
iconSet => iconSet.TabBarItem
const brandIcons = createFontAwesomeStyle(
'Regular',
'400',
'FontAwesome5Brands',
);
FA5icon.TabBarItemIOS = createFA5iconClass(
Base.TabBarItemIOS,
iconSet => iconSet.TabBarItemIOS
);
FA5icon.ToolbarAndroid = createFA5iconClass(
Base.ToolbarAndroid,
iconSet => iconSet.ToolbarAndroid
const lightIcons = createFontAwesomeStyle('Light', '100');
const regularIcons = createFontAwesomeStyle('Regular', '400');
const solidIcons = createFontAwesomeStyle('Solid', '700');
const Icon = createMultiStyleIconSet(
{
brand: brandIcons,
light: lightIcons,
regular: regularIcons,
solid: solidIcons,
},
{
defaultStyle: 'regular',
fallbackFamily,
glyphValidator,
},
);
const imageSourceCache = {};
function getImageSource(
name,
size = DEFAULT_ICON_SIZE,
color = DEFAULT_ICON_COLOR,
type = FA5Style.regular
) {
ensureNativeModuleAvailable();
let style = type;
if (!hasIconForStyle(name, style)) {
const fallbackFamily = fallbackForGlyph(name);
style = familyToStyle(fallbackFamily);
}
if (Platform.OS === 'ios' && style !== FA5Style.brand) {
let glyph = glyphMap[name] || '?';
if (typeof glyph === 'number') {
glyph = String.fromCharCode(glyph);
}
const processedColor = processColor(color);
const cacheKey = `${glyph}:${size}:${processedColor}:${type}`;
const scale = PixelRatio.get();
return new Promise((resolve, reject) => {
const cached = imageSourceCache[cacheKey];
if (typeof cached !== 'undefined') {
if (!cached || cached instanceof Error) {
reject(cached);
} else {
resolve({ uri: cached, scale });
}
} else {
NativeIconAPI.getImageForFontAwesome5(
familyName,
glyph,
size,
style,
processedColor,
(err, image) => {
const error = typeof err === 'string' ? new Error(err) : err;
imageSourceCache[cacheKey] = image || error || false;
if (!error && image) {
resolve({ uri: image, scale });
} else {
reject(error);
}
}
);
}
});
}
const iconSet = iconSetFromStyle(style);
return iconSet.getImageSource(name, size, color);
}
FA5icon.getImageSource = getImageSource;
return FA5icon;
return Icon;
}
export { createFA5iconSet, FA5Style };

View File

@@ -3,11 +3,13 @@ import createIconSet from './create-icon-set';
export default function createIconSetFromIcoMoon(
config,
fontFamilyArg,
fontFile
fontFile,
) {
const glyphMap = {};
config.icons.forEach(icon => {
glyphMap[icon.properties.name] = icon.properties.code;
icon.properties.name.split(/\s*,\s*/g).forEach(name => {
glyphMap[name] = icon.properties.code;
});
});
const fontFamily =

View File

@@ -0,0 +1,142 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import createIconSet, {
DEFAULT_ICON_COLOR,
DEFAULT_ICON_SIZE,
} from './create-icon-set';
export default function createMultiStyleIconSet(styles, optionsInput = {}) {
const styleNames = Object.keys(styles);
if (styleNames.length === 0) {
throw new Error('You need to add at least one style');
}
const options = {
defaultStyle: styleNames[0],
fallbackFamily: () => styleNames[0],
glyphValidator: () => true,
...optionsInput,
};
const iconSets = styleNames.reduce((acc, name) => {
const style = styles[name];
acc[name] = createIconSet(
style.glyphMap || {},
style.fontFamily || '',
style.fontFile || '',
style.fontStyle || {},
);
return acc;
}, {});
function styleFromProps(props) {
return Object.keys(props).reduce(
(result, propName) =>
styleNames.indexOf(propName) !== -1 && props[propName] === true
? propName
: result,
options.defaultStyle,
);
}
function getIconSetForProps(props) {
const { name } = props;
const style = styleFromProps(props);
if (options.glyphValidator(name, style)) return iconSets[style];
const family = options.fallbackFamily(name);
if (styleNames.indexOf(family) === -1) {
return options.defaultStyle;
}
return iconSets[family];
}
function selectIconClass(iconSet, iconClass) {
return iconClass.length > 0 ? iconSet[iconClass] : iconSet;
}
function reduceProps(props) {
return Object.keys(props).reduce((acc, prop) => {
if (styleNames.indexOf(prop) === -1) {
acc[prop] = props[prop];
}
return acc;
}, {});
}
function getStyledIconSet(style, name = '') {
if (styleNames.indexOf(style) === -1) {
return iconSets[options.defaultStyle];
}
return !name
? iconSets[styleFromProps({ [style]: true })]
: getIconSetForProps({ name, [style]: true });
}
function getImageSource(
name,
size = DEFAULT_ICON_SIZE,
color = DEFAULT_ICON_COLOR,
style = options.defaultStyle,
) {
return getStyledIconSet(style, name).getImageSource(name, size, color);
}
function getFontFamily(style = options.defaultStyle) {
return getStyledIconSet(style).getFontFamily();
}
function getRawGlyphMap(style = options.defaultStyle) {
return getStyledIconSet(style).getRawGlyphMap();
}
function hasIcon(name, style = options.defaultStyle) {
return options.glyphValidator(name, style);
}
function createStyledIconClass(selectClass = '') {
class IconClass extends PureComponent {
static propTypes = styleNames.reduce((acc, name) => {
acc[name] = PropTypes.bool;
return acc;
}, {});
static defaultProps = styleNames.reduce((acc, name) => {
acc[name] = false;
return acc;
}, {});
render() {
const selectedIconSet = getIconSetForProps(this.props);
const SelectedIconClass = selectIconClass(selectedIconSet, selectClass);
const props = reduceProps(this.props);
return <SelectedIconClass {...props} />;
}
}
return IconClass;
}
const Icon = createStyledIconClass();
Icon.Button = createStyledIconClass('Button');
Icon.TabBarItem = createStyledIconClass('TabBarItem');
Icon.TabBarItemIOS = createStyledIconClass('TabBarItemIOS');
Icon.ToolbarAndroid = createStyledIconClass('ToolbarAndroid');
Icon.getStyledIconSet = getStyledIconSet;
Icon.getImageSource = getImageSource;
Icon.getFontFamily = getFontFamily;
Icon.getRawGlyphMap = getRawGlyphMap;
Icon.hasIcon = hasIcon;
return Icon;
}