Skip to content

Releases: NativeScript/NativeScript

@nativescript/core@8.5.5

19 Jun 21:34
Compare
Choose a tag to compare

Bug Fixes

  • animation: css keyframes (685d61c)
  • Application: orientation & systemAppearance root classes (7f09b92)

@nativescript/core@8.5.4

17 Jun 17:26
Compare
Choose a tag to compare

Bug Fixes

  • android: improve content uri handling (#10316) (77f252e)
  • animation: avoid uncaught reject on cancel (#10309) (622f365)
  • Application: inBackground handling & missing once (#10307) (e430555)
  • ensure Application instance initialized early (#10315) (0401b09)
  • shared-transition: race condition with interactive updates (#10312) (25cc49d)
  • shared-transitions: layer opacity set back to original on next tick (#10310) (0956cb0)

@nativescript/core@8.5.3

04 May 01:52
Compare
Choose a tag to compare

Bug Fixes

Performance Improvements

@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);
          ...
Read more

@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)