Minor Changes
-
#1885
2ceb7abThanks @bataevvlad! - Vendor Eva Icons instead of depending onreact-native-eva-icons.react-native-eva-icons@1.3.1pinspeerDependencies.reactto exactly16.5.0, so every install
on a current React needs--legacy-peer-depsor an override, and that workaround often ends with
two copies of React and "A React Element from an older version of React was rendered" (#1851). Its
icon barrel is one function with 490 staticrequirecalls, so the whole set lands in every bundle
whether the app renders an icon or not (#1771).The 490 icons are now generated from the
eva-icons@1.1.3SVGs into per-icon data modules inside
this package and rendered by oneEvaIconcomponent. The only peer dependency left is
react-native-svg >= 13.EvaIconsPackworks as before. Unknown names now raise the registry's "icon is not registered"
error instead of crashing on an undefined element type.createEvaIconsPack([home, star])withimport home from '@ui-kitten/eva-icons/icons/home'
builds a pack from only the icons an app uses, so nothing else is bundled.EvaIconandcreateEvaIcon(data)render an icon outside of<Icon />;evaIconsand
EvaIconNameexpose the full set.corner-down-left,dropletand their outlines keep their own 24.1 / 24.2viewBoxinstead of
being forced onto a 24 canvas.
Attribution ships in the package
LICENSE(Eva Icons, MIT, Copyright (c) 2018 Akveo).