nativescript ios app crashes - attempting to change the getter of an unconfigurable property
- 阅读更多 关于 nativescript ios app crashes - attempting to change the getter of an unconfigurable property
问题 I created a directive to disable the context menu on android and ios app in Nativescript. import { Directive, OnInit, OnDestroy, ElementRef, Renderer2 } from "@angular/core"; import { isIOS } from "tns-core-modules/platform"; import * as utils from "tns-core-modules/utils/utils"; import { EventData } from "tns-core-modules/data/observable"; import { TextField } from "tns-core-modules/ui/text-field"; declare var UITextField, CGRectMake, android; if (isIOS) { UITextField.prototype.