I'm trying to make the top tab buttons transparent, so the background behind them would be the background of their content screen. Is this behaviour possible to achieve with createMaterialTopTabNavigator?
I can't seem to find a way to make the tab buttons stick on top of the content. Can only make them appear above the screen content so there's only one fixed color for the tab buttons.
To make it clearer, let's say I have 3 screens, with red, green and blue backgrounds, I want the tab buttons to appear red green or blue, according to the focused screen
Ok, so in case anyone else is looking for the same functionality, just set tabBarOptions style position: 'absolute'
Related
I am trying to do a circular button using touchableOpacity in react native, but even when I use borderRadius in the style, the corners of the rectangle remain clickable, which is not what I want. Using borderRadius only makes the touchableOpacity visibly circular:
Quick drawing of what I mean, red is how it looks after using borderRadius, but the blue area is where I can still click
Also, I am pretty new in this area, so this might be a bad question. Thanks for reading!
I'm using React native popup menu and on click I have a grey background color that appears on the menu.
So i read the docs and it says to change customStyles in Menu Trigger but I tried many different things and it doesn't work.
I just want that when I press the menu I have no background color.
When I open the MFSideMenu the status bar doesnt change color to black and the text color to white in iOS7. I have set UIViewControllerBasedStatusBarAppearance to YES and NO and both dont change the status bar color.
I have a similar problem. I did a little workaround by adding 20px light gray view at the top of right view controller.
It is not a solution but looks better.
You can check out code at:
https://github.com/ryuichisaito6/MFSideMenu/commit/50bc3c1a5eec0dfb3c97621dd0f43f6e0ac70a20
"Darken status bar background color when side menu opens"
I've changed my navigation bar style to black opaque but my done button remains blue, yet the compose button is fine / black.
Why is is happening and more importantanly how do I fix this ?
The buttons was added in IB and shows blue there, while the nav bar is black.
The best thing to do is to make sure you're using the UIBarButtonSystemItemDone system button item, unaltered. If you really want to change the appearance of your Done button, you will need to assign a custom view to the bar button item's customView property. Then you'll be able to control every aspect of its appearance.
Hey! I am making an app with a slider which slides out from the bottom and I would like to make other parts of the app a bit darker to show that the picker is the active component, like when alertbox comes, the background darkens. How do archieve this?
Overlay the elements you want to darken with a view that has a semi-transparent dark background (e.g. a black background with an alpha value of 0.5).