fix(android): make button default text not all caps for improved consistency (#10854)

This commit is contained in:
Nathan Walker
2025-09-16 08:41:17 -07:00
committed by GitHub
parent eef1503027
commit d6d3800884
2 changed files with 7 additions and 5 deletions

View File

@@ -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"
]
}
}
}

View File

@@ -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);