react-native-macos/RNTester/js
Janic Duplessis 2c1913f0b3 Implement `adjustsFontSizeToFit` on Android (#26389)
Summary:
This adds support for `adjustsFontSizeToFit` and `minimumFontScale` on Android. The implementation tries to match closely the behaviour on iOS (hardcoded 4px min size for example). It uses a simpler linear algorithm for now, opened to improving it now if it is a deal breaker or in a follow up.

See https://twitter.com/janicduplessis/status/1171147709979516929 for a more detailed thread about the implementation

## Changelog

[Android] [Added] - Implement `adjustsFontSizeToFit` on Android
Pull Request resolved: https://github.com/facebook/react-native/pull/26389

Test Plan: Tested by adding the existing `adjustsFontSizeToFit` example from the iOS text page to android. Also added a case for limiting size by using `maxHeight` instead of `numberOfLines`.

Reviewed By: mdvacca

Differential Revision: D17285473

Pulled By: JoshuaGross

fbshipit-source-id: 43dbdb05e2d6418e9a390d11f921518bfa58e697
2020-02-10 15:00:41 -08:00
..
assets - Update folder structure of RNTester's JS directory. (#25013) 2019-05-28 08:39:18 -07:00
components Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
examples Implement `adjustsFontSizeToFit` on Android (#26389) 2020-02-10 15:00:41 -08:00
types Fix warning in FlatListExample 2019-07-15 13:31:48 -07:00
utils Clear some lint warnings (#27893) 2020-01-29 04:36:28 -08:00
RNTesterApp.android.js Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
RNTesterApp.ios.js Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00