@@ -35,6 +35,7 @@ type SlotGlyphProps = {
3535 allowFontScaling ?: boolean ;
3636 currentSegment : string ;
3737 currentWidth : number ;
38+ ellipsizeMode ?: 'head' | 'middle' | 'tail' | 'clip' ;
3839 entryPhaseStartMs : number ;
3940 exitPhaseDurationMs : number ;
4041 height : number ;
@@ -53,7 +54,7 @@ type SlotGlyphProps = {
5354
5455type GlyphTextProps = Pick <
5556 SlotGlyphProps ,
56- 'allowFontScaling' | 'maxFontSizeMultiplier' | 'textClassName' | 'textStyle'
57+ 'allowFontScaling' | 'ellipsizeMode' | ' maxFontSizeMultiplier' | 'textClassName' | 'textStyle'
5758> & {
5859 color ?: string ;
5960 segment : string ;
@@ -63,6 +64,7 @@ export function SlotGlyph({
6364 allowFontScaling,
6465 currentSegment,
6566 currentWidth,
67+ ellipsizeMode,
6668 entryPhaseStartMs,
6769 exitPhaseDurationMs,
6870 height,
@@ -222,6 +224,7 @@ export function SlotGlyph({
222224 < Animated . View style = { [ faceStyle , outgoingStyle ] } >
223225 < GlyphText
224226 allowFontScaling = { allowFontScaling }
227+ ellipsizeMode = { ellipsizeMode }
225228 maxFontSizeMultiplier = { maxFontSizeMultiplier }
226229 segment = { currentSegment }
227230 textClassName = { textClassName }
@@ -234,6 +237,7 @@ export function SlotGlyph({
234237 < Animated . View style = { [ faceStyle , incomingStyle ] } >
235238 < GlyphText
236239 allowFontScaling = { allowFontScaling }
240+ ellipsizeMode = { ellipsizeMode }
237241 maxFontSizeMultiplier = { maxFontSizeMultiplier }
238242 segment = { targetSegment }
239243 textClassName = { textClassName }
@@ -247,6 +251,7 @@ export function SlotGlyph({
247251 < GlyphText
248252 allowFontScaling = { allowFontScaling }
249253 color = { highlightColor }
254+ ellipsizeMode = { ellipsizeMode }
250255 maxFontSizeMultiplier = { maxFontSizeMultiplier }
251256 segment = { targetSegment }
252257 textClassName = { textClassName }
@@ -261,6 +266,7 @@ export function SlotGlyph({
261266 < View style = { faceStyle } >
262267 < GlyphText
263268 allowFontScaling = { allowFontScaling }
269+ ellipsizeMode = { ellipsizeMode }
264270 maxFontSizeMultiplier = { maxFontSizeMultiplier }
265271 segment = { targetSegment }
266272 textClassName = { textClassName }
@@ -308,6 +314,7 @@ function createFaceAnimationStyle(
308314function GlyphText ( {
309315 allowFontScaling,
310316 color,
317+ ellipsizeMode,
311318 maxFontSizeMultiplier,
312319 segment,
313320 textClassName,
@@ -318,6 +325,7 @@ function GlyphText({
318325 accessible = { false }
319326 allowFontScaling = { allowFontScaling }
320327 className = { textClassName }
328+ ellipsizeMode = { ellipsizeMode }
321329 maxFontSizeMultiplier = { maxFontSizeMultiplier }
322330 numberOfLines = { 1 }
323331 style = { [ textStyle , color ? { color } : undefined ] }
0 commit comments