Skip to content

Commit

Permalink
Add more lineHeight examples
Browse files Browse the repository at this point in the history
Summary:
Add some more interesting cases in prepration for screenshot testing

Changelog: [Internal]

Differential Revision: D64775710
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Oct 22, 2024
1 parent 3dfe22b commit 2670f32
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 2670f32

Please sign in to comment.