0

I'm new to NativeScript and I've been following the instructions here to create my app. However I find out that all pages are hooked to the drawer, how do I unhook some pages, such as Login, Create ...?

Sopheakdey Moeun
  • 121
  • 2
  • 11

1 Answers1

2

You can get a reference to the sidedrawer and disable the interaction.

import { getRootView } from "tns-core-modules/application";

this.drawer = <RadSideDrawer>getRootView();
this.drawer.gesturesEnabled = false;

The above is implemented in the login page of this POC application.

Nick Iliev
  • 9,610
  • 3
  • 35
  • 89