question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React-Native-Vector-Icons Dependency Outdated - Missing AntDesign

See original GitHub issue

Before filling out an issue, be sure to check the version of react-native-elements you are using and the docs for that version over here.

Explain what you did I upgraded my version of React-Native-Elements to v1.0.0. My React-Native-Vector-Icons version was at v4.5.0. I received an error regarding a missing dependency, ‘React-Native-Vector-Icons/AntDesign’

Expected behaviour My expected behavior was that the app would test and load correctly, no errors 😄

Describe the bug The bug is expecting an imported dependency found in src/helpers/getIconType.js that is not present in the package mandated dependency for React-Native-Vector-Icons. Line 12 calls for AntIcons from react-native-vector-icons/AntDesign which was not available until a later version of React-Native-Vector-Icons.

To Reproduce

  1. Create a react-native project with React-Native-Vector-Icons version 4.5.0 and React-Native-Elements v1.0.0 and
  2. Try to run the project.

Example:

Possible Solution Update the version of React-Native-Vector-Icons to a later version, preferably v6.0.0, the most modern version, that includes AntIcon.

Your Environment (please complete the following information):

software version
react-native-elements 1.0.0
react-native 0.55.3
npm or yarn yarn 1.12.3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

3reactions
iRoachiecommented, Jan 31, 2019

Yep definitely came across that myself. Although I’m not sure if documenting that in our release notes is best. This is more a breaking change in react-native-vector-icons.

0reactions
waltermvpcommented, Jan 31, 2019

yep i see your point

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why isn't my Antdesign Icon appearing on screen?
I find that I run into issues like this when I miss a step when installing the package. You could try redoing the...
Read more >
react-native-vector-icons - npm
Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling.. Latest version: 9.2.0, last published: 2 ...
Read more >
ant-design/icons-react-native - npm package
Is @ant-design/icons-react-native safe to use? The npm package @ant-design/icons-react-native was scanned for known vulnerabilities and missing license, and no ...
Read more >
package react-native-vector-icons contains invalid configuration
warn Package @ant-design/icons-react-native contains invalid configuration: "dependency.assets" is not allowed. Please verify it's properly linked using ...
Read more >
Blog | React Native Elements
React Native Elements v4 introduces many features including few new components, fully typescript ... Add support for AntDesign icons (#1529) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found