oktaysenkan/monicon

Babel plugin

Closed this issue · 2 comments

Hi there,

I am first try to use iconify in react native.
I have followed the steps provided in Readme.md to add the plugin in babel.config.js, and clear cache for my project.
But it turns out an error like the image below.

Simulator Screenshot - iPhone 14 Pro - 2023-09-21 at 15 07 48

Screenshot 2023-09-21 at 15 11 37

I would like to humbly seek your advice to resolve this issue.
Thanks in advance.

Check your presets and plugins properties babel.config.js. What is env.production.plugins ?

module.exports = {
  presets: [
    ...
  ],
  plugins: [
    ...
    'react-native-iconify/plugin',
  ],
};

I have figured out and the this issue is fixed. Thank you very much.