Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
951 commits
Select commit Hold shift + click to select a range
05ac9ea
fix: prevent property change event while batch update or onLoaded
farfromrefug Feb 7, 2024
1e666fc
chore(ui-mobile-base): android fix for outline provider
farfromrefug Feb 9, 2024
c8174a7
fix(ios): px properties parsing fix
farfromrefug Feb 11, 2024
83756fb
chore: print error in parsing css shorthand values
farfromrefug Feb 11, 2024
17757a0
fix(ios): clipToBounds default fix
farfromrefug Feb 11, 2024
2e0ef99
fix(ios): now view animation are stacked into one animate block when …
farfromrefug Feb 11, 2024
a065bfe
fix(ios): now view animation are stacked into one animate block when …
farfromrefug Feb 11, 2024
37aabe2
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Feb 11, 2024
06fde68
chore: improve commit 05ac9ea21a79ac3f843080d1d61926448fe9717d.
farfromrefug Feb 12, 2024
2a059ca
fix(android): boxShadow vs clipToOutline fix
farfromrefug Feb 12, 2024
8550cb9
chore: box shadow demo update
farfromrefug Feb 12, 2024
0c5941a
fix(ios): big animations fix
farfromrefug Feb 12, 2024
961d355
fix(ios): big animations fix
farfromrefug Feb 12, 2024
6004240
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Feb 12, 2024
afec0d7
fix(ios): persist animation after it ends
farfromrefug Feb 12, 2024
c57548c
fix(ios): prevent not wanted changes to be animated
farfromrefug Feb 14, 2024
33ba23c
fix: remove maxSize thing from `ImageAsset.getImageAsync` as it is us…
farfromrefug Feb 15, 2024
8f809be
fix: remove maxSize thing from `ImageAsset.getImageAsync` as it is us…
farfromrefug Feb 15, 2024
ac62fb4
Merge remote-tracking branch 'origin/main'
farfromrefug Feb 15, 2024
9140b17
fix: prevent error with unneeded `_resumeNativeUpdates`. It can happe…
farfromrefug Feb 21, 2024
e167627
chore: log
farfromrefug Feb 21, 2024
1582b05
fix: maxWidth/maxHeight support for ImageAsset
farfromrefug Feb 24, 2024
9aa5e76
fix(android): trick to get a stack on native exceptions
farfromrefug Feb 26, 2024
08f4896
fix: bring back global event listeners (used for sentry)
farfromrefug Feb 26, 2024
a76d1a1
chore(android): better handle of java error and JS stack
farfromrefug Feb 26, 2024
5053704
fix(ios): report error in animate if view is not init
farfromrefug Feb 26, 2024
5f3198f
chore: for next
farfromrefug Feb 26, 2024
06f29e1
fix(android): catch and throw errors in ApplicationSettings
farfromrefug Feb 27, 2024
495a4b8
fix(android): complete native error wrapping for fileSystem
farfromrefug Feb 29, 2024
cb192d3
fix(android): complete native error wrapping for fileSystem
farfromrefug Feb 29, 2024
3a2204d
Merge remote-tracking branch 'origin/main'
farfromrefug Feb 29, 2024
e541404
chore: ios promise getImage
farfromrefug Feb 29, 2024
9779af4
fix(ios): working `ApplicationSettings. getAllJSON`
farfromrefug Feb 29, 2024
2249e8b
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Feb 29, 2024
7630be5
fix(ios): use `requestlayoutIfNeeded`
farfromrefug Mar 1, 2024
865f7aa
chore: new version
farfromrefug Mar 4, 2024
4229f46
fix(android): wrapNativeException fix for string errors
farfromrefug Mar 6, 2024
e714e16
fet: `create` argument for `File.fromPath` and `Folder.fromPath` to a…
farfromrefug Mar 6, 2024
64bb23d
fix(android): regression after refactoring of Font
farfromrefug Mar 8, 2024
c1e7988
fix: allow `openUrl` to throw error
farfromrefug Mar 13, 2024
9f44099
fix: allow `openUrl` to throw error
farfromrefug Mar 14, 2024
4207b03
fix(ios): correctly load Frame in modal
farfromrefug Mar 22, 2024
33762e0
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Mar 22, 2024
1ab2d99
fix(ios): view not performing layout in some cases
farfromrefug Mar 22, 2024
848a8b9
fix(ios): openFile working when called from a modal
farfromrefug Mar 22, 2024
58c8568
fix: `getRequestedImageSize` fix
farfromrefug Mar 25, 2024
d368c57
chore: rollback back change as the fix is now in the runtime (@akylas…
farfromrefug Mar 27, 2024
625bbdf
fix(android): `openFile` correctly working with `content://` URLs
farfromrefug Apr 3, 2024
b426f92
chore(ios): basic native exception wrapping
farfromrefug Apr 3, 2024
b305018
Merge remote-tracking branch 'nativescript/main'
farfromrefug Apr 3, 2024
50594af
fix(android): faster image loading
farfromrefug Apr 5, 2024
06f926c
chore(android): typo fix
farfromrefug Apr 5, 2024
dceea2e
fix: handle navigation error to not break future navigation calls
farfromrefug Apr 8, 2024
9f24215
Merge remote-tracking branch 'nativescript/main'
farfromrefug Apr 9, 2024
51981a4
chore: get rid of nx
farfromrefug Apr 9, 2024
42cfa41
chore: typings fix
farfromrefug Apr 9, 2024
61e9630
chore: refactor
farfromrefug Apr 9, 2024
195e455
chore: tsc fix
farfromrefug Apr 9, 2024
8a9f61e
chore: rename webpack plugin
farfromrefug Apr 9, 2024
5396ce1
chore: webpack plugin build fix
farfromrefug Apr 9, 2024
de39741
fix(ios): broken transform if set before any layout
farfromrefug Apr 10, 2024
9f7d741
fix(ios): regression from 8.7.0
farfromrefug Apr 10, 2024
fc25bc3
chore: new build
farfromrefug Apr 11, 2024
da206a1
fix: better handle KeyFrameAnimation errors
farfromrefug Apr 11, 2024
c32c556
fix(android): file-system now support content:// all the way
farfromrefug Apr 12, 2024
ae80498
fix: accessibilityEnabled fix for for many views/plugins
farfromrefug Apr 18, 2024
0e300c0
fix: ensure we have `requestAnimationFrame` and `cancelAnimationFrame…
farfromrefug Apr 18, 2024
0482603
Revert "fix: ensure we have `requestAnimationFrame` and `cancelAnimat…
farfromrefug Apr 18, 2024
7c8bb5a
Merge remote-tracking branch 'nativescript/main'
farfromrefug Apr 23, 2024
e01c4cc
Merge remote-tracking branch 'nativescript/main'
farfromrefug Apr 25, 2024
7c583ae
chore: new build
farfromrefug Apr 25, 2024
db7a63a
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Apr 28, 2024
9236f06
fix(ios): dialogs allow to show over already presented controllers.
farfromrefug Apr 30, 2024
76962a6
chore: refactor
farfromrefug Apr 30, 2024
2b35967
fix(core): ios fix for `File.fromPath` with a path starting with `fil…
farfromrefug Apr 30, 2024
8e9dc44
fix(android): borderRadius / outlineProvider fix for borderRadius is …
farfromrefug May 2, 2024
d16cc05
Merge remote-tracking branch 'origin/main'
farfromrefug May 2, 2024
122c816
chore(android): refactor and remove deprecated method
farfromrefug May 2, 2024
b37696a
chore: clean up logs
farfromrefug May 3, 2024
acc0b20
fix(android): prevent error if rootView not mounted (though not sure …
farfromrefug May 5, 2024
1706ac0
chore(android): trying to improve fragments
farfromrefug May 5, 2024
f619c54
fix: regression fix on `PercentLength.toDevicePixels`
farfromrefug May 7, 2024
8c84dc7
Merge remote-tracking branch 'origin/main'
farfromrefug May 7, 2024
475239a
feat(core): ignoreRegexp argument for `ApplicationSettings.getAllJSON`
farfromrefug May 16, 2024
93f15fb
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug May 16, 2024
3e702bc
chore: added fontVariationSettings to TextBase
farfromrefug May 22, 2024
b48a690
Merge remote-tracking branch 'origin/main'
farfromrefug May 22, 2024
69084cb
fix: working if FormData is not defined
farfromrefug May 24, 2024
21f1a0f
fix(core): iOS prevent _addViewToNativeVisualTree from _setupAsRootView
farfromrefug May 27, 2024
2e05207
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug May 27, 2024
f90b043
fix: prevent breaking modal stack
farfromrefug May 29, 2024
3a7e367
Merge remote-tracking branch 'origin/main'
farfromrefug May 29, 2024
1c3b5c8
fix: Application `once` method fix (was not removed after first event)
farfromrefug Jun 4, 2024
ec18702
chore: log cleanup
farfromrefug Jun 4, 2024
b9d5ba1
fix: Observable only support one event name now
farfromrefug Jun 4, 2024
b3439c7
fix(core): android support SAF from android 21
farfromrefug Jun 14, 2024
8a6b9d4
feat(android): allow to set `SET_THEME_ON_LAUNCH` in app settings to …
farfromrefug Jun 27, 2024
8a54fa5
chore: refactor deprecated
farfromrefug Jun 27, 2024
b4bf472
chore(android): handle activity recreate with subRootView
farfromrefug Jun 27, 2024
a15edd7
fix(android): prevent error while opening modal from background. Also…
farfromrefug Jul 3, 2024
70a7052
fix: improved `wrapNativeException` method
farfromrefug Jul 4, 2024
79cd858
chore: typings
farfromrefug Jul 4, 2024
12d2cd8
fix: more debounce options
farfromrefug Jul 5, 2024
8446bae
chore: ignore
farfromrefug Jul 13, 2024
9fb3c1d
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jul 22, 2024
0cf152d
chore: fixes after merge
farfromrefug Jul 22, 2024
dce30ab
fix(core): iOS fix for showModal just after another modal still dismi…
farfromrefug Jul 25, 2024
e97817b
chore: cleanup
farfromrefug Jul 29, 2024
a9c7051
chore: deps update
farfromrefug Jul 29, 2024
633e9d6
fix(android): `onConfigurationChanged` now calls what needed only whe…
farfromrefug Jul 29, 2024
0a44ce9
fix(android): regression after merge
farfromrefug Jul 29, 2024
7e2fba8
fix(core): android fix if folder content cant be acquired
farfromrefug Aug 1, 2024
7a70fdb
Merge remote-tracking branch 'nativescript/main'
farfromrefug Aug 1, 2024
feb958e
fix: import fixes
farfromrefug Aug 2, 2024
0af5890
chore: package generation fix
farfromrefug Aug 2, 2024
ad510cd
chore: patch build
farfromrefug Aug 2, 2024
3340080
chore: another import fix
farfromrefug Aug 2, 2024
6a5f266
Merge remote-tracking branch 'nativescript/main'
farfromrefug Sep 4, 2024
a05201f
fix: fix for GridLayout and external UI frameworks which could not co…
farfromrefug Sep 4, 2024
f9f4d36
Revert "perf(core): avoid setting the same value to view properties (…
CatchABus Sep 5, 2024
81b0556
Merge pull request #5 from CatchABus/revert-set-property-values
farfromrefug Sep 13, 2024
b3f06a5
fix(android): multiple fixes for handling content:// operations in fi…
farfromrefug Sep 22, 2024
19b6367
chore: typescript intelisense improvement
farfromrefug Sep 24, 2024
50d2728
chore: cleanup
farfromrefug Sep 24, 2024
6ea7d32
chore: tsc fix
farfromrefug Oct 2, 2024
a1b9923
fix(android): new `dialogOnCreateView` event on `Application.android`
farfromrefug Oct 2, 2024
33b79ae
fix(android): better handle of SAF folders
farfromrefug Oct 3, 2024
3c8d22d
fix(android): new `configurationChange` and refactored types
farfromrefug Oct 3, 2024
15a566d
fix(android): prevent error while using SAF paths
farfromrefug Oct 3, 2024
573f81f
chore: trick to get Typings to work correctly. Application event obje…
farfromrefug Oct 3, 2024
92e9d4d
Revert "chore: trick to get Typings to work correctly. Application ev…
farfromrefug Oct 3, 2024
4ff3704
chore: temp fix for typings.
farfromrefug Oct 3, 2024
ad0a35a
fix: new `sharedElementFrom` and `sharedElementTo` events to handle c…
farfromrefug Oct 8, 2024
a91cd15
fix: Folder and File now have a `isFolder` property
farfromrefug Oct 8, 2024
4cd08ed
fix(ios): ApplicationSettings.getAllJSON now uses native method
farfromrefug Oct 8, 2024
1678c58
chore: new build
farfromrefug Oct 9, 2024
4894485
chore: new buidl
farfromrefug Oct 9, 2024
261bf86
fix(ios): getAllJSON fix
farfromrefug Oct 9, 2024
4c3e2a5
chore: new build
farfromrefug Oct 9, 2024
aa15af8
fix(android): custom animation `android.style` for `showModal`
farfromrefug Oct 10, 2024
366a4f3
Merge remote-tracking branch 'origin/main'
farfromrefug Oct 10, 2024
7070079
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Oct 10, 2024
4ecf43e
fix(ios): correct error on `ImageSource.saveToFileAsync` when no nati…
farfromrefug Oct 10, 2024
1735d6f
chore: new build
farfromrefug Oct 10, 2024
fc9d5e4
chore: migration to lerna
farfromrefug Oct 12, 2024
8d9a7ae
fix(android): `path.join` now supports SAF paths (to be tested among …
farfromrefug Oct 14, 2024
5a25af3
chore: temp script
farfromrefug Oct 14, 2024
e07a040
chore: lerna test
farfromrefug Oct 14, 2024
e4d0cb6
chore(release): publish new version %v
farfromrefug Oct 14, 2024
bbbea49
chore(release): publish new version %v
farfromrefug Oct 14, 2024
01ce540
chore project
farfromrefug Oct 14, 2024
be79819
chore: lerna fix
farfromrefug Oct 14, 2024
d2acafe
chore: future release action
farfromrefug Oct 14, 2024
95e4c7d
chore: update lerna-lite to support --scope
farfromrefug Oct 16, 2024
0a55135
Merge remote-tracking branch 'nativescript/main'
farfromrefug Nov 4, 2024
6b16389
chore: lerna update to allow scoped publish
farfromrefug Nov 4, 2024
8544e1b
fix: Frame onLoaded should not load pages in backstack
farfromrefug Nov 7, 2024
1cc0e8e
chore: script fix
farfromrefug Nov 7, 2024
d5b2258
chore(release): 8.8.8
farfromrefug Nov 7, 2024
2912f4c
chore: testing
farfromrefug Nov 7, 2024
3848134
chore: script
farfromrefug Nov 7, 2024
51f60dd
chore: changelog
farfromrefug Nov 7, 2024
7f77695
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Nov 8, 2024
ea85225
fix(ios): prevent `ApplicationSettings.getAllJSON` error
farfromrefug Nov 13, 2024
b929f0a
chore(release): 8.8.9
farfromrefug Nov 13, 2024
daff200
chore: script
farfromrefug Nov 13, 2024
04137c5
chore: refactor
farfromrefug Nov 25, 2024
1702e28
chore: log cleanup
farfromrefug Dec 10, 2024
a23e095
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Dec 10, 2024
97cb09d
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Dec 10, 2024
d235337
chore: make object optional as it is used for callback and notify whe…
farfromrefug Dec 19, 2024
af1d8e5
Merge remote-tracking branch 'origin/main'
farfromrefug Dec 19, 2024
0651ac1
Merge remote-tracking branch 'origin/main'
farfromrefug Dec 19, 2024
5eee1e6
chore: ci
farfromrefug Dec 19, 2024
1ce8440
chore: ci
farfromrefug Dec 19, 2024
42c93b9
chore: packageManager
farfromrefug Dec 19, 2024
6f19181
chore: ci
farfromrefug Dec 19, 2024
f15e3f1
chore: ci
farfromrefug Dec 19, 2024
5875663
chore(release): 8.8.10
farfromrefug Dec 19, 2024
1fe9146
chore: ci
farfromrefug Dec 19, 2024
2afed08
fix: circular imports (#10670)
ammarahm-ed Jan 19, 2025
a827a3d
fix: hmr for hermes engine (#10669)
ammarahm-ed Jan 19, 2025
8c2cdc8
chore: 8.9.0-napi.0
NathanWalker Jan 19, 2025
2c6a030
chore: webpack 5.0.23-napi.0
NathanWalker Jan 19, 2025
619cd52
chore: removed wintergc
farfromrefug Jan 20, 2025
5295b52
chore: removed husky
farfromrefug Jan 20, 2025
1988a05
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jan 20, 2025
4f84072
chore: cleanup
farfromrefug Jan 20, 2025
d479322
chore: after merge
farfromrefug Jan 20, 2025
780962c
Merge remote-tracking branch 'nativescript/feat/napi'
farfromrefug Jan 20, 2025
5bc4b1a
chore: fixed tsc warnings/errors
farfromrefug Jan 22, 2025
4194cc7
chore: clenaup
farfromrefug Jan 22, 2025
53f32b8
chore: removed toStrign
farfromrefug Jan 22, 2025
79928af
fix: boxShadow not working on android only backgroundColor
farfromrefug Jan 22, 2025
a52b50d
chore: rollback to es2020 for now as it breaks some features
farfromrefug Jan 22, 2025
4978865
chore: missing from last commit to fix tsc errros
farfromrefug Jan 22, 2025
4db07b3
chore: eslint fix
farfromrefug Jan 22, 2025
f96c589
chore: log cleanup
farfromrefug Jan 22, 2025
e2e70c7
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jan 23, 2025
753187b
fix: disableCss would break css for next parent children
farfromrefug Feb 17, 2025
29f92c2
Merge remote-tracking branch 'nativescript/main'
farfromrefug Feb 17, 2025
3f007d9
chore(release): 8.9.0
farfromrefug Feb 17, 2025
7f3cc3b
chore(release): 8.9.1
farfromrefug Feb 17, 2025
f77ee9b
Revert "chore(release): 8.9.1"
farfromrefug Feb 17, 2025
fff94b6
Revert "chore(release): 8.9.0"
farfromrefug Feb 17, 2025
83a5359
ci: core publish workflow fix
farfromrefug Feb 17, 2025
ee2ea1f
chore(release): 8.8.11
farfromrefug Feb 17, 2025
31a9d24
Merge remote-tracking branch 'nativescript/main'
farfromrefug Feb 19, 2025
b4fe924
Merge remote-tracking branch 'nativescript/main'
farfromrefug Feb 22, 2025
196af78
Merge remote-tracking branch 'nativescript/main'
farfromrefug Sep 1, 2025
d1a239b
chore(webpack): publish fix
farfromrefug Sep 1, 2025
0862b7d
fix(core): use of css calc() and color-mix() now requires `__CSS_USE_…
farfromrefug Sep 2, 2025
bb8a954
fix(core): bring back defaults for `Font.with...` and `Background.wit…
farfromrefug Sep 2, 2025
2725012
chore(release): 8.9.6
farfromrefug Sep 2, 2025
4df7930
chore: changelog fix
farfromrefug Sep 2, 2025
3f8d3eb
chore: worflow
farfromrefug Sep 2, 2025
fca16b1
fix: `orientationChange` event now also contains rotation in degrees
farfromrefug Sep 17, 2025
01bc2b2
chore(android): improved fonScale change events
farfromrefug Sep 17, 2025
3007a2b
chore: bring back yarn.lock
farfromrefug Sep 17, 2025
bdaa197
chore: cleanup as we dont use npm
farfromrefug Sep 17, 2025
1d1514f
Merge remote-tracking branch 'nativescript/main'
farfromrefug Sep 19, 2025
376c4f9
Merge commit 'd6d38008840b90fac4d2098de124abab0c69416b'
farfromrefug Sep 19, 2025
67c792e
chore(release): 8.9.9
farfromrefug Sep 19, 2025
71bbb60
fix(core): iOS fix for navigation broken after showing modal over vie…
farfromrefug Sep 30, 2025
859df73
chore(release): 8.9.10
farfromrefug Oct 4, 2025
8afa565
chore(widgets): build update
farfromrefug Oct 4, 2025
8e892db
chore: ci
farfromrefug Oct 4, 2025
c5b127e
Merge remote-tracking branch 'origin/main'
farfromrefug Oct 4, 2025
23da450
chore(core): now the ui-mobile-widgets is directly provided as sources
farfromrefug Oct 6, 2025
93c54ba
chore: updated scripts, dont build ui-mobile-base and dont use cpy
farfromrefug Oct 6, 2025
9a40cc1
Merge remote-tracking branch 'origin/main'
farfromrefug Oct 6, 2025
73cebea
chore: fixes after merge
farfromrefug Nov 14, 2025
0ac02da
fix(core): iOS fix for navigation broken after showing modal over vie…
farfromrefug Sep 30, 2025
21a2edd
chore(release): 8.9.10
farfromrefug Oct 4, 2025
0540885
chore(widgets): build update
farfromrefug Oct 4, 2025
1ed9b04
chore: ci
farfromrefug Oct 4, 2025
6946a2c
chore(release): 8.9.9
farfromrefug Sep 19, 2025
709e00f
Merge remote-tracking branch 'origin/main'
farfromrefug Oct 4, 2025
7b3c3bf
chore(core): now the ui-mobile-widgets is directly provided as sources
farfromrefug Oct 6, 2025
65eae92
chore: updated scripts, dont build ui-mobile-base and dont use cpy
farfromrefug Oct 6, 2025
fc34f31
Merge remote-tracking branch 'origin/main'
farfromrefug Oct 6, 2025
18d0f99
Merge remote-tracking branch 'origin/main'
farfromrefug Nov 14, 2025
5813bce
Merge branch 'main' into merge_from_akylas
farfromrefug Nov 14, 2025
75dd54c
Merge remote-tracking branch 'nativescript/main'
farfromrefug Nov 14, 2025
08167fb
Merge branch 'main' into merge_from_akylas
farfromrefug Nov 14, 2025
3a724fa
chore: fixes after merge
farfromrefug Nov 14, 2025
9883cd1
chore: fix after merges
farfromrefug Nov 14, 2025
7bcdfe2
chore: signature fix
farfromrefug Nov 14, 2025
5e5b001
chore: native-api-usage fix
farfromrefug Nov 14, 2025
ad134e9
chore(android): native-api-fix after merge
farfromrefug Nov 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

# dependencies
**/node_modules
**/yarn.lock
**/pnpm-lock.yaml
.npmrc
.yarn

# IDEs and editors
.idea
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/page11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function createPage() {
//page.content = GridLayout;
page.content = StackLayout;
var x = 1;
btn1.on(button.Button.tapEvent, function () {
btn1.on(button.tapEvent, function () {
x++;
var gravity;
//btn1.android.setLayoutParams(new android.view.ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT, android.view.ViewGroup.LayoutParams.FILL_PARENT));
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/page7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function createPage() {
var vAligns: CoreTypes.VerticalAlignmentType[] = ['stretch', 'top', 'middle', 'bottom'];
//var hAligns = ["stretch", "left", "center", "right"];
var count = 0;
btn.on(buttons.Button.tapEvent, function () {
btn.on(buttons.tapEvent, function () {
//page.css = "button { vertical-align:" + vAligns[(count++) % 4] + " }";
btn.verticalAlignment = vAligns[count++ % 4];
});
Expand Down
4 changes: 2 additions & 2 deletions apps/automated/src/pages/page8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function createPage() {
var counter = 0;
var btn = new btns.Button();
btn.text = 'tap';
btn.on(btns.Button.tapEvent, function () {
btn.on(btns.tapEvent, function () {
btn.text = 'hi: ' + counter++;
});
btn.isEnabled = false;
Expand All @@ -52,7 +52,7 @@ export function createPage() {
var info = new btns.Button();
info.text = 'info';
info.className = 'info';
info.on(btns.Button.tapEvent, function () {
info.on(btns.tapEvent, function () {
info.text = 'hi: ' + counter++;
btn.isEnabled = true;
});
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/property-bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function createPage() {
var count = 0;
var control = new btns.Button();
control.text = 'test control';
control.on(btns.Button.tapEvent, (data) => {
control.on(btns.tapEvent, (data) => {
control.text = 'count: ' + count++;
});
grid.addChild(control);
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/tk-unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export function waitUntilReady(isReady: () => boolean, timeoutSec: number = 5, s

// Setup for the Android modal loop implementation
// TODO: If these platform-specific implementations continue to grow, think of per-platform separation (TKUnit.android)
let nextMethod;
let nextMethod: java.lang.reflect.Method;
let targetField;
let prepared;

Expand Down
3 changes: 2 additions & 1 deletion apps/automated/src/ui/button/button-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as TKUnit from '../../tk-unit';
import * as helper from '../../ui-helper';
import { View, EventData, Button, Observable, Color, Page, FormattedString, BindingOptions, Span } from '@nativescript/core';
import * as buttonTestsNative from './button-tests-native';
import * as button from '@nativescript/core/ui/button';

export function test_recycling() {
helper.nativeView_recycling_test(() => new Button());
Expand Down Expand Up @@ -95,7 +96,7 @@ var _testOnClick = function (views: Array<View>) {

var actualValue = false;
// >> button-tap
button.on(Button.tapEvent, function (args: EventData) {
button.on(button.tapEvent, function (args: EventData) {
// Do something
// >> (hide)
actualValue = true;
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/ui/root-view/mymodule/MyControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class MyControl extends stackLayoutModule.StackLayout {
lbl.id = 'my-test-label';
var btn = new button.Button();
btn.text = 'Tap me!';
btn.on(button.Button.tapEvent, (args: EventData) => {
btn.on(button.tapEvent, (args: EventData) => {
lbl.text = 'Tap ' + counter++;
});

Expand Down
3 changes: 2 additions & 1 deletion apps/automated/src/ui/tab-view/tab-view-navigation-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as TKUnit from '../../tk-unit';
import * as helper from '../../ui-helper';
import { isIOS, isAndroid, Label, StackLayout, Frame, Page, ListView, ItemEventData, TabView, TabViewItem, Button } from '@nativescript/core';
import * as button from '@nativescript/core/ui/button';

var ASYNC = 2;

Expand Down Expand Up @@ -37,7 +38,7 @@ function _createListView(): ListView {
var button = <Button>args.view;
if (!button) {
button = new Button();
button.on(Button.tapEvent, _clickHandlerFactory(args.index));
button.on(button.tapEvent, _clickHandlerFactory(args.index));
args.view = button;
}

Expand Down
3 changes: 2 additions & 1 deletion apps/automated/src/xml-declaration/mymodule/MyControl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StackLayout, Label, Button, EventData } from '@nativescript/core';
import * as button from '@nativescript/core/ui/button';

export class MyControl extends StackLayout {
constructor() {
Expand All @@ -9,7 +10,7 @@ export class MyControl extends StackLayout {
var lbl = new Label();
var btn = new Button();
btn.text = 'Tap me!';
btn.on(Button.tapEvent, (args: EventData) => {
btn.on(button.tapEvent, (args: EventData) => {
lbl.text = 'Tap ' + counter++;
});

Expand Down
68 changes: 68 additions & 0 deletions apps/toolbox/src/pages/animation-curves-page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import { getViewById, View, Page, Button, SegmentedBar, SegmentedBarItem, Label, Animation, AnimationDefinition } from '@nativescript/core';

export function easeAnimate(args) {
const clicked = args.object as Button;
const page: Page = clicked.page;
const target = getViewById(page, 'target') as Label;
const select = getViewById(page, 'select') as SegmentedBar;
const item: SegmentedBarItem = select.items[select.selectedIndex];
const easeType: string = clicked.text;
const extent = 128;
let duration = easeType === 'spring' ? 800 : 500;
let delay = easeType === 'spring' ? 0 : 200;
let animateKey: string = null;
let animateValueTo: any = null;
let animateValueFrom: any = null;

switch (item.title) {
case 'height':
animateKey = 'height';
target.originX = target.originY = 0;
animateValueTo = 0;
animateValueFrom = extent;
break;
case 'width':
animateKey = 'width';
target.originX = target.originY = 0;
animateValueTo = 0;
animateValueFrom = extent;
break;
case 'opacity':
animateKey = 'opacity';
animateValueTo = 0;
animateValueFrom = 1;
break;
case 'color':
animateKey = 'backgroundColor';
animateValueTo = 'blue';
animateValueFrom = 'purple';
break;
case 'rotate':
animateKey = 'rotate';
target.originX = target.originY = 0.5;
animateValueTo = 180;
animateValueFrom = 0;
break;
case 'scale':
animateKey = 'scale';
target.originX = target.originY = 0.5;
animateValueTo = { x: 1.5, y: 1.5 };
animateValueFrom = { x: 1, y: 1 };
break;
}
target
.animate({
[animateKey]: animateValueTo,
duration,
curve: easeType,
})
.then(() => {
return target.animate({
[animateKey]: animateValueFrom,
delay,
duration,
curve: easeType,
});
})
.catch((e) => console.log(e));
}
31 changes: 31 additions & 0 deletions apps/toolbox/src/pages/animation-curves-page.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<Page>
<AbsoluteLayout>
<GridLayout top="0" left="0" width="100%" rows="48, 48, 48, 48, 48, 48" columns="*,*,*">

<Label row="0" colSpan="3" text="Animate"/>
<SegmentedBar row="1" colSpan="3" id="select">
<SegmentedBar.items>
<SegmentedBarItem title="height"/>
<SegmentedBarItem title="width"/>
<SegmentedBarItem title="opacity"/>
<SegmentedBarItem title="color"/>
<SegmentedBarItem title="rotate"/>
<SegmentedBarItem title="scale"/>
</SegmentedBar.items>
</SegmentedBar>

<Label row="2" colSpan="3" text="Easing"/>
<Button row="3" col="0" text="easeIn" tap="easeAnimate"/>
<Button row="3" col="1" text="easeOut" tap="easeAnimate"/>
<Button row="3" col="2" text="easeInOut" tap="easeAnimate"/>
<Button row="4" col="0" text="spring" tap="easeAnimate"/>
<Button row="4" col="1" text="linear" tap="easeAnimate"/>
<Button row="4" col="2" text="ease" tap="easeAnimate"/>
</GridLayout>

<Label top="300" left="96" height="128" width="128"
borderColor="purple" borderWidth="1"/>
<Label top="300" left="96" height="128" width="128"
id="target" backgroundColor="purple"/>
</AbsoluteLayout>
</Page>
13 changes: 10 additions & 3 deletions apps/toolbox/src/pages/box-shadow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Observable, EventData, Page } from '@nativescript/core';
import { Observable, EventData, Page, CoreTypes } from '@nativescript/core';

export function navigatingTo(args: EventData) {
const page = <Page>args.object;
Expand Down Expand Up @@ -123,17 +123,20 @@ export class BoxShadowModel extends Observable {
toggleAnimation(args) {
const view = args.object;
const animationDuration = 500;
let curve;
if (this._selectedAnimation === 'width') {
const originalWidth = args.object.getActualSize().width;
view
.animate({
width: originalWidth / 2,
duration: animationDuration,
curve,
})
.then(() =>
view.animate({
width: originalWidth,
duration: animationDuration,
curve,
}),
)
.catch((err) => {
Expand All @@ -145,11 +148,13 @@ export class BoxShadowModel extends Observable {
.animate({
height: originalHeight / 2,
duration: animationDuration,
curve,
})
.then(() =>
view.animate({
height: originalHeight,
duration: animationDuration,
curve,
}),
)
.catch((err) => {
Expand All @@ -162,15 +167,17 @@ export class BoxShadowModel extends Observable {
scale: this._selectedAnimation === 'scale' ? { x: 0.5, y: 0.6 } : { x: 1, y: 1 },
rotate: this._selectedAnimation === 'rotate' ? 180 : 0,
translate: this._selectedAnimation === 'translate' ? { x: 100, y: 100 } : { x: 0, y: 0 },
duration: 500,
duration: animationDuration,
curve,
})
.then(() =>
view.animate({
opacity: 1,
scale: { x: 1, y: 1 },
rotate: 0,
translate: { x: 0, y: 0 },
duration: 500,
duration: animationDuration,
curve,
}),
)
.catch((err) => {
Expand Down
79 changes: 79 additions & 0 deletions apps/toolbox/src/pages/css-animations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
.fade-blink {
animation-name: fadeAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.scale-blink {
animation-name: scaleAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.slide-blink {
animation-name: slideAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.color-blink {
animation-name: colorAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}

@keyframes fadeAndBack {
0% {
opacity: 1;
}

50% {
opacity: 0;
}

100% {
opacity: 1;
}
}
@keyframes colorAndBack {
0% {
background-color: blue;
}

50% {
background-color: yellow;
}

100% {
background-color: blue;
}
}

@keyframes slideAndBack {
0% {
transform: translateY(0);
}

50% {
transform: translateY(100%);
}

100% {
transform: translateY(0);
}
}

@keyframes scaleAndBack {
0% {
transform: scale(1, 1);
}

50% {
transform: scale(0, 0);
}

100% {
transform: scale(1, 1);
}
}
7 changes: 7 additions & 0 deletions apps/toolbox/src/pages/css-animations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { EventData } from '@nativescript/core/data/observable';
import { Page } from '@nativescript/core/ui/page';

export function onLoaded(args: EventData) {
var page = <Page>args.object;

}
7 changes: 7 additions & 0 deletions apps/toolbox/src/pages/css-animations.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Page loaded="onLoaded">
<GridLayout rows="*,*,*,*,*,*" columns="*,*,*">
<Button class="s0 fade-blink" row="0" col="0" text="Button"/>
<Label color="black" class="s0 color-blink" row="1" col="0" text="This is a test" backgroundColor="red"/>
<Button class="s0 slide-blink" row="2" col="0" text="Button"/>
</GridLayout>
</Page>
14 changes: 14 additions & 0 deletions apps/toolbox/src/pages/layout-stack-height-page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { View } from '@nativescript/core';

export function tapLabel(args) {
const clicked: View = args.object;
const graffiti = clicked as any;
clicked.animate({
height: graffiti.toggle ? 'auto' : 128,
color: graffiti.toggle ? 'red': 'yellow',
borderRadius: graffiti.toggle ? 0: 40,
duration: 700,
curve: 'ease',
});
graffiti.toggle = !graffiti.toggle;
}
Loading
Loading