From ea1ec29ba67c837c82c74357e313bd4505b81eb8 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 14 Sep 2022 07:21:04 -0700 Subject: [PATCH] Revert part of D39268920 Summary: This task has been created T131775291 that blames D39268920 (https://github.com/facebook/react-native/commit/f1c1f8116ba1cfa9d10c5b8c30b98b796047b9c2). I reverted part of the changes and added the support of capital letters for the font weight. It should make the test pass. However, I am a bit puzzled: I tried to change the title of the `GemstoneTitleBar` and the test was not showing the changed value. I think I'm missing something. Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D39478951 fbshipit-source-id: d3e28336fe52c5c58b49872c3f5b6e63e1e37ca5 --- Libraries/StyleSheet/StyleSheetTypes.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Libraries/StyleSheet/StyleSheetTypes.js b/Libraries/StyleSheet/StyleSheetTypes.js index b50b47b4be6..4f16c2b8051 100644 --- a/Libraries/StyleSheet/StyleSheetTypes.js +++ b/Libraries/StyleSheet/StyleSheetTypes.js @@ -613,7 +613,18 @@ export type ____FontWeight_Internal = | 'condensedBold' | 'condensed' | 'heavy' - | 'black'; + | 'black' + | 'Ultralight' + | 'Thin' + | 'Light' + | 'Normal' + | 'Medium' + | 'Semibold' + | 'Bold' + | 'Condensed' + | 'CondensedBold' + | 'Heavy' + | 'Black'; export type ____FontVariantArray_Internal = $ReadOnlyArray< | 'small-caps'