Commit Graph

918 Commits

Author SHA1 Message Date
farfromrefuge
7e9be32e28 fix(android): prevent error while opening modal from background (#10570)
It is a known android "issue" that you cant commit/show a fragment while in background. The reason is, as explained [here](https://medium.com/@113408/avoid-fragment-illegalstateexception-can-not-perform-this-action-after-onsaveinstancestate-ba76ae4f00fe) or [here](https://stackoverflow.com/questions/15729138/on-showing-dialog-i-get-can-not-perform-this-action-after-onsaveinstancestate), that `onSaveInstanceState` is already called so any operation before activity start would be with state loss.
There are 2 solutions in this case:
* use `commitAllowingStateLoss`, `dismissAllowingStateLoss` ... but then you loose state ... This is what we are doing in N in many cases. We can do this with `show` too but we would need to override the `DialogFragment.show` method.
* delay the action until the activity is resumed.

This PR uses the second solution. We could add an option to `showModal` to use the first solution. The user experience is different. Solution 1:  when the app is resumed the modal is already shown and layed out. Solution 2: you see the modal opening on app resume
2024-07-03 12:23:01 -07:00
Nathan Walker
80f3ff2042 feat(ios): SF Symbol scale support via iosSymbolScale (#10569) 2024-07-02 16:26:40 -07:00
Nathan Walker
71dfa15606 chore: 8.8.0 preview for next 2024-07-02 11:16:11 -07:00
Nathan Walker
c736f72fce feat(config): embed options for existing platform host projects (#10568) 2024-07-02 09:37:46 -07:00
Vladimir Mutafov
779d79285d feat(core): ability to embed into platform host projects (#10465) 2024-07-01 16:47:33 -07:00
Dimitris-Rafail Katsampas
9fd361c2e6 feat(core): css media query support (#10530) 2024-07-01 09:28:59 -07:00
farfromrefuge
6dd441d6ba perf(android): gridlayout with less JNI calls (#10402) 2024-07-01 09:20:14 -07:00
farfromrefuge
7036f12b5c fix(android): prevent error on navigation back after using page transition (#10439) 2024-06-28 16:15:40 -07:00
Dimitris-Rafail Katsampas
4abcb216da feat(android): background color/image handling improvements (#10451) 2024-06-28 15:07:10 -07:00
Eduardo Speroni
bb83addb5c perf: improve attribute selectors by adding single listeners (#10384) 2024-06-28 14:55:12 -07:00
apburgess
b8fff3833e feat(webpack): allow custom 'projectName' on Xcode project name from config (#10550) 2024-06-28 14:43:16 -07:00
Nathan Walker
c2f5e614da chore: 8.8.0 next 2024-06-28 14:24:15 -07:00
Dimitris-Rafail Katsampas
2fb4f23670 feat(core): css-what parser for CSS selectors + support for :not(), :is(), and :where() Level 4 and ~ (#10514) 2024-06-28 13:57:29 -07:00
farfromrefuge
88a047254b fix(android): dont add to parent from _setupAsRootView (#10554) 2024-06-28 13:44:36 -07:00
Eduardo Speroni
12dd329ed1 fix(action-bar): provide correct page during navigation when title change occurs (#10563) 2024-06-27 19:21:29 -07:00
Eduardo Speroni
d678915234 feat(core): add sys:// support for SF Symbol usage on images with effects (#10555) 2024-06-26 15:34:24 -07:00
farfromrefuge
84e1a67d6d fix(view): modal stack tracking (#10557) 2024-06-16 12:40:40 -07:00
Jamie Birch
9e472d7874 docs(core): update comments for on, once, addEventListener and removeEventListener (#10545) 2024-05-23 08:26:03 -07:00
Jamie Birch
9be392fbb0 fix(core): drop support for plural event/gesture names (#10539) 2024-05-06 18:20:28 -07:00
Jamie Birch
d323672b29 fix(core): handle GestureObservers same as event listeners (#10538) 2024-05-06 17:50:01 -07:00
Jamie Birch
3b77fffad5 fix(core): stop accepting GestureTypes enum as an eventName (#10537) 2024-05-06 11:04:53 -07:00
Jamie Birch
4a7e40d129 fix(core): clean up event handling in ViewCommon (#10534) 2024-05-02 00:03:08 -07:00
Jamie Birch
53e958e623 fix(core): clean up event handling in Observable (#10531) 2024-05-02 00:02:01 -07:00
Alireza Sharghi
632a348e9a fix(android): transition state handling (#10528) 2024-04-24 09:10:00 -07:00
Nathan Walker
eedd00842e chore: 8.7.3 next 2024-04-23 09:38:49 -07:00
Dimitris-Rafail Katsampas
03268cc60b fix(android): ListView tap handling after setting children as focusable (#10522) 2024-04-19 09:06:32 -07:00
Nathan Walker
e234ca6052 chore: 8.7.2 next 2024-04-15 12:39:44 -07:00
Nathan Walker
7e1cb19084 fix(android): image tintColor setter (#10516)
closes https://github.com/NativeScript/NativeScript/issues/10515
2024-04-15 12:02:18 -07:00
farfromrefuge
92b2ff83a0 fix: regression fix for #10482 (#10518)
where `WebView` would have `setFocusable` set to false `isUserInteractionEnabled` was true.
This would prevent input with keyboard to work in `WebView`

Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
2024-04-15 10:29:12 -07:00
Dimitris-Rafail Katsampas
873f711a6b revert: "fix(android): proper change of input interaction mode programmatically (#10434) (#10512)
This reverts commit 07d2129f9c.
2024-04-14 17:07:25 -07:00
Nathan Walker
0b725c887a chore: 8.7.1 next 2024-04-08 09:02:22 -07:00
Nathan Walker
ae62725510 fix: inspector_modules 2024-04-07 19:35:01 -07:00
Osei Fortune
5324e508ba feat(android): devtools for elements & network requests (#10506) 2024-04-07 10:27:42 -07:00
Nathan Walker
7806cc46f4 chore: 8.7.0 next 2024-04-07 10:26:41 -07:00
Nathan Walker
01d537bf15 feat(visionos): ui-mobile-base supporting xros plus improvements to window handling (#10478) 2024-04-05 17:07:16 -07:00
Eduardo Speroni
9ca490250e feat(ios): allow disabling text animations (#10505) 2024-04-03 15:59:10 -07:00
Dimitris-Rafail Katsampas
73709125c4 fix(ios): live-sync handling for plain js/ts apps (#10500) 2024-04-02 12:35:39 -07:00
Dimitris-Rafail Katsampas
3a486e540c fix(ios): unset cached frame before updating origin point (#10499) 2024-04-02 12:34:14 -07:00
Eduardo Speroni
d67d297e37 feat(ios): allow custom navigationBar and toolbar on frame (#10495) 2024-04-02 12:29:09 -07:00
Nathan Walker
4b36334d01 ci: tests 2024-02-11 21:50:31 -08:00
farfromrefuge
3bd6d9b01e perf: disable accessibility for layout views (#10482)
a11y is enabled by default on controls still, this just disables on layouts alone as unnecessary.
It can be enabled on a per layout view basis if needed anytime.
2024-02-10 10:25:04 -08:00
Juan de Dios Martínez Vallejo
d34a4395ec chore: InitRootViewEventData description (#10479) 2024-01-21 10:32:36 -08:00
farfromrefuge
4f12fee2ef fix(color): setAlpha and other methods return proper Color class (#10441) 2024-01-19 11:39:06 -08:00
Nathan Walker
02231f0997 chore: updated widgets build 2024-01-19 11:26:19 -08:00
kefahB
3a0afdb9cc feat(SegmentedBar): selectedTextColor added and selectedBackgroundColor improvements (#10474) 2024-01-19 10:39:59 -08:00
farfromrefuge
135d37b9ee fix(core): profile decorator (#10476) 2024-01-19 08:38:29 -08:00
farfromrefuge
b226066814 fix(android): sustain native error stack (#10467) 2024-01-02 22:17:01 -08:00
Nathan Walker
e60176c268 chore: 8.6.3 next - Merry Christmas 🎄 2023-12-22 14:38:51 -08:00
farfromrefuge
31ed40c17a feat(core): new defaultVisualState property option to override 'normal' default visualState (#10440) 2023-12-20 12:58:28 -08:00
farfromrefuge
c5561d60df fix(android): use nativeTextViewProtected in TextField (#10450) 2023-12-20 12:54:21 -08:00