mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
211ea485cd
Summary:
The custom font I'm using requires using `includeFontPadding={false}` to be correctly centered vertically. The only case where this is not working is with the placeholder of `TextInput`. To fix it we call `setIncludeFontPadding` on the `EditText` instance, like we do for `Text`.
## Changelog
[Android] [Fixed] - Fix `includeFontPadding` for `TextInput` placeholder
Pull Request resolved: https://github.com/facebook/react-native/pull/26432
Test Plan:
Tested the fix in an app.
Before

After

Reviewed By: mdvacca, mmmulani
Differential Revision: D17468767
Pulled By: JoshuaGross
fbshipit-source-id: ae29debf9a57198a636a24ec8ed9ba3d77f0a73e
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.