Skip to content

Commit 56a37b6

Browse files
committed
chore: Removed unneeded direction defaults
1 parent bb7c9cc commit 56a37b6

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

packages/core/ui/core/view/index.android.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,12 +1112,6 @@ export class View extends ViewCommon {
11121112
this._redrawNativeBackground(value);
11131113
}
11141114

1115-
[directionProperty.getDefault](): CoreTypes.LayoutDirection {
1116-
const nativeView = this.nativeViewProtected;
1117-
const direction = nativeView.getLayoutDirection();
1118-
1119-
return direction === android.view.View.LAYOUT_DIRECTION_RTL ? 'rtl' : 'ltr';
1120-
}
11211115
[directionProperty.setNative](value: CoreTypes.LayoutDirection) {
11221116
const nativeView = this.nativeViewProtected;
11231117

packages/core/ui/core/view/index.ios.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -888,12 +888,6 @@ export class View extends ViewCommon implements ViewDefinition {
888888
}
889889
}
890890

891-
[directionProperty.getDefault](): CoreTypes.LayoutDirection {
892-
const nativeView = this.nativeViewProtected;
893-
const effectiveDirection = nativeView.effectiveUserInterfaceLayoutDirection;
894-
895-
return effectiveDirection === UIUserInterfaceLayoutDirection.RightToLeft ? 'rtl' : 'ltr';
896-
}
897891
[directionProperty.setNative](value: CoreTypes.LayoutDirection) {
898892
const nativeView = this.nativeViewProtected;
899893

0 commit comments

Comments
 (0)