Animated-Menu是NativeScript模块,可以添加一个动态菜单到iOS应用。Android支持会基于这个项目添加一些Android动画。
在应用目录中运行npminstallnativescript-animated-menu--save:
.├── app <------------------------------ run npm install from here│ ├── app.css│ ├── app.js│ ├── bootstrap.js│ ├── main-page.js│ ├── main-page.xml│ ├── node_modules│ │ └── nativescript-animated-menu <-- The install will place the module's code here│ │ └── ...│ └── package.json <----------------- The install will register “nativescript-animated-menu” as a dependency here│ └── tns_modules│ └── ...└── platforms └── ios使用
root-page <-------------this is the page that will host the animated menu element └── animated-menu <------------the animated menu element will reference the menu page and main page (see below) └── menu-page └── main-page
评论