19 Commits

Author SHA1 Message Date
e3e5dea2be Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	package.json
#	packages/core/bundle-entry-points.ts
#	packages/core/color/color-common.ts
#	packages/core/color/index.d.ts
#	packages/core/globals/index.ts
#	packages/core/package.json
#	packages/core/ui/core/bindable/index.ts
#	packages/core/ui/core/properties/index.ts
#	packages/core/ui/core/view/index.android.ts
#	packages/core/ui/frame/index.android.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/ui-mobile-base/android/gradle/wrapper/gradle-wrapper.properties
#	packages/webpack5/package.json
#	packages/webpack5/src/configuration/base.ts
2021-09-16 10:16:45 +02:00
ffab4c3165 feat: Frame replacePage by entry (#9460)
* feat: Frame replacePage by entry

* feat(webpack): improved svelte HMR (#9497)

* update svelte config to use svelte-loader

* handle null config

* fix: worker support in .svelte files & update snapshots

* fix after merge

Co-authored-by: halfnelson <dpershouse@gmail.com>
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>

* feat(webpack): use svelte-loader and fallback to svelte-loader-hot

Allows running older projects

* feat: allow overwriting replacePage transition

Co-authored-by: farfromrefuge <martin.guillon@akylas.fr>
Co-authored-by: halfnelson <dpershouse@gmail.com>
2021-09-08 16:12:11 -07:00
3e98d1e934 revert: feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
This reverts commit e498c9d5bc71bced194af694a95ec71a9037fda9.
2021-09-08 16:07:39 -07:00
e17e46974b feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
Changes the behavior of android fragment transactions to use `add` instead of `replace` on forward navigation.

BREAKING CHANGE:

Changes the internal behavior of Android navigation:

* while navigating forward, the page navigated from is not unloaded anymore
* events order is changed in the sense that now `unloaded` happens after `navigatedFrom` instead of before

There are multiple plus sides to this:

* no more black views on navigation when using opengl (maps, ...)
* navigation is faster, especially the navigation back! No longer need to recreate the page anymore. Navigation forward also gets faster as we no longer unload the previous page
* navigatedFrom event happens faster
* this the default behavior used by most of the android native apps
2021-09-08 16:07:39 -07:00
3ae12184e5 Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	.eslintrc.json
#	packages/core/ui/core/bindable/index.ts
#	tsconfig.eslint.json
2021-05-05 10:17:27 +02:00
0d4ccba60a chore: combine prettier with eslint (#9348) (#9360)
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
2021-05-02 10:11:37 -07:00
0555eccd69 Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	package.json
#	packages/core/global-types.d.ts
#	packages/core/platforms/ios/Podfile
#	packages/core/ui/styling/background.android.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/ui-mobile-base/ios/build.sh
2021-02-08 10:09:12 +01:00
6da7d90e25 fix(page): frame getter for custom Frames (#9195) 2021-02-04 07:55:16 -08:00
5fe27428e0 feat(android): FlexboxLayout support for isPassThroughParentEnabled (#8798) 2021-01-29 13:03:27 -08:00
cf96e7252c feat(frame): add navigatingTo and navigatedTo events (#9025) 2020-11-12 20:51:03 -08:00
e0b90396bc Merge branch 'frame_nav_events' of github.com:Akylas/NativeScript
# Conflicts:
#	apps/automated/src/test-runner.ts
#	packages/core/css/parser.ts
#	packages/core/global-types.d.ts
#	packages/core/ui/bottom-navigation/index.android.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/core/ui/tabs/index.android.ts
#	packages/core/ui/tabs/index.ios.ts
2020-11-12 10:02:51 +01:00
6851c5c40e lint fix 2020-11-12 10:00:40 +01:00
4449d7628d add frame navigation events
very practical when you want to know the state of the navigation at  higher level.
Like a drawer menu
2020-11-12 09:58:25 +01:00
c1f231d88e chore: fix eslint issues (#9017) 2020-11-11 08:46:36 -08:00
5fcfb75350 android fragment transitions fully working now 2020-08-27 09:25:42 +02:00
d41195e3f9 in fact this does not seem to be necessary anymore 2020-08-27 09:25:36 +02:00
392e2c8d59 still unload page if navigation is replace or is back or clearHistory is used 2020-08-27 09:25:24 +02:00
582f5fa6eb dont use replace transaction anymore.
That way we dont “unload” and “load” fragments.
This fixes black screens and slow transitions with opengl or cameras

# Conflicts:
#	packages/core/ui/frame/fragment.transitions.android.ts
#	packages/core/ui/frame/frame-common.ts
#	packages/core/ui/frame/index.android.ts
2020-08-27 09:24:25 +02:00
020ad4da37 chore(core): monorepo, esm targeting, improved management (#8707) 2020-08-25 20:00:59 -07:00