GeekyAnts / NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.
https://nativebase.io/
MIT License
20.21k stars 2.39k forks source link

Unable to resolve AntDesign in IconNB.js #2506

Closed ht512512 closed 5 years ago

ht512512 commented 5 years ago

Issue Description

Unable to resolve AntDesign in IconNB.js

node, npm, react-native, react and native-base version, expo version if used, xcode version

node v11.0.0, npm 3.10.9, expo 2.3.8, native-base 2.10.0

Expected behaviour

Proper resolution of dependencies

Actual behaviour

"expo start" fails with the following unresolved dependency.

Unable to resolve "@expo/vector-icons/AntDesign" from "node_modules/native-base/dist/src/basic/IconNB.js"

Is the bug present in both iOS and Android or in any one of them?

Tested on Android and has the bug, not tested on iOS

gkosmo commented 5 years ago

node v11.3.0, npm 6.4.1, expo 2.6.14, "native-base": "^2.8.2" same problem on Android

SupriyaKalghatgi commented 5 years ago

https://github.com/GeekyAnts/NativeBase/issues/2452#issuecomment-448853719

ivanarielcaceres commented 5 years ago

Hello! I have the same problem! I'm using native-base 2.10.0 and i did try with expo 28, 29 and 30 with no success.

This instruction resolve for me the issue! https://github.com/GeekyAnts/NativeBase/issues/2452#issuecomment-449934729

waqaramjad commented 5 years ago

still facing the same issue when i run npm install command in my old project

maxgfr commented 5 years ago

I solve my problem with this comment

Basically, if you use expo v32 you have to follow these instructions : https://github.com/GeekyAnts/NativeBase and run this command : npm install @expo/vector-icons@^9.0.0

SupriyaKalghatgi commented 5 years ago

Please refer latest ReadMe of NativeBase, which includes proper solution

sathwik77 commented 4 years ago

I still have this issue with all new versions of expo, native-base and expo fonts. Here's my package.json

  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@expo/vector-icons": "9.0.0",
    "expo": "~37.0.3",
    "expo-font": "~8.1.0",
    "native-base": "^2.13.12",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
    "react-native-web": "~0.11.7",
    "react-navigation": "3.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "babel-preset-expo": "~8.1.0"
  },
  "private": true
}

I tried downgrading vector-icons to 8.1.0, I tried everything I could find, but nothing worked for me. Still getting the following error:

Unable to resolve "@expo/vector-icons/Fontisto" from "node_modules/native-base/dist/src/basic/IconNB.js"