Skip to content

Commit 6c633a4

Browse files
authored
Fix issue with missing ellipsis (#3682)
* Fix issue with missing ellipsis * Fix TextField snapshot test
1 parent eb146fc commit 6c633a4

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

demo/src/screens/__tests__/__snapshots__/TextFieldScreen.spec.js.snap

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ exports[`TextField Screen renders screen 1`] = `
193193
"flexGrow": 1,
194194
"paddingBottom": 0,
195195
"paddingTop": 0,
196-
"textAlign": "left",
196+
"textAlign": undefined,
197197
},
198198
{
199199
"color": "#20303C",
@@ -655,7 +655,7 @@ exports[`TextField Screen renders screen 1`] = `
655655
"flexGrow": 1,
656656
"paddingBottom": 0,
657657
"paddingTop": 0,
658-
"textAlign": "left",
658+
"textAlign": undefined,
659659
},
660660
{
661661
"color": "#20303C",
@@ -1196,7 +1196,7 @@ exports[`TextField Screen renders screen 1`] = `
11961196
"flexGrow": 1,
11971197
"paddingBottom": 0,
11981198
"paddingTop": 0,
1199-
"textAlign": "left",
1199+
"textAlign": undefined,
12001200
},
12011201
{
12021202
"color": "#D2D6D8",
@@ -1562,7 +1562,7 @@ exports[`TextField Screen renders screen 1`] = `
15621562
"flexGrow": 1,
15631563
"paddingBottom": 0,
15641564
"paddingTop": 0,
1565-
"textAlign": "left",
1565+
"textAlign": undefined,
15661566
},
15671567
{
15681568
"color": "#20303C",
@@ -1793,7 +1793,7 @@ exports[`TextField Screen renders screen 1`] = `
17931793
"flexGrow": 1,
17941794
"paddingBottom": 0,
17951795
"paddingTop": 0,
1796-
"textAlign": "left",
1796+
"textAlign": undefined,
17971797
},
17981798
{
17991799
"color": "#20303C",
@@ -2158,7 +2158,7 @@ exports[`TextField Screen renders screen 1`] = `
21582158
"flexGrow": 1,
21592159
"paddingBottom": 0,
21602160
"paddingTop": 0,
2161-
"textAlign": "left",
2161+
"textAlign": undefined,
21622162
},
21632163
{
21642164
"color": "#20303C",
@@ -2473,7 +2473,7 @@ exports[`TextField Screen renders screen 1`] = `
24732473
"flexGrow": 1,
24742474
"paddingBottom": 0,
24752475
"paddingTop": 0,
2476-
"textAlign": "left",
2476+
"textAlign": undefined,
24772477
},
24782478
{
24792479
"color": "#20303C",
@@ -3039,7 +3039,7 @@ exports[`TextField Screen renders screen 1`] = `
30393039
"flexGrow": 1,
30403040
"paddingBottom": 0,
30413041
"paddingTop": 0,
3042-
"textAlign": "left",
3042+
"textAlign": undefined,
30433043
},
30443044
{
30453045
"color": "#20303C",
@@ -3383,7 +3383,7 @@ exports[`TextField Screen renders screen 1`] = `
33833383
"flexGrow": 1,
33843384
"paddingBottom": 0,
33853385
"paddingTop": 0,
3386-
"textAlign": "left",
3386+
"textAlign": undefined,
33873387
},
33883388
{
33893389
"color": "#20303C",
@@ -3818,7 +3818,7 @@ exports[`TextField Screen renders screen 1`] = `
38183818
"flexGrow": 1,
38193819
"paddingBottom": 0,
38203820
"paddingTop": 0,
3821-
"textAlign": "left",
3821+
"textAlign": undefined,
38223822
},
38233823
{
38243824
"color": "#20303C",
@@ -4248,7 +4248,7 @@ exports[`TextField Screen renders screen 1`] = `
42484248
"flexGrow": 1,
42494249
"paddingBottom": 0,
42504250
"paddingTop": 0,
4251-
"textAlign": "left",
4251+
"textAlign": undefined,
42524252
},
42534253
{
42544254
"color": "#20303C",
@@ -4575,7 +4575,7 @@ exports[`TextField Screen renders screen 1`] = `
45754575
"flexGrow": 1,
45764576
"paddingBottom": 0,
45774577
"paddingTop": 0,
4578-
"textAlign": "left",
4578+
"textAlign": undefined,
45794579
},
45804580
{
45814581
"color": "#20303C",
@@ -4882,7 +4882,7 @@ exports[`TextField Screen renders screen 1`] = `
48824882
"flexGrow": 1,
48834883
"paddingBottom": 0,
48844884
"paddingTop": 0,
4885-
"textAlign": "left",
4885+
"textAlign": undefined,
48864886
},
48874887
{
48884888
"color": "#20303C",
@@ -5203,7 +5203,7 @@ exports[`TextField Screen renders screen 1`] = `
52035203
"flexGrow": 1,
52045204
"paddingBottom": 0,
52055205
"paddingTop": 0,
5206-
"textAlign": "left",
5206+
"textAlign": undefined,
52075207
},
52085208
{
52095209
"color": "#20303C",
@@ -5942,7 +5942,7 @@ exports[`TextField Screen renders screen 1`] = `
59425942
"flexGrow": 1,
59435943
"paddingBottom": 0,
59445944
"paddingTop": 0,
5945-
"textAlign": "left",
5945+
"textAlign": undefined,
59465946
},
59475947
{
59485948
"color": "#20303C",
@@ -6242,7 +6242,7 @@ exports[`TextField Screen renders screen 1`] = `
62426242
"flexGrow": 1,
62436243
"paddingBottom": 0,
62446244
"paddingTop": 0,
6245-
"textAlign": "left",
6245+
"textAlign": undefined,
62466246
},
62476247
{
62486248
"color": "#20303C",
@@ -6571,7 +6571,7 @@ exports[`TextField Screen renders screen 1`] = `
65716571
"flexGrow": 1,
65726572
"paddingBottom": 0,
65736573
"paddingTop": 0,
6574-
"textAlign": "left",
6574+
"textAlign": undefined,
65756575
},
65766576
{
65776577
"color": "#20303C",
@@ -6946,7 +6946,7 @@ exports[`TextField Screen renders screen 1`] = `
69466946
"flexGrow": 1,
69476947
"paddingBottom": 0,
69486948
"paddingTop": 0,
6949-
"textAlign": "left",
6949+
"textAlign": undefined,
69506950
},
69516951
{
69526952
"color": "#20303C",
@@ -7226,7 +7226,7 @@ exports[`TextField Screen renders screen 1`] = `
72267226
"flexGrow": 1,
72277227
"paddingBottom": 0,
72287228
"paddingTop": 0,
7229-
"textAlign": "left",
7229+
"textAlign": undefined,
72307230
},
72317231
{
72327232
"color": "#20303C",
@@ -7481,7 +7481,7 @@ exports[`TextField Screen renders screen 1`] = `
74817481
"flexGrow": 1,
74827482
"paddingBottom": 0,
74837483
"paddingTop": 0,
7484-
"textAlign": "left",
7484+
"textAlign": undefined,
74857485
},
74867486
{
74877487
"color": "#20303C",
@@ -7752,7 +7752,7 @@ exports[`TextField Screen renders screen 1`] = `
77527752
"flexGrow": 1,
77537753
"paddingBottom": 0,
77547754
"paddingTop": 0,
7755-
"textAlign": "left",
7755+
"textAlign": undefined,
77567756
},
77577757
{
77587758
"color": "#20303C",

src/components/textField/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const Input = ({
8080
const styles = StyleSheet.create({
8181
input: {
8282
flexGrow: 1,
83-
textAlign: Constants.isRTL ? 'right' : 'left',
83+
textAlign: Constants.isRTL ? 'right' : undefined,
8484
// Setting paddingTop/Bottom separately fix height issues on iOS with multiline
8585
paddingTop: 0,
8686
paddingBottom: 0,

0 commit comments

Comments
 (0)