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.

Disable swipe back using enableSwipeBackNavigation doesn't work

See original GitHub issue

From @RoyiNamir on July 18, 2018 20:57

I’ve created a new simple plain empty project :

tns create aaa --ng

In the ctor of the items component , I did exactly what this post suggests

constructor(private page: Page) {
        this.page.enableSwipeBackNavigation = false;
}

But the suggested code (also in here by @tsonevn ) - doesn’t work in the latest version.

As you can see : I’m still able to drag the window :

screen shot 2018-07-18 at 23 31 56

It happens in emulator and also on a real device. (nativescript 4.1)

Attached sample project : https://ufile.io/umni8

Copied from original issue: NativeScript/ios-runtime#956

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
tsonevncommented, Jul 19, 2018

HI @RoyiNamir, In this scenario, you should set up the enableSwipeBackNavigation property to false in the detailed page(e.g. item-detail.component.ts). For your convenience, I am attaching a sample project. Archive.zip

0reactions
lock[bot]commented, Oct 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable swipe back gesture in Swift - ios - Stack Overflow
The following is an easy approach to disabling & re-enabling the swipe back. Swift 3.x & up. In a viewDidLoad/willAppear/didAppear method ...
Read more >
Preventing going back - React Navigation
To make this work, you need to: Disable the swipe gesture for the screen ( gestureEnabled: false ).
Read more >
How to disable two-finger swipe navigation on Microsoft Edge ...
If it still doesn't show, try this other fix: Go to System Preferences > Trackpad > More Gestures > uncheck Swipe between pages....
Read more >
How to disable swipe navigation on Edge for Mac - Ask Different
This appears to get the job done for me on Big Sur (11.2.3) with Microsoft Edge (89.0.774.57): defaults write com.microsoft.edgemac ...
Read more >
Go back on swipe iOS - Questions about Thunkable
I think disabling Gestures in the screen / navigator settings should do that job. Best. danyklein November ...
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