From d6d38008840b90fac4d2098de124abab0c69416b Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Tue, 16 Sep 2025 08:41:17 -0700 Subject: [PATCH] fix(android): make button default text not all caps for improved consistency (#10854) --- package.json | 10 +++++----- packages/core/ui/button/index.android.ts | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 56d36353f..93ac7797d 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "eslint": "~8.57.0", "eslint-config-prettier": "^10.0.0", "fork-ts-checker-webpack-plugin": "^7.0.0", - "form-data": ">=4.0.4", + "form-data": ">=4.0.4", "gonzales": "^1.0.7", "husky": "^9.0.0", "jest": "30.0.5", @@ -104,12 +104,12 @@ "zx": "^8.3.0", "jest-util": "30.0.5" }, - "overrides": { - "form-data": ">=4.0.4" - }, + "overrides": { + "form-data": ">=4.0.4" + }, "lint-staged": { "**/*.{js,ts,css,scss,json,html}": [ "npx prettier --write" ] } -} +} \ No newline at end of file diff --git a/packages/core/ui/button/index.android.ts b/packages/core/ui/button/index.android.ts index 09aa8ba98..5817224b7 100644 --- a/packages/core/ui/button/index.android.ts +++ b/packages/core/ui/button/index.android.ts @@ -75,6 +75,8 @@ export class Button extends ButtonBase { public initNativeView(): void { super.initNativeView(); const nativeView = this.nativeViewProtected; + // make consistent with iOS, easier on users given css styling + nativeView.setAllCaps(false); initializeClickListener(); const clickListener = new ClickListener(this); nativeView.setOnClickListener(clickListener);