Nativescript FOSS Sidedrawer
This is a fork of https://github.com/gethuman/nativescript-sidedrawer/
This project continues support of nativescript-sidedrawer which may be useful to those who do not wish to use the proprietary Nativescript UI Sidedrawer. This package is free and open source and so it may be modified and packaged with GPL code. It is however not as polished as the UI Sidedrawer.
A Nativescript plugin that allows developers to simply integrate the infamous side drawer pattern.
- Smooth animations
- Pull from side of screen
- Rebound/bounce back open
- Tap off drawer to close
- Follows both Material and Human Interface guidelines
tns plugin add nativescript-sidedrawer
Import the plugin.
Build the drawer with
TnsSideDrawer.build passing config options.
Toggle the side drawer with
Template icons MUST be a resource string.
The listener function ONLY gets called everytime a drawer item is successfully tapped.
You can optionally pass a this context to the
Because you can drag the edge of your screen to go back,
you'll need to manually add and remove the gesture recognition by calling their methods and passing the
Let's say this is your home page.