question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue NavigationButton cannot be hiden

See original GitHub issue

Hello guys Im having issue, Im not been able to hide NavigationButton on IOS I working on Mac and runing emulator with Iphone also tested with Iphone 6 Seems like Navigation Button cannot be hidden

Did you verify this is a real problem by searching the [NativeScript Forum]

Yes

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI:3.3

Please tell us how to recreate the issue in as much detail as possible.

The best approach would be to get your code running in the NativeScript Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Yes I have My Header wher is my action bar that I use across my app: header.xml

<ActionBar class="action-bar" title="" loaded="Loaded">
   <NavigationButton visibility="collapse"/>
    <ActionBar.actionItems>
        <ActionItem tap="goToTimeplan">
            <ActionItem.actionView>
                <StackLayout  >
                    <Label text="&#xf073;" class="action-item gray"/>
                </StackLayout>
            </ActionItem.actionView>
        </ActionItem>
</ActionBar.actionitems>
</ActionBar>

And the use it around my pages

<Page xmlns="http://schemas.nativescript.org/tns.xsd"
         xmlns:appHeader="/views/header/"  loaded="loaded">
    <appHeader:header />
</Page>

I have also tried with collapsed and adding class or putting it in StackLayout to Hide but Nothing works… It works that moment , but next time when I stop tns , and again run it with “tns run ios”, its visible…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
racknoriscommented, Mar 4, 2018

I had to hide the back button in iOS, and all of the above didn’t work except for @tsonevn suggestion, which led me to look for the hidesBackButton property in the nativescript source code, and then i figured that what works for me is: page.ios.navigationItem.hidesBackButton = true; (tested in 3.4.1)

1reaction
tsonevncommented, Aug 13, 2018

Hi @Gamadril, You can try creating a NavigationButton via code-behind and then set up the visibility. For example:

let navButton = new NavigationButton();
navButton.visibility = "collapsed"

For further question, you can use our StackOverflow thread here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't hide navigation bar - Android Central Forum
Now, the nav bar is hidden but there are no buttons when I swipe up. It's now using the "no button" nav bar....
Read more >
Can no longer hide navigation buttons - OnePlus Community
Since the last update I can no longer hide the navigation buttons on the screen. Anyone else experiencing this? Did they remove it,...
Read more >
Navigation bar with back button not hiding - Stack Overflow
I tried using viewDidLoad , viewDidAppear , viewDidUnload (in the sign up view) but nothing works (I can hide the status bar, but...
Read more >
Can't disable navigation bar hide button - XDA Forums
Settings-System-System navigation-Virtual navigation bar-Settings, then select one of those 4 options and/or turn ON/OFF the Navigation bar.
Read more >
The Navigation Bar Isn't Hidden as Expected in SwiftUI
TL;DR: If you can't tap on buttons in the navigation-bar area, you can jump directly to “4. The Solution” to fix the issue....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found