Browse files

replace lineBreakMode with ellipsizeMode

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 #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 e5e35910095a4933a59554e0f2ecde979b8f8fd5
Showing with 1 addition and 1 deletion.
  1. +1 −1 RNTester/js/TextExample.ios.js
@@ -106,7 +106,7 @@ var AdjustingFontSize = React.createClass({
return (
<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 numberOfLines={1} adjustsFontSizeToFit={true} style={{fontSize: 40, marginVertical:6}}>

0 comments on commit e5e3591

Please sign in to comment.