Skip to content

Commit

Permalink
replace lineBreakMode with ellipsizeMode
Browse files Browse the repository at this point in the history
Summary:
lineBreakMode is a non-existing property (or maybe legacy?)

While reading the docs I encountered this prop being used in the example, but it doesn't exist in the codebase anymore.
Closes facebook#13820

Differential Revision: D5189652

Pulled By: javache

fbshipit-source-id: 70e620fc094ae5e1628ab13ee9e410044e4f5291
  • Loading branch information
koenpunt authored and facebook-github-bot committed Jun 6, 2017
1 parent ba17a80 commit e5e3591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RNTester/js/TextExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var AdjustingFontSize = React.createClass({
}
return (
<View>
<Text lineBreakMode="tail" numberOfLines={1} style={{fontSize: 36, marginVertical:6}}>
<Text ellipsizeMode="tail" numberOfLines={1} style={{fontSize: 36, marginVertical: 6}}>
Truncated text is baaaaad.
</Text>
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={{fontSize: 40, marginVertical:6}}>
Expand Down

0 comments on commit e5e3591

Please sign in to comment.