FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[iOS] Navigation back button appears when the app reloads or refresh · Issue #1194 · NativeScript/nativescript-angular · GitHub

[iOS] Navigation back button appears when the app reloads or refresh #1194

Description

Hi there, I just noticed that after I updated my device (or simulator) to iOS 11.2 everytime I refresh the app (by a change in the code or simply close and reopen the app) the back button appears along with the drawer. This is the code I am using right now and I have attached an image to illustrate the issue. I have tested in iOS 11.1 and 11.0 and is working as expected.

<ActionBar class="action-bar" title="">
    <NavigationButton ios:visibility="collapsed" icon="res://menu" (tap)="onDrawerButtonTap()"></NavigationButton>
    <ActionItem icon="res://navigation/menu" android:visibility="collapsed" (tap)="onDrawerButtonTap()" ios.position="left"></ActionItem>
    <Label class="action-bar-title" text="Dashboard"></Label>
</ActionBar>

I also tried some approaches like using the code below:

if (page.ios) {
        const controller = frameModule.topmost().ios.controller;
        // get the view controller navigation item
        const navigationItem = controller.visibleViewController.navigationItem;
        // hide back button
        navigationItem.setHidesBackButtonAnimated(true, false);
}

But is not working in iOS 11.2.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL