Skip to content
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

I want to hide the status bar with a modal overlay. #15443

Closed
chucky6413 opened this issue Aug 10, 2017 · 5 comments
Closed

I want to hide the status bar with a modal overlay. #15443

chucky6413 opened this issue Aug 10, 2017 · 5 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@chucky6413
Copy link

chucky6413 commented Aug 10, 2017

Is this a bug report?

no

Have you read the Contributing Guidelines?

yes

Environment

  1. react-native -v: 0.46.4
  2. node -v: 8.1.4
  3. npm -v:5.0.3
  4. yarn --version: 0.27.5

Then, specify:

  • Target Platform:Android
  • Development Operating System: macOS
  • Build tools: jdk, android sdk

Steps to Reproduce

(Write your steps here:)

<View style={{flex:1}}>
  <View style={{flex:1}}>
    <StatusBar
      backgroundColor={backgroundColor}
      barStyle={barColor === 'light' ? 'light-content' : 'dark-content' }
     />
  </View>
  <Modal
        visible={ this.state.modalVisible }
        transparent={true}
        onRequestClose={() => { this.setModalVisible(false) }}
        >
       <View style={{flex:1}}>
       </View>     
  </Modal>
</View>
  1. I want to hide the status bar with a modal overlay.
    But as shown in the screenshot below, Modal's overlay does not hide the StatusBar. I want to do it without using the navigator. Why is it not covered? Please help me.

(Write what happened. Add screenshots!)
image

@ajonno
Copy link

ajonno commented Aug 14, 2017

there is a similar ticket here too: #7474

@stale
Copy link

stale bot commented Oct 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 14, 2017
@chirag04
Copy link
Contributor

@facebook-github-bot duplicate #7474

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 14, 2017
@facebook-github-bot
Copy link
Contributor

Duplicate of #7474

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 14, 2017
@kallayyash
Copy link

instead this true transparent={true} make it as transparent={false}

@facebook facebook locked as resolved and limited conversation to collaborators Oct 14, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants