NativeScript icon indicating copy to clipboard operation
NativeScript copied to clipboard

NavigationButton has no animate function

Open GerjanOnline opened this issue 10 years ago • 2 comments

Tell us about the problem

I really would like to animate the NavigationButton but it seems this it not possible. All other elements have a animate function except NavigationButton

console.log("NavigationButton.animate: " + page.actionBar.navigationButton.animate); // gives undefined

I also tried it with:

  var animations = [
      { target: page.actionBar.navigationButton, opacity: 0, duration: 400, delay: 0 }
  ];

  var a = new animationModule.Animation(animations);
  a.play(); // will result in exception : TypeError: Cannot read property 'getAlpha' of undefined

Which platform(s) does your issue occur on?

Android but probably also iOS

Please provide the following version numbers that your issue occurs with:

1.7

GerjanOnline avatar Mar 16 '16 21:03 GerjanOnline

Behind the navigation button on iOS stands native navigation button which comes with limited possibilities for animating. That said, the feature can't be implemented without breaking the design guidelines so I am closing this one.

NickIliev avatar Dec 11 '18 09:12 NickIliev

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Dec 11 '19 10:12 lock[bot]