Skip to content

Commit 2b3f16f

Browse files
authored
update to react native 0.57.8 (#53)
1 parent 96974e8 commit 2b3f16f

27 files changed

+13582
-13594
lines changed

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

babel.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const babelFunction = (api) => {
2+
const presets = [
3+
'module:metro-react-native-babel-preset',
4+
];
5+
api.cache.never();
6+
return {
7+
presets,
8+
};
9+
};
10+
11+
module.exports = babelFunction;

package-lock.json

Lines changed: 4481 additions & 4369 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,32 @@
2020
"author": "globo.com",
2121
"license": "MIT",
2222
"peerDependencies": {
23-
"react": "^16.2.0",
24-
"react-native": ">=0.49.3"
23+
"react": "^16.6.3",
24+
"react-native": ">=0.57.8"
2525
},
2626
"dependencies": {
2727
"stringz": "1.0.0"
2828
},
2929
"devDependencies": {
30-
"babel-eslint": "8.2.2",
31-
"babel-jest": "22.4.3",
32-
"babel-preset-react-native": "4.0.0",
33-
"coveralls": "3.0.0",
34-
"eslint": "4.19.1",
35-
"eslint-config-airbnb": "16.1.0",
36-
"eslint-plugin-flowtype": "2.46.1",
37-
"eslint-plugin-import": "2.10.0",
38-
"eslint-plugin-jsx-a11y": "6.0.3",
39-
"eslint-plugin-react": "7.7.0",
40-
"eslint-plugin-react-native": "3.2.1",
41-
"flow-bin": "0.69.0",
42-
"jest": "22.4.3",
43-
"react": "16.3.1",
44-
"react-dom": "16.3.1",
45-
"react-native": "0.55.2",
46-
"react-test-renderer": "16.3.1"
30+
"@babel/core": "7.2.2",
31+
"babel-core": "7.0.0-bridge.0",
32+
"babel-eslint": "10.0.1",
33+
"babel-jest": "23.6.0",
34+
"coveralls": "3.0.2",
35+
"eslint": "5.11.1",
36+
"eslint-config-airbnb": "17.1.0",
37+
"eslint-plugin-flowtype": "3.2.0",
38+
"eslint-plugin-import": "2.14.0",
39+
"eslint-plugin-jsx-a11y": "6.1.2",
40+
"eslint-plugin-react": "7.12.2",
41+
"eslint-plugin-react-native": "3.5.0",
42+
"flow-bin": "0.89.0",
43+
"jest": "23.6.0",
44+
"metro-react-native-babel-preset": "0.51.1",
45+
"react": "16.6.3",
46+
"react-dom": "16.6.3",
47+
"react-native": "0.57.8",
48+
"react-test-renderer": "16.6.3"
4749
},
4850
"jest": {
4951
"preset": "react-native",

sample/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

sample/__tests__/components/__snapshots__/BlockQuote.test.js.snap

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,8 @@ exports[`extends a style with a customStyle 1`] = `
1616
]
1717
}
1818
>
19-
<View
20-
style={undefined}
21-
/>
19+
<View />
2220
<Text
23-
accessible={true}
24-
allowFontScaling={true}
25-
ellipsizeMode="tail"
2621
style={
2722
Array [
2823
Object {
@@ -45,9 +40,7 @@ exports[`extends a style with a customStyle 1`] = `
4540
>
4641
Hello World
4742
</Text>
48-
<View
49-
style={undefined}
50-
/>
43+
<View />
5144
</View>
5245
`;
5346

@@ -67,13 +60,8 @@ exports[`renders correctly with a blockquote 1`] = `
6760
]
6861
}
6962
>
70-
<View
71-
style={undefined}
72-
/>
63+
<View />
7364
<Text
74-
accessible={true}
75-
allowFontScaling={true}
76-
ellipsizeMode="tail"
7765
style={
7866
Array [
7967
Object {
@@ -91,9 +79,7 @@ exports[`renders correctly with a blockquote 1`] = `
9179
>
9280
Hello World
9381
</Text>
94-
<View
95-
style={undefined}
96-
/>
82+
<View />
9783
</View>
9884
`;
9985

@@ -113,11 +99,7 @@ exports[`renders null without a blockquote 1`] = `
11399
]
114100
}
115101
>
116-
<View
117-
style={undefined}
118-
/>
119-
<View
120-
style={undefined}
121-
/>
102+
<View />
103+
<View />
122104
</View>
123105
`;

sample/__tests__/components/__snapshots__/DraftJsText.test.js.snap

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
exports[`extends a style with a customStyle 1`] = `
44
<Text
5-
accessible={true}
6-
allowFontScaling={true}
7-
ellipsizeMode="tail"
85
style={
96
Array [
107
Object {
@@ -29,9 +26,6 @@ exports[`extends a style with a customStyle 1`] = `
2926

3027
exports[`extends a style with a customStyle from another type 1`] = `
3128
<Text
32-
accessible={true}
33-
allowFontScaling={true}
34-
ellipsizeMode="tail"
3529
style={
3630
Array [
3731
Object {
@@ -51,9 +45,6 @@ exports[`extends a style with a customStyle from another type 1`] = `
5145

5246
exports[`renders correctly with a text 1`] = `
5347
<Text
54-
accessible={true}
55-
allowFontScaling={true}
56-
ellipsizeMode="tail"
5748
style={
5849
Array [
5950
Object {
@@ -75,9 +66,6 @@ exports[`renders null without a text 1`] = `null`;
7566

7667
exports[`renders text-align: center 1`] = `
7768
<Text
78-
accessible={true}
79-
allowFontScaling={true}
80-
ellipsizeMode="tail"
8169
style={
8270
Array [
8371
Object {
@@ -97,9 +85,6 @@ exports[`renders text-align: center 1`] = `
9785

9886
exports[`renders text-align: left 1`] = `
9987
<Text
100-
accessible={true}
101-
allowFontScaling={true}
102-
ellipsizeMode="tail"
10388
style={
10489
Array [
10590
Object {
@@ -119,9 +104,6 @@ exports[`renders text-align: left 1`] = `
119104

120105
exports[`renders text-align: right 1`] = `
121106
<Text
122-
accessible={true}
123-
allowFontScaling={true}
124-
ellipsizeMode="tail"
125107
style={
126108
Array [
127109
Object {

sample/__tests__/components/__snapshots__/OrderedListItem.test.js.snap

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ exports[`extends a style with a customStyle.orderedListItemContainer 1`] = `
1616
}
1717
>
1818
<Text
19-
accessible={true}
20-
allowFontScaling={true}
21-
ellipsizeMode="tail"
2219
style={
2320
Array [
2421
Object {
@@ -37,9 +34,6 @@ exports[`extends a style with a customStyle.orderedListItemContainer 1`] = `
3734
.
3835
</Text>
3936
<Text
40-
accessible={true}
41-
allowFontScaling={true}
42-
ellipsizeMode="tail"
4337
style={
4438
Array [
4539
Object {
@@ -78,9 +72,6 @@ exports[`extends a style with a customStyle.orderedListItemNumber 1`] = `
7872
}
7973
>
8074
<Text
81-
accessible={true}
82-
allowFontScaling={true}
83-
ellipsizeMode="tail"
8475
style={
8576
Array [
8677
Object {
@@ -101,9 +92,6 @@ exports[`extends a style with a customStyle.orderedListItemNumber 1`] = `
10192
.
10293
</Text>
10394
<Text
104-
accessible={true}
105-
allowFontScaling={true}
106-
ellipsizeMode="tail"
10795
style={
10896
Array [
10997
Object {
@@ -142,9 +130,6 @@ exports[`extends a style with customStyles 1`] = `
142130
}
143131
>
144132
<Text
145-
accessible={true}
146-
allowFontScaling={true}
147-
ellipsizeMode="tail"
148133
style={
149134
Array [
150135
Object {
@@ -163,9 +148,6 @@ exports[`extends a style with customStyles 1`] = `
163148
.
164149
</Text>
165150
<Text
166-
accessible={true}
167-
allowFontScaling={true}
168-
ellipsizeMode="tail"
169151
style={
170152
Array [
171153
Object {
@@ -204,9 +186,6 @@ exports[`renders correctly when customStyles is undefined 1`] = `
204186
}
205187
>
206188
<Text
207-
accessible={true}
208-
allowFontScaling={true}
209-
ellipsizeMode="tail"
210189
style={
211190
Array [
212191
Object {
@@ -225,9 +204,6 @@ exports[`renders correctly when customStyles is undefined 1`] = `
225204
.
226205
</Text>
227206
<Text
228-
accessible={true}
229-
allowFontScaling={true}
230-
ellipsizeMode="tail"
231207
style={
232208
Array [
233209
Object {
@@ -260,9 +236,6 @@ exports[`renders correctly when orderedListItemNumber.marginLeft is set 1`] = `
260236
}
261237
>
262238
<Text
263-
accessible={true}
264-
allowFontScaling={true}
265-
ellipsizeMode="tail"
266239
style={
267240
Array [
268241
Object {
@@ -283,9 +256,6 @@ exports[`renders correctly when orderedListItemNumber.marginLeft is set 1`] = `
283256
.
284257
</Text>
285258
<Text
286-
accessible={true}
287-
allowFontScaling={true}
288-
ellipsizeMode="tail"
289259
style={
290260
Array [
291261
Object {
@@ -324,9 +294,6 @@ exports[`renders correctly with a ordered-list-item 1`] = `
324294
}
325295
>
326296
<Text
327-
accessible={true}
328-
allowFontScaling={true}
329-
ellipsizeMode="tail"
330297
style={
331298
Array [
332299
Object {
@@ -345,9 +312,6 @@ exports[`renders correctly with a ordered-list-item 1`] = `
345312
.
346313
</Text>
347314
<Text
348-
accessible={true}
349-
allowFontScaling={true}
350-
ellipsizeMode="tail"
351315
style={
352316
Array [
353317
Object {
@@ -380,9 +344,6 @@ exports[`renders correctly with a ordered-list-item when depth 1 1`] = `
380344
}
381345
>
382346
<Text
383-
accessible={true}
384-
allowFontScaling={true}
385-
ellipsizeMode="tail"
386347
style={
387348
Array [
388349
Object {
@@ -401,9 +362,6 @@ exports[`renders correctly with a ordered-list-item when depth 1 1`] = `
401362
.
402363
</Text>
403364
<Text
404-
accessible={true}
405-
allowFontScaling={true}
406-
ellipsizeMode="tail"
407365
style={
408366
Array [
409367
Object {
@@ -436,9 +394,6 @@ exports[`renders correctly with a ordered-list-item when depth is undefined 1`]
436394
}
437395
>
438396
<Text
439-
accessible={true}
440-
allowFontScaling={true}
441-
ellipsizeMode="tail"
442397
style={
443398
Array [
444399
Object {
@@ -457,9 +412,6 @@ exports[`renders correctly with a ordered-list-item when depth is undefined 1`]
457412
.
458413
</Text>
459414
<Text
460-
accessible={true}
461-
allowFontScaling={true}
462-
ellipsizeMode="tail"
463415
style={
464416
Array [
465417
Object {
@@ -492,9 +444,6 @@ exports[`renders null without a ordered-list-item 1`] = `
492444
}
493445
>
494446
<Text
495-
accessible={true}
496-
allowFontScaling={true}
497-
ellipsizeMode="tail"
498447
style={
499448
Array [
500449
Object {

0 commit comments

Comments
 (0)