diff --git a/packages/rn-tester/js/examples/Text/TextExample.android.js b/packages/rn-tester/js/examples/Text/TextExample.android.js index 1404e6f3270..b46af771747 100644 --- a/packages/rn-tester/js/examples/Text/TextExample.android.js +++ b/packages/rn-tester/js/examples/Text/TextExample.android.js @@ -361,7 +361,7 @@ function IncludeFontPaddingExample(props: {}): React.Node { function FontVariantsExample(props: {}): React.Node { return ( - <> + Small Caps{'\n'} @@ -399,7 +399,7 @@ function FontVariantsExample(props: {}): React.Node { }}> Stylistic & and $ - + ); } @@ -619,7 +619,7 @@ function FontWeightExample(props: {}): React.Node { function BackgroundColorExample(props: {}): React.Node { return ( - <> + Red background, @@ -644,7 +644,7 @@ function BackgroundColorExample(props: {}): React.Node { - + ); } @@ -1322,7 +1322,7 @@ const examples = [ name: 'wrap', render(): React.Node { return ( - + The text should wrap if it goes on multiple lines. See, this is going to the next line. @@ -1341,7 +1341,7 @@ const examples = [ name: 'padding', render(): React.Node { return ( - + This text is indented by 10px padding on all sides. ); @@ -1470,7 +1470,7 @@ const examples = [ name: 'spaces', render(): React.Node { return ( - + A {'generated'} {'string'} and some     spaces ); @@ -1497,7 +1497,7 @@ const examples = [ }, { title: 'backgroundColor attribute', - name: 'backgroundColorAttribute', + name: 'backgroundColorAttr', render(): React.Node { return ; }, diff --git a/packages/rn-tester/js/examples/Text/TextExample.ios.js b/packages/rn-tester/js/examples/Text/TextExample.ios.js index 9bff1c88928..a377e4ac077 100644 --- a/packages/rn-tester/js/examples/Text/TextExample.ios.js +++ b/packages/rn-tester/js/examples/Text/TextExample.ios.js @@ -601,9 +601,10 @@ const examples = [ }, { title: 'Wrap', + name: 'wrap', render: function (): React.Node { return ( - + The text should wrap if it goes on multiple lines. See, this is going to the next line. @@ -612,15 +613,21 @@ const examples = [ }, { title: "Substring Emoji (should only see 'test')", + name: 'substringEmoji', render: function (): React.Node { - return {'test🙃'.substring(0, 5)}; + return ( + {'test🙃'.substring(0, 5)} + ); }, }, { title: 'Transparent Background Color', + name: 'transparentBackgroundColor', render: function (): React.Node { return ( - + Text in a gray box! Another text in a (inline) red box (which is inside the gray box). @@ -711,9 +718,10 @@ const examples = [ }, { title: 'Padding', + name: 'padding', render: function (): React.Node { return ( - + This text is indented by 10px padding on all sides. ); @@ -1033,9 +1041,10 @@ const examples = [ }, { title: 'Spaces', + name: 'spaces', render: function (): React.Node { return ( - + A {'generated'} {'string'} and some     spaces ); @@ -1043,9 +1052,10 @@ const examples = [ }, { title: 'Line Height', + name: 'lineHeightIOS', render: function (): React.Node { return ( - + A lot of space between the lines of this long passage that should wrap once. @@ -1061,10 +1071,11 @@ const examples = [ }, { title: 'backgroundColor attribute', + name: 'backgroundColorAttr', description: 'backgroundColor is inherited from all types of views.', render: function (): React.Node { return ( - + Yellow container background, {' '} @@ -1289,9 +1300,10 @@ const examples = [ }, { title: 'Font variants', + name: 'fontVariants', render: function (): React.Node { return ( - + Small Caps{'\n'} + This text should be uppercased. @@ -1429,6 +1442,7 @@ const examples = [ }, { title: 'Line Break Strategy', + name: 'lineBreakStrategy', render: function (): React.Node { const lineBreakStrategy = [ 'none', @@ -1444,7 +1458,7 @@ const examples = [ }; return ( - + {lineBreakStrategy.map(strategy => { return (