Skip to content

Black screen when using Angular/Nativescript #2

@justussigma

Description

@justussigma

HI!

I am new to nativescript and angular so bear with me. I have followed the instructions to implement this component in Angular Nativescript:

  • ns plugin add @nativescript-community/ui-cameraview (in the root folder)

Then I have this in my view.component.ts:
import { registerElement } from '@nativescript/angular'; ------> this because 'nativescript-angular/element-registry' didnt work
import { CameraView } from '@nativescript-community/ui-cameraview';
registerElement('CameraView', () => CameraView);

and this in my view.component.html:

<FlexboxLayout
flexDirection="column"
justifyContent="space-around"
alignItems="center"


I only get a blackscreen... How can use the functions inside the CameraView component to get a camera view on the screen?

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