Skip to content

Releases: NativeScript/NativeScript

@nativescript/core@8.5.2

25 Apr 18:38
Compare
Choose a tag to compare

Bug Fixes

  • ios: resilience to nativeView access under edge cases (#10276) (4551da0)

Features

@nativescript/core@8.5.1

17 Apr 17:02
Compare
Choose a tag to compare

Bug Fixes

Features

  • ios: new a11y properties for managing font scale (#10260) (7aaa1d8)
  • text: valueFormatter for easy and flexible input auto-formatting (#10264) (b3abc5f)
  • transitions: support zIndex on ios shared elements + support page props on android (#10261) (f4b2722)

@nativescript/core@8.5.0

28 Mar 18:31
Compare
Choose a tag to compare

Bug Fixes

Features

Performance Improvements

Breaking Changes

Most projects will be unaffected by these but in an effort to be clear as possible, we will note the following:

  1. Event binding callbacks prefer a properly typed argument:

Potential issue:

error TS2339: Property 'newValue' does not exist on type 'EventData'.

2611       if (e.newValue) {

Possible causes:

Application.on(Application.orientationChangedEvent, (event) => {

Solution:

Application.on(Application.orientationChangedEvent, (event: OrientationChangedEventData) => {
  1. Android labels are vertical align middle by default.

This means that potentially if you were using margins to position, for example on font icon labels, they may appear mis-positioned intially after updating. You should be able to remove custom margin handling to simplify.

  1. Page transitions have improved their API to provide more platform control and introduced a breaking change to the method signatures on iOS. If you had created a custom by extending the Transition class:
  • BEFORE:
animateIOSTransition(containerView: UIView, fromView: UIView, toView: UIView, operation: UINavigationControllerOperation, completion: (finished: boolean) => void): void {
    toView.transform = CGAffineTransformMakeScale(0, 0);
    fromView.transform = CGAffineTransformIdentity;

    switch (operation) {
        case UINavigationControllerOperation.Push:
            containerView.insertSubviewAboveSubview(toView, fromView);
            break;
        case UINavigationControllerOperation.Pop:
            containerView.insertSubviewBelowSubview(toView, fromView);
            break;
    }

    var duration = this.getDuration();
    var curve = this.getCurve();
    UIView.animateWithDurationAnimationsCompletion(
        duration,
        () => {
            UIView.setAnimationCurve(curve);
            toView.transform = CGAffineTransformIdentity;
            fromView.transform = CGAffineTransformMakeScale(0, 0);
        },
        completion
    );
}
  • AFTER:
animateIOSTransition(transitionContext: UIViewControllerContextTransitioning, fromViewCtrl: UIViewController, toViewCtrl: UIViewController, operation: UINavigationControllerOperation): void {
    const toView = toViewCtrl.view;
    const fromView = fromViewCtrl.view;
    toView.transform = CGAffineTransformMakeScale(0, 0);
    fromView.transform = CGAffineTransformIdentity;

    switch (operation) {
        case UINavigationControllerOperation.Push:
            transitionContext.containerView.insertSubviewAboveSubview(toView, fromView);
          ...

@nativescript/webpack@5.0.14

28 Mar 16:51
Compare
Choose a tag to compare

feat(webpack): support tsconfig.app.json when present (ebb827f)

fix(webpack): notify CLI even if there are compilation errors (6059984)

@nativescript/core@8.4.7

23 Jan 22:31
Compare
Choose a tag to compare

Bug Fixes

  • core: allow CoreTypes declarations to be auto generated (#10183) (9f76fea)
  • ios: race condition when setting preferredContentSize on view controller (#10179) (ed14e24)
  • ios: race conditions with nativeView (#10182) (c42c3c5)

@nativescript/core@8.4.6

19 Jan 22:17
Compare
Choose a tag to compare

Bug Fixes

  • core: ScrollView event wiring sequencing improvement (#10178) (75821ea)

@nativescript/core@8.4.5

16 Jan 23:40
Compare
Choose a tag to compare

Bug Fixes

  • core: improve loaded/unloaded handling (18b911e)
  • core: improve loaded/unloaded handling to be stable and consistent (#10170) (c9e29aa)
  • ios: embedder usage of window (#10167) (a69a9d6)

@nativescript/core@8.4.4

09 Jan 18:10
Compare
Choose a tag to compare

Bug Fixes

Features

  • core: new autoFillTypes for newUsername, newPassword and oneTimeCode (#10159) (bff35e5)

@nativescript/core@8.4.3

04 Jan 02:54
Compare
Choose a tag to compare

Bug Fixes

  • android: WebView url and event handling (#10147) (#10148) (8444087)
  • ios: prevent layout in viewSafeAreaInsetsDidChange until first viewDidLayoutSubviews (#10151) (760bbd0)
  • ios: prevent transitionCoordinator usage during modal presentation (#10153) (d138ac0)
  • ios: TextField keyboard handling with emoji, autofill, and shortcuts (#10154) (00944bb)

@nativescript/core@8.4.2

29 Dec 06:04
Compare
Choose a tag to compare

Bug Fixes

  • android: backwards compat Java cast Float to Long for ApplicationSettings.getNumber (#10140) (7c1590a)
  • core: update metadata filtering for IOS 16 (#10133) (c461f1b)
  • ios: box shadow border radius (#10142) (6948f7c)
  • ios: navigatingTo event handling (#10120) (a4f28b8)
  • ios: reset additional insets if they're zero (#10134) (8b7d5ab)
  • listview: delegate handling removed from unloaded (#10138) (04c3d9a)
  • utils: ios to filter out null values (#10117) (4723114)