Disable swipe back using enableSwipeBackNavigation doesn't work
See original GitHub issueFrom @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 :

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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
HI @RoyiNamir, In this scenario, you should set up the
enableSwipeBackNavigation
property tofalse
in the detailed page(e.g.item-detail.component.ts
). For your convenience, I am attaching a sample project. Archive.zipThis 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.