Skip to content

Android : ModalDialogOptions in Nativescript/Angular fails and throws an exception #2377

Open
@monishakhapali

Description

@monishakhapali

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 13.2.0
  • Cross-platform modules:
  • Android Runtime: 8.2.0
  • iOS Runtime: 8.2.0
  • Plugin(s):
  • NativeScript-Angular: 13.0.0
  • Angular:13.0.0

Describe the bug
I am using a ModalDialogOptions from nativescript/angular, it fails only in android with the below exception. Here is the screen shot.

Exception -
An uncaught Exception occurred on "main" thread.
Calling js method onCreateView failed
Error: Cannot convert number to Landroid/content/res/ColorStateList; at index 0

Screen Shot 2022-05-11 at 1 06 58 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions