mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add tight lineHeight descender example to TextExample.android.js (#57223)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/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
This commit is contained in:
1 parent
ea17ef8b88
commit
ac9cba3f7b
1 file changed
+13
@@ -1119,6 +1119,19 @@ function LineHeightExample(props: {}): React.Node {
|
||||
<RNTesterText style={{fontSize: 20}}>Continually</RNTesterText> expedite
|
||||
magnetic potentialities rather than client-focused interfaces.
|
||||
</RNTesterText>
|
||||
<RNTesterText
|
||||
style={[
|
||||
{
|
||||
fontSize: 24,
|
||||
lineHeight: 24,
|
||||
borderColor: 'black',
|
||||
borderWidth: 1,
|
||||
},
|
||||
styles.wrappedText,
|
||||
]}
|
||||
testID="line-height-matches-font-size-descenders">
|
||||
gjpqy
|
||||
</RNTesterText>
|
||||
<RNTesterText
|
||||
style={[
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user