├── .github
├── FUNDING.yml
└── issue_template.md
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── README.md
├── demo-ng
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── app.gradle
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-50.png
│ │ │ │ ├── icon-50@2x.png
│ │ │ │ ├── icon-57.png
│ │ │ │ ├── icon-57@2x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-72.png
│ │ │ │ ├── icon-72@2x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.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
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── app.component.html
│ ├── app.component.ts
│ ├── app.css
│ ├── app.module.ts
│ ├── app.routing.ts
│ ├── dummy.component.ts
│ ├── images
│ │ └── Hulk_(comics_character).png
│ ├── index-logger.directive.ts
│ ├── main.ts
│ ├── package.json
│ ├── router
│ │ ├── page1.component.html
│ │ ├── page1.component.ts
│ │ └── router.component.ts
│ ├── static
│ │ ├── static.component.css
│ │ ├── static.component.html
│ │ └── static.component.ts
│ ├── test-list
│ │ ├── test-list.component.css
│ │ ├── test-list.component.html
│ │ └── test-list.component.ts
│ ├── test-multi
│ │ ├── test-multi.component.css
│ │ ├── test-multi.component.html
│ │ └── test-multi.component.ts
│ └── test
│ │ ├── test.component.css
│ │ ├── test.component.html
│ │ └── test.component.ts
├── package.json
├── tsconfig.json
└── tsconfig.tns.json
├── demo-react
├── .editorconfig
├── .gitignore
├── LICENSE
├── app
│ ├── AppContainer.tsx
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.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
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── StaticPage.tsx
│ ├── app.css
│ ├── app.ts
│ ├── images
│ │ └── Hulk_(comics_character).png
│ ├── nativescript-image-cache-it
│ │ └── index.tsx
│ └── package.json
├── nsconfig.json
├── package.json
├── pnpm-lock.yaml
├── react-nativescript.webpack.config.js
├── tsconfig.json
├── tsconfig.tns.json
├── tsfmt.json
└── webpack.config.js
├── demo-vue
├── .gitignore
├── README.md
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ ├── strings.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
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── app.scss
│ ├── assets
│ │ └── images
│ │ │ ├── Hulk_(comics_character).png
│ │ │ └── NativeScript-Vue.png
│ ├── components
│ │ ├── App.vue
│ │ ├── Detail.vue
│ │ └── Static.vue
│ ├── fonts
│ │ └── .gitkeep
│ └── main.ts
├── nativescript.config.ts
├── package.json
├── pnpm-lock.yaml
├── references.d.ts
└── tsconfig.json
├── demo
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ ├── native-api-usage.json
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-50.png
│ │ │ │ ├── icon-50@2x.png
│ │ │ │ ├── icon-57.png
│ │ │ │ ├── icon-57@2x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-72.png
│ │ │ │ ├── icon-72@2x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.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
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ ├── build.xcconfig
│ │ │ └── native-api-usage.json
│ ├── api
│ │ ├── api-page.ts
│ │ ├── api-page.xml
│ │ └── api-view-model.ts
│ ├── app-root.xml
│ ├── app.css
│ ├── app.ts
│ ├── bundle-config.ts
│ ├── dummy-page.xml
│ ├── images
│ │ └── Hulk_(comics_character).png
│ ├── list-page.ts
│ ├── list-page.xml
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ ├── nested
│ │ ├── nested-page-view-model.ts
│ │ ├── nested-page.ts
│ │ └── nested-page.xml
│ ├── package.json
│ ├── regular
│ │ ├── regular-page-view-model.ts
│ │ ├── regular-page.ts
│ │ └── regular-page.xml
│ ├── static
│ │ └── static-page.xml
│ └── tests
│ │ └── tests.js
├── karma.conf.js
├── package.json
├── pnpm-lock.yaml
├── references.d.ts
└── tsconfig.json
├── publish
├── pack.sh
├── package.json
└── publish.sh
├── src
├── .npmignore
├── angular
│ ├── index.ts
│ ├── ng-package.json
│ ├── package.json
│ ├── pager-items-comp.ts
│ └── tsconfig.json
├── package.json
├── pager.android.ts
├── pager.common.ts
├── pager.d.ts
├── pager.ios.ts
├── platforms
│ ├── android
│ │ ├── include.gradle
│ │ └── native-api-usage.json
│ └── ios
│ │ ├── Podfile
│ │ └── native-api-usage.json
├── react
│ ├── index.d.ts
│ ├── index.tsx
│ └── package.json
├── references.d.ts
├── svelte
│ └── index.ts
├── tsconfig.json
├── typings
│ └── viewpager2.d.ts
└── vue
│ ├── index.js
│ ├── package.json
│ └── pager.js
└── tslint.json
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | ko_fi: triniwiz
2 | issuehunt: triniwiz
3 | liberapay: triniwiz
4 | custom: https://www.paypal.me/triniwiz
5 |
--------------------------------------------------------------------------------
/.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/@nativescript/core/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 | !src/vue/*.js
5 | !src/demo-vue/*.js
6 | *.js
7 | *.js.map
8 | *.log
9 | *.metadata.json
10 | src/*.d.ts
11 | !src/pager.d.ts
12 | src/platforms/android/*.aar
13 | !src/references.d.ts
14 | !src/scripts/*.js
15 | !seed-tests/*.js
16 | seed-tests/seed-copy/**/*.*
17 | seed-tests/seed-copy-new-git-repo/**/*.*
18 | !demo/karma.conf.js
19 | !demo/app/tests/*.js
20 | demo/*.d.ts
21 | !demo/references.d.ts
22 | demo/lib
23 | demo/platforms
24 | node_modules
25 | publish/src
26 | publish/package
27 | demo/report/report.html
28 | demo/report/stats.json
29 | !demo-ng/karma.conf.js
30 | !demo-ng/app/tests/*.js
31 | demo-ng/*.d.ts
32 | demo-ng/lib
33 | demo-ng/platforms
34 | demo-ng/report/report.html
35 | demo-ng/report/stats.json
36 | package-lock.json
37 | demo-vue/platforms
38 | !demo-vue/app/main.js
39 | **/.migration_backup
40 | demo-react/platforms
41 | demo-react/lib
42 | .awcache
43 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | matrix:
2 | include:
3 | - stage: "Lint"
4 | language: node_js
5 | os: linux
6 | node_js: "10"
7 | script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
8 | - stage: "WebPack, Build"
9 | os: osx
10 | env:
11 | - WebPack="iOS"
12 | osx_image: xcode10
13 | language: node_js
14 | node_js: "10"
15 | jdk: oraclejdk8
16 | before_install:
17 | - pod repo update
18 | - pip install --upgrade pip
19 | - pip install --user --upgrade matplotlib
20 | - pip install six
21 | script:
22 | - cd demo-ng && npm run build.plugin && npm i && tns build ios --bundle --env.uglify
23 | - language: android
24 | os: linux
25 | env:
26 | - WebPack="Android"
27 | jdk: oraclejdk8
28 | before_install: nvm install 10
29 | script:
30 | - cd demo-ng && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot
31 | - language: android
32 | env:
33 | - BuildAndroid="28"
34 | os: linux
35 | jdk: oraclejdk8
36 | before_install: nvm install stable
37 | script:
38 | - cd src && npm i && npm run tsc && cd ../demo && tns build android
39 | - os: osx
40 | env:
41 | - BuildiOS="12"
42 | - Xcode="10"
43 | osx_image: xcode10
44 | language: node_js
45 | node_js: "10"
46 | jdk: oraclejdk8
47 | before_install:
48 | - pod repo update
49 | - pip install --upgrade pip
50 | - pip install --user --upgrade matplotlib
51 | - pip install six
52 | script:
53 | - cd src && npm i && npm run tsc && cd ../demo && tns build ios
54 | - language: android
55 | env:
56 | - BuildAndroid="Vue"
57 | os: linux
58 | jdk: oraclejdk8
59 | before_install: nvm install stable
60 | script:
61 | - cd src && npm i && npm run tsc && cd ../demo-vue && tns build android
62 | - os: osx
63 | env:
64 | - BuildiOS="Vue"
65 | - Xcode="10"
66 | osx_image: xcode10
67 | language: node_js
68 | node_js: "10"
69 | jdk: oraclejdk8
70 | before_install:
71 | - pod repo update
72 | - pip install --upgrade pip
73 | - pip install --user --upgrade matplotlib
74 | - pip install six
75 | script:
76 | - cd src && npm i && npm run tsc && cd ../demo-vue && tns build ios
77 | android:
78 | components:
79 | - tools
80 | - platform-tools
81 | - build-tools-28.0.3
82 | - android-28
83 | - extra-android-m2repository
84 |
85 | install:
86 | - echo no | npm install -g nativescript
87 | - tns usage-reporting disable
88 | - tns error-reporting disable
89 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
28 |
29 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | android {
2 | defaultConfig {
3 | generatedDensities = []
4 | applicationId = "org.nativescript.demong"
5 | }
6 | aaptOptions {
7 | additionalParameters "--no-version-vectors"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/Android/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/Android/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/demo-ng/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" : "57x57",
35 | "idiom" : "iphone",
36 | "filename" : "icon-57.png",
37 | "scale" : "1x"
38 | },
39 | {
40 | "size" : "57x57",
41 | "idiom" : "iphone",
42 | "filename" : "icon-57@2x.png",
43 | "scale" : "2x"
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" : "29x29",
59 | "idiom" : "ipad",
60 | "filename" : "icon-29.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "29x29",
65 | "idiom" : "ipad",
66 | "filename" : "icon-29@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "40x40",
71 | "idiom" : "ipad",
72 | "filename" : "icon-40.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "40x40",
77 | "idiom" : "ipad",
78 | "filename" : "icon-40@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "50x50",
83 | "idiom" : "ipad",
84 | "filename" : "icon-50.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "50x50",
89 | "idiom" : "ipad",
90 | "filename" : "icon-50@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "72x72",
95 | "idiom" : "ipad",
96 | "filename" : "icon-72.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "72x72",
101 | "idiom" : "ipad",
102 | "filename" : "icon-72@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "76x76",
107 | "idiom" : "ipad",
108 | "filename" : "icon-76.png",
109 | "scale" : "1x"
110 | },
111 | {
112 | "size" : "76x76",
113 | "idiom" : "ipad",
114 | "filename" : "icon-76@2x.png",
115 | "scale" : "2x"
116 | },
117 | {
118 | "size" : "83.5x83.5",
119 | "idiom" : "ipad",
120 | "filename" : "icon-83.5@2x.png",
121 | "scale" : "2x"
122 | }
123 | ],
124 | "info" : {
125 | "version" : 1,
126 | "author" : "xcode"
127 | }
128 | }
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo-ng/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-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo-ng/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-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-ng/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 | NSAppTransportSecurity
47 |
48 |
49 | NSAllowsArbitraryLoads
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/demo-ng/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 |
9 | DEVELOPMENT_TEAM = JVX5SR538Q
10 |
--------------------------------------------------------------------------------
/demo-ng/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/demo-ng/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from "@angular/core";
2 |
3 | @Component({
4 | selector: "ns-app",
5 | templateUrl: "app.component.html",
6 | })
7 | export class AppComponent { }
8 |
--------------------------------------------------------------------------------
/demo-ng/app/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.css';
13 | @import '~nativescript-theme-core/css/blue.css';
14 |
15 | .btn {
16 | font-size: 24;
17 | }
18 |
--------------------------------------------------------------------------------
/demo-ng/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2 | import { NativeScriptModule } from '@nativescript/angular';
3 | import { NativeScriptFormsModule } from '@nativescript/angular';
4 |
5 | import { PagerModule } from '@nativescript-community/ui-pager/angular';
6 |
7 | import { AppRoutingModule } from './app.routing';
8 | import { AppComponent } from './app.component';
9 |
10 | import { TestComponent } from './test/test.component';
11 | import { DummyComponent } from './dummy.component';
12 | import { TestMultiComponent } from './test-multi/test-multi.component';
13 | import { TestListComponent } from './test-list/test-list.component';
14 | import { StaticComponent } from './static/static.component';
15 | import { RouterComponent } from './router/router.component';
16 | import { Page1Component } from './router/page1.component';
17 | import { IndexLoggerDirective } from './index-logger.directive';
18 | import { TNSImageCacheItModule } from 'nativescript-image-cache-it/angular';
19 | @NgModule({
20 | bootstrap: [AppComponent],
21 | imports: [
22 | NativeScriptModule,
23 | NativeScriptFormsModule,
24 | AppRoutingModule,
25 | PagerModule,
26 | TNSImageCacheItModule
27 | ],
28 | declarations: [
29 | AppComponent,
30 | TestComponent,
31 | TestMultiComponent,
32 | TestListComponent,
33 | DummyComponent,
34 | StaticComponent,
35 | RouterComponent,
36 | Page1Component,
37 | IndexLoggerDirective
38 | ],
39 | providers: [],
40 | schemas: [NO_ERRORS_SCHEMA]
41 | })
42 | export class AppModule {
43 | }
44 |
--------------------------------------------------------------------------------
/demo-ng/app/app.routing.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 | import { NativeScriptRouterModule } from '@nativescript/angular';
3 | import { Routes } from '@angular/router';
4 |
5 | import { TestComponent } from './test/test.component';
6 | import { TestMultiComponent } from './test-multi/test-multi.component';
7 | import { DummyComponent } from './dummy.component';
8 | import { TestListComponent } from './test-list/test-list.component';
9 | import { StaticComponent } from '~/static/static.component';
10 | import { RouterComponent } from './router/router.component';
11 | import { Page1Component } from './router/page1.component';
12 |
13 | const routes: Routes = [
14 | {path: '', redirectTo: '/test', pathMatch: 'full'},
15 | {path: 'test', component: TestComponent},
16 | {path: 'multi', component: TestMultiComponent},
17 | {path: 'dummy', component: DummyComponent},
18 | {path: 'list', component: TestListComponent},
19 | {path: 'static', component: StaticComponent},
20 | {path: 'router-test', component: RouterComponent, children: [
21 | {path: 'page1', component: Page1Component},
22 | {path: 'page2', component: Page1Component}
23 | ]}
24 | ];
25 |
26 | @NgModule({
27 | imports: [NativeScriptRouterModule.forRoot(routes)],
28 | exports: [NativeScriptRouterModule]
29 | })
30 | export class AppRoutingModule {
31 | }
32 |
--------------------------------------------------------------------------------
/demo-ng/app/dummy.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { RouterExtensions } from '@nativescript/angular';
3 |
4 | @Component({
5 | selector: 'dummy',
6 | template: `
7 |
8 |
9 |
10 |
11 | `
12 | })
13 | export class DummyComponent {
14 | constructor(private routerExtensions: RouterExtensions) {
15 | }
16 |
17 | goBack() {
18 | this.routerExtensions.back();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/demo-ng/app/images/Hulk_(comics_character).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-ng/app/images/Hulk_(comics_character).png
--------------------------------------------------------------------------------
/demo-ng/app/index-logger.directive.ts:
--------------------------------------------------------------------------------
1 | import { Directive, OnInit, OnDestroy, Input, Host, Optional } from '@angular/core';
2 | import { PagerComponent } from '@nativescript-community/ui-pager/angular';
3 |
4 | let autoId = 0;
5 |
6 | let ngViewMap = {};
7 | function ensureArray(id: string) {
8 | if (!ngViewMap.hasOwnProperty(id)) {
9 | ngViewMap[id] = [];
10 | }
11 | }
12 | let allViews = [];
13 |
14 | @Directive({
15 | selector: '[pagerIndex]',
16 | })
17 | export class IndexLoggerDirective implements OnInit, OnDestroy {
18 | @Input() pagerIndex: number;
19 | pagerId: string = 'all';
20 | currentViewId = autoId++;
21 | constructor(@Optional() @Host() private parent: PagerComponent) { }
22 | ngOnInit() {
23 | if (this.parent) {
24 | if ((this.parent as any).__indexLoggerId == null) {
25 | (this.parent as any).__indexLoggerId = `${autoId++}`;
26 | }
27 | this.pagerId = (this.parent as any).__indexLoggerId;
28 | }
29 | ensureArray(this.pagerId);
30 | ngViewMap[this.pagerId].push(this.currentViewId);
31 | allViews.push(this.currentViewId);
32 | console.log(`Angular element ${this.currentViewId} created for index ${this.pagerIndex} on pager ${this.pagerId} (${ngViewMap[this.pagerId].length} in this pager, ${allViews.length} in total)`);
33 | }
34 |
35 | ngOnDestroy() {
36 | this.parent = null;
37 | ensureArray(this.pagerId);
38 | const idx = ngViewMap[this.pagerId].indexOf(this.currentViewId);
39 | if (idx >= 0) { ngViewMap[this.pagerId].splice(idx, 1); }
40 | const allIdx = allViews.indexOf(this.currentViewId);
41 | if (allIdx >= 0) { allViews.splice(idx, 1); }
42 | console.log(`Angular element ${this.currentViewId} destroyed for index ${this.pagerIndex} on pager ${this.pagerId} (${ngViewMap[this.pagerId].length} total)`);
43 | }
44 | }
--------------------------------------------------------------------------------
/demo-ng/app/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';
3 |
4 | import { AppModule } from './app.module';
5 |
6 | platformNativeScriptDynamic().bootstrapModule(AppModule);
7 |
--------------------------------------------------------------------------------
/demo-ng/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "android": {
3 | "v8Flags": "--expose_gc",
4 | "markingMode": "none"
5 | },
6 | "main": "main.js",
7 | "name": "tns-template-hello-world-ng",
8 | "version": "2.5.0"
9 | }
10 |
--------------------------------------------------------------------------------
/demo-ng/app/router/page1.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 |
--------------------------------------------------------------------------------
/demo-ng/app/router/page1.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from '@angular/core';
2 | import { RouterExtensions } from 'nativescript-angular/router';
3 |
4 | @Component({
5 | selector: 'page1',
6 | moduleId: module.id,
7 | templateUrl: './page1.component.html'
8 |
9 | })
10 |
11 | export class Page1Component implements OnInit {
12 | constructor(private routerExtensions: RouterExtensions) {
13 | }
14 |
15 | goToPageOne() {
16 | this.routerExtensions.navigate(['/router-test/page1']);
17 | }
18 |
19 | goToPageTwo() {
20 | this.routerExtensions.navigate(['/router-test/page2']);
21 | }
22 |
23 | ngOnInit() {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/demo-ng/app/router/router.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'router',
5 | template: ``
6 | })
7 |
8 | export class RouterComponent implements OnInit {
9 | constructor() { }
10 |
11 | ngOnInit() { }
12 | }
--------------------------------------------------------------------------------
/demo-ng/app/static/static.component.css:
--------------------------------------------------------------------------------
1 | .pager-item{
2 |
3 | }
4 | .pager-item Label{
5 | font-size: 20;
6 | }
7 |
8 | .pager-item Image{
9 | border-radius: 50%;
10 | border-width: 1;
11 | }
12 |
--------------------------------------------------------------------------------
/demo-ng/app/static/static.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/demo-ng/app/static/static.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, ViewChildren, QueryList } from '@angular/core';
2 | import { PagerItemDirective } from '@nativescript-community/ui-pager/angular/pager-items-comp';
3 |
4 | @Component({
5 | moduleId: module.id,
6 | selector: 'ns-static',
7 | templateUrl: './static.component.html',
8 | styleUrls: ['static.component.css']
9 | })
10 | export class StaticComponent {
11 | @ViewChildren(PagerItemDirective) pages: QueryList;
12 |
13 | currentPagerIndex = 0;
14 |
15 | prevPage() {
16 | const newIndex = Math.max(0, this.currentPagerIndex - 1);
17 | this.currentPagerIndex = newIndex;
18 | }
19 |
20 | nextPage() {
21 | const newIndex = Math.min(this.pages.length - 1, this.currentPagerIndex + 1);
22 | this.currentPagerIndex = newIndex;
23 | }
24 | }
--------------------------------------------------------------------------------
/demo-ng/app/test-list/test-list.component.css:
--------------------------------------------------------------------------------
1 | .pager-item{
2 |
3 | }
4 | .pager-item Label{
5 | font-size: 20;
6 | }
7 |
8 | .pager-item Image{
9 | border-radius: 50%;
10 | border-width: 1;
11 | }
12 |
--------------------------------------------------------------------------------
/demo-ng/app/test-list/test-list.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/demo-ng/app/test-multi/test-multi.component.css:
--------------------------------------------------------------------------------
1 | .pager-item{
2 |
3 | }
4 | .pager-item Label{
5 | font-size: 20;
6 | }
7 |
8 | .pager-item Image{
9 | border-radius: 50%;
10 | border-width: 1;
11 | }
12 |
--------------------------------------------------------------------------------
/demo-ng/app/test-multi/test-multi.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/demo-ng/app/test/test.component.css:
--------------------------------------------------------------------------------
1 | .pager-item{
2 |
3 | }
4 | .pager-item Label{
5 | font-size: 20;
6 | }
7 |
8 | .pager-item Image{
9 | border-radius: 50%;
10 | border-width: 1;
11 | }
12 |
--------------------------------------------------------------------------------
/demo-ng/app/test/test.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/demo-ng/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "NativeScript Application",
3 | "license": "MIT",
4 | "readme": "NativeScript Application",
5 | "nativescript": {
6 | "id": "org.nativescript.demong",
7 | "tns-android": {
8 | "version": "6.4.1"
9 | },
10 | "tns-ios": {
11 | "version": "6.4.0"
12 | }
13 | },
14 | "dependencies": {
15 | "@angular/common": "~8.2.0",
16 | "@angular/compiler": "~8.2.0",
17 | "@angular/core": "~8.2.0",
18 | "@angular/forms": "~8.2.0",
19 | "@angular/platform-browser": "~8.2.0",
20 | "@angular/platform-browser-dynamic": "~8.2.0",
21 | "@angular/router": "~8.2.0",
22 | "@nativescript/angular": "^8.21.0",
23 | "@nativescript/core": "^6.4.1",
24 | "nativescript-image-cache-it": "^5.0.0-beta.10",
25 | "@nativescript-community/ui-pager": "../src",
26 | "nativescript-theme-core": "^2.0.2",
27 | "reflect-metadata": "~0.1.13",
28 | "rxjs": "^6.4.0",
29 | "zone.js": "^0.9.1"
30 | },
31 | "devDependencies": {
32 | "@angular/compiler-cli": "~8.2.0",
33 | "@ngtools/webpack": "~8.2.0",
34 | "babel-traverse": "6.26.0",
35 | "babel-types": "6.26.0",
36 | "babylon": "6.18.0",
37 | "lazy": "1.0.11",
38 | "nativescript-css-loader": "~0.26.1",
39 | "nativescript-dev-webpack": "^1.5.0",
40 | "typescript": "~3.5.3"
41 | },
42 | "scripts": {
43 | "build.plugin": "cd ../src && npm run build",
44 | "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/demo-ng/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "esnext",
4 | "target": "es2017",
5 | "moduleResolution": "node",
6 | "experimentalDecorators": true,
7 | "emitDecoratorMetadata": true,
8 | "noEmitHelpers": true,
9 | "noEmitOnError": true,
10 | "skipLibCheck": true,
11 | "noLib": false,
12 | "lib": [
13 | "es6",
14 | "dom",
15 | "es2015.iterable"
16 | ],
17 | "baseUrl": ".",
18 | "paths": {
19 | "*": [
20 | "./node_modules/@nativescript/core/*",
21 | "./node_modules/*"
22 | ],
23 | "~/*": [
24 | "app/*"
25 | ]
26 | }
27 | },
28 | "include": [
29 | "../src",
30 | "**/*"
31 | ],
32 | "exclude": [
33 | "node_modules",
34 | "platforms",
35 | "../src/node_modules",
36 | "**/*.spec.ts"
37 | ]
38 | }
--------------------------------------------------------------------------------
/demo-ng/tsconfig.tns.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig",
3 | "compilerOptions": {
4 | "module": "esNext",
5 | "moduleResolution": "node"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/demo-react/.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 | [*.ts]
14 | indent_style = space
15 | indent_size = 4
16 |
--------------------------------------------------------------------------------
/demo-react/.gitignore:
--------------------------------------------------------------------------------
1 | # NativeScript
2 | hooks/
3 | node_modules/
4 | platforms/
5 |
6 | # NativeScript Template
7 | *.js.map
8 | *.js
9 | !webpack.config.js
10 |
11 | # Logs
12 | logs
13 | *.log
14 | npm-debug.log*
15 | yarn-debug.log*
16 | yarn-error.log*
17 |
18 | # General
19 | .DS_Store
20 | .AppleDouble
21 | .LSOverride
22 | .idea
23 | .cloud
24 | .project
25 | tmp/
26 | typings/
27 |
28 | # Visual Studio Code
29 | .vscode/*
30 | !.vscode/settings.json
31 | !.vscode/tasks.json
32 | !.vscode/launch.json
33 | !.vscode/extensions.json
34 |
35 |
36 | !react-nativescript.webpack.config.js
37 |
--------------------------------------------------------------------------------
/demo-react/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 | minSdkVersion 17
15 | generatedDensities = []
16 | }
17 | aaptOptions {
18 | additionalParameters "--no-version-vectors"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo-react/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-react/app/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo-react/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-react/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-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo-react/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-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png
--------------------------------------------------------------------------------
/demo-react/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-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png
--------------------------------------------------------------------------------
/demo-react/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-react/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-react/app/StaticPage.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react';
2 | import { ItemSpec } from '@nativescript/core/ui/layouts/grid-layout';
3 | import { Color, Page } from '@nativescript/core';
4 | import { NSVElement } from 'react-nativescript';
5 | import { Pager, PagerItem } from './@nativescript-community/ui-pager/index';
6 | export class StaticPage extends React.Component<{ forwardedRef: React.RefObject }> {
7 | private selectedIndex: number = 3;
8 |
9 | constructor(props) {
10 | super(props);
11 | }
12 |
13 | private navigate() {
14 | }
15 |
16 | render() {
17 | const { forwardedRef } = this.props;
18 | return (
19 |
20 |
21 |
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/demo-react/app/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 | The imported CSS rules must precede all other types of rules.
12 | */
13 | @import '~nativescript-theme-core/css/core.light.css';
14 |
15 | /*
16 | The following CSS rule changes the font size of all UI
17 | components that have the btn class name.
18 | */
19 | .btn {
20 | font-size: 18;
21 | }
22 |
--------------------------------------------------------------------------------
/demo-react/app/app.ts:
--------------------------------------------------------------------------------
1 | import * as React from "react";
2 |
3 | /* Controls react-nativescript log verbosity. true: all logs; false: only error logs. */
4 | Object.defineProperty(global, '__DEV__', { value: true });
5 |
6 | /*
7 | In NativeScript, the app.ts file is the entry point to your application.
8 | You can use this file to perform app-level initialization, but the primary
9 | purpose of the file is to pass control to the app’s first module.
10 | */
11 |
12 | import * as ReactNativeScript from "react-nativescript/dist/index";
13 | import { AppContainer } from './AppContainer';
14 | import './nativescript-image-cache-it/index';
15 |
16 | ReactNativeScript.start(React.createElement(AppContainer, {}, null));
17 |
18 | /*
19 | Do not place any code after the application has been started as it will not
20 | be executed on iOS.
21 | */
--------------------------------------------------------------------------------
/demo-react/app/images/Hulk_(comics_character).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-react/app/images/Hulk_(comics_character).png
--------------------------------------------------------------------------------
/demo-react/app/nativescript-image-cache-it/index.tsx:
--------------------------------------------------------------------------------
1 | import { ImageCacheIt as NativeScriptImageCacheIt} from "nativescript-image-cache-it";
2 | import { registerElement, ViewAttributes } from "react-nativescript";
3 |
4 |
5 | registerElement("imageCacheIt", ()=> NativeScriptImageCacheIt as any);
6 |
7 | export declare type ImageCacheItAttributes = ViewAttributes & {
8 | onIsLoadingChange?: (isLoading: boolean) => void;
9 | src?: any;
10 | placeHolder?: any;
11 | errorHolder?: any;
12 | stretch?: any;
13 | decodedWidth: any;
14 | decodedHeight: any;
15 | filter: string;
16 | isLoading: boolean;
17 | width?: any;
18 | height?: any;
19 | }
20 |
21 | declare global {
22 | module JSX {
23 | interface IntrinsicElements {
24 | imageCacheIt: ImageCacheItAttributes;
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/demo-react/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "app.js",
3 | "android": {
4 | "v8Flags": "--expose_gc",
5 | "markingMode": "none"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/demo-react/nsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "useLegacyWorkflow": false,
3 | "webpackConfigPath": "./react-nativescript.webpack.config.js"
4 | }
5 |
--------------------------------------------------------------------------------
/demo-react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "org.nativescript.demoreact",
4 | "tns-android": {
5 | "version": "6.4.1"
6 | },
7 | "tns-ios": {
8 | "version": "6.4.0"
9 | }
10 | },
11 | "main": "app.js",
12 | "description": "NativeScript Application",
13 | "license": "SEE LICENSE IN ",
14 | "repository": "",
15 | "dependencies": {
16 | "@nativescript/core": "rc",
17 | "nativescript-image-cache-it": "^5.0.0-beta.10",
18 | "@nativescript-community/ui-pager": "file:../publish/package/@nativescript-community/ui-pager-12.0.0-alpha.9.tgz",
19 | "nativescript-theme-core": "~1.0.6",
20 | "react": "^16.8.6",
21 | "react-nativescript": "~1.0.6"
22 | },
23 | "devDependencies": {
24 | "@babel/cli": "^7.8.4",
25 | "@babel/core": "^7.4.5",
26 | "@babel/plugin-proposal-class-properties": "^7.4.4",
27 | "@babel/plugin-proposal-decorators": "^7.10.5",
28 | "@babel/preset-env": "^7.9.5",
29 | "@babel/preset-react": "^7.0.0",
30 | "@babel/preset-typescript": "^7.9.0",
31 | "@pmmmwh/react-refresh-webpack-plugin": "^0.4.0-beta.5",
32 | "@types/react": "16.9.34",
33 | "babel-loader": "8.0.6",
34 | "babel-plugin-transform-class-properties": "^6.24.1",
35 | "fork-ts-checker-webpack-plugin": "1.3.7",
36 | "nativescript-dev-webpack": "~1.5.0",
37 | "patch-package": "^6.2.2",
38 | "react-refresh": "^0.8.3",
39 | "tns-platform-declarations": "6.0.1",
40 | "typescript": "^3.9.5"
41 | },
42 | "gitHead": "f28dbc60d74dd2cef4b645afd8fdd63bbb12c73e",
43 | "readme": "NativeScript Application"
44 | }
45 |
--------------------------------------------------------------------------------
/demo-react/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "esnext",
4 | "target": "es2017",
5 | "moduleResolution": "node",
6 | "experimentalDecorators": true,
7 | "emitDecoratorMetadata": true,
8 | "noEmitHelpers": true,
9 | "noEmitOnError": true,
10 | "jsx": "react",
11 | "lib": [
12 | "es6",
13 | "dom"
14 | ],
15 | "baseUrl": ".",
16 | "paths": {
17 | "~/*": [
18 | "app/*"
19 | ],
20 | "*": [
21 | "./node_modules/*"
22 | ]
23 | }
24 | },
25 | "include": [
26 | "../src",
27 | "**/*"
28 | ],
29 | "exclude": [
30 | "node_modules",
31 | "platforms",
32 | "../src/node_modules",
33 | "**/*.spec.ts"
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/demo-react/tsconfig.tns.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig",
3 | "compilerOptions": {
4 | "module": "esNext",
5 | "moduleResolution": "node"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/demo-react/tsfmt.json:
--------------------------------------------------------------------------------
1 | {
2 | "indentSize": 4,
3 | "tabSize": 4
4 | }
5 |
--------------------------------------------------------------------------------
/demo-vue/.gitignore:
--------------------------------------------------------------------------------
1 | # JetBrains project files
2 | .idea
3 |
4 | # NPM
5 | node_modules
6 |
7 | # NativeScript application
8 | hooks
9 | platforms
10 |
--------------------------------------------------------------------------------
/demo-vue/README.md:
--------------------------------------------------------------------------------
1 | # NativeScript-Vue Application
2 |
3 | > A native application built with NativeScript-Vue
4 |
5 | ## Usage
6 |
7 | ``` bash
8 | # Install dependencies
9 | npm install
10 |
11 | # Build for production
12 | tns build --bundle
13 |
14 | # Build, watch for changes and debug the application
15 | tns debug --bundle
16 |
17 | # Build, watch for changes and run the application
18 | tns run --bundle
19 | ```
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | android {
4 | defaultConfig {
5 | generatedDensities = []
6 | applicationId = "org.nativescript.application"
7 | }
8 | aaptOptions {
9 | additionalParameters "--no-version-vectors"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | NativeScript-Vue Application
4 | NativeScript-Vue Application
5 |
6 |
--------------------------------------------------------------------------------
/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 | #53ba82
5 | #33B5E5
6 | #272734
7 |
8 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | NativeScript-Vue Application
4 | NativeScript-Vue Application
5 |
6 |
--------------------------------------------------------------------------------
/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" : "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-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.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 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | NativeScript-Vue Application
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0.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-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.scss:
--------------------------------------------------------------------------------
1 | // NativeScript core theme
2 | // @see https://docs.nativescript.org/ui/theme
3 | // @import '~nativescript-theme-core/scss/light';
4 |
5 | // Override variables here
6 |
7 | // @import '~nativescript-theme-core/scss/index';
8 |
9 | // Global SCSS styling
10 | // @see https://docs.nativescript.org/ui/styling
11 |
--------------------------------------------------------------------------------
/demo-vue/app/assets/images/Hulk_(comics_character).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/assets/images/Hulk_(comics_character).png
--------------------------------------------------------------------------------
/demo-vue/app/assets/images/NativeScript-Vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/assets/images/NativeScript-Vue.png
--------------------------------------------------------------------------------
/demo-vue/app/components/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
90 |
91 |
104 |
--------------------------------------------------------------------------------
/demo-vue/app/components/Detail.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/demo-vue/app/components/Static.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
26 |
27 |
40 |
--------------------------------------------------------------------------------
/demo-vue/app/fonts/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo-vue/app/fonts/.gitkeep
--------------------------------------------------------------------------------
/demo-vue/app/main.ts:
--------------------------------------------------------------------------------
1 | import Vue from "nativescript-vue";
2 | import App from "./components/App.vue";
3 | import Pager from "@nativescript-community/ui-pager/vue";
4 |
5 | Vue.use(Pager);
6 |
7 | // Prints Vue logs when --env.production is *NOT* set while building
8 | Vue.config.silent = TNS_ENV === "production";
9 |
10 | new Vue({
11 | render: (h) => h("frame", [h(App)]),
12 | }).$start();
13 |
--------------------------------------------------------------------------------
/demo-vue/nativescript.config.ts:
--------------------------------------------------------------------------------
1 | import { NativeScriptConfig } from '@nativescript/core'
2 |
3 | export default {
4 | id: 'org.nativescript.application',
5 | appResourcesPath: 'app/App_Resources',
6 | android: {
7 | v8Flags: '--expose_gc',
8 | markingMode: 'none',
9 | },
10 | appPath: 'app',
11 | } as NativeScriptConfig
12 |
--------------------------------------------------------------------------------
/demo-vue/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo-vue",
3 | "version": "1.0.0",
4 | "description": "A native application built with NativeScript-Vue",
5 | "author": "Osei Fortune ",
6 | "license": "MIT",
7 | "dependencies": {
8 | "@nativescript-community/ui-pager": "file:../src",
9 | "@nativescript/core": "7.0.3",
10 | "nativescript-theme-core": "^2.0.24",
11 | "nativescript-vue": "2.8.1"
12 | },
13 | "devDependencies": {
14 | "@babel/core":"7.11.6",
15 | "@nativescript/ios": "7.0.0",
16 | "@nativescript/webpack": "3.0.4",
17 | "babel-loader": "8.1.0",
18 | "nativescript-vue-template-compiler": "^2.8.1",
19 | "sass-loader": "9.0.3",
20 | "typescript": "3.9.7",
21 | "vue": "2.6.11",
22 | "vue-loader": "^15.9.3"
23 | },
24 | "main": "main"
25 | }
26 |
--------------------------------------------------------------------------------
/demo-vue/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | declare module '*.vue' {
4 | import Vue from 'vue';
5 | export default Vue;
6 | }
7 |
8 | declare const TNS_ENV: string;
--------------------------------------------------------------------------------
/demo-vue/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2017",
4 | "module": "esnext",
5 | "moduleResolution": "node",
6 | "removeComments": false,
7 | "experimentalDecorators": true,
8 | "emitDecoratorMetadata": true,
9 | "sourceMap": true,
10 | "importHelpers": true,
11 | "noEmitHelpers": true,
12 | "noEmitOnError": true,
13 | "preserveSymlinks": true,
14 | "esModuleInterop": true,
15 | "allowSyntheticDefaultImports": true,
16 | "noImplicitUseStrict": true,
17 | "lib": [
18 | "es6",
19 | "dom",
20 | "es2015.iterable",
21 | "es2017"
22 | ],
23 | "types": [
24 | "vue"
25 | ],
26 | "baseUrl": ".",
27 | "paths": {
28 | "~/*": [
29 | "app/*"
30 | ],
31 | "@nativescript/core": [
32 | "./node_modules/@nativescript/core"
33 | ],
34 | "@nativescript/core/*": [
35 | "./node_modules/@nativescript/core/*"
36 | ],
37 | "*": [
38 | "./node_modules/*"
39 | ]
40 | }
41 | },
42 | "include": [
43 | "app/**/*",
44 | "references.d.ts"
45 | ],
46 | "exclude": [
47 | "node_modules",
48 | "platforms",
49 | "**/*.spec.ts"
50 | ]
51 | }
--------------------------------------------------------------------------------
/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 | applicationId = "org.nativescript.demo"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/native-api-usage.json:
--------------------------------------------------------------------------------
1 | {
2 | "whitelist-plugins-usages": true,
3 | "whitelist": [
4 | "com.github.triniwiz*:*"
5 | ],
6 | "blacklist": []
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
28 |
29 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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" : "57x57",
35 | "idiom" : "iphone",
36 | "filename" : "icon-57.png",
37 | "scale" : "1x"
38 | },
39 | {
40 | "size" : "57x57",
41 | "idiom" : "iphone",
42 | "filename" : "icon-57@2x.png",
43 | "scale" : "2x"
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" : "29x29",
59 | "idiom" : "ipad",
60 | "filename" : "icon-29.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "29x29",
65 | "idiom" : "ipad",
66 | "filename" : "icon-29@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "40x40",
71 | "idiom" : "ipad",
72 | "filename" : "icon-40.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "40x40",
77 | "idiom" : "ipad",
78 | "filename" : "icon-40@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "50x50",
83 | "idiom" : "ipad",
84 | "filename" : "icon-50.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "50x50",
89 | "idiom" : "ipad",
90 | "filename" : "icon-50@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "72x72",
95 | "idiom" : "ipad",
96 | "filename" : "icon-72.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "72x72",
101 | "idiom" : "ipad",
102 | "filename" : "icon-72@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "76x76",
107 | "idiom" : "ipad",
108 | "filename" : "icon-76.png",
109 | "scale" : "1x"
110 | },
111 | {
112 | "size" : "76x76",
113 | "idiom" : "ipad",
114 | "filename" : "icon-76@2x.png",
115 | "scale" : "2x"
116 | },
117 | {
118 | "size" : "83.5x83.5",
119 | "idiom" : "ipad",
120 | "filename" : "icon-83.5@2x.png",
121 | "scale" : "2x"
122 | }
123 | ],
124 | "info" : {
125 | "version" : 1,
126 | "author" : "xcode"
127 | }
128 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/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/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.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 | NSAppTransportSecurity
47 |
48 |
49 | NSAllowsArbitraryLoads
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 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
5 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
6 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/native-api-usage.json:
--------------------------------------------------------------------------------
1 | {
2 | "whitelist-plugins-usages": true,
3 | "whitelist": [],
4 | "blacklist": []
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/demo/app/api/api-page.ts:
--------------------------------------------------------------------------------
1 | import { ApiViewModel } from '~/api/api-view-model';
2 | import { Page } from '@nativescript/core/ui/page';
3 | import { Pager } from '@nativescript-community/ui-pager';
4 |
5 | let vm = new ApiViewModel();
6 | let page;
7 |
8 | export function pageLoaded(args) {
9 | page = args.object;
10 | const pager: Pager = page.getViewById('pager');
11 | if (pager) {
12 | pager.on('loadMoreItems', loadMoreItems.bind(this));
13 | }
14 | if (!args.isBackNavigation) {
15 | page.bindingContext = vm;
16 | }
17 | }
18 |
19 | export const loadMoreItems = (event) => {
20 | vm.loadMoreItems();
21 | };
22 |
23 | export const init = () => {
24 | vm.getItems();
25 | };
26 |
--------------------------------------------------------------------------------
/demo/app/api/api-page.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/demo/app/api/api-view-model.ts:
--------------------------------------------------------------------------------
1 | import { Observable } from '@nativescript/core/data/observable';
2 | import { ObservableArray } from '@nativescript/core/data/observable-array';
3 | import { getJSON, HttpResponse } from '@nativescript/core/http';
4 |
5 | export class ApiViewModel extends Observable {
6 | public page = 1;
7 | public count = 10;
8 | public items = new ObservableArray([]);
9 |
10 | public getItems() {
11 | getJSON(`https://randomuser.me/api/?page=${this.page}&results=${this.count}`)
12 | .then((data) => {
13 | const items = data['results'] || [];
14 | this.items.push(...items);
15 | })
16 | .catch(error => {
17 | console.error(error);
18 | });
19 | }
20 |
21 | public loadMoreItems() {
22 | this.page += 1;
23 | this.getItems();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/demo/app/app-root.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/demo/app/app.css:
--------------------------------------------------------------------------------
1 | @import '~nativescript-theme-core/css/core.css';
2 | @import '~nativescript-theme-core/css/blue.css';
3 |
--------------------------------------------------------------------------------
/demo/app/app.ts:
--------------------------------------------------------------------------------
1 | import * as application from '@nativescript/core/application';
2 |
3 | require('@nativescript-community/ui-pager');
4 | require('./bundle-config');
5 | application.run({moduleName: 'app-root'});
6 |
--------------------------------------------------------------------------------
/demo/app/bundle-config.ts:
--------------------------------------------------------------------------------
1 | if ((global as any).TNS_WEBPACK) {
2 | global.registerModule("@nativescript-community/ui-pager", () => require("@nativescript-community/ui-pager"));
3 | }
--------------------------------------------------------------------------------
/demo/app/dummy-page.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/demo/app/images/Hulk_(comics_character).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/triniwiz/nativescript-pager/65ce840fd5baeb1101aca45380acb35e004e26a9/demo/app/images/Hulk_(comics_character).png
--------------------------------------------------------------------------------
/demo/app/list-page.ts:
--------------------------------------------------------------------------------
1 | import { Page } from '@nativescript/core/ui/page';
2 | import { HelloWorldModel } from './main-view-model';
3 | import { Pager } from '@nativescript-community/ui-pager';
4 | import { Image } from '@nativescript/core/ui/image';
5 | import { topmost } from '@nativescript/core/ui/frame';
6 |
7 | let page: Page;
8 | let vm = new HelloWorldModel();
9 |
10 | export function pageLoaded(args) {
11 | page = args.object;
12 | if (!args.isBackNavigation) {
13 | page.bindingContext = vm;
14 | }
15 | }
16 |
17 | export function toggleSwipe() {
18 | const pager: Pager = page.getViewById('pager');
19 | pager.disableSwipe = !pager.disableSwipe;
20 | }
21 |
22 | export function goToPagerWithList(event) {
23 | topmost().navigate('list-page');
24 | }
25 |
26 | export function prevPage() {
27 | const pager: Pager = page.getViewById('pager');
28 | --pager.selectedIndex;
29 | }
30 |
31 | export function nextPage() {
32 | const pager: Pager = page.getViewById('pager');
33 | ++pager.selectedIndex;
34 | }
35 |
36 | export function firstPage() {
37 | const pager: Pager = page.getViewById('pager');
38 | pager.selectedIndex = 0;
39 | }
40 |
41 | export function lastPage() {
42 | const pager: Pager = page.getViewById('pager');
43 | pager.selectedIndex = pager.items.length - 1;
44 | }
45 |
46 | export function loadedImage($event: any) {
47 | const image: Image = $event.object;
48 | // console.log(
49 | // `onLoaded: ${image}, size: ${JSON.stringify(image.getActualSize())}}`
50 | // );
51 | }
52 |
53 | export function itemTemplateSelector(
54 | item: any,
55 | index: number,
56 | items: Array
57 | ) {
58 | return index % 2 === 0 ? 'even' : 'odd';
59 | }
60 |
61 | export function selectedIndexChange(event: any) {
62 | const selectedIndex = event.object.get('selectedIndex');
63 | // vm.set('index', event.object.get('selectedIndex'));
64 |
65 |
66 | if ((selectedIndex + 2) % 3 === 0) {
67 | vm.items.push({
68 | title: 'Slide ' + (vm.items.length + 1),
69 | image: 'https://source.unsplash.com/random'
70 | });
71 | }
72 | }
73 |
74 | export function navigate() {
75 | topmost().navigate('dummy-page');
76 | }
77 |
--------------------------------------------------------------------------------
/demo/app/list-page.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/demo/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/demo/app/nested/nested-page.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/demo/app/regular/regular-page.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/demo/app/static/static-page.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/demo/app/tests/tests.js:
--------------------------------------------------------------------------------
1 | var Pager = require("@nativescript-community/ui-pager").Pager;
2 | var pager = new Pager();
3 |
4 | describe("greet function", function() {
5 | it("exists", function() {
6 | expect(pager.greet).toBeDefined();
7 | });
8 |
9 | it("returns a string", function() {
10 | expect(pager.greet()).toEqual("Hello, NS");
11 | });
12 | });
--------------------------------------------------------------------------------
/demo/karma.conf.js:
--------------------------------------------------------------------------------
1 | module.exports = function (config) {
2 | const options = {
3 |
4 | // base path that will be used to resolve all patterns (eg. files, exclude)
5 | basePath: '',
6 |
7 |
8 | // frameworks to use
9 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
10 | frameworks: ['jasmine'],
11 |
12 |
13 | // list of files / patterns to load in the browser
14 | files: ['app/tests/**/*.*'],
15 |
16 |
17 | // list of files to exclude
18 | exclude: [
19 | ],
20 |
21 |
22 | // preprocess matching files before serving them to the browser
23 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
24 | preprocessors: {
25 | },
26 |
27 |
28 | // test results reporter to use
29 | // possible values: 'dots', 'progress'
30 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter
31 | reporters: ['progress'],
32 |
33 |
34 | // web server port
35 | port: 9876,
36 |
37 |
38 | // enable / disable colors in the output (reporters and logs)
39 | colors: true,
40 |
41 |
42 | // level of logging
43 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
44 | logLevel: config.LOG_INFO,
45 |
46 |
47 | // enable / disable watching file and executing tests whenever any file changes
48 | autoWatch: true,
49 |
50 |
51 | // start these browsers
52 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
53 | browsers: [],
54 |
55 | customLaunchers: {
56 | android: {
57 | base: 'NS',
58 | platform: 'android'
59 | },
60 | ios: {
61 | base: 'NS',
62 | platform: 'ios'
63 | },
64 | ios_simulator: {
65 | base: 'NS',
66 | platform: 'ios',
67 | arguments: ['--emulator']
68 | }
69 | },
70 |
71 | // Continuous Integration mode
72 | // if true, Karma captures browsers, runs the tests and exits
73 | singleRun: false
74 | };
75 |
76 | setWebpackPreprocessor(config, options);
77 | setWebpack(config, options);
78 |
79 | config.set(options);
80 | }
81 |
82 | function setWebpackPreprocessor(config, options) {
83 | if (config && config.bundle) {
84 | if (!options.preprocessors) {
85 | options.preprocessors = {};
86 | }
87 |
88 | options.files.forEach(file => {
89 | if (!options.preprocessors[file]) {
90 | options.preprocessors[file] = [];
91 | }
92 | options.preprocessors[file].push('webpack');
93 | });
94 | }
95 | }
96 |
97 | function setWebpack(config, options) {
98 | if (config && config.bundle) {
99 | const env = {};
100 | env[config.platform] = true;
101 | env.sourceMap = config.debugBrk;
102 | options.webpack = require('./webpack.config')(env);
103 | delete options.webpack.entry;
104 | delete options.webpack.output.libraryTarget;
105 | const invalidPluginsForUnitTesting = ["GenerateBundleStarterPlugin", "GenerateNativeScriptEntryPointsPlugin"];
106 | options.webpack.plugins = options.webpack.plugins.filter(p => !invalidPluginsForUnitTesting.includes(p.constructor.name));
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "org.nativescript.demo",
4 | "tns-android": {
5 | "version": "6.4.1"
6 | },
7 | "tns-ios": {
8 | "version": "6.4.2"
9 | }
10 | },
11 | "dependencies": {
12 | "nativescript-carousel": "^6.1.1",
13 | "nativescript-image-cache-it": "^5.0.0-beta.10",
14 | "nativescript-nested-scrollview": "^1.1.0",
15 | "@nativescript-community/ui-pager": "file:../src",
16 | "nativescript-theme-core": "^2.0.2",
17 | "nativescript-unit-test-runner": "0.7.0",
18 | "@nativescript/core": "rc"
19 | },
20 | "devDependencies": {
21 | "babel-traverse": "6.12.0",
22 | "babel-types": "6.11.1",
23 | "babylon": "6.8.4",
24 | "filewalker": "0.1.2",
25 | "jasmine-core": "^2.5.2",
26 | "karma": "4.1.0",
27 | "karma-jasmine": "2.0.1",
28 | "karma-nativescript-launcher": "^0.4.0",
29 | "karma-webpack": "3.0.5",
30 | "lazy": "1.0.11",
31 | "nativescript-css-loader": "~0.26.1",
32 | "@nativescript/webpack": "rc",
33 | "@nativescript/types": "file:../src/node_modules/@nativescript/types",
34 | "tslint": "~5.18.0",
35 | "typescript": "~3.9.7"
36 | },
37 | "scripts": {
38 | "build.plugin": "cd ../src && npm run build",
39 | "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'"
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | /* tslint:disable */
2 | ///
3 | ///
4 | /* tslint:enable */
5 |
--------------------------------------------------------------------------------
/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2017",
4 | "module": "esnext",
5 | "moduleResolution": "node",
6 | "declaration": false,
7 | "removeComments": true,
8 | "noLib": false,
9 | "emitDecoratorMetadata": true,
10 | "experimentalDecorators": true,
11 | "lib": [
12 | "es6",
13 | "dom"
14 | ],
15 | "pretty": true,
16 | "allowUnreachableCode": false,
17 | "allowUnusedLabels": false,
18 | "noEmitHelpers": true,
19 | "noEmitOnError": false,
20 | "noImplicitAny": false,
21 | "noImplicitReturns": true,
22 | "noImplicitUseStrict": false,
23 | "noFallthroughCasesInSwitch": true,
24 | "baseUrl": ".",
25 | "paths": {
26 | "*": [
27 | "./node_modules/*"
28 | ],
29 | "~/*": [
30 | "app/*"
31 | ]
32 | }
33 | },
34 | "include": [
35 | "../src",
36 | "**/*",
37 | ],
38 | "exclude": [
39 | "../src/node_modules",
40 | "../src/typings",
41 | "node_modules",
42 | "platforms"
43 | ],
44 | "compileOnSave": false
45 | }
46 |
--------------------------------------------------------------------------------
/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.full
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
48 |
--------------------------------------------------------------------------------
/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
--------------------------------------------------------------------------------
/src/.npmignore:
--------------------------------------------------------------------------------
1 | *.map
2 | *.ts
3 | *.tsx
4 | !*.d.ts
5 | tsconfig.json
6 | hooks
7 | typings
8 | node_modules
9 |
--------------------------------------------------------------------------------
/src/angular/index.ts:
--------------------------------------------------------------------------------
1 | import {
2 | ChangeDetectionStrategy,
3 | Component,
4 | ElementRef,
5 | forwardRef,
6 | IterableDiffers,
7 | NgModule,
8 | NO_ERRORS_SCHEMA
9 | } from '@angular/core';
10 |
11 | import { Pager } from '@nativescript-community/ui-pager';
12 | import {
13 | PagerItemDirective,
14 | TEMPLATED_ITEMS_COMPONENT,
15 | TemplatedItemsComponent,
16 | TemplateKeyDirective
17 | } from './pager-items-comp';
18 |
19 | export {PagerItemDirective, TemplatedItemsComponent, TemplateKeyDirective} from './pager-items-comp';
20 |
21 | @Component({
22 | selector: 'Pager',
23 | template: `
24 |
25 |
26 | `,
27 | changeDetection: ChangeDetectionStrategy.OnPush,
28 | providers: [
29 | {
30 | provide: TEMPLATED_ITEMS_COMPONENT,
31 | useExisting: forwardRef(() => PagerComponent)
32 | }
33 | ]
34 | })
35 |
36 | export class PagerComponent extends TemplatedItemsComponent {
37 | public get nativeElement(): Pager {
38 | return this.templatedItemsView;
39 | }
40 |
41 | protected templatedItemsView: Pager;
42 |
43 | constructor(_elementRef: ElementRef, _iterableDiffers: IterableDiffers) {
44 | super(_elementRef, _iterableDiffers);
45 | }
46 | }
47 |
48 | @NgModule({
49 | declarations: [PagerComponent, TemplateKeyDirective, PagerItemDirective],
50 | exports: [PagerComponent, TemplateKeyDirective, PagerItemDirective],
51 | schemas: [NO_ERRORS_SCHEMA]
52 | })
53 | export class PagerModule {
54 | }
55 |
--------------------------------------------------------------------------------
/src/angular/ng-package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dest": "./",
3 | "deleteDestPath": false,
4 | "lib": {
5 | "entryFile": "index.ts",
6 | "umdModuleIds": {
7 | "@nativescript/core": "ns-core",
8 | "@nativescript/angular": "ns-angular",
9 | "@nativescript-community/ui-pager": "ns-pager"
10 | }
11 | },
12 | "whitelistedNonPeerDependencies": [
13 | "."
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/src/angular/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@nativescript-community/ui-pager-angular",
3 | "main": "bundles/nativescript-community-ui-pager-angular.umd.js",
4 | "dependencies": {
5 | "@nativescript-community/ui-pager": "file:../",
6 | "tslib": "^2.0.0"
7 | },
8 | "module": "fesm2015/nativescript-community-ui-pager-angular.js",
9 | "es2015": "fesm2015/nativescript-community-ui-pager-angular.js",
10 | "esm2015": "esm2015/nativescript-community-ui-pager-angular.js",
11 | "fesm2015": "fesm2015/nativescript-community-ui-pager-angular.js",
12 | "typings": "nativescript-community-ui-pager-angular.d.ts",
13 | "sideEffects": false,
14 | "scripts": {
15 | "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/angular/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "rootDir": "./",
5 | "baseUrl": "./",
6 | "plugins": []
7 |
8 | },
9 | "include": ["./**/*.ts", "../references.d.ts"],
10 | "exclude": [
11 | "../node_modules"
12 | ],
13 | }
14 |
--------------------------------------------------------------------------------
/src/pager.d.ts:
--------------------------------------------------------------------------------
1 | import { View } from '@nativescript/core';
2 | import { PagerBase, PagerItem } from './pager.common';
3 |
4 | export { ItemsSource, PagerError, PagerLog, PagerItem } from './pager.common';
5 | export type Orientation = 'horizontal' | 'vertical';
6 |
7 | export declare class Pager extends PagerBase {
8 | cache: boolean;
9 |
10 | itemTemplateUpdated(oldData: any, newData: any): void;
11 |
12 | readonly android: any;
13 | readonly ios: any;
14 |
15 | scrollToIndexAnimated(index: number, animate: boolean): void;
16 |
17 | eachChildView(callback: (child: View) => boolean): void;
18 |
19 | updateNativeIndex(oldIndex: number, newIndex: number): void;
20 |
21 | updateNativeItems(oldItems: View[], newItems: View[]): void;
22 |
23 | refresh(): void;
24 |
25 | disableSwipe: boolean;
26 | disableAnimation: boolean;
27 |
28 | requestLayout(): void;
29 |
30 | _addChildFromBuilder(name: string, value: any): void;
31 |
32 | _onItemsChanged(oldValue: any, newValue: any);
33 |
34 | getChildView(index:number): PagerItem;
35 | }
36 |
--------------------------------------------------------------------------------
/src/platforms/android/include.gradle:
--------------------------------------------------------------------------------
1 | repositories {
2 | maven { url 'https://jitpack.io' }
3 | }
4 |
5 | android {
6 | configurations {
7 | all*.exclude group:'com.romandanylyk', module:'pageindicatorview'
8 | }
9 | }
10 |
11 | dependencies {
12 | def androidxVersion = project.hasProperty("androidxVersion") ? project.androidxVersion : "1.1.0"
13 |
14 | implementation "androidx.appcompat:appcompat:$androidxVersion"
15 |
16 | implementation 'androidx.viewpager2:viewpager2:1.0.0'
17 |
18 | implementation 'com.github.adrielcafe:PageIndicatorView:1.0.6'
19 | }
20 |
--------------------------------------------------------------------------------
/src/platforms/android/native-api-usage.json:
--------------------------------------------------------------------------------
1 | {
2 | "uses": [
3 | "androidx.viewpager2*:*",
4 | "androidx.recyclerview.widget:RecyclerView*",
5 | "com.rd*:*",
6 | "androidx.lifecycle*:*",
7 | "androidx.core.app*:*"
8 | ]
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/src/platforms/ios/Podfile:
--------------------------------------------------------------------------------
1 | pod 'CHIPageControl', :git => 'https://github.com/triniwiz/CHIPageControl.git'
2 |
--------------------------------------------------------------------------------
/src/platforms/ios/native-api-usage.json:
--------------------------------------------------------------------------------
1 | {
2 | "uses": [
3 | "CHIPageControl*:*",
4 | "Dispatch*:*",
5 | "Darwin*:*"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/src/react/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "index"
3 | }
4 |
--------------------------------------------------------------------------------
/src/references.d.ts:
--------------------------------------------------------------------------------
1 | /* tslint:disable */
2 | ///
3 | ///
4 | ///
5 | /* tslint:enable */
6 |
--------------------------------------------------------------------------------
/src/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2017",
4 | "module": "esnext",
5 | "moduleResolution": "node",
6 | "declaration": true,
7 | "removeComments": true,
8 | "noLib": false,
9 | "emitDecoratorMetadata": true,
10 | "experimentalDecorators": 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 | "jsx": "react",
23 | "plugins": [{ "transform": "@nativescript/webpack/transformers/ns-transform-native-classes.js", "type": "raw" }]
24 | },
25 | "include":[
26 | "**/*.ts",
27 | "!*.d.ts"
28 | ],
29 | "exclude": [
30 | "node_modules",
31 | "angular",
32 | "react"
33 | ],
34 | "compileOnSave": false,
35 | "angularCompilerOptions": {
36 | "skipTemplateCodegen": true
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/vue/index.js:
--------------------------------------------------------------------------------
1 | module.exports = function install(Vue) {
2 | Vue.registerElement('NativePager', () => require('../').Pager);
3 | Vue.registerElement('PagerItem', () => require('../').PagerItem);
4 | Vue.component('Pager', require('./pager')(Vue))
5 | }
6 |
--------------------------------------------------------------------------------
/src/vue/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "index"
3 | }
4 |
--------------------------------------------------------------------------------
/src/vue/pager.js:
--------------------------------------------------------------------------------
1 | const VUE_VIEW = '__vueVNodeRef__';
2 |
3 | module.exports = function pager(Vue) {
4 | return {
5 | model: {
6 | prop: 'selectedIndex',
7 | event: 'selectedIndexChange'
8 | },
9 | props: {
10 | items: {
11 | type: Array | Object,
12 | },
13 | '+alias': {
14 | type: String,
15 | default: 'item'
16 | },
17 | '+index': {
18 | type: String,
19 | default: '$index'
20 | },
21 | selectedIndex: {
22 | type: Number,
23 | default: 0
24 | }
25 | },
26 | template: `
27 |
35 |
36 |
37 | `,
38 | watch: {
39 | items: {
40 | handler(newVal) {
41 | this.$refs.pagerView.setAttribute('items', newVal);
42 | this.$refs.pagerView.nativeView.refresh();
43 | },
44 | deep: true
45 | }
46 | },
47 | computed: {
48 | listeners() {
49 | return Object.assign({}, this.$listeners, {
50 | selectedIndexChange: this.onSelectedIndexChange
51 | })
52 | }
53 | },
54 | mounted() {
55 | if (!this.items) return;
56 | this.getItemContext = (item, index) =>
57 | getItemContext(item, index, this.$props[ '+alias' ], this.$props[ '+index' ]);
58 | this.$refs.pagerView.setAttribute('items', this.items);
59 | this.$refs.pagerView.setAttribute(
60 | '_itemTemplatesInternal',
61 | this.$templates.getKeyedTemplates()
62 | );
63 | this.$refs.pagerView.setAttribute(
64 | '_itemTemplateSelector',
65 | (item, index) => {
66 | return this.$templates.selectorFn(this.getItemContext(item, index));
67 | }
68 | );
69 | },
70 | methods: {
71 | onItemLoading(args) {
72 | if (!this.items) return;
73 | const index = args.index;
74 | const items = args.object.items;
75 | const currentItem =
76 | typeof items.getItem === 'function'
77 | ? items.getItem(index)
78 | : items[ index ];
79 | const name = args.object._itemTemplateSelector(currentItem, index, items);
80 | const context = this.getItemContext(currentItem, index);
81 | const oldVnode = args.view && args.view[ VUE_VIEW ];
82 | args.view = this.$templates.patchTemplate(name, context, oldVnode);
83 | },
84 | onItemDisposing(args) {
85 | // TODO: handle disposing template
86 | // const oldVnode = args.view && args.view[ VUE_VIEW ];
87 | // console.log("disposing", !!oldVnode, VUE_VIEW);
88 | // if (oldVnode) {
89 | // Vue.prototype.__patch__(oldVnode, null);
90 | // }
91 | },
92 | onSelectedIndexChange({ value }) {
93 | this.$emit('selectedIndexChange', {
94 | object: { selectedIndex: value },
95 | });
96 | }
97 | }
98 | };
99 |
100 | function getItemContext(item, index, alias, index_alias) {
101 | return {
102 | [ alias ]: item,
103 | [ index_alias ]: index,
104 | $even: index % 2 === 0,
105 | $odd: index % 2 !== 0
106 | };
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "class-name": true,
4 | "comment-format": [
5 | true,
6 | "check-space"
7 | ],
8 | "indent": [
9 | true,
10 | "spaces"
11 | ],
12 | "no-duplicate-variable": true,
13 | "no-eval": true,
14 | "no-internal-module": true,
15 | "no-trailing-whitespace": true,
16 | "no-var-keyword": true,
17 | "one-line": [
18 | true,
19 | "check-open-brace",
20 | "check-whitespace"
21 | ],
22 | "quotemark": [
23 | false,
24 | "single"
25 | ],
26 | "semicolon": [
27 | true,
28 | "always"
29 | ],
30 | "triple-equals": [
31 | true,
32 | "allow-null-check"
33 | ],
34 | "typedef-whitespace": [
35 | true,
36 | {
37 | "call-signature": "nospace",
38 | "index-signature": "nospace",
39 | "parameter": "nospace",
40 | "property-declaration": "nospace",
41 | "variable-declaration": "nospace"
42 | }
43 | ],
44 | "variable-name": [
45 | true,
46 | "ban-keywords"
47 | ],
48 | "whitespace": [
49 | true,
50 | "check-branch",
51 | "check-decl",
52 | "check-operator",
53 | "check-separator",
54 | "check-type"
55 | ]
56 | }
57 | }
--------------------------------------------------------------------------------