Is it possible to draw over the status bar in the response native?

I am working on the drawer menu component. The menu is an overlay that is formed on the side and partially covers the main screen.

Is it possible for this to partially overlap the status bar? I saw this effect in the inbox of Google.

Mailbox menu that displays the status bar

+6
source share
1 answer

Yes, perhaps this partially overlaps the status bar. You can create a view component, and you can position it with an absolute position. Based on this library , you can add this style to the view component

{ right: 0, left: 0, top: 0, bottom: 0, position: 'absolute', backgroundColor: 'transparent' } 

You can then add the custom width to the same view so that the box does not use the entire width of the screen.

You can also use the interactive DrawerLayoutAndroid , but this component is only available on androi.

0
source

All Articles