-
-
Notifications
You must be signed in to change notification settings - Fork 584
docs: add missing information about status bar props #2953
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that change coming from edge-to-edge mode being enabled or did we just miss this information in our documentation.
If it is edge-to-edge related change we should state it explicitly, because not all apps use edge-to-edge.
Otherwise this seems fine. I haven't tested the runtime behaviour, assuming you decided to open this PR for a reason.
**Motivation** Recently noticed that docs for `statusBarStyle` and `statusBarHidden` are not kept in sync between files in `react-native-screens` repo, `react-naviagtion` in-code docs and `reactnavigation.org/docs`. I added information about support on Android for `statusBarStyle` and `statusBarHidden` props and `auto` and `inverted` values not being supported on Android for `statusBarStyle`. Similar PR in `react-native-screens`: software-mansion/react-native-screens#2953, `react-navigation.github.io`: react-navigation/react-navigation.github.io#1432.
It is just missing docs (it was already updated in When veryfing that these props work, I noticed some problems with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have doubts, whether the reported default values are accurate & also I feel like there is no reason to update /native-stack/
* /src/native-stack
. As the whole thing is deprecated anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, thanks for the links. I'm not approving yet, because I wonder whether we need to introduce this as stable behaviour or not :D I'll approve / reject when I make my mind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
**Motivation** This is a follow-up to #12618 (comment). Changed the in-code docs for `statusBarAnimation` to match [current online docs](https://reactnavigation.org/docs/native-stack-navigator#statusbaranimation). Similar PR in `react-native-screens`: software-mansion/react-native-screens#2953.
Description
Add information about supported values for
statusBarStyle
andstatusBarAnimation
.Similar PR in
react-navigation
: react-navigation/react-navigation#12618,react-navigation.github.io
: react-navigation/react-navigation.github.io#1432.Changes
auto
andinverted
not being supported forstatusBarStyle
on Androidlight
being default value forstatusBarStyle
on AndroidstatusBarAnimation
default values and differences in behavior between Android and iOSChecklist