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

Disable material community icons example #4403

Open
jcuervas-alten opened this issue May 9, 2024 · 0 comments
Open

Disable material community icons example #4403

jcuervas-alten opened this issue May 9, 2024 · 0 comments
Labels
question Question related to the library, not an issue

Comments

@jcuervas-alten
Copy link

Ask your Question

I know that docs point to this option, but it's not clear how it's used. Could you please provide a sample code?
i tryed this in babel.config.js

plugins: ['optional-require']
plugins: [
    ['optional-require', {blacklist: ['react-native-vector-icons']}]
]
plugins: [
    ['optional-require', {whitelist: ['react-native-vector-icons']}]
]

I can't see any difference, when i compile for Android i don't ever need to put that, and when i compile for web i get this

Module not found: Error: Can't resolve 'react-native-vector-icons/MaterialCommunityIcons' in 'C:\Users\javie\projects\alten\projects\CCMA\cat3Info\node_modules\react-native-paper\lib\module\components'
 @ ./node_modules/react-native-paper/lib/module/core/PaperProvider.js 6:0-72 73:12-33
 @ ./node_modules/react-native-paper/lib/module/index.js 4:0-59 4:0-59 5:0-64 5:0-64
 @ ./src/App.tsx 1:503-532
 @ ./index.web.js 1:240-260

Thanks

@jcuervas-alten jcuervas-alten added the question Question related to the library, not an issue label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question related to the library, not an issue
Projects
None yet
Development

No branches or pull requests

1 participant