20 Commits

Author SHA1 Message Date
9fd361c2e6 feat(core): css media query support (#10530) 2024-07-01 09:28:59 -07:00
82e9c67d33 feat(core): initRootView event (#10442)
launchEvent is not triggered at the same moment on iOS and Android. 
iOS is firing after setting the rootView while Android is firing before.
Consequently if you need an event for when the rootView is set (to read/write root css variables) you need this event.

[skip ci]
2023-11-25 11:04:01 -08:00
bd8e1b8e79 fix(application): explicitly pass rootView to initRootView (#10345)
fixes occasional crashes when resuming the app.
2023-07-18 17:47:50 +02:00
08049340b5 fix(application): restore AndroidApplication.on etc. (#10336) 2023-07-10 09:45:12 +02:00
09037196d8 fix: trigger css update when setting root classes (#10328)
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
2023-06-23 09:20:10 -07:00
7f09b925bd fix(Application): orientation & systemAppearance root classes 2023-06-19 21:43:08 +02:00
e430555cb2 fix(Application): inBackground handling & missing once (#10307) 2023-06-14 13:09:41 -07:00
ab5fa941bc refactor: Application barrel changes without breaking changes (#10311) 2023-06-13 09:29:39 -07:00
f64355ba7a refactor: improved core barrel exports and Application class (#10286)
BREAKING CHANGES:

`Application.orientation` is no longer a function.

Migration: Remove `()` from the `Application.orientation()` call:
```diff
import { Application } from "@nativescript/core";

-console.log(Application.orientation());
+console.log(Application.orientation);
```


`Application.systemAppearance` is no longer a function.

Migration: Remove `()` from the `Application.systemAppearance()` call:
```diff
import { Application } from "@nativescript/core";

-console.log(Application.systemAppearance());
+console.log(Application.systemAppearance);
```
2023-05-25 07:45:39 -07:00
485fb61947 fix(core): Observable event types consistency (#10181) 2023-01-31 07:42:09 -08:00
58a720699f fix(core): android wrong background state + current value accessors (#9883) 2022-07-09 09:02:45 -07:00
b553a900d7 feat: background/foreground events (#9763)
On android `suspend/resume` was not doing what was expected.
In particular it was called while showing dialogs. This adds new `background` and `foreground` events which will fire expectedly and consistently for ios and android.
2022-03-01 12:32:39 -08:00
21da31562c chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
2021-04-06 11:18:36 -07:00
d88cef3b48 chore: message handling 2021-04-06 11:18:36 -07:00
2f81d606fc chore: silence unnecessary throw message 2021-04-06 11:18:36 -07:00
d5a8a25aba feat(core): first class a11y support (#8909) 2021-04-06 11:18:36 -07:00
c1f231d88e chore: fix eslint issues (#9017) 2020-11-11 08:46:36 -08:00
1f790edc80 fix(core): bundle entry points and global handling (#8884) 2020-09-23 14:48:19 -07:00
5286adf081 feat(core): boolean to disable systemAppearanceChanged (theme) (#8827) 2020-09-08 23:16:42 -07:00
020ad4da37 chore(core): monorepo, esm targeting, improved management (#8707) 2020-08-25 20:00:59 -07:00