You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mixed text with <Textstyle={{textDecorationLine: 'underline'}}>underline</Text> and <Textstyle={{textDecorationLine: 'line-through'}}>line-through</Text> text nodes
303
+
</Text>
304
+
</View>
305
+
);
306
+
},
307
+
},{
308
+
title: 'Text Align',
309
+
render: function(){
310
+
return(
311
+
<View>
312
+
<Text>
313
+
auto (default) - english LTR
314
+
</Text>
315
+
<Text>
316
+
أحب اللغة العربية auto (default) - arabic RTL
317
+
</Text>
318
+
<Textstyle={{textAlign: 'left'}}>
319
+
left left left left left left left left left left left left left left left
320
+
</Text>
321
+
<Textstyle={{textAlign: 'center'}}>
322
+
center center center center center center center center center center center
323
+
</Text>
324
+
<Textstyle={{textAlign: 'right'}}>
325
+
right right right right right right right right right right right right right
326
+
</Text>
327
+
</View>
328
+
);
329
+
},
330
+
},{
331
+
title: 'Letter Spacing',
332
+
render: function(){
333
+
return(
334
+
<View>
335
+
<Textstyle={{letterSpacing: 0}}>
336
+
letterSpacing = 0
337
+
</Text>
338
+
<Textstyle={{letterSpacing: 2,marginTop: 5}}>
339
+
letterSpacing = 2
340
+
</Text>
341
+
<Textstyle={{letterSpacing: 9,marginTop: 5}}>
342
+
letterSpacing = 9
343
+
</Text>
344
+
<Textstyle={{letterSpacing: -1,marginTop: 5}}>
345
+
letterSpacing = -1
346
+
</Text>
347
+
</View>
348
+
);
349
+
},
242
350
},{
243
351
title: 'Unicode',
244
352
render: function(){
@@ -276,6 +384,26 @@ exports.examples = [
276
384
</Text>
277
385
);
278
386
},
387
+
},{
388
+
title: 'Line Height',
389
+
render: function(){
390
+
return(
391
+
<View>
392
+
<Textstyle={{lineHeight: 35}}>
393
+
35 - Holisticly formulate inexpensive ideas before best-of-breed benefits. <Textstyle={{fontSize: 20}}>Continually</Text> expedite magnetic potentialities rather than client-focused interfaces.
394
+
</Text>
395
+
<Textstyle={{lineHeight: 35}}>
396
+
35 - Holisticly formulate inexpensive ideas before best-of-breed benefits. <Textstyle={{fontSize: 20}}>Continually</Text> expedite magnetic potentialities rather than client-focused interfaces.
397
+
</Text>
398
+
<Textstyle={{lineHeight: 100}}>
399
+
100 - Holisticly formulate inexpensive ideas before best-of-breed benefits. <Textstyle={{fontSize: 20}}>Continually</Text> expedite magnetic potentialities rather than client-focused interfaces.
400
+
</Text>
401
+
<Textstyle={{lineHeight: 100}}>
402
+
100 - Holisticly formulate inexpensive ideas before best-of-breed benefits. <Textstyle={{fontSize: 20}}>Continually</Text> expedite magnetic potentialities rather than client-focused interfaces.
403
+
</Text>
404
+
</View>
405
+
);
406
+
},
279
407
},{
280
408
title: 'Empty Text',
281
409
description: 'It\'s ok to have Text with zero or null children.',
@@ -284,6 +412,37 @@ exports.examples = [
284
412
<Text/>
285
413
);
286
414
},
415
+
},{
416
+
title: 'numberOfLines attribute',
417
+
render: function(){
418
+
return(
419
+
<View>
420
+
<TextnumberOfLines={1}>
421
+
Maximum of one line no matter now much I write here.
422
+
Maximum of one line no matter now much I write here.
423
+
Maximum of one line no matter now much I write here.
424
+
If I keep writing it{"'"}ll just truncate after one line
425
+
</Text>
426
+
<TextnumberOfLines={2}style={{marginTop: 20}}>
427
+
Maximum of two lines no matter now much I write here.
428
+
Maximum of two lines no matter now much I write here.
429
+
Maximum of two lines no matter now much I write here.
430
+
Maximum of two lines no matter now much I write here.
431
+
If I keep writing it{"'"}ll just truncate after two lines
432
+
</Text>
433
+
<Textstyle={{marginTop: 20}}>
434
+
No maximum lines specified no matter now much I write here.
435
+
No maximum lines specified no matter now much I write here.
436
+
No maximum lines specified no matter now much I write here.
437
+
No maximum lines specified no matter now much I write here.
438
+
No maximum lines specified no matter now much I write here.
439
+
No maximum lines specified no matter now much I write here.
440
+
No maximum lines specified no matter now much I write here.
441
+
If I keep writing it{"'"}ll just keep going and going
0 commit comments