rollback. Was not the correct fix need to think about this

This commit is contained in:
Martin Guillon
2020-11-24 13:46:44 +01:00
parent 8aa2ef867c
commit ae18e83072

View File

@ -465,9 +465,6 @@ export class View extends ViewCommon {
public initNativeView(): void {
super.initNativeView();
this._isClickable = this.nativeViewProtected.isClickable();
if (this.nativeViewProtected.setClickable) {
this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);
}
if (this.hasListeners(ViewCommon.layoutChangedEvent)) {
this.setOnLayoutChangeListener();
@ -495,6 +492,9 @@ export class View extends ViewCommon {
this.nativeViewProtected.setOnTouchListener(this.touchListener);
this.touchListenerIsSet = true;
if (this.nativeViewProtected.setClickable) {
this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);
}
}
private setOnLayoutChangeListener() {