Skip to content

Use MaterialDesignIcons instead of MaterialCommunityIcons #4646

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

Open
elibroftw opened this issue Mar 6, 2025 · 3 comments
Open

Use MaterialDesignIcons instead of MaterialCommunityIcons #4646

elibroftw opened this issue Mar 6, 2025 · 3 comments

Comments

@elibroftw
Copy link

I recently migrated react-native-vector-icons and MaterialCommunityIcons is no longer in the readme. Instead MaterialDesignIcons is there, which I have supplied to the paper provider. This should be the new default going forward.

@faljabi
Copy link

faljabi commented Mar 17, 2025

Can we have a release for this? As we want to migrate to the new way of using vector icons

@rnigro-rwb
Copy link

I think the issue with doing this is that this package also relies on @expo/vector-icons if you are using expo. That package would need to be update first.

What I did was patch the package by replacing

'react-native-vector-icons/MaterialCommunityIcons'

with

'@react-native-vector-icons/material-design-icons'

in 2 places in MaterialCommunityIcon.tsx

@rnigro-rwb
Copy link

This is a duplicate of #4471

I would recommend the solution provided by @onmotion that uses babel-plugin-module-resolver is much simpler.
#4471 (comment)

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

No branches or pull requests

3 participants