Commit Graph

1126 Commits

Author SHA1 Message Date
Martin Yankov
51a191f396 fix(ios): safe area handling in scrollview (#6561) 2018-11-15 13:07:15 +00:00
Dick Smith
db33cf313c fix: crash on Android Tab-View #6466 (#6467)
* fix: crash on Android Tab-View NativeScript#6466

This fix has been tested in production with no new issues occurring.

Long-term solution would be one of the following, though:
1. reintroduce overrides for `saveState`/`restoreState` in the current PagerAdapter implementation (removed on this commit NativeScript@ac04ede#diff-f1459d509d1432b432c29bcd30e462fbL97)
2. use FragmentPagerAdapter
3. use FragmentStatePagerAdapter

Both 2 and 3 manage the save/restore cycles. The main difference between 2 and 3 is that 2 uses more memory, but allows for quicker switching between Fragments than 3. Since tabs should usually be limited to 5 or less, this may be the best choice to maintain performance, which is important for top level navigation tabs.

When I have more time I may experiment with these options myself to see what the difference to performance and memory consumption is for each.

* refactor: _commitCurrentTransaction method+comment

* chore: fix typo

* fix: missing class definition
2018-11-14 15:53:38 +00:00
Manol Donev
7df8038d09 fix: nested frames order with tabs & suspend/resume (#6528) 2018-11-14 10:20:52 +02:00
Nathan Walker
950fdcf5e7 fix(image): uncaught error in promise with image handling (#6453) 2018-11-13 16:49:37 +00:00
Shyam Seshadri
7e7c050064 feat: add number and phone input types for prompt dialog (#6365) 2018-11-07 17:32:20 +02:00
Manol Donev
7fbdc7adc8 fix: layoutChanged event in landscape (#6520) 2018-11-07 14:23:02 +02:00
Manol Donev
41ba93de41 fix(android): IllegalStateException with tabview&nested frames (#6495) 2018-11-05 16:17:51 +02:00
Manol Donev
fac970e753 fix(android): back navigation on app suspend/resume (#6489) 2018-11-02 17:31:52 +02:00
Vladimir Amiorkov
2933a9a934 fix: Resolve incorrect name of listener when unsubscribing (#6487) 2018-11-02 15:33:17 +02:00
Alexander Djenkov
371fc9b647 fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (#6476) 2018-10-30 14:24:55 +02:00
Martin Yankov
58c9d424f5 fix-next(ios): handle nesting in proxyViewContainer ng (#6475) 2018-10-30 14:00:00 +02:00
Manol Donev
95c4ec5a96 Revert "fix-next(android): restore fade animation for simulated nav (#6463)" (#6473)
This reverts commit 448936d6e6.
2018-10-29 19:43:34 +02:00
Martin Yankov
7625d6cb21 fix-next: handle view controller nesting in ng (#6472) 2018-10-29 19:22:30 +02:00
Manol Donev
448936d6e6 fix-next(android): restore fade animation for simulated nav (#6463) 2018-10-26 17:09:19 +03:00
Todor Petrov
f5cca13a7c fix-next: correct raising of layoutChanged event (#6457)
Currently the layoutChanged event can be raised even when there is no change due to safe area calculations.
2018-10-26 17:03:23 +03:00
daviditsygin
745a79f5fa docs(iOS): update HtmlView documentation link (#6335)
The old link was a 404.
2018-10-26 14:47:35 +03:00
Martin Yankov
e48782511d fix-next: handle action bar safe area nesting (#6455) 2018-10-26 14:05:14 +03:00
Manol Donev
4765dd9302 fix-next(android): exit fragment animation (#6421) 2018-10-26 13:32:30 +03:00
Martin Yankov
0002624d3c feat(frame): add new actionBarVisibility property (#6449) 2018-10-24 14:51:43 +03:00
Alexander Djenkov
af651d6e83 feat(frame): hardware back in parent frame when back states available (#6446) 2018-10-24 10:18:50 +03:00
Manol Donev
9f7df1868c refactor: fix ts compilation errors (#6445) 2018-10-23 17:01:33 +03:00
Martin Yankov
dfa208a54d fix-next: apply ios safe area before transform (#6443) 2018-10-23 13:38:02 +03:00
Nicu
a58fc528b2 fix(connectivity): making startMonitoring() behave on iOS as on Android (#6373)
On Android, when calling startMonitor it will immediately fire the callback with the current state. Now it does the same on iOS.
2018-10-23 00:06:39 +03:00
Nicu
c0438df9a7 fix(observable-array): reduce no longer ignores zero as initial value (#6402)
* fix(observable-array): reduce no longer ignores zero as initial value

* fix(observable-array): reduceRight now functions  properly when initial value is not specified or zero
2018-10-19 17:14:47 +03:00
Rakesh Girase
a3f149325f 5620 GridLayout addChild to set row and column (#6411) 2018-10-19 15:20:41 +03:00
Svetoslav
96b439e3df chore: bump versions to 5.1.0 (#6422) 2018-10-17 14:30:38 +03:00
Manol Donev
c8c0be7684 refactor: restore animators api usage (#6403) 2018-10-16 15:37:57 +03:00
Svetoslav
d24012b851 chore: bump versions to 5.0.0 (#6413) 2018-10-15 16:36:29 +03:00
Martin Yankov
7e891a91f9 fix-next: restrict to safe area when transform (#6405) 2018-10-15 10:17:56 +03:00
Nicu
829d18b56d feat(application-settings): implemented allKeys method (#6371) 2018-10-12 13:28:48 +03:00
Alexander Vakrilov
56a1b120af fix: Don't crash on missing resources in tab-view and action-bar (#6388) 2018-10-11 21:31:19 +03:00
Manol Donev
5b77017d37 refactor(android): root fragment manager usage (#6399) 2018-10-11 19:02:41 +03:00
Manol Donev
307172003d fix: nested fragments interact thru child fragment manager (#6293) 2018-10-11 17:44:30 +03:00
Martin Yankov
d91bfd8e11 fix-next: drawer plugin viewcontroller init (#6379) 2018-10-11 15:16:48 +03:00
Martin Yankov
04233b65c1 fix-next: ios 10 safe area backwards compat (#6364)
* fix-next: ios 10 safe area backwards compat

* refactor: update a comment

* fix-next: ios 10 page on layout fix

* fix-next: handle ios 11 flat action bar
2018-10-09 10:16:31 +03:00
Alexander Vakrilov
e3d5f0d409 fix(tab-view): Title and icon positioning (#6362)
* fix(tab-view): Title and icon positioning

* refactor: review FB addressed
2018-10-08 11:23:34 +03:00
Martin Hettiger
ae6a661ecd feat: implement capitalization type option for prompt dialogs (#6325)
* feat: implement capitalization type option for prompt dialogs

Allow setting auto capitalization to "none", "all", "sentences" and "words".
This feature works on both Android and iOS.

* feat: add capitalization type examples to test page for dialogs
2018-10-05 17:15:54 +03:00
Morten Sjøgren
1232d1edfd feat(tslib): add tslib helpers to global (#6351)
* feat(tslib): add tslib helpers to global

* Adds tslib as a dependency to tns-core-modules
* Replaces globals/decorators with globals/tslib
* Adds support for async/await, rest and spread operators.

* refactor: rename tslib to ts-helpers to avoid confusion with npm package
2018-10-05 17:12:45 +03:00
Manol Donev
436a318de5 fix(android): second livesync (#6330) 2018-10-04 15:57:11 +03:00
Manol Donev
0bf6dc2e93 fix(android): nested frames on app suspend/resume (#6339) 2018-10-04 14:31:57 +03:00
Martin Yankov
2e3c0a812a fix-next: apply repeater onLayout initial values (#6344) 2018-10-04 13:45:51 +03:00
Vasil Chimev
0f067a03ca fix-next(flexbox): flex end for justify content (#6337)
* fix-next(flexbox): flex end for justify content

* refactor: add lessOrCloseEnough assert method
2018-10-03 16:39:39 +03:00
Vasil Chimev
982acdc168 feat(iOS): Safe Area Support (#6230) 2018-09-28 18:21:50 +03:00
Martin Guillon
46705ee332 refactor(core-modules): implement createNativeView and initNativeView for all components
refactor(core-modules): implement createNativeView and initNativeView for all components
2018-09-26 13:59:12 +03:00
Alexander Vakrilov
71107533bb refactor: guard livesync for cases the app is not yet started (#6276) 2018-09-20 09:47:53 +03:00
Manol Donev
262568314b feat: add ability to pass touch event thru parent view (#6204)
* feat: enhance hit-testing support
* refactor(android): update passthroughParent logic as per reqs
* refactor: move isPassthroughParentEnabled to LayoutBase
* Update view-common.ts
* refactor: touchListener logic
* refactor: renames
* added ui test page
2018-09-18 18:59:40 +03:00
Manol Donev
6c9fa16f6e fix(android): parallel navigations should not be triggered (#6275) 2018-09-18 11:25:31 +03:00
Alexander Vakrilov
1db1e81174 docs: document eachChild callback function (#6253) 2018-09-17 22:34:26 +03:00
Alexander Vakrilov
12fade7155 fix: Page and Frame isLoaded undefined checks (#6255)
* fix(view): isLoaded handling

closes https://github.com/NativeScript/NativeScript/issues/6179

* refactor: Error handling code in onCreateView
2018-09-17 15:37:29 +03:00
Alexander Vakrilov
8575c60b13 fix(modals): application activityBackPressed event not fired for modals (#6261) 2018-09-17 15:37:16 +03:00