Skip to content

Commit b637cac

Browse files
author
farfromrefug
committed
fix(android): working fix for testId in textfield/textview
1 parent 54dae03 commit b637cac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/textfield/textfield.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ export class TextField extends TextFieldBase {
335335
}
336336

337337
[testIDProperty.setNative](value: string): void {
338-
this.setAccessibilityIdentifier(this.nativeTextViewProtected, value);
338+
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
339339
}
340340

341341
[accessibilityIdentifierProperty.setNative](value: string): void {
342-
this.setAccessibilityIdentifier(this.nativeTextViewProtected, value);
342+
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
343343
}
344344
}
345345

src/textview/textview.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ export class TextView extends TextViewBase {
306306
this.nativeTextViewProtected.setGravity(getHorizontalGravity(this.textAlignment) | getVerticalGravity(value));
307307
}
308308
[testIDProperty.setNative](value: string): void {
309-
this.setAccessibilityIdentifier(this.nativeTextViewProtected, value);
309+
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
310310
}
311311

312312
[accessibilityIdentifierProperty.setNative](value: string): void {
313-
this.setAccessibilityIdentifier(this.nativeTextViewProtected, value);
313+
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
314314
}
315315
}
316316

0 commit comments

Comments
 (0)