Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: error when using @react-native-vector-icons/lucide in expo app #1726

Open
AliYusuf95 opened this issue Mar 11, 2025 · 2 comments
Open
Labels

Comments

@AliYusuf95
Copy link

Which package are you using?

@react-native-vector-icons/*

What platform(s) does this occur on?

iOS

What happened?

I tried @react-native-vector-icons/ionicons and it's working fine.
When I try to add @react-native-vector-icons/lucide I face pod install error when I try to run the application.

Relevant log output

$ expo run:ios --device                 
⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: The `react-native-vector-icons-lucide` pod failed to validate due to 1 error:
    - WARN  | github_sources: Github repositories should end in `.git`.
    - ERROR | File Patterns: The react-native-vector-icons-lucide (0.474.0-alpha.0) spec is empty (no source files, resources, resource_bundles, preserve paths, vendored_libraries, vendored_frameworks, dependencies, nor subspecs).



pod install --repo-update --ansi exited with non-zero code: 1

Minimal reproducible example

In app.config.json / js, add the following:

module.exports = {
  "expo": {
    "plugins": [
      [
        "expo-font",
        {
          "fonts": [
            "./node_modules/@react-native-vector-icons/lucide/fonts/Lucide.ttf"
          ]
        }
      ]
    ]
  }
}
npm install --save @react-native-vector-icons/common
npm install --save @react-native-vector-icons/lucide

npx expo prebuild --clean
npx expo run:ios or npx expo run:android

Your computer environment

expo: 52.0.37
expo-font: 13.0.4
@react-native-vector-icons/common: 11.0.0
@react-native-vector-icons/ionicons: 0.474.0-alpha.0
@AliYusuf95 AliYusuf95 added the bug label Mar 11, 2025
@AviadKorakin
Copy link

I also faced the same problem , its happend with the new react native cli 0.78 as well, you can always download svgs from their website until its fixed

@chanphiromsok
Copy link
Contributor

Lucide Icons is not release on yet you can see the release log here https://github.com/oblador/react-native-vector-icons/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants