oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.4k stars 2.12k forks source link

Properly remove react-native-vector-icons ? #640

Closed kajm closed 6 years ago

kajm commented 6 years ago

Im trying to remove this package by redo all manual steps that was needed to install it, but i still get this error saying .... the haste package was found ... same issue everybody have with react Native 0.52.0. And this package. So, how can i remove it?

React-native: 0.52.0

MoOx commented 6 years ago

Did you try react-native unlink react-native-vector-icons && yarn remove react-native-vector-icons?

kajm commented 6 years ago

@MoOx No, I havent done that. I guess I can give it a try. But whats the difference on doing it manually or doing it with the react-native cli ?

MoOx commented 6 years ago

It's supposed to remove all references so you don't have problem... Anyway I don't see how you can still have a problem with the package properly removed. See #626 for a workaround for the initial reason of the problem.

kajm commented 6 years ago

No, me neither 😄 but I will try the workaround and hopefully it will work. Thanks!

karlmosenbacher commented 6 years ago

Removed it by running "react-native unlink react-native-vector-icons" and by adding rn-cli.configs.js file in the root directory.

fungilation commented 6 years ago

Except I can't unlink: https://github.com/facebook/react-native/issues/13160#issuecomment-378677744

Is unlink and re-linking recommended on upgrading react-native-vector-icons?

karlmosenbacher commented 6 years ago

@fungilation I dont think re-linking is necessary. I have never unlinked and re-linked a library that I wanted to upgrade and it has worked perfectly.

fungilation commented 6 years ago

Actually I'd say the contrary. Before running link on latest, no font files under asset/ are changed. After running link, 2 font files are updated as per changelog.

Unlink is perhaps unnecessary but link is to update to the latest font assets?

lfoliveir4 commented 5 years ago

Did you try react-native unlink react-native-vector-icons && yarn remove react-native-vector-icons?

very good!

However, it only works yarn remove react-native-vector-icons. The links I had to take manually.

BenjaBoy7 commented 1 year ago

npm remove react-native-vector-icons , Works for me

sam-apps-craft commented 3 weeks ago

also npm unlink react-native-vector-icons