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
Make react-native-vector-icons optional #8821
Comments
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
The issue is still happening in the latest version of the package see https://github.com/react-navigation/react-navigation/blob/main/packages/material-bottom-tabs/src/views/MaterialBottomTabView.tsx#L4 |
Confirm the issue.
|
Current Behavior
I want to use
@react-navigation/material-bottom-tabs
withoutreact-native-vector-icons
, but the following error is popping up.Currently you can use react-native-paper without
react-native-vector-icons
by using thebabel-plugin-optional-require
babel plugin. https://callstack.github.io/react-native-paper/getting-started.htmlExpected Behavior
I should be able to use this package without
react-native-vector-icons
as I do not render any icon.This is the way react-native-paper is using to allow this behavior https://github.com/callstack/react-native-paper/blob/212aa73715f157e1a77f8738859a608a543ba04c/src/components/MaterialCommunityIcon.tsx#L14.
How to reproduce
Create a new react-native project (without expo) and just add and use
@react-navigation/material-bottom-tabs
without an icon.Your Environment
The text was updated successfully, but these errors were encountered: