-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
iOS: none translucent navigationBar gets translucent again on resume from background #5904
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
Comments
@Cookie8 there is a property called For example, <ActionBar title="Test" class="action-bar" flat="true">
</ActionBar> And then there is no need to use the native property in the code behind const createViewModel = require("./login-view-model").createViewModel;
function loaded(args) {
console.log("LOGIN-PAGE <-> loaded > start");
const page = args.object;
page.bindingContext = createViewModel();
console.log("LOGIN-PAGE <-> loaded > end");
};
exports.loaded = loaded;
function navigatedTo(args) {
console.log("LOGIN-PAGE <-> navigatedTo > start");
const page = args.object;
console.log("LOGIN-PAGE <-> loaded > end");
};
exports.navigatedTo = navigatedTo; |
@NickIliev Thank you very much for your tip, however, if I use the flat property approach only, I will not have the vertical line on the bottom of the actionBar. This is the result of using the flat property only: And this is the result of using the translucent property: Do you have any suggestion to handle the display of the actionBar's bottom line when using the flat property? Thank you very much. |
@Cookie8 the |
@NickIliev Yes, I understand the purpose of the |
@Cookie8 thanks you for reporting this issue - here is the right place for posting a bug report. We will investigate the case and post any related information here |
I would like to note that I have run into an issue with the |
Tell us about the problem
Hi,
For my iOS app I would like to have the navigationBar translucence off.
It works fine, if the page will initially be loaded, but then, if I bring the app to background and bring it back to foreground again (resume), the navigationBar will be displayed
translucent again.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
tns-android: 4.2.0-2018-05-31-01
tns-ios: 4.1.0
"nativescript-iqkeyboardmanager": "^1.3.0",
"nativescript-theme-core": "~1.0.4",
"tns-core-modules": "^4.2.0-2018-05-31-01"
},
"devDependencies": {
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11"
}
Please tell us how to recreate the issue in as much detail as possible.
Please use the attached playground project below to reproduce this issue by following these steps:
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Please see my Playground sample app:
NSPlayground.zip
The login page of the Playground sample project contains exactly what I implemented in my project and the issue also occurs in the Playground sample project.
Please just let me know, if you need further infos.
Cheers!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: