When setting topBar: { drawBehind: true } as default option, it is not respected on Android. Only when setting it via static options () it is being applied.
To reproduce, use v3 playground app with following diff:
diff --git a/playground/src/commons/Options.js b/playground/src/commons/Options.js
index 5a7c2ebe..01b8a26a 100644
--- a/playground/src/commons/Options.js
+++ b/playground/src/commons/Options.js
@@ -7,6 +7,9 @@ const { useSlowOpenScreenAnimations } = require('../flags');
const SHOW_DURATION = 230 * 8;
const setDefaultOptions = () => Navigation.setDefaultOptions({
+ topBar: {
+ drawBehind: true,
+ },
layout: {
backgroundColor: Colors.background,
orientation: ['portrait']
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Not Stale
I can confirm, it happens to me on 3.1.2
The statusBar also behaves the same way.
The following doesn't work (I try to achieve a full screen app) :
Navigation.setDefaultOptions({
layout: {
visible: false,
drawBehind: true,
},
statusBar: {
visible: false,
drawBehind: true,
},
});
However when specified in the options of the component it works fine.
@guyca I can confirm also this behavior.
It's not working on 3.2.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Not Stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Still present on 3.7.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Hi @guyca !
It's fixed for topBar and drawBehind,
but not for statusBar and drawBehind as mentionned in this issue,
would you like me to open a new issue ?
Thank you 馃檹
@manuhook Yes, please open an issue and mention me. Thanks 馃憤
@guyca @manuhook I opened the issue.
Most helpful comment
@manuhook Yes, please open an issue and mention me. Thanks 馃憤