NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
529 stars 135 forks source link

invalid animation curve slideRight #1009

Closed aaayushsingh closed 6 years ago

aaayushsingh commented 6 years ago

Please, provide the details below:

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

YES

Tell us about the problem

invalid animation curve slideRight on android. I get this error when trying to navigate to a different page. The same code works fine with iOS. I am testing this on android oreo.

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

Did the error happen while the app was being constructed? (buildtime error)

NO

Did the error happen while the app was executing? (runtime error)

Yes

this is the error log.

Please tell us how to recreate the issue in as much detail as possible.

  1. create a new application
  2. add a page for navigation
  3. in the exports.pageLoaded, add the following code
    const navigationEntry = {
    moduleName: "main-page",
    animated: true,
    // Set up a transition property on page navigation.
    transition: {
      name: "slide",
      duration: 380,
      curve: "slideRight"
    }
    };
    const topmost = frame.topmost();
    topmost.navigate(navigationEntry);
  4. run app

It crashes on android Oreo with error saying invalid animation curve slideRight. Please note that the same code works fine on iOS, that is why I'm raising an issue in android runtime.

NickIliev commented 6 years ago

This issue was moved to NativeScript/NativeScript#5689