Add RNTester example for nested text
Summary: Existing RNTester examples for text did not contain a case where text with color was nested inside of another with text at both ends. This would have caught T113767991 Changelog: [Internal] - Add RNTester example for nested text Reviewed By: mdvacca Differential Revision: D34874080 fbshipit-source-id: cda91cde9c7449abb677ae9fa936a61e396ffbd3
This commit is contained in:
Родитель
289c7f7180
Коммит
67af1b8218
|
@ -500,6 +500,16 @@ class TextExample extends React.Component<{...}> {
|
|||
<Text style={{fontSize: 12}}>
|
||||
<Entity>Entity Name</Entity>
|
||||
</Text>
|
||||
<Text style={{fontSize: 8}}>
|
||||
Nested text with size 8,{' '}
|
||||
<Text style={{fontSize: 23}}>size 23, </Text>
|
||||
and size 8 again
|
||||
</Text>
|
||||
<Text style={{color: 'red'}}>
|
||||
Nested text with red color,{' '}
|
||||
<Text style={{color: 'blue'}}>blue color, </Text>
|
||||
and red color again
|
||||
</Text>
|
||||
</RNTesterBlock>
|
||||
<RNTesterBlock title="Text Align">
|
||||
<Text>auto (default) - english LTR</Text>
|
||||
|
|
Загрузка…
Ссылка в новой задаче