For @devigner-ui/icons-react-native, which jumps from 2.x to 3.5.0 to share
one version with the other packages. Nothing in it breaks. Upgrade, then run
the codemod:
npm install @devigner-ui/icons-react-native@^3.5.0
npx @devigner-ui/icons migrateThe codemod ships in @devigner-ui/icons; npx fetches it for the one run,
so it does not become a dependency of your app.
Every old name is still exported, from the barrel and from its own subpath:
import IconBag2 from "@devigner-ui/icons-react-native/icons/Bag2"; // still works
import IconBagStraps from "@devigner-ui/icons-react-native/icons/BagStraps"; // the new nameThe codemod rewrites both forms. In development (__DEV__) an old name logs
one warning in Metro's console, naming its replacement; release builds are
silent.
Icons chosen at runtime from names stored in your data. Map stored names once
with renames.json; see the
codemod page.
See Upcoming 4.0.