-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
How to remove background color of active tab in @react-navigation/material-bottom-tabs #3554
Comments
Hey @transli I would suggest then checking which theme color is used for a specific element, in your case outline pill. Its background color is
|
@lukewalczak |
Please attach the screenshot with the mark which color you want to change. |
@lukewalczak |
import { useTheme } from 'react-native-paper';
const theme = useTheme();
theme.colors.secondaryContainer = "transperent" should do the trick |
@vivekbw this works, thanks! |
@vivekbw, Thank you so much. You've rescued me. |
thanks vivekbw I had been looking for this solution for days |
@vivekbw Nice thanks for this! |
@vivekbw life saver! |
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs'; const Tab = createMaterialBottomTabNavigator(); // Inside your component {/* Add your tab screens */} |
Thank YOU!! |
this worked perfectly, thanks :) |
@vivekbw thank you for your answer. |
What if want to change the color of this background? |
Using these lines: ` const theme = useTheme(); I'm getting this error: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
Also using this: Please, can you help me! This is my code: `import { faBars } from '@fortawesome/free-solid-svg-icons'; const Tab = createMaterialBottomTabNavigator(); export default class BottomAction extends React.Component {
|
Now how can I change the padding of the background pill |
Thanks, bro , it's work |
I am using @react-navigation/material-bottom-tabs and I would like to remove background color of active tab. Which props should I use? I tried almost everything from documentation.

The text was updated successfully, but these errors were encountered: