mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
289c7f7180
commit
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>
|
||||
|
||||
Reference in New Issue
Block a user