Skip to content

Commit

Permalink
Add more lineHeight examples (facebook#47162)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47162

Add some more interesting cases in prepration for screenshot testing

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D64775710

fbshipit-source-id: 70b390ad944841044e0d5004bddd1a8d3cfc6cbf
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Oct 22, 2024
1 parent 3dfe22b commit 7715a95
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion packages/rn-tester/js/examples/Text/TextExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,11 +879,51 @@ function CustomFontsExample(props: {}): React.Node {
function LineHeightExample(props: {}): React.Node {
return (
<>
<Text style={[{lineHeight: 35}, styles.wrappedText]}>
<Text
style={[
{
fontSize: 16,
lineHeight: 35,
borderColor: 'black',
borderWidth: 1,
marginBottom: 5,
},
styles.wrappedText,
]}
testID="line-height-greater-than-fonst-size">
Holisticly formulate inexpensive ideas before best-of-breed benefits.{' '}
<Text style={{fontSize: 20}}>Continually</Text> expedite magnetic
potentialities rather than client-focused interfaces.
</Text>
<Text
style={[
{
fontSize: 16,
lineHeight: 8,
borderColor: 'black',
borderWidth: 1,
marginBottom: 5,
},
styles.wrappedText,
]}
testID="line-height-less-than-fonst-size">
Holisticly formulate inexpensive ideas before best-of-breed benefits.{' '}
<Text style={{fontSize: 20}}>Continually</Text> expedite magnetic
potentialities rather than client-focused interfaces.
</Text>
<Text
style={[
{
fontSize: 24,
lineHeight: 8,
borderColor: 'black',
borderWidth: 1,
},
styles.wrappedText,
]}
testID="line-height-single-line-less-than-fonst-size">
Holisticly formulate
</Text>
</>
);
}
Expand Down

0 comments on commit 7715a95

Please sign in to comment.