nativescript-community / ui-canvas

Implement Canvas into your NativeScript apps.
https://nativescript-community.github.io/ui-canvas/
Apache License 2.0
31 stars 9 forks source link

Error: 'typeof CanvasView' is not assignable to type 'ViewClass' #12

Open amlibtest opened 4 years ago

amlibtest commented 4 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

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

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

Describe the steps to reproduce it.

The instructions on the README.md file doesn't work.

Is there any code involved?

this is my app.module

import { registerElement } from "nativescript-angular/element-registry";
import { CanvasView } from 'nativescript-canvas';

registerElement('CanvasView', () => CanvasView);

And I'm getting this error:

Type 'typeof CanvasView' is not assignable to type 'ViewClass'.
  Type 'CanvasView' is not assignable to type 'View'.
    Property 'android' is missing in type 'CanvasView'.
element-registry.d.ts(46, 36): The expected type comes from the return type of this signature.
farfromrefug commented 4 years ago

What is that ViewClass type? Can you share it? I dont use angular