react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

IOS Only: RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.

Open PopJoestar opened this issue 2 years ago • 11 comments

This happens on IOS when calling getImageSource or getImageSourceSync, would like to call those two without running react-native link because this command is marked as deprecated and will be removed soon. I am using react-native 0.68.2 and react-native-vector-icons 9.2.0.

PopJoestar avatar Aug 19 '22 07:08 PopJoestar

Same here! Running React-Native 0.69.4

iMJumpmxn avatar Aug 22 '22 21:08 iMJumpmxn

It has happened to me on RN 0.69.5. I've solved it by removing react-native.config.js which was created while following the steps for iOS and running pod-install (npx pod-install) again.

kanzitelli avatar Aug 29 '22 10:08 kanzitelli

same problem. "react-native": "0.69.5", "react-native-vector-icons": "^9.2.0",

giordy84 avatar Oct 27 '22 12:10 giordy84

Facing same problem and without following changes in react-native.config.js I'm getting duplicate file error during build.

module.exports = {
   ...
  dependencies: {
    'react-native-vector-icons': {
      platforms: {
        ios: null,
      },
    },
  },
};

It has happened to me on RN 0.69.5. I've solved it by removing react-native.config.js which was created while following the steps for iOS and running pod-install (npx pod-install) again.

JapeshFlyFin avatar Jan 12 '23 09:01 JapeshFlyFin

yarn add [email protected]

You can try this version.

vito-mish avatar Feb 21 '23 16:02 vito-mish

I've resolved by change this

module.exports = {
   ...
  dependencies: {
    'react-native-vector-icons': {
      platforms: {
        ios: null,
      },
    },
  },
};

To this

module.exports = {};

tawanorg avatar Apr 22 '23 05:04 tawanorg

Doesn't removing the config file lines then mean the fonts end up in the bundle (which you don't want)?

cordial avatar Jul 13 '23 17:07 cordial

My code was calling the loadFont() method

import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"
MaterialCommunityIcons.loadFont()

This turned out to be unnecessary for my use case, so the fix was to delete that 2nd line

import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"

mccabe-david avatar Sep 12 '23 01:09 mccabe-david

Is it fixed?

gaganpreet-scalex avatar Nov 14 '23 12:11 gaganpreet-scalex

I added this on the Podfile pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

badalsaibo avatar Jan 15 '24 06:01 badalsaibo

Eu adicionei isso no Podfilepod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

tks ✅ @badalsaibo

react-native-config.js

module.exports = {
   dependencies: {
      'react-native-vector-icons': {
         platforms: {
            ios: null
         }
      }
   }
}

caiogasparino avatar Feb 20 '24 22:02 caiogasparino