Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Disable Navigation Bar/Enable InteractivePopGestureRecognizer causes navigation/popasync issue

$
0
0

Here is exactly what is happening to me...

https://github.com/wix/react-native-navigation/issues/428#issuecomment-260427414

Basically, I have a MasterDetail page and the Detail page is a listview. When tapping on an item, PushAsync a new page with no Navigation bar, but I have InteractivePopGestureRecognizer enabled so the user can just swipe "back" in the navigation. Most of the time it works, but the gif you see in the above link happens and I do not know why.

I have NavigationPage.SetHasNavigationBar(this, false); on the page itself...

and its renderer...

[assembly: ExportRenderer(typeof(ChannelPage), typeof(ChannelPageCustomRenderer))] namespace MyApp.iOS { public class ChannelPageCustomRenderer : PageRenderer, IUIGestureRecognizerDelegate { public ChannelPageCustomRenderer() {} public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); ViewController.NavigationController.InteractivePopGestureRecognizer.Enabled = true; ViewController.NavigationController.InteractivePopGestureRecognizer.Delegate = new UIGestureRecognizerDelegate(); } } }

Direct link to gif: http://i.imgur.com/F3zBwH3.gifv


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>