Git Product home page Git Product logo

Comments (10)

ShaunEvening avatar ShaunEvening commented on June 27, 2024 1

@housseindjirdeh I can take a peek at this this afternoon!

from git-point.

andrewda avatar andrewda commented on June 27, 2024 1

@lex111 On almost every screen a dark status bar should be used because a light one would be impossible to see. However, on profiles, orgs and repos, a light one should be used.

from git-point.

lex111 avatar lex111 commented on June 27, 2024 1

@andrewda mmm, yeah, thanks, I did not understand at first. But however, a simple property change seems to work.

from git-point.

darecki avatar darecki commented on June 27, 2024 1

I noticed that when the Tab Bar is initiated it loads and renders all its' tab views one by one. The final result is the status bar color is the one defined in AuthProfile, as it is the last screen loaded. It seems that rendering a StatusBar component overrides any previously StatusBar rendered. You can even do things like:

<View>
<StatusBar barStyle="light-content" />
<StatusBar barStyle="light-content" />
<StatusBar barStyle="dark-content" />
</View>

which will render a view with only one status bar styled as "dark-content" (the last one). Maybe this things are obvious, but it was quite surprising to me, so I'm pointing that out.

Now, my idea of resolving the issue is to re-render the corresponding screen when you change a tab . That would render only the relevant StatusBar. Unfortunately, I have no idea how to force such re-rendering. Can you help me here?

from git-point.

machour avatar machour commented on June 27, 2024 1

Assigned @jouderianjr as he's working on it, using setBarStyle as mentioned by @krizzu

from git-point.

lex111 avatar lex111 commented on June 27, 2024 1

πŸŽ‰

from git-point.

housseindjirdeh avatar housseindjirdeh commented on June 27, 2024

Nothing but love for you <3

from git-point.

lex111 avatar lex111 commented on June 27, 2024

@housseindjirdeh on Android, a simple change works.

barStyle={barColor === 'light' ? 'light-content' : 'dark-content'}

But I do not understand why you need a dark status bar, can by default make it light?

from git-point.

housseindjirdeh avatar housseindjirdeh commented on June 27, 2024

Looping @darecki to the conversation as he similarly tried to fix the issue by changing the status bars on the top screens of the stack (see #176)

from git-point.

krizzu avatar krizzu commented on June 27, 2024

Hey,
What about setting status bar color imperatively using setBarStyle?
You'd not need to pass props anymore, as this setting will be just in one place.

Also, exposing a option in app settings to change status bar color would be great :)

from git-point.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.