Skip to content

Commit ac9cba3

Browse files
javachemeta-codesync[bot]
authored andcommitted
Add tight lineHeight descender example to TextExample.android.js (#57223)
Summary: Pull Request resolved: #57223 Adds a `gjpqy` example to the Text > lineHeight RNTester section that exercises `fontSize: 24, lineHeight: 24`. Pure example addition for the upcoming `CustomLineHeightSpan` descender-clipping fix, providing the surface for a jest-e2e screenshot regression test. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D108409230 fbshipit-source-id: acd97a92e6970e29b1a04090d14976336cdc4b37
1 parent ea17ef8 commit ac9cba3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/rn-tester/js/examples/Text/TextExample.android.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,19 @@ function LineHeightExample(props: {}): React.Node {
11191119
<RNTesterText style={{fontSize: 20}}>Continually</RNTesterText> expedite
11201120
magnetic potentialities rather than client-focused interfaces.
11211121
</RNTesterText>
1122+
<RNTesterText
1123+
style={[
1124+
{
1125+
fontSize: 24,
1126+
lineHeight: 24,
1127+
borderColor: 'black',
1128+
borderWidth: 1,
1129+
},
1130+
styles.wrappedText,
1131+
]}
1132+
testID="line-height-matches-font-size-descenders">
1133+
gjpqy
1134+
</RNTesterText>
11221135
<RNTesterText
11231136
style={[
11241137
{

0 commit comments

Comments
 (0)