Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

@ionic-native/clipboard constructor breaks app

$
0
0

I am trying to use the @ionic-native/clipboard to copy some text in my app. However, once I add private clipboard: Clipboard to my constructor, my app screen turns black in the Ionic Lab with the exception of the tabs on bottom, but the tabs are unresponsive. Below is a screenshot of the app after adding the constructor. The second screenshot is what the app looks when in Google developer mode. I followed the install instructions from https://ionicframework.com/docs/native/clipboard

tab1.page.ts:

import { Component } from ‘@angular/core’;
import { Clipboard } from ‘@ionic-native/clipboard/ngx’;
export class Tab1Page {
constructor(private clipboard: Clipboard) {}
}


1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>