mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
36b586ada1
Summary: Changelog: [Internal] Add support for dynamic font size. New class `ThreadStorage` is introduced, which is used to pass LayoutContext to `YogaLayoutableShadowNode::yogaNodeMeasureCallbackConnector`. ## Shortcoming This implementation doesn't cause re-render, if user changes font size and comes to the app without restarting it, it will show old font size. I believe this is fine for now as most people set their font size before they use the app and keep the same setting for a long time. Reviewed By: shergin Differential Revision: D22043728 fbshipit-source-id: 7453d165c280a2f4bcb73f4ee6daf9e64b637ded