├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── issue_template.md ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── demo-angular ├── App_Resources │ ├── Android │ │ ├── app.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── background.png │ │ │ ├── ic_home.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_view_list.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-ldpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-mdpi │ │ │ ├── background.png │ │ │ ├── ic_home.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_view_list.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-nodpi │ │ │ └── splash_screen.xml │ │ │ ├── drawable-xhdpi │ │ │ ├── background.png │ │ │ ├── ic_home.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_view_list.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── background.png │ │ │ ├── ic_home.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_view_list.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── background.png │ │ │ ├── ic_home.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_view_list.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── values-v21 │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ └── styles.xml │ └── iOS │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-1024.png │ │ │ ├── icon-29.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ └── icon-83.5@2x.png │ │ ├── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── Default-1125h.png │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape-X.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ └── Default@2x.png │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ ├── LaunchScreen.Center.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-Center.png │ │ │ └── LaunchScreen-Center@2x.png │ │ ├── ic_home.imageset │ │ │ ├── Contents.json │ │ │ ├── ic_home.png │ │ │ ├── ic_home_2x.png │ │ │ └── ic_home_3x.png │ │ ├── ic_menu.imageset │ │ │ ├── Contents.json │ │ │ ├── ic_menu.png │ │ │ ├── ic_menu_2x.png │ │ │ └── ic_menu_3x.png │ │ └── ic_view_list.imageset │ │ │ ├── Contents.json │ │ │ ├── ic_view_list.png │ │ │ ├── ic_view_list_2x.png │ │ │ └── ic_view_list_3x.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── build.xcconfig ├── angular.json ├── nsconfig.json ├── package-lock.json ├── package.json ├── src │ ├── app.css │ ├── app │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ ├── app.routing.ts │ │ ├── first-tab │ │ │ ├── first-tab.component.html │ │ │ └── first-tab.component.ts │ │ ├── tabs │ │ │ ├── tabs.component.css │ │ │ ├── tabs.component.html │ │ │ └── tabs.component.ts │ │ └── third-tab │ │ │ ├── third-tab.component.html │ │ │ └── third-tab.component.ts │ ├── main.ts │ └── package.json ├── tsconfig.json └── tsconfig.tns.json ├── demo-vue ├── .editorconfig ├── .gitignore ├── LICENSE ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── app.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-1024.png │ │ │ │ ├── icon-20.png │ │ │ │ ├── icon-20@2x.png │ │ │ │ ├── icon-20@3x.png │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ └── icon-83.5@2x.png │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Contents.json │ │ │ │ ├── Default-1125h.png │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape-X.png │ │ │ │ ├── Default-Landscape-XR.png │ │ │ │ ├── Default-Landscape-XS-Max.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait-XR.png │ │ │ │ ├── Default-Portrait-XS-Max.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ ├── Default.png │ │ │ │ └── Default@2x.png │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ ├── LaunchScreen-AspectFill@2x.png │ │ │ │ └── LaunchScreen.AspectFill@3x.png │ │ │ ├── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ ├── LaunchScreen-Center@2x.png │ │ │ │ └── LaunchScreen.Center@3x.png │ │ │ ├── ic_home.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_home_2x.png │ │ │ │ └── ic_home_3x.png │ │ │ ├── ic_menu.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_menu_2x.png │ │ │ │ └── ic_menu_3x.png │ │ │ └── ic_view_list.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── ic_view_list_2x.png │ │ │ │ └── ic_view_list_3x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── build.xcconfig │ ├── _app-common.scss │ ├── _app-variables.scss │ ├── app.js │ ├── app.scss │ ├── components │ │ └── Home.vue │ ├── fonts │ │ └── FontAwesome.ttf │ └── package.json ├── jsconfig.json ├── nsconfig.json ├── package.json ├── tsconfig.json └── webpack.config.js ├── demo ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── app.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-1024.png │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ └── icon-83.5@2x.png │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Contents.json │ │ │ │ ├── Default-1125h.png │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape-X.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ ├── Default.png │ │ │ │ └── Default@2x.png │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ ├── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ ├── ic_home.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── ic_home.png │ │ │ │ ├── ic_home_2x.png │ │ │ │ └── ic_home_3x.png │ │ │ ├── ic_menu.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── ic_menu.png │ │ │ │ ├── ic_menu_2x.png │ │ │ │ └── ic_menu_3x.png │ │ │ └── ic_view_list.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── ic_view_list.png │ │ │ │ ├── ic_view_list_2x.png │ │ │ │ └── ic_view_list_3x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── build.xcconfig │ ├── app-root.xml │ ├── app.css │ ├── app.ts │ ├── main-page.ts │ ├── main-page.xml │ └── package.json ├── package-lock.json ├── package.json ├── tsconfig.json └── tsconfig.tns.json ├── publish ├── pack.sh ├── package.json └── publish.sh ├── screenshots └── screenshot-ios.png ├── src ├── .npmignore ├── angular │ ├── index.d.ts │ ├── index.ts │ ├── nativescript-bottom-navigation-bar.directives.d.ts │ ├── nativescript-bottom-navigation-bar.directives.ts │ ├── nativescript-bottom-navigation-bar.module.d.ts │ ├── nativescript-bottom-navigation-bar.module.ts │ └── package.json ├── bottom-navigation-bar.android.ts ├── bottom-navigation-bar.ios.ts ├── declarations │ ├── mdc.android.d.ts │ └── mdc.ios.d.ts ├── index.d.ts ├── lib │ ├── android │ │ ├── bottom-navigation-bar.d.ts │ │ ├── bottom-navigation-bar.ts │ │ ├── bottom-navigation-tab.d.ts │ │ ├── bottom-navigation-tab.ts │ │ ├── listeners │ │ │ ├── on-tab-reselected.listener.d.ts │ │ │ ├── on-tab-reselected.listener.ts │ │ │ ├── on-tab-selected.listener.d.ts │ │ │ └── on-tab-selected.listener.ts │ │ ├── utils.d.ts │ │ └── utils.ts │ ├── base │ │ ├── bottom-navigation-bar.base.d.ts │ │ ├── bottom-navigation-bar.base.ts │ │ ├── bottom-navigation-tab.base.d.ts │ │ └── bottom-navigation-tab.base.ts │ ├── internal │ │ ├── internals.d.ts │ │ └── internals.ts │ └── ios │ │ ├── bottom-navigation-bar.d.ts │ │ ├── bottom-navigation-bar.delegate.d.ts │ │ ├── bottom-navigation-bar.delegate.ts │ │ ├── bottom-navigation-bar.ts │ │ ├── bottom-navigation-tab.d.ts │ │ └── bottom-navigation-tab.ts ├── package.json ├── platforms │ ├── android │ │ └── include.gradle │ └── ios │ │ └── Podfile ├── references.d.ts ├── scripts │ └── build-native.js ├── tsconfig.json └── vue │ ├── index.d.ts │ ├── index.ts │ └── package.json └── tslint.json /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[BUG] " 5 | labels: bug, help wanted 6 | assignees: henrychavez 7 | 8 | --- 9 | 10 | **Before start:** 11 | - Make sure to check the demo app(s) for sample usage 12 | - Make sure to check the existing issues in this repository 13 | - If the demo apps cannot help and there is no issue for your problem, tell us about it 14 | 15 | --- 16 | 17 | **Which platform(s) does your issue occur on?** 18 | - [ ] iOS 19 | - [ ] Android 20 | 21 | **What type of device?** 22 | - [ ] Emulator 23 | - [ ] Device 24 | 25 | **Please, provide the following version numbers that your issue occurs with:** 26 | 27 | - CLI: (run `tns --version` to fetch it) 28 | - Cross-platform modules: (check the 'version' attribute in the 29 | `node_modules/tns-core-modules/package.json` file in your project) 30 | - Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project) 31 | - Plugin(s): (look for the version numbers in the `package.json` file of your 32 | project and paste your dependencies and devDependencies here) 33 | 34 | **Please, tell us how to recreate the issue in as much detail as possible.** 35 | Describe the steps to reproduce the behavior: 36 | 1. Go to '...' 37 | 2. Click on '...' 38 | 3. See error 39 | 40 | **Is there any code involved?** 41 | - Provide a code example to recreate the problem 42 | - (EVEN BETTER) Provide a .zip with an application or refer to a repository with an application where the problem is reproducible. 43 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: "[FEATURE] " 5 | labels: feature, help wanted 6 | assignees: henrychavez 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | ### Make sure to check the demo app(s) for sample usage 2 | 3 | ### Make sure to check the existing issues in this repository 4 | 5 | ### If the demo apps cannot help and there is no issue for your problem, tell us about it 6 | Please, ensure your title is less than 63 characters long and starts with a capital 7 | letter. 8 | 9 | ### Which platform(s) does your issue occur on? 10 | - iOS/Android/Both 11 | - iOS/Android versions 12 | - emulator or device. What type of device? 13 | 14 | ### Please, provide the following version numbers that your issue occurs with: 15 | 16 | - CLI: (run `tns --version` to fetch it) 17 | - Cross-platform modules: (check the 'version' attribute in the 18 | `node_modules/tns-core-modules/package.json` file in your project) 19 | - Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project) 20 | - Plugin(s): (look for the version numbers in the `package.json` file of your 21 | project and paste your dependencies and devDependencies here) 22 | 23 | ### Please, tell us how to recreate the issue in as much detail as possible. 24 | Describe the steps to reproduce it. 25 | 26 | ### Is there any code involved? 27 | - provide a code example to recreate the problem 28 | - (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible. 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .idea 3 | .DS_Store 4 | *.esm.json 5 | *.js 6 | *.js.map 7 | *.log 8 | *.metadata.json 9 | package-lock.json 10 | src/*.d.ts 11 | !src/index.d.ts 12 | !src/references.d.ts 13 | !src/scripts/*.js 14 | !seed-tests/*.js 15 | seed-tests/seed-copy/**/*.* 16 | seed-tests/seed-copy-new-git-repo/**/*.* 17 | !demo/karma.conf.js 18 | !demo/app/tests/*.js 19 | demo/*.d.ts 20 | !demo/references.d.ts 21 | demo/lib 22 | demo/platforms 23 | node_modules 24 | publish/src 25 | publish/package 26 | demo/report/report.html 27 | demo/report/stats.json 28 | !demo-vue/app/app.js 29 | 30 | !demo-angular/karma.conf.js 31 | !demo-angular/app/tests/*.js 32 | demo-angular/*.d.ts 33 | !demo-angular/references.d.ts 34 | demo-angular/lib 35 | demo-angular/platforms 36 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | branches: 2 | only: 3 | - master 4 | matrix: 5 | include: 6 | - stage: 'Lint' 7 | language: node_js 8 | os: linux 9 | node_js: '10' 10 | script: 11 | - cd src && npm run ci.tslint 12 | - stage: 'WebPack' 13 | os: osx 14 | env: 15 | - WebPack="iOS" 16 | osx_image: xcode10 17 | language: node_js 18 | node_js: '10' 19 | jdk: oraclejdk8 20 | before_install: 21 | - pip install --upgrade pip 22 | - pip install --user --upgrade matplotlib 23 | - pip install six 24 | before_script: pod repo update 25 | script: 26 | - cd src && npm run build 27 | - cd ../demo && npm i && tns build ios --env.uglify 28 | - cd ../demo-angular && npm i && tns build ios --env.uglify 29 | - language: android 30 | os: linux 31 | env: 32 | - WebPack="Android" 33 | jdk: oraclejdk8 34 | before_install: nvm install 10 35 | script: 36 | - cd src && npm run build 37 | - cd ../demo && npm i && tns build android --env.uglify --env.snapshot 38 | - cd ../demo-angular && npm i && tns build android --env.uglify --env.snapshot 39 | - stage: 'Build' 40 | os: linux 41 | language: android 42 | env: 43 | - BuildAndroid="28" 44 | jdk: oraclejdk8 45 | before_install: nvm install 10 46 | script: 47 | - cd src && npm run build 48 | - cd ../demo && npm i && tns build android 49 | - cd ../demo-angular && npm i && tns build android 50 | - cd ../demo-vue && npm i && tns build android 51 | - os: osx 52 | env: 53 | - BuildiOS="12" 54 | - Xcode="10" 55 | osx_image: xcode10 56 | language: node_js 57 | node_js: '10' 58 | jdk: oraclejdk8 59 | before_install: 60 | - pip install --upgrade pip 61 | - pip install --user --upgrade matplotlib 62 | - pip install six 63 | before_script: pod repo update 64 | script: 65 | - cd src && npm run build 66 | - cd ../demo && npm i && tns build ios 67 | - cd ../demo-angular && npm i && tns build ios 68 | - cd ../demo-vue && npm i && tns build ios 69 | 70 | android: 71 | components: 72 | - tools 73 | - platform-tools 74 | - build-tools-28.0.3 75 | - android-28 76 | - extra-android-m2repository 77 | - sys-img-armeabi-v7a-android-21 78 | 79 | before_install: 80 | - sudo pip install --upgrade pip 81 | - sudo pip install six 82 | 83 | install: 84 | - echo no | npm install -g nativescript 85 | - echo no | npm install -g typescript 86 | - tns usage-reporting disable 87 | - tns error-reporting disable 88 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // implementation 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | } 12 | aaptOptions { 13 | additionalParameters "--no-version-vectors" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/ic_home.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/ic_home.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/ic_home.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_home.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_home.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 14 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/Android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | 19 | 21 | 22 | 23 | 31 | 32 | 34 | 35 | 36 | 42 | 43 | 45 | 46 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "icon-60@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "icon-60@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "icon-29.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "29x29", 53 | "idiom" : "ipad", 54 | "filename" : "icon-29@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "icon-40.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "40x40", 65 | "idiom" : "ipad", 66 | "filename" : "icon-40@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "icon-76.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "76x76", 77 | "idiom" : "ipad", 78 | "filename" : "icon-76@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "83.5x83.5", 83 | "idiom" : "ipad", 84 | "filename" : "icon-83.5@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "1024x1024", 89 | "idiom" : "ios-marketing", 90 | "filename" : "icon-1024.png", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_home.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_home_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_home_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_menu.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_menu_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_menu_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_view_list.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_view_list_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_view_list_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_2x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-angular/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_3x.png -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /demo-angular/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /demo-angular/angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "cli": { 6 | "defaultCollection": "@nativescript/schematics" 7 | }, 8 | "projects": { 9 | "hello-world": { 10 | "root": "", 11 | "sourceRoot": ".", 12 | "projectType": "application", 13 | "prefix": "ns" 14 | } 15 | }, 16 | "defaultProject": "hello-world" 17 | } 18 | -------------------------------------------------------------------------------- /demo-angular/nsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "appResourcesPath": "App_Resources", 3 | "appPath": "src" 4 | } 5 | -------------------------------------------------------------------------------- /demo-angular/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "nativescript": { 3 | "id": "org.nativescript.demo.angular", 4 | "tns-android": { 5 | "version": "6.0.0" 6 | }, 7 | "tns-ios": { 8 | "version": "6.0.1" 9 | } 10 | }, 11 | "dependencies": { 12 | "@angular/animations": "~8.0.0", 13 | "@angular/common": "~8.0.0", 14 | "@angular/compiler": "~8.0.0", 15 | "@angular/core": "~8.0.0", 16 | "@angular/forms": "~8.0.0", 17 | "@angular/http": "~8.0.0-beta.10", 18 | "@angular/platform-browser": "~8.0.0", 19 | "@angular/platform-browser-dynamic": "~8.0.0", 20 | "@angular/router": "~8.0.0", 21 | "nativescript-angular": "~8.0.0", 22 | "nativescript-bottom-navigation": "file:../src", 23 | "nativescript-theme-core": "~1.0.6", 24 | "reflect-metadata": "~0.1.12", 25 | "rxjs": "~6.5.0", 26 | "tns-core-modules": "~6.0.0", 27 | "zone.js": "~0.9.1" 28 | }, 29 | "devDependencies": { 30 | "@angular/compiler-cli": "~8.0.0", 31 | "@ngtools/webpack": "~8.0.0", 32 | "nativescript-dev-webpack": "~1.0.0", 33 | "typescript": "~3.4.0" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /demo-angular/src/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.css file is where you place CSS rules that 3 | you would like to apply to your entire application. Check out 4 | http://docs.nativescript.org/ui/styling for a full list of the CSS 5 | selectors and properties you can use to style UI components. 6 | 7 | /* 8 | In many cases you may want to use the NativeScript core theme instead 9 | of writing your own CSS rules. For a full list of class names in the theme 10 | refer to http://docs.nativescript.org/ui/theme. 11 | */ 12 | @import '~nativescript-theme-core/css/core.light.css'; 13 | -------------------------------------------------------------------------------- /demo-angular/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ns-app', 5 | moduleId: module.id, 6 | template: ` 7 | 8 | `, 9 | }) 10 | export class AppComponent {} 11 | -------------------------------------------------------------------------------- /demo-angular/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; 2 | import { NativeScriptModule } from 'nativescript-angular/nativescript.module'; 3 | import { NativeScriptBottomNavigationBarModule } from 'nativescript-bottom-navigation/angular'; 4 | 5 | import { TabsComponent } from './tabs/tabs.component'; 6 | import { FirstTabComponent } from './first-tab/first-tab.component'; 7 | import { ThirdTabComponent } from './third-tab/third-tab.component'; 8 | import { AppRoutingModule } from './app.routing'; 9 | import { AppComponent } from './app.component'; 10 | 11 | @NgModule({ 12 | bootstrap: [AppComponent], 13 | imports: [ 14 | NativeScriptModule, 15 | AppRoutingModule, 16 | NativeScriptBottomNavigationBarModule, 17 | ], 18 | declarations: [ 19 | AppComponent, 20 | TabsComponent, 21 | FirstTabComponent, 22 | ThirdTabComponent, 23 | ], 24 | schemas: [NO_ERRORS_SCHEMA], 25 | }) 26 | export class AppModule {} 27 | -------------------------------------------------------------------------------- /demo-angular/src/app/app.routing.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { NativeScriptRouterModule } from 'nativescript-angular/router'; 3 | import { Routes } from '@angular/router'; 4 | 5 | import { TabsComponent } from './tabs/tabs.component'; 6 | 7 | const routes: Routes = [ 8 | { path: '', redirectTo: '/tabs', pathMatch: 'full' }, 9 | { path: 'tabs', component: TabsComponent }, 10 | ]; 11 | 12 | @NgModule({ 13 | imports: [NativeScriptRouterModule.forRoot(routes)], 14 | exports: [NativeScriptRouterModule], 15 | }) 16 | export class AppRoutingModule {} 17 | -------------------------------------------------------------------------------- /demo-angular/src/app/first-tab/first-tab.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /demo-angular/src/app/first-tab/first-tab.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, AfterViewInit } from '@angular/core'; 2 | 3 | @Component({ 4 | moduleId: module.id, 5 | selector: 'ns-first-tab', 6 | templateUrl: './first-tab.component.html', 7 | }) 8 | export class FirstTabComponent implements AfterViewInit { 9 | ngAfterViewInit() {} 10 | } 11 | -------------------------------------------------------------------------------- /demo-angular/src/app/tabs/tabs.component.css: -------------------------------------------------------------------------------- 1 | .custom-bottom-navigation-bar { 2 | active-color: #0d43f3; 3 | background-color: white; 4 | inactive-color: #9eb1f0; 5 | } 6 | -------------------------------------------------------------------------------- /demo-angular/src/app/tabs/tabs.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | 21 | 25 | 30 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /demo-angular/src/app/tabs/tabs.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild, ElementRef } from '@angular/core'; 2 | import { 3 | TabPressedEventData, 4 | TabSelectedEventData, 5 | TabReselectedEventData, 6 | BottomNavigationBar, 7 | } from 'nativescript-bottom-navigation'; 8 | 9 | @Component({ 10 | moduleId: module.id, 11 | selector: 'app-tabs', 12 | templateUrl: './tabs.component.html', 13 | styleUrls: ['./tabs.component.css'], 14 | }) 15 | export class TabsComponent { 16 | @ViewChild('bottomNavigationBar', { read: ElementRef, static: false }) 17 | private _bottomNavigationBar: ElementRef; 18 | 19 | onbottomNavigationBarLoaded(): void { 20 | const bottomNavigationBar = this._bottomNavigationBar.nativeElement; 21 | bottomNavigationBar.showBadge(1); 22 | bottomNavigationBar.showBadge(2, 4); 23 | } 24 | 25 | onBottomNavigationTabPressed(args: TabPressedEventData): void { 26 | alert( 27 | 'This tab has isSelectable: false, and should be used to perform actions', 28 | ); 29 | console.log(`pressed tab index: ${args.index}`); 30 | } 31 | 32 | onBottomNavigationTabSelected(args: TabSelectedEventData): void { 33 | console.log(`old tab index: ${args.oldIndex}`); 34 | console.log(`selected tab index: ${args.newIndex}`); 35 | } 36 | 37 | onBottomNavigationTabReselected(args: TabReselectedEventData): void { 38 | alert('Tab Reselected'); 39 | console.log(`reselected tab index: ${args.index}`); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /demo-angular/src/app/third-tab/third-tab.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /demo-angular/src/app/third-tab/third-tab.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, AfterViewInit } from '@angular/core'; 2 | 3 | @Component({ 4 | moduleId: module.id, 5 | selector: 'ns-third-tab', 6 | templateUrl: './third-tab.component.html', 7 | }) 8 | export class ThirdTabComponent implements AfterViewInit { 9 | ngAfterViewInit() {} 10 | } 11 | -------------------------------------------------------------------------------- /demo-angular/src/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform"; 3 | 4 | import { AppModule } from "./app/app.module"; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /demo-angular/src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "main.js", 3 | "android": { 4 | "v8Flags": "--expose_gc" 5 | } 6 | } -------------------------------------------------------------------------------- /demo-angular/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "skipLibCheck": true, 10 | "lib": ["es6", "dom", "es2015.iterable"], 11 | "baseUrl": ".", 12 | "paths": { 13 | "~/*": ["src/*"], 14 | "*": ["./node_modules/*"] 15 | } 16 | }, 17 | "include": ["../src/**/*", "**/*"], 18 | "exclude": ["../src/node_modules", "node_modules", "platforms"] 19 | } 20 | -------------------------------------------------------------------------------- /demo-angular/tsconfig.tns.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "es2015", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /demo-vue/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | trim_trailing_whitespace = true 7 | charset = utf-8 8 | 9 | [*.json] 10 | indent_style = space 11 | indent_size = 2 12 | 13 | [*.js] 14 | indent_style = space 15 | indent_size = 4 16 | -------------------------------------------------------------------------------- /demo-vue/.gitignore: -------------------------------------------------------------------------------- 1 | # NativeScript 2 | hooks/ 3 | !hooks/after-createProject/*.js 4 | node_modules/ 5 | platforms/ 6 | 7 | # NativeScript Template 8 | *.js.map 9 | !webpack.config.js 10 | *.css 11 | 12 | # Logs 13 | logs 14 | *.log 15 | npm-debug.log* 16 | yarn-debug.log* 17 | yarn-error.log* 18 | 19 | # General 20 | .DS_Store 21 | .AppleDouble 22 | .LSOverride 23 | .idea 24 | .cloud 25 | .project 26 | tmp/ 27 | typings/ 28 | 29 | # Visual Studio Code 30 | .vscode/* 31 | !.vscode/settings.json 32 | !.vscode/tasks.json 33 | !.vscode/launch.json 34 | !.vscode/extensions.json 35 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // implementation 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | // If you want to add something to be applied before applying plugins' include.gradle files 9 | // e.g. project.ext.googlePlayServicesVersion = "15.0.1" 10 | // create a file named before-plugins.gradle in the current directory and place it there 11 | 12 | android { 13 | defaultConfig { 14 | generatedDensities = [] 15 | } 16 | aaptOptions { 17 | additionalParameters "--no-version-vectors" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_home.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_home.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_home.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_home.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_home.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 14 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/Android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 17 | 18 | 20 | 21 | 22 | 29 | 30 | 32 | 33 | 34 | 39 | 40 | 42 | 43 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "icon-20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "icon-20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "icon-29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "icon-29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "icon-40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "icon-40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "icon-60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "icon-60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "icon-20.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "icon-20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "icon-29.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "icon-29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "icon-40.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "icon-40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "icon-76.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "icon-76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "icon-83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "icon-1024.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchScreen.AspectFill@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen.AspectFill@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen.AspectFill@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchScreen.Center@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen.Center@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen.Center@3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_home.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_home_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_home_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_menu.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_menu_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_menu_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_view_list.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_view_list_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_view_list_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_2x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_3x.png -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UIStatusBarStyle 47 | UIStatusBarStyleLightContent 48 | UIViewControllerBasedStatusBarAppearance 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /demo-vue/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /demo-vue/app/_app-common.scss: -------------------------------------------------------------------------------- 1 | // Place any CSS rules you want to apply on both iOS and Android here. 2 | // This is where the vast majority of your CSS code goes. 3 | 4 | //Font icon 5 | .fa { 6 | font-family: "FontAwesome"; 7 | } 8 | -------------------------------------------------------------------------------- /demo-vue/app/_app-variables.scss: -------------------------------------------------------------------------------- 1 | // Import the theme’s variables. If you’re using a color scheme 2 | // other than “light”, switch the path to the alternative scheme, 3 | // for example '~nativescript-theme-core/scss/dark'. 4 | @import '~nativescript-theme-core/scss/light'; 5 | 6 | // Custom colors 7 | $background-dark: #F8F8F8 !default; 8 | $background-light: #FFFFFF !default; 9 | 10 | $blue-dark: #022734 !default; 11 | $blue-light: #02556E !default; 12 | $blue-50: rgba($blue-dark, 0.5) !default; 13 | $blue-20: rgba($blue-dark, 0.2) !default; 14 | $blue-10: rgba($blue-dark, 0.1) !default; 15 | 16 | $accent-dark: #3A53FF !default; 17 | $accent-light: #4781FE !default; 18 | 19 | $success-dark: #06CE6A !default; 20 | $success-light: #00E676 !default; 21 | 22 | $warning-dark: #f39c11 !default; 23 | $warning-light: #F2C112 !default; 24 | 25 | $error-dark: #D84039 !default; 26 | $error-light: #ED473F !default; 27 | 28 | $midnight-dark: #0F336D !default; 29 | $midnight-light: #14418B !default; 30 | 31 | $night-dark: #023141 !default; 32 | $night-light: #01526C !default; 33 | 34 | // Sizes 35 | $base-font-size: 11; 36 | 37 | $border-width: 1; 38 | $border-radius: 3; 39 | 40 | 41 | /** 42 | * Theme variables overrides 43 | **/ 44 | 45 | // Colors 46 | $background: #fff; 47 | $primary: lighten(#000, 13%); 48 | $secondary: lighten(#000, 46%); 49 | $disabled: lighten(#000, 62%); 50 | $accent: $accent-dark; 51 | $error: $error-light; 52 | 53 | // SideDrawer 54 | $item-color-android : #737373; 55 | $item-active-background: #F8F8F8; 56 | $item-active-color: $accent; 57 | $item-active-icon-color: $item-active-color; 58 | $item-color-ios: $blue-dark; 59 | $item-color-android: $blue-dark; 60 | 61 | $side-drawer-header-background: #fafafa; 62 | $side-drawer-header-brand: #737373; 63 | $side-drawer-background: #FFFFFF; 64 | 65 | // ActionBar 66 | $ab-background: $accent; 67 | $ab-color: $white; 68 | 69 | // Buttons 70 | $btn-color-inverse: $white; 71 | $btn-color: $accent; 72 | $btn-color-secondary: darken($btn-color, 10%); 73 | $btn-color-outline-highlighted: lighten($btn-color, 10%); 74 | 75 | //Text colors 76 | $headings-color: $blue-dark; 77 | $secondary: $blue-dark; 78 | $text-color: $blue-dark; -------------------------------------------------------------------------------- /demo-vue/app/app.js: -------------------------------------------------------------------------------- 1 | import Vue from 'nativescript-vue'; 2 | import BottomNavigationBar from 'nativescript-bottom-navigation/vue'; 3 | 4 | import Home from './components/Home'; 5 | 6 | Vue.use(BottomNavigationBar); 7 | 8 | new Vue({ 9 | template: ` 10 | 11 | 12 | `, 13 | 14 | components: { 15 | Home, 16 | }, 17 | }).$start(); 18 | -------------------------------------------------------------------------------- /demo-vue/app/app.scss: -------------------------------------------------------------------------------- 1 | // Import app variables 2 | @import 'app-variables'; 3 | 4 | // Import the theme’s main ruleset - both index and platform specific. 5 | @import '~nativescript-theme-core/scss/index'; 6 | 7 | // Import common styles 8 | @import 'app-common'; 9 | -------------------------------------------------------------------------------- /demo-vue/app/components/Home.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 51 | 52 | 65 | -------------------------------------------------------------------------------- /demo-vue/app/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo-vue/app/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /demo-vue/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "app.js", 3 | "android": { 4 | "v8Flags": "--expose_gc", 5 | "markingMode": "none" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /demo-vue/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "./", 4 | "paths": { 5 | "*": ["./node_modules/tns-core-modules/*", "./node_modules/*"], 6 | "~/*": ["app/*"] 7 | } 8 | }, 9 | "include": ["app/**/*"] 10 | } 11 | -------------------------------------------------------------------------------- /demo-vue/nsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "useLegacyWorkflow": false 3 | } 4 | -------------------------------------------------------------------------------- /demo-vue/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "nativescript": { 3 | "id": "org.nativescript.demo.vue", 4 | "tns-android": { 5 | "version": "6.0.0" 6 | }, 7 | "tns-ios": { 8 | "version": "6.0.1" 9 | } 10 | }, 11 | "scripts": { 12 | "build.plugin": "cd ../src && npm run build" 13 | }, 14 | "dependencies": { 15 | "nativescript-bottom-navigation": "file:../src", 16 | "nativescript-theme-core": "~1.0.6", 17 | "nativescript-vue": "~2.4.0", 18 | "tns-core-modules": "~6.0.0" 19 | }, 20 | "devDependencies": { 21 | "@babel/core": "~7.1.0", 22 | "@babel/preset-env": "~7.1.0", 23 | "babel-loader": "~8.0.0", 24 | "nativescript-dev-webpack": "~1.0.0", 25 | "nativescript-vue-template-compiler": "~2.4.0", 26 | "node-sass": "^4.7.1", 27 | "vue-loader": "~15.4.0", 28 | "typescript": "3.4.5" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /demo-vue/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "skipLibCheck": true, 10 | "lib": ["es6", "dom"], 11 | "baseUrl": ".", 12 | "paths": { 13 | "~/*": ["app/*"], 14 | "*": ["./node_modules/*"] 15 | } 16 | }, 17 | "include": ["../src/**/*", "**/*"], 18 | "exclude": ["../src/node_modules", "node_modules", "platforms"] 19 | } 20 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | } 12 | aaptOptions { 13 | additionalParameters "--no-version-vectors" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_home.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_home.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_home.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_home.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_home.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_view_list.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 14 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /demo/app/App_Resources/Android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | 19 | 21 | 22 | 23 | 31 | 32 | 34 | 35 | 36 | 42 | 43 | 45 | 46 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "icon-60@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "icon-60@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "icon-29.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "29x29", 53 | "idiom" : "ipad", 54 | "filename" : "icon-29@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "icon-40.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "40x40", 65 | "idiom" : "ipad", 66 | "filename" : "icon-40@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "icon-76.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "76x76", 77 | "idiom" : "ipad", 78 | "filename" : "icon-76@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "83.5x83.5", 83 | "idiom" : "ipad", 84 | "filename" : "icon-83.5@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "1024x1024", 89 | "idiom" : "ios-marketing", 90 | "filename" : "icon-1024.png", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_home.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_home_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_home_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_home.imageset/ic_home_3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_menu.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_menu_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_menu_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_menu.imageset/ic_menu_3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "filename": "ic_view_list.png", 5 | "idiom": "universal", 6 | "scale": "1x" 7 | }, 8 | { 9 | "filename": "ic_view_list_2x.png", 10 | "idiom": "universal", 11 | "scale": "2x" 12 | }, 13 | { 14 | "filename": "ic_view_list_3x.png", 15 | "idiom": "universal", 16 | "scale": "3x" 17 | } 18 | ], 19 | "info": { 20 | "author": "xcode", 21 | "version": 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_2x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/demo/app/App_Resources/iOS/Assets.xcassets/ic_view_list.imageset/ic_view_list_3x.png -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /demo/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /demo/app/app-root.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demo/app/app.css: -------------------------------------------------------------------------------- 1 | @import '~nativescript-theme-core/css/core.light.css'; 2 | 3 | .custom-bottom-navigation-bar { 4 | active-color: #0d43f3; 5 | background-color: white; 6 | inactive-color: #9eb1f0; 7 | } 8 | -------------------------------------------------------------------------------- /demo/app/app.ts: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.ts file is the entry point to your application. 3 | You can use this file to perform app-level initialization, but the primary 4 | purpose of the file is to pass control to the app’s first module. 5 | */ 6 | 7 | import * as application from 'tns-core-modules/application'; 8 | 9 | application.run({ moduleName: 'app-root' }); 10 | 11 | /* 12 | Do not place any code after the application has been started as it will not 13 | be executed on iOS. 14 | */ 15 | -------------------------------------------------------------------------------- /demo/app/main-page.ts: -------------------------------------------------------------------------------- 1 | import { 2 | TabReselectedEventData, 3 | TabSelectedEventData, 4 | TabPressedEventData, 5 | } from 'nativescript-bottom-navigation'; 6 | 7 | export const tabSelected = (args: TabSelectedEventData) => { 8 | console.log('tab selected:', args.newIndex); 9 | }; 10 | 11 | export const tabReselected = (args: TabReselectedEventData) => { 12 | console.log('tab reselected:', args.index); 13 | alert('tab reselected'); 14 | }; 15 | 16 | export const tabPressed = (args: TabPressedEventData) => { 17 | console.log('tab pressed:', args.index); 18 | alert( 19 | 'This tab has isSelectable: false, and should be used to perform actions.', 20 | ); 21 | }; 22 | -------------------------------------------------------------------------------- /demo/app/main-page.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 9 | 16 | 19 | 23 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /demo/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "app.js", 3 | "android": { 4 | "v8Flags": "--expose_gc" 5 | } 6 | } -------------------------------------------------------------------------------- /demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "nativescript": { 3 | "id": "org.nativescript.demo", 4 | "tns-android": { 5 | "version": "6.0.0" 6 | }, 7 | "tns-ios": { 8 | "version": "6.0.1" 9 | } 10 | }, 11 | "dependencies": { 12 | "nativescript-bottom-navigation": "file:../src", 13 | "nativescript-theme-core": "~1.0.4", 14 | "tns-core-modules": "~6.0.0" 15 | }, 16 | "devDependencies": { 17 | "nativescript-dev-webpack": "1.0.1", 18 | "typescript": "3.4.5" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /demo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "skipLibCheck": true, 10 | "lib": ["es6", "dom"], 11 | "baseUrl": ".", 12 | "paths": { 13 | "~/*": ["app/*"], 14 | "*": ["./node_modules/*"] 15 | } 16 | }, 17 | "include": ["../src/**/*", "**/*"], 18 | "exclude": ["../src/node_modules", "node_modules", "platforms"] 19 | } 20 | -------------------------------------------------------------------------------- /demo/tsconfig.tns.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "es2015", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /publish/pack.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SOURCE_DIR=../src; 4 | TO_SOURCE_DIR=src; 5 | PACK_DIR=package; 6 | ROOT_DIR=..; 7 | PUBLISH=--publish 8 | 9 | install(){ 10 | npm i 11 | } 12 | 13 | pack() { 14 | 15 | echo 'Clearing /src and /package...' 16 | node_modules/.bin/rimraf "$TO_SOURCE_DIR" 17 | node_modules/.bin/rimraf "$PACK_DIR" 18 | 19 | # copy src 20 | echo 'Copying src...' 21 | node_modules/.bin/ncp "$SOURCE_DIR" "$TO_SOURCE_DIR" 22 | 23 | # copy README & LICENSE to src 24 | echo 'Copying README and LICENSE to /src...' 25 | node_modules/.bin/ncp "$ROOT_DIR"/LICENSE "$TO_SOURCE_DIR"/LICENSE 26 | node_modules/.bin/ncp "$ROOT_DIR"/README.md "$TO_SOURCE_DIR"/README.md 27 | 28 | # compile package and copy files required by npm 29 | echo 'Building /src...' 30 | cd "$TO_SOURCE_DIR" 31 | npm run build 32 | cd .. 33 | 34 | echo 'Creating package...' 35 | # create package dir 36 | mkdir "$PACK_DIR" 37 | 38 | # create the package 39 | cd "$PACK_DIR" 40 | npm pack ../"$TO_SOURCE_DIR" 41 | 42 | # delete source directory used to create the package 43 | cd .. 44 | node_modules/.bin/rimraf "$TO_SOURCE_DIR" 45 | } 46 | 47 | install && pack -------------------------------------------------------------------------------- /publish/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nativescript-publish", 3 | "version": "1.0.0", 4 | "description": "Publish helper", 5 | "devDependencies": { 6 | "ncp": "^2.0.0", 7 | "rimraf": "^2.5.0" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /publish/publish.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PACK_DIR=package; 4 | 5 | publish() { 6 | cd $PACK_DIR 7 | echo 'Publishing to npm...' 8 | npm publish *.tgz 9 | } 10 | 11 | ./pack.sh && publish -------------------------------------------------------------------------------- /screenshots/screenshot-ios.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henrychavez/nativescript-bottom-navigation/bec186cc2a6dbceec17d59416824207c027e169b/screenshots/screenshot-ios.png -------------------------------------------------------------------------------- /src/.npmignore: -------------------------------------------------------------------------------- 1 | *.map 2 | *.ts 3 | !*.d.ts 4 | .DS_Store 5 | tsconfig.json 6 | scripts/* 7 | platforms/android/* 8 | !platforms/android/include.gradle 9 | !platforms/android/*.aar 10 | !platforms/android/*.jar 11 | -------------------------------------------------------------------------------- /src/angular/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './nativescript-bottom-navigation-bar.module'; 2 | -------------------------------------------------------------------------------- /src/angular/index.ts: -------------------------------------------------------------------------------- 1 | export * from './nativescript-bottom-navigation-bar.module'; 2 | -------------------------------------------------------------------------------- /src/angular/nativescript-bottom-navigation-bar.directives.d.ts: -------------------------------------------------------------------------------- 1 | export declare class BottomNavigationBarDirective { 2 | } 3 | export declare class BottomNavigationTabDirective { 4 | } 5 | export declare const DIRECTIVES: (typeof BottomNavigationBarDirective)[]; 6 | -------------------------------------------------------------------------------- /src/angular/nativescript-bottom-navigation-bar.directives.ts: -------------------------------------------------------------------------------- 1 | import { Directive } from '@angular/core'; 2 | 3 | @Directive({ 4 | selector: 'BottomNavigationBar', 5 | }) 6 | export class BottomNavigationBarDirective {} 7 | 8 | @Directive({ 9 | selector: 'BottomNavigationTab', 10 | }) 11 | export class BottomNavigationTabDirective {} 12 | 13 | export const DIRECTIVES = [ 14 | BottomNavigationBarDirective, 15 | BottomNavigationTabDirective, 16 | ]; 17 | -------------------------------------------------------------------------------- /src/angular/nativescript-bottom-navigation-bar.module.d.ts: -------------------------------------------------------------------------------- 1 | export declare class NativeScriptBottomNavigationBarModule { 2 | } 3 | -------------------------------------------------------------------------------- /src/angular/nativescript-bottom-navigation-bar.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { registerElement } from 'nativescript-angular/element-registry'; 3 | 4 | import { DIRECTIVES } from './nativescript-bottom-navigation-bar.directives'; 5 | 6 | @NgModule({ 7 | declarations: [DIRECTIVES], 8 | exports: [DIRECTIVES], 9 | }) 10 | export class NativeScriptBottomNavigationBarModule {} 11 | 12 | registerElement( 13 | 'BottomNavigationBar', 14 | () => require('../').BottomNavigationBar, 15 | ); 16 | registerElement( 17 | 'BottomNavigationTab', 18 | () => require('../').BottomNavigationTab, 19 | ); 20 | -------------------------------------------------------------------------------- /src/angular/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index.js" 3 | } 4 | -------------------------------------------------------------------------------- /src/bottom-navigation-bar.android.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/internal/internals'; 2 | export * from './lib/android/bottom-navigation-bar'; 3 | export * from './lib/android/bottom-navigation-tab'; 4 | -------------------------------------------------------------------------------- /src/bottom-navigation-bar.ios.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/internal/internals'; 2 | export * from './lib/ios/bottom-navigation-bar'; 3 | export * from './lib/ios/bottom-navigation-tab'; 4 | -------------------------------------------------------------------------------- /src/index.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBarBase } from './lib/base/bottom-navigation-bar.base'; 2 | import { BottomNavigationTabBase } from './lib/base/bottom-navigation-tab.base'; 3 | import { EventData, Color } from 'tns-core-modules/ui/core/view'; 4 | import { 5 | TabSelectedEventData, 6 | TabPressedEventData, 7 | TabReselectedEventData, 8 | TitleVisibility, 9 | } from './lib/internal/internals'; 10 | 11 | export * from './lib/internal/internals'; 12 | 13 | export declare class BottomNavigationBar extends BottomNavigationBarBase { 14 | static tabPressedEvent: string; 15 | static tabSelectedEvent: string; 16 | static tabReselectedEvent: string; 17 | readonly ios: any; 18 | readonly android: any; 19 | readonly items: BottomNavigationTab[]; 20 | selectedTabIndex: number; 21 | titleVisibility: TitleVisibility; 22 | activeColor: Color; 23 | inactiveColor: Color; 24 | backgroundColor: Color; 25 | selectTab(index: number): void; 26 | showBadge(index: number, value?: number): void; 27 | removeBadge(index: number): void; 28 | on( 29 | event: 'tabPressed', 30 | callback: (args: TabPressedEventData) => void, 31 | thisArg?: any, 32 | ): void; 33 | on( 34 | event: 'tabSelected', 35 | callback: (args: TabSelectedEventData) => void, 36 | thisArg?: any, 37 | ): void; 38 | on( 39 | event: 'tabReselected', 40 | callback: (args: TabReselectedEventData) => void, 41 | thisArg?: any, 42 | ): void; 43 | 44 | // Needed when 'on' method is overriden. 45 | on( 46 | eventNames: string, 47 | callback: (data: EventData) => void, 48 | thisArg?: any, 49 | ): void; 50 | protected createTabs(tabs?: BottomNavigationTab[]): void; 51 | protected selectTabNative(index: number): void; 52 | } 53 | 54 | export declare class BottomNavigationTab extends BottomNavigationTabBase { 55 | title: string; 56 | icon: string; 57 | isSelectable: boolean; 58 | getNativeIcon(): any; 59 | } 60 | -------------------------------------------------------------------------------- /src/lib/android/bottom-navigation-bar.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBarBase } from '../base/bottom-navigation-bar.base'; 2 | import { BottomNavigationTab } from './bottom-navigation-tab'; 3 | export declare class BottomNavigationBar extends BottomNavigationBarBase { 4 | nativeView: com.google.android.material.bottomnavigation.BottomNavigationView; 5 | readonly android: com.google.android.material.bottomnavigation.BottomNavigationView; 6 | createNativeView(): com.google.android.material.bottomnavigation.BottomNavigationView; 7 | initNativeView(): void; 8 | showBadge(index: number, value?: number): void; 9 | removeBadge(index: number): void; 10 | protected createTabs(tabs: BottomNavigationTab[] | undefined): void; 11 | protected selectTabNative(index: number): void; 12 | private setActiveColor; 13 | private setInactiveColor; 14 | } 15 | -------------------------------------------------------------------------------- /src/lib/android/bottom-navigation-bar.ts: -------------------------------------------------------------------------------- 1 | import { Color } from 'tns-core-modules/color/color'; 2 | 3 | import { 4 | BottomNavigationBarBase, 5 | tabsProperty, 6 | titleVisibilityProperty, 7 | activeColorCssProperty, 8 | inactiveColorCssProperty, 9 | } from '../base/bottom-navigation-bar.base'; 10 | 11 | import { getOnTabReselectedListener } from './listeners/on-tab-reselected.listener'; 12 | import { getOnTabSelectedlistener } from './listeners/on-tab-selected.listener'; 13 | import { BottomNavigationTab } from './bottom-navigation-tab'; 14 | import { TitleVisibility } from '../internal/internals'; 15 | import { createColorStateList } from './utils'; 16 | 17 | // Classes shortcuts 18 | const { BottomNavigationView } = com.google.android.material.bottomnavigation; 19 | const { Menu } = android.view; 20 | 21 | export class BottomNavigationBar extends BottomNavigationBarBase { 22 | nativeView: com.google.android.material.bottomnavigation.BottomNavigationView; 23 | 24 | get android() { 25 | return this.nativeView; 26 | } 27 | 28 | createNativeView() { 29 | const nativeView = new BottomNavigationView(this._context); 30 | 31 | const OnTabReselectedListener = getOnTabReselectedListener(); 32 | nativeView.setOnNavigationItemReselectedListener( 33 | new OnTabReselectedListener(this), 34 | ); 35 | const OnTabSelectedListener = getOnTabSelectedlistener(); 36 | nativeView.setOnNavigationItemSelectedListener( 37 | new OnTabSelectedListener(this), 38 | ); 39 | 40 | return nativeView; 41 | } 42 | 43 | initNativeView(): void { 44 | super.initNativeView(); 45 | // Create the tabs before setting the default values for each tab 46 | // We call this method here to create the tabs defined in the xml 47 | this.createTabs(this._items); 48 | // Set default LabelVisibilityMode 49 | this.nativeView.setLabelVisibilityMode(this.titleVisibility); 50 | // Set default ActiveColor 51 | this.setActiveColor(this.style.activeColor); 52 | // Set default InactiveColor 53 | this.setInactiveColor(this.style.inactiveColor); 54 | } 55 | 56 | showBadge(index: number, value?: number): void { 57 | const badge = this.nativeView.showBadge(index); 58 | if (value) { 59 | badge.setNumber(value); 60 | } 61 | } 62 | 63 | removeBadge(index: number): void { 64 | this.nativeView.removeBadge(index); 65 | } 66 | 67 | [tabsProperty.setNative](tabs: BottomNavigationTab[]) { 68 | this.createTabs(tabs); 69 | } 70 | 71 | [titleVisibilityProperty.setNative](titleVisibility: TitleVisibility) { 72 | this.nativeView.setLabelVisibilityMode(titleVisibility); 73 | } 74 | 75 | [activeColorCssProperty.setNative](activeColor: Color) { 76 | this.setActiveColor(activeColor); 77 | } 78 | 79 | [inactiveColorCssProperty.setNative](inactiveColor: Color) { 80 | this.setInactiveColor(inactiveColor); 81 | } 82 | 83 | protected createTabs(tabs: BottomNavigationTab[] | undefined) { 84 | const bottomNavigationTabs = this.nativeView.getMenu(); 85 | 86 | if (bottomNavigationTabs.size() > 0) { 87 | bottomNavigationTabs.clear(); 88 | } 89 | 90 | if (tabs) { 91 | this._items = tabs; 92 | } 93 | 94 | this._items.forEach((tab, index) => { 95 | const menuItem = bottomNavigationTabs.add( 96 | Menu.NONE, 97 | index, 98 | Menu.NONE, 99 | tab.title, 100 | ); 101 | menuItem.setIcon(tab.getNativeIcon()); 102 | }); 103 | } 104 | 105 | protected selectTabNative(index: number): void { 106 | const bottomNavigationTabs = this.nativeView.getMenu(); 107 | 108 | if (bottomNavigationTabs.size() === 0) { 109 | return; 110 | } 111 | 112 | this.nativeView.setSelectedItemId(index); 113 | } 114 | 115 | private setActiveColor(activeColor: Color) { 116 | const colorStateList = createColorStateList( 117 | activeColor, 118 | this.style.inactiveColor, 119 | ); 120 | this.nativeView.setItemTextColor(colorStateList); 121 | this.nativeView.setItemIconTintList(colorStateList); 122 | } 123 | 124 | private setInactiveColor(inactiveColor: Color) { 125 | const colorStateList = createColorStateList( 126 | this.style.activeColor, 127 | inactiveColor, 128 | ); 129 | this.nativeView.setItemTextColor(colorStateList); 130 | this.nativeView.setItemIconTintList(colorStateList); 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /src/lib/android/bottom-navigation-tab.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationTabBase } from '../base/bottom-navigation-tab.base'; 2 | export declare class BottomNavigationTab extends BottomNavigationTabBase { 3 | getNativeIcon(): android.graphics.drawable.BitmapDrawable; 4 | } 5 | -------------------------------------------------------------------------------- /src/lib/android/bottom-navigation-tab.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationTabBase } from '../base/bottom-navigation-tab.base'; 2 | import { ImageSource } from 'tns-core-modules/image-source'; 3 | 4 | const { BitmapDrawable } = android.graphics.drawable; 5 | 6 | export class BottomNavigationTab extends BottomNavigationTabBase { 7 | getNativeIcon(): android.graphics.drawable.BitmapDrawable { 8 | // The icon property always will return an ImageSource 9 | // but can be setted with a resource string that will be converted 10 | return new BitmapDrawable((this.icon as ImageSource).android); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/lib/android/listeners/on-tab-reselected.listener.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBar } from '../bottom-navigation-bar'; 2 | declare type OnNavigationItemReselectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener; 3 | interface OnTabReselectedListener { 4 | new (owner: BottomNavigationBar): OnNavigationItemReselectedListener; 5 | } 6 | declare let OnTabReselectedListener: OnTabReselectedListener; 7 | export declare const getOnTabReselectedListener: () => OnTabReselectedListener; 8 | export {}; 9 | -------------------------------------------------------------------------------- /src/lib/android/listeners/on-tab-reselected.listener.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBar } from '../bottom-navigation-bar'; 2 | 3 | // Types shortcuts 4 | declare type OnNavigationItemReselectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener; 5 | 6 | interface OnTabReselectedListener { 7 | new (owner: BottomNavigationBar): OnNavigationItemReselectedListener; 8 | } 9 | 10 | let OnTabReselectedListener: OnTabReselectedListener; 11 | 12 | export const getOnTabReselectedListener = () => { 13 | if (OnTabReselectedListener) { 14 | return OnTabReselectedListener; 15 | } 16 | @Interfaces([ 17 | com.google.android.material.bottomnavigation.BottomNavigationView 18 | .OnNavigationItemReselectedListener, 19 | ]) 20 | class OnTabReselectedListenerImpl extends java.lang.Object 21 | implements OnNavigationItemReselectedListener { 22 | constructor(public owner: BottomNavigationBar) { 23 | super(); 24 | 25 | // necessary when extending TypeScript constructors 26 | return global.__native(this); 27 | } 28 | 29 | public onNavigationItemReselected( 30 | menuItem: globalAndroid.view.MenuItem, 31 | ): void { 32 | this.owner._emitTabReselected(menuItem.getItemId()); 33 | } 34 | } 35 | 36 | OnTabReselectedListener = OnTabReselectedListenerImpl; 37 | 38 | return OnTabReselectedListener; 39 | }; 40 | -------------------------------------------------------------------------------- /src/lib/android/listeners/on-tab-selected.listener.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBar } from '../bottom-navigation-bar'; 2 | declare type OnNavigationItemSelectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener; 3 | interface OnTabSelectedlistener { 4 | new (owner: BottomNavigationBar): OnNavigationItemSelectedListener; 5 | } 6 | declare let OnTabSelectedlistener: OnTabSelectedlistener; 7 | export declare const getOnTabSelectedlistener: () => OnTabSelectedlistener; 8 | export {}; 9 | -------------------------------------------------------------------------------- /src/lib/android/listeners/on-tab-selected.listener.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBar } from '../bottom-navigation-bar'; 2 | 3 | // Types shortcuts 4 | declare type OnNavigationItemSelectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener; 5 | 6 | interface OnTabSelectedlistener { 7 | new (owner: BottomNavigationBar): OnNavigationItemSelectedListener; 8 | } 9 | 10 | let OnTabSelectedlistener: OnTabSelectedlistener; 11 | 12 | export const getOnTabSelectedlistener = () => { 13 | if (OnTabSelectedlistener) { 14 | return OnTabSelectedlistener; 15 | } 16 | 17 | @Interfaces([ 18 | com.google.android.material.bottomnavigation.BottomNavigationView 19 | .OnNavigationItemSelectedListener, 20 | ]) 21 | class OnTabSelectedlistenerImpl extends java.lang.Object 22 | implements OnNavigationItemSelectedListener { 23 | constructor(public owner: BottomNavigationBar) { 24 | super(); 25 | 26 | // necessary when extending TypeScript constructors 27 | return global.__native(this); 28 | } 29 | 30 | public onNavigationItemSelected( 31 | menuItem: globalAndroid.view.MenuItem, 32 | ): boolean { 33 | const bottomNavigationTab = this.owner.items[menuItem.getItemId()]; 34 | 35 | if (bottomNavigationTab.isSelectable) { 36 | this.owner._emitTabSelected(menuItem.getItemId()); 37 | } else { 38 | this.owner._emitTabPressed(menuItem.getItemId()); 39 | } 40 | 41 | return bottomNavigationTab.isSelectable; 42 | } 43 | } 44 | 45 | OnTabSelectedlistener = OnTabSelectedlistenerImpl; 46 | 47 | return OnTabSelectedlistener; 48 | }; 49 | -------------------------------------------------------------------------------- /src/lib/android/utils.d.ts: -------------------------------------------------------------------------------- 1 | import { Color } from 'tns-core-modules/color/color'; 2 | export declare function createColorStateList(activeColor: Color, inactiveColor: Color): globalAndroid.content.res.ColorStateList; 3 | -------------------------------------------------------------------------------- /src/lib/android/utils.ts: -------------------------------------------------------------------------------- 1 | import { Color } from 'tns-core-modules/color/color'; 2 | 3 | // Classes shortcuts 4 | const { ColorStateList } = android.content.res; 5 | 6 | export function createColorStateList(activeColor: Color, inactiveColor: Color) { 7 | const stateChecked = Array.create('int', 1); 8 | stateChecked[0] = android.R.attr.state_checked; 9 | const stateUnChecked = Array.create('int', 0); 10 | 11 | const states = java.lang.reflect.Array.newInstance( 12 | stateChecked.getClass() || stateUnChecked.getClass(), 13 | 2, 14 | ); 15 | states[0] = stateChecked; 16 | states[1] = stateUnChecked; 17 | 18 | const colors = Array.create('int', 2); 19 | colors[0] = activeColor.android; 20 | colors[1] = inactiveColor.android; 21 | 22 | return new ColorStateList(states, colors); 23 | } 24 | -------------------------------------------------------------------------------- /src/lib/base/bottom-navigation-bar.base.d.ts: -------------------------------------------------------------------------------- 1 | import { View, AddChildFromBuilder, Color, Property, CssProperty, Style } from 'tns-core-modules/ui/core/view'; 2 | import { TitleVisibility } from '../internal/internals'; 3 | import { BottomNavigationTabBase } from './bottom-navigation-tab.base'; 4 | export declare abstract class BottomNavigationBarBase extends View implements AddChildFromBuilder { 5 | static tabPressedEvent: string; 6 | static tabSelectedEvent: string; 7 | static tabReselectedEvent: string; 8 | selectedTabIndex: number; 9 | titleVisibility: TitleVisibility; 10 | protected _items: BottomNavigationTabBase[]; 11 | readonly items: BottomNavigationTabBase[]; 12 | inactiveColor: Color; 13 | activeColor: Color; 14 | backgroundColor: Color; 15 | selectTab(index: number): void; 16 | _emitTabPressed(index: number): void; 17 | _emitTabSelected(index: number): void; 18 | _emitTabReselected(index: number): void; 19 | _addChildFromBuilder(name: string, value: BottomNavigationTabBase): void; 20 | abstract showBadge(index: number, value?: number): void; 21 | abstract removeBadge(index: number): void; 22 | protected abstract selectTabNative(index: number): void; 23 | protected abstract createTabs(tabs: BottomNavigationTabBase[] | undefined): void; 24 | } 25 | export declare const tabsProperty: Property; 26 | export declare const titleVisibilityProperty: Property; 27 | export declare const activeColorCssProperty: CssProperty; 28 | export declare const inactiveColorCssProperty: CssProperty; 29 | -------------------------------------------------------------------------------- /src/lib/base/bottom-navigation-bar.base.ts: -------------------------------------------------------------------------------- 1 | import { 2 | CSSType, 3 | View, 4 | AddChildFromBuilder, 5 | Color, 6 | Property, 7 | CssProperty, 8 | Style, 9 | } from 'tns-core-modules/ui/core/view'; 10 | 11 | import { 12 | TitleVisibility, 13 | TabPressedEventData, 14 | TabReselectedEventData, 15 | TabSelectedEventData, 16 | } from '../internal/internals'; 17 | 18 | import { BottomNavigationTabBase } from './bottom-navigation-tab.base'; 19 | 20 | @CSSType('BottomNavigationBar') 21 | export abstract class BottomNavigationBarBase extends View 22 | implements AddChildFromBuilder { 23 | static tabPressedEvent = 'tabPressed'; 24 | static tabSelectedEvent = 'tabSelected'; 25 | static tabReselectedEvent = 'tabReselected'; 26 | 27 | selectedTabIndex: number = 0; 28 | titleVisibility: TitleVisibility = TitleVisibility.Selected; 29 | 30 | protected _items: BottomNavigationTabBase[] = []; 31 | 32 | get items(): BottomNavigationTabBase[] { 33 | return this._items; 34 | } 35 | 36 | get inactiveColor(): Color { 37 | return this.style.inactiveColor; 38 | } 39 | 40 | set inactiveColor(color: Color) { 41 | this.style.inactiveColor = color; 42 | } 43 | 44 | get activeColor(): Color { 45 | return this.style.activeColor; 46 | } 47 | 48 | set activeColor(color: Color) { 49 | this.style.activeColor = color; 50 | } 51 | 52 | get backgroundColor(): Color { 53 | return this.style.backgroundColor; 54 | } 55 | 56 | set backgroundColor(color: Color) { 57 | this.style.backgroundColor = color; 58 | } 59 | 60 | selectTab(index: number): void { 61 | if (index === this.selectedTabIndex) { 62 | return; 63 | } 64 | 65 | this.selectTabNative(index); 66 | } 67 | 68 | _emitTabPressed(index: number) { 69 | let eventData: TabPressedEventData = { 70 | eventName: BottomNavigationBarBase.tabPressedEvent, 71 | object: this, 72 | index, 73 | }; 74 | this.notify(eventData); 75 | this.removeBadge(index); 76 | } 77 | 78 | _emitTabSelected(index: number) { 79 | let eventData: TabSelectedEventData = { 80 | eventName: BottomNavigationBarBase.tabSelectedEvent, 81 | object: this, 82 | oldIndex: this.selectedTabIndex, 83 | newIndex: index, 84 | }; 85 | this.selectedTabIndex = index; 86 | this.notify(eventData); 87 | this.removeBadge(index); 88 | } 89 | 90 | _emitTabReselected(index: number) { 91 | let eventData: TabReselectedEventData = { 92 | eventName: BottomNavigationBarBase.tabReselectedEvent, 93 | object: this, 94 | index, 95 | }; 96 | this.notify(eventData); 97 | } 98 | 99 | _addChildFromBuilder(name: string, value: BottomNavigationTabBase): void { 100 | if (name === 'BottomNavigationTab') { 101 | if (!this._items) { 102 | this._items = []; 103 | } 104 | this._items.push(value); 105 | } 106 | } 107 | 108 | abstract showBadge(index: number, value?: number): void; 109 | abstract removeBadge(index: number): void; 110 | protected abstract selectTabNative(index: number): void; 111 | protected abstract createTabs( 112 | tabs: BottomNavigationTabBase[] | undefined, 113 | ): void; 114 | } 115 | 116 | export const tabsProperty = new Property< 117 | BottomNavigationBarBase, 118 | BottomNavigationTabBase[] 119 | >({ 120 | name: 'tabs', 121 | affectsLayout: true, 122 | }); 123 | 124 | tabsProperty.register(BottomNavigationBarBase); 125 | 126 | export const titleVisibilityProperty = new Property< 127 | BottomNavigationBarBase, 128 | TitleVisibility 129 | >({ 130 | name: 'titleVisibility', 131 | equalityComparer: (x, y) => x === y, 132 | affectsLayout: true, 133 | defaultValue: TitleVisibility.Selected, 134 | valueConverter: v => TitleVisibility[v], 135 | }); 136 | 137 | titleVisibilityProperty.register(BottomNavigationBarBase); 138 | 139 | export const activeColorCssProperty = new CssProperty({ 140 | name: 'activeColor', 141 | cssName: 'active-color', 142 | equalityComparer: Color.equals, 143 | defaultValue: new Color('black'), 144 | valueConverter: v => new Color(v), 145 | }); 146 | activeColorCssProperty.register(Style); 147 | 148 | export const inactiveColorCssProperty = new CssProperty({ 149 | name: 'inactiveColor', 150 | cssName: 'inactive-color', 151 | equalityComparer: Color.equals, 152 | defaultValue: new Color('gray'), 153 | valueConverter: v => new Color(v), 154 | }); 155 | inactiveColorCssProperty.register(Style); 156 | -------------------------------------------------------------------------------- /src/lib/base/bottom-navigation-tab.base.d.ts: -------------------------------------------------------------------------------- 1 | import { View, Property } from 'tns-core-modules/ui/core/view'; 2 | import { ImageSource } from 'tns-core-modules/image-source'; 3 | interface BottomNavigationTabProps { 4 | title: string; 5 | icon: string | ImageSource; 6 | isSelectable?: boolean; 7 | } 8 | export declare abstract class BottomNavigationTabBase extends View implements BottomNavigationTabProps { 9 | title: string; 10 | icon: string | ImageSource; 11 | isSelectable?: boolean; 12 | constructor(args?: BottomNavigationTabProps); 13 | abstract getNativeIcon(): any; 14 | } 15 | export declare const isSelectableProperty: Property; 16 | export declare const iconProperty: Property; 17 | export {}; 18 | -------------------------------------------------------------------------------- /src/lib/base/bottom-navigation-tab.base.ts: -------------------------------------------------------------------------------- 1 | import { 2 | View, 3 | Property, 4 | booleanConverter, 5 | } from 'tns-core-modules/ui/core/view'; 6 | import { ImageSource, fromFileOrResource } from 'tns-core-modules/image-source'; 7 | 8 | interface BottomNavigationTabProps { 9 | title: string; 10 | icon: string | ImageSource; 11 | isSelectable?: boolean; 12 | } 13 | 14 | export abstract class BottomNavigationTabBase extends View 15 | implements BottomNavigationTabProps { 16 | title: string; 17 | icon: string | ImageSource; 18 | isSelectable?: boolean; 19 | 20 | constructor(args?: BottomNavigationTabProps) { 21 | super(); 22 | if (!args) { 23 | return; 24 | } 25 | for (const k in args) { 26 | if (args.hasOwnProperty(k)) { 27 | this[k] = args[k]; 28 | } 29 | } 30 | } 31 | 32 | abstract getNativeIcon(): any; 33 | } 34 | 35 | export const isSelectableProperty = new Property< 36 | BottomNavigationTabBase, 37 | boolean 38 | >({ 39 | name: 'isSelectable', 40 | defaultValue: true, 41 | valueConverter: booleanConverter, 42 | }); 43 | 44 | isSelectableProperty.register(BottomNavigationTabBase); 45 | 46 | export const iconProperty = new Property({ 47 | name: 'icon', 48 | affectsLayout: true, 49 | valueConverter: fromFileOrResource, 50 | }); 51 | 52 | iconProperty.register(BottomNavigationTabBase); 53 | -------------------------------------------------------------------------------- /src/lib/internal/internals.d.ts: -------------------------------------------------------------------------------- 1 | import { EventData, Color } from 'tns-core-modules/ui/core/view'; 2 | declare module 'tns-core-modules/ui/styling/style' { 3 | interface Style { 4 | inactiveColor: Color; 5 | activeColor: Color; 6 | } 7 | } 8 | export interface TabPressedEventData extends EventData { 9 | index: number; 10 | } 11 | export interface TabSelectedEventData extends EventData { 12 | oldIndex: number; 13 | newIndex: number; 14 | } 15 | export interface TabReselectedEventData extends EventData { 16 | index: number; 17 | } 18 | export declare enum TitleVisibility { 19 | Selected = 0, 20 | Always = 1, 21 | Never = 2 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/internal/internals.ts: -------------------------------------------------------------------------------- 1 | import { EventData, Color } from 'tns-core-modules/ui/core/view'; 2 | 3 | /** 4 | * CSS Properties 5 | */ 6 | declare module 'tns-core-modules/ui/styling/style' { 7 | interface Style { 8 | inactiveColor: Color; 9 | activeColor: Color; 10 | } 11 | } 12 | 13 | /** 14 | * Event interface for tab pressed event 15 | * 16 | * @export 17 | * @interface TabPressedEventData 18 | * @extends {EventData} 19 | */ 20 | export interface TabPressedEventData extends EventData { 21 | index: number; 22 | } 23 | 24 | /** 25 | * Event interface for tab selected event 26 | * 27 | * @export 28 | * @interface TabSelectedEventData 29 | * @extends {EventData} 30 | */ 31 | export interface TabSelectedEventData extends EventData { 32 | oldIndex: number; 33 | newIndex: number; 34 | } 35 | 36 | /** 37 | * Event interface for tab reselected event 38 | * 39 | * @export 40 | * @interface TabReselectedEventData 41 | * @extends {EventData} 42 | */ 43 | export interface TabReselectedEventData extends EventData { 44 | index: number; 45 | } 46 | /** 47 | * Enum for Title Visibility options 48 | * 49 | * @export 50 | * @enum {number} 51 | */ 52 | export enum TitleVisibility { 53 | Selected = 0, 54 | Always = 1, 55 | Never = 2, 56 | } 57 | -------------------------------------------------------------------------------- /src/lib/ios/bottom-navigation-bar.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBarBase } from '../base/bottom-navigation-bar.base'; 2 | import { BottomNavigationTab } from './bottom-navigation-tab'; 3 | export declare class BottomNavigationBar extends BottomNavigationBarBase { 4 | nativeView: MDCBottomNavigationBar; 5 | private _delegate; 6 | readonly ios: MDCBottomNavigationBar; 7 | createNativeView(): Object; 8 | initNativeView(): void; 9 | disposeNativeView(): void; 10 | onLoaded(): void; 11 | onUnloaded(): void; 12 | layoutNativeView(left: number, top: number, right: number, bottom: number): void; 13 | showBadge(index: number, value?: number): void; 14 | removeBadge(index: number): void; 15 | protected createTabs(tabs: BottomNavigationTab[] | undefined): void; 16 | protected selectTabNative(index: number): void; 17 | } 18 | -------------------------------------------------------------------------------- /src/lib/ios/bottom-navigation-bar.delegate.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBar } from './bottom-navigation-bar'; 2 | declare type MDCBottomNavigationBar = any; 3 | export declare class MDCBottomNavigationBarDelegate { 4 | } 5 | export declare class BottomNavigationBarDelegate extends NSObject { 6 | static ObjCProtocols: (typeof MDCBottomNavigationBarDelegate)[]; 7 | private _owner; 8 | static initWithOwner(owner: WeakRef): BottomNavigationBarDelegate; 9 | bottomNavigationBarDidSelectItem(navigationBar: MDCBottomNavigationBar, item: UITabBarItem): void; 10 | bottomNavigationBarShouldSelectItem(bottomNavigationBar: MDCBottomNavigationBar, item: UITabBarItem): boolean; 11 | } 12 | export {}; 13 | -------------------------------------------------------------------------------- /src/lib/ios/bottom-navigation-bar.delegate.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationBar } from './bottom-navigation-bar'; 2 | 3 | type MDCBottomNavigationBar = any; 4 | 5 | export declare class MDCBottomNavigationBarDelegate {} 6 | 7 | export class BottomNavigationBarDelegate extends NSObject { 8 | static ObjCProtocols = [MDCBottomNavigationBarDelegate]; 9 | private _owner: BottomNavigationBar; 10 | 11 | static initWithOwner( 12 | owner: WeakRef, 13 | ): BottomNavigationBarDelegate { 14 | const delegate = ( 15 | BottomNavigationBarDelegate.new() 16 | ); 17 | delegate._owner = owner.get(); 18 | 19 | return delegate; 20 | } 21 | 22 | bottomNavigationBarDidSelectItem( 23 | navigationBar: MDCBottomNavigationBar, 24 | item: UITabBarItem, 25 | ) { 26 | if (this._owner.selectedTabIndex === item.tag) { 27 | this._owner._emitTabReselected(item.tag); 28 | return; 29 | } 30 | 31 | this._owner._emitTabSelected(item.tag); 32 | } 33 | 34 | bottomNavigationBarShouldSelectItem( 35 | bottomNavigationBar: MDCBottomNavigationBar, 36 | item: UITabBarItem, 37 | ): boolean { 38 | const bottomNavigationTab = this._owner.items[item.tag]; 39 | if (!bottomNavigationTab.isSelectable) { 40 | this._owner._emitTabPressed(item.tag); 41 | } 42 | 43 | return bottomNavigationTab.isSelectable; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/lib/ios/bottom-navigation-tab.d.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationTabBase } from '../base/bottom-navigation-tab.base'; 2 | export declare class BottomNavigationTab extends BottomNavigationTabBase { 3 | getNativeIcon(): UIImage; 4 | } 5 | -------------------------------------------------------------------------------- /src/lib/ios/bottom-navigation-tab.ts: -------------------------------------------------------------------------------- 1 | import { BottomNavigationTabBase } from '../base/bottom-navigation-tab.base'; 2 | import { ImageSource } from 'tns-core-modules/image-source/image-source'; 3 | 4 | export class BottomNavigationTab extends BottomNavigationTabBase { 5 | getNativeIcon(): UIImage { 6 | return (this.icon as ImageSource).ios; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nativescript-bottom-navigation", 3 | "version": "2.0.5", 4 | "description": "NativeScript plugin to add a bottom navigation component for Android & iOS", 5 | "main": "bottom-navigation-bar", 6 | "typings": "index.d.ts", 7 | "nativescript": { 8 | "platforms": { 9 | "android": "6.0.0", 10 | "ios": "6.0.1" 11 | } 12 | }, 13 | "scripts": { 14 | "tsc": "npm i && tsc", 15 | "ngc.clean": "find ./ angular/ -name '*.metadata.json' -delete", 16 | "ngc": "npm run ngc.clean && node --max-old-space-size=8192 node_modules/.bin/ngc -skipLibCheck -p tsconfig.json", 17 | "build": "npm run tsc && npm run ngc && npm run build.native", 18 | "build.native": "node scripts/build-native.js", 19 | "postclone": "npm i && node scripts/postclone.js", 20 | "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"", 21 | "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'", 22 | "prepack": "npm run build.native", 23 | "demo.ios": "npm run tsc && cd ../demo && tns run ios", 24 | "demo.android": "npm run tsc && cd ../demo && tns run android", 25 | "demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json", 26 | "demo-angular.ios": "npm run tsc && cd ../demo-angular && tns run ios", 27 | "demo-angular.android": "npm run tsc && cd ../demo-angular && tns run android", 28 | "demo-angular.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json", 29 | "demo-vue.ios": "npm run tsc && cd ../demo-vue && tns run ios", 30 | "demo-vue.android": "npm run tsc && cd ../demo-vue && tns run android", 31 | "demo-vue.reset": "cd ../demo-vue && npx rimraf -- hooks node_modules platforms package-lock.json", 32 | "plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-test && tns plugin add ../src && cd ../demo-angular && tns plugin remove nativescript-test && tns plugin add ../src", 33 | "clean": "npm run demo.reset && npm run demo-angular.reset && npx rimraf -- node_modules package-lock.json && npm i" 34 | }, 35 | "keywords": [ 36 | "NativeScript", 37 | "JavaScript", 38 | "Typescript", 39 | "Android", 40 | "iOS", 41 | "Henry Chavez", 42 | "Bytpher", 43 | "Bottom Navigation", 44 | "Material Design", 45 | "Tab Navigation" 46 | ], 47 | "author": { 48 | "name": "Henry Chavez", 49 | "email": "henry.chavez@bytpher.com" 50 | }, 51 | "bugs": { 52 | "url": "https://github.com/henrychavez/nativescript-bottom-navigation/issues" 53 | }, 54 | "license": "Apache-2.0", 55 | "homepage": "https://github.com/henrychavez/nativescript-bottom-navigation", 56 | "repository": "https://github.com/henrychavez/nativescript-bottom-navigation", 57 | "readmeFilename": "README.md", 58 | "devDependencies": { 59 | "@angular/compiler": "^8.2.0", 60 | "@angular/compiler-cli": "^8.2.0", 61 | "@angular/core": "^8.0.0", 62 | "nativescript-angular": "^8.0.0", 63 | "prompt": "^1.0.0", 64 | "rimraf": "^2.6.3", 65 | "semver": "^5.6.0", 66 | "tns-core-modules": "~6.0.0", 67 | "tns-platform-declarations": "~6.0.0", 68 | "tslint": "^5.18.0", 69 | "typescript": "~3.4.5" 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/platforms/android/include.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext { 3 | androidXMaterial = "1.1.0-alpha07" 4 | } 5 | } -------------------------------------------------------------------------------- /src/platforms/ios/Podfile: -------------------------------------------------------------------------------- 1 | pod 'MaterialComponents/BottomNavigation' 2 | -------------------------------------------------------------------------------- /src/references.d.ts: -------------------------------------------------------------------------------- 1 | // MDC declarations 2 | /// 3 | /// 4 | 5 | // Platform declarations 6 | /// 7 | /// 8 | -------------------------------------------------------------------------------- /src/scripts/build-native.js: -------------------------------------------------------------------------------- 1 | const { exec } = require('child_process'); 2 | const semver = require('semver'); 3 | 4 | exec('tns --version', (err, stdout, stderr) => { 5 | if (err) { 6 | // node couldn't execute the command 7 | console.log(`tns --version err: ${err}`); 8 | return; 9 | } 10 | 11 | // In case the current Node.js version is not supported by CLI, a warning in `tns --version` output is shown. 12 | // Sample output: 13 | // 14 | /*Support for Node.js ^8.0.0 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest Node.js LTS version. 15 | 16 | 6.0.0 17 | */ 18 | // Extract the actual version (6.0.0) from it. 19 | const tnsVersion = semver.major((stdout.match(/^(?:\d+\.){2}\d+.*?$/m) || [])[0]); 20 | 21 | // execute 'tns plugin build' for {N} version > 4. This command builds .aar in platforms/android folder. 22 | if (tnsVersion >= 4) { 23 | console.log(`executing 'tns plugin build'`); 24 | exec('tns plugin build', (err, stdout, stderr) => { 25 | if (err) { 26 | // node couldn't execute the command 27 | console.log(`${err}`); 28 | return; 29 | } 30 | }); 31 | } 32 | }); 33 | -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "commonjs", 5 | "declaration": true, 6 | "removeComments": true, 7 | "noLib": false, 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "skipLibCheck": true, 11 | "lib": ["es6", "dom"], 12 | "sourceMap": true, 13 | "pretty": true, 14 | "allowUnreachableCode": false, 15 | "allowUnusedLabels": false, 16 | "noEmitHelpers": true, 17 | "noEmitOnError": false, 18 | "noImplicitAny": false, 19 | "noImplicitReturns": true, 20 | "noImplicitUseStrict": false, 21 | "noFallthroughCasesInSwitch": true 22 | }, 23 | "exclude": ["node_modules"], 24 | "compileOnSave": false, 25 | "angularCompilerOptions": { 26 | "skipTemplateCodegen": true 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/vue/index.d.ts: -------------------------------------------------------------------------------- 1 | declare const _default: { 2 | install: (Vue: any) => void; 3 | }; 4 | export default _default; 5 | -------------------------------------------------------------------------------- /src/vue/index.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | install: Vue => { 3 | Vue.registerElement( 4 | 'BottomNavigationBar', 5 | () => require('../').BottomNavigationBar, 6 | ); 7 | Vue.registerElement( 8 | 'BottomNavigationTab', 9 | () => require('../').BottomNavigationTab, 10 | ); 11 | }, 12 | }; 13 | -------------------------------------------------------------------------------- /src/vue/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index.js" 3 | } -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "linterOptions": { 3 | "exclude": ["./src/**/*.d.ts"] 4 | }, 5 | "rules": { 6 | "class-name": true, 7 | "comment-format": [true, "check-space"], 8 | "indent": [true, "spaces"], 9 | "no-duplicate-variable": true, 10 | "no-eval": true, 11 | "no-internal-module": true, 12 | "no-trailing-whitespace": true, 13 | "no-var-keyword": true, 14 | "one-line": [true, "check-open-brace", "check-whitespace"], 15 | "quotemark": [false, "double"], 16 | "semicolon": [true, "always"], 17 | "triple-equals": [true, "allow-null-check"], 18 | "typedef-whitespace": [ 19 | true, 20 | { 21 | "call-signature": "nospace", 22 | "index-signature": "nospace", 23 | "parameter": "nospace", 24 | "property-declaration": "nospace", 25 | "variable-declaration": "nospace" 26 | } 27 | ], 28 | "variable-name": [true, "ban-keywords"], 29 | "whitespace": [ 30 | true, 31 | "check-branch", 32 | "check-decl", 33 | "check-operator", 34 | "check-separator", 35 | "check-type" 36 | ] 37 | } 38 | } 39 | --------------------------------------------------------------------------------