Skip to content

Commit

Permalink
Add background color cases to RNTester Text examples
Browse files Browse the repository at this point in the history
  • Loading branch information
motiz88 committed Jan 20, 2018
1 parent 1f16f7f commit 19df006
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
15 changes: 12 additions & 3 deletions RNTester/js/TextExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,22 @@ class TextExample extends React.Component<{}> {
<Text style={{letterSpacing: 9, marginTop: 5}}>
letterSpacing = 9
</Text>
<View style={{flexDirection: 'row'}}>
<Text style={{letterSpacing: 9, backgroundColor: 'fuchsia', marginTop: 5}}>
With background color
</Text>
</View>
<Text style={{letterSpacing: -1, marginTop: 5}}>
letterSpacing = -1
</Text>
<Text style={{letterSpacing: 3, marginTop: 5}}>
<Text style={{letterSpacing: 3, backgroundColor: '#dddddd', marginTop: 5}}>
[letterSpacing = 3]
<Text style={{letterSpacing: 0}}>[Nested letterSpacing = 0]</Text>
<Text style={{letterSpacing: 6}}>[Nested letterSpacing = 6]</Text>
<Text style={{letterSpacing: 0, backgroundColor: '#bbbbbb'}}>
[Nested letterSpacing = 0]
</Text>
<Text style={{letterSpacing: 6, backgroundColor: '#eeeeee'}}>
[Nested letterSpacing = 6]
</Text>
</Text>
</View>
</RNTesterBlock>
Expand Down
15 changes: 12 additions & 3 deletions RNTester/js/TextExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,22 @@ exports.examples = [
<Text style={{letterSpacing: 9, marginTop: 5}}>
letterSpacing = 9
</Text>
<View style={{flexDirection: 'row'}}>
<Text style={{letterSpacing: 9, backgroundColor: 'fuchsia', marginTop: 5}}>
With background color
</Text>
</View>
<Text style={{letterSpacing: -1, marginTop: 5}}>
letterSpacing = -1
</Text>
<Text style={{letterSpacing: 3, marginTop: 5}}>
<Text style={{letterSpacing: 3, backgroundColor: '#dddddd', marginTop: 5}}>
[letterSpacing = 3]
<Text style={{letterSpacing: 0}}>[Nested letterSpacing = 0]</Text>
<Text style={{letterSpacing: 6}}>[Nested letterSpacing = 6]</Text>
<Text style={{letterSpacing: 0, backgroundColor: '#bbbbbb'}}>
[Nested letterSpacing = 0]
</Text>
<Text style={{letterSpacing: 6, backgroundColor: '#eeeeee'}}>
[Nested letterSpacing = 6]
</Text>
</Text>
</View>
);
Expand Down

0 comments on commit 19df006

Please sign in to comment.