Drawer content color keep dark
See original GitHub issueimport React from 'react';
import { Container, Drawer, Button, Icon, Content, Text } from 'native-base';
export default class App extends React.Component {
static navigationOptions = {
header: null,
};
closeDrawer = () => {
this.drawer._root.close()
};
openDrawer = () => {
this.drawer._root.open()
};
render() {
return (
<Drawer
ref={(ref) => { this.drawer = ref; }}
content={<Content style={{ backgroundColor: '#FFFFFF' }}>
<Text>Drawer</Text>
</Content>}>
<Button onPress={() => this.openDrawer()} transparent>
<Icon name='menu' />
</Button>
</Drawer>
)
}
}
Expect result: Drawer content is light and white color.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
Disable dark fading in Navigation Drawer
You can use setScrimColor(int color) method. As default color is used 0x99000000 . So if you don't want faded background, set transparent color...
Read more >Modify fade effect of background when Drawer widget is ...
Since the fade effect that happens when the Drawer is opened is to fade to 'Colors. black54' (Black with opacity 54%) the Drawer's...
Read more >IRIS USA 6 Quart Compact Stacking Storage Drawer ...
Details. Color. Black. Material. Plastic.
Read more >Fragment Navigation Drawer | CodePath Android Cliffnotes
This guide explains how to setup a basic material design style drawer filled with navigation items that switch different fragments into the content...
Read more >Re: Drawer TEXT color same as BACKGROUND color (help!)
The text of my Cart drawer is white — and so is the background — so you can't see it. I need to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Managed to fix this issue by digging into the default properties of the Drawer component, by default the Drawer component’s overlay has an elevation property of 8.
The elevation prop only effects Android (which is why this problem is not present in iOS) - to change the default props you can do this:
or wait until the above PR is merged (:
I still have the same problem, try zIndex and it does not work either, the only thing I could change is the type to displace
<Drawer type=“displace” …
Node: 8.12.0 Mac OS: Mojave react-native: 0.57.1 native-base: ^2.8.0