react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

how to translucent statusbar in Android?

Open jehee-choi opened this issue 6 years ago • 3 comments

Issue Description

I want to set StatusBar translucent. IOS is fine. when modal is open(called showModal), It only shows grey color status bar when I set statusBar translucent in Android.

Steps to Reproduce / Code Snippets / Screenshots

Navigation.mergeOptions(this.props.componentId, { statusBar: { backgroundColor: "transparent", style: "dark", translucent: true, }, });

image


Environment

  • React Native Navigation version: 6.9.1
  • React Native version: 0.63.2
  • Platform(s) (iOS, Android, or both?): Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Device/ Both

jehee-choi avatar Oct 14 '20 01:10 jehee-choi

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the wix-react-native-navigation tag or on Discord.

support avatar Oct 14 '20 07:10 support

https://wix.github.io/react-native-navigation/api/options-statusBar#translucent

guyca avatar Oct 15 '20 12:10 guyca

statusBar: { drawBehind:true, style:'light', backgroundColor:'rgba(0,0,0,0)' }

LiangYizhi1024 avatar Mar 03 '21 02:03 LiangYizhi1024