File tree 3 files changed +24
-22
lines changed
YellowBox/Data/__tests__/__snapshots__
3 files changed +24
-22
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ if (__DEV__) {
49
49
} ;
50
50
// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.
51
51
ViewToExport = React . forwardRef ( View ) ;
52
+ ViewToExport . displayName = 'View' ;
52
53
}
53
54
}
54
55
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ const Text = (
277
277
} ;
278
278
// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.
279
279
const TextToExport = React . forwardRef ( Text ) ;
280
+ TextToExport . displayName = 'Text' ;
280
281
281
282
// TODO: Deprecate this.
282
283
TextToExport . propTypes = DeprecatedTextPropTypes ;
Original file line number Diff line number Diff line change 2
2
3
3
exports [` YellowBoxCategory renders a single substitution 1` ] = `
4
4
Array [
5
- <Component
5
+ <Text
6
6
style = {
7
7
Object {
8
8
" fontWeight" : " bold" ,
9
9
}
10
10
}
11
11
>
12
12
"A"
13
- </Component >,
13
+ </Text >,
14
14
]
15
15
` ;
16
16
17
17
exports [` YellowBoxCategory renders content with no substitutions 1` ] = `
18
18
Array [
19
- <Component >
19
+ <Text >
20
20
A
21
- </Component >,
21
+ </Text >,
22
22
]
23
23
` ;
24
24
25
25
exports [` YellowBoxCategory renders multiple substitutions 1` ] = `
26
26
Array [
27
- <Component
27
+ <Text
28
28
style = {
29
29
Object {
30
30
" fontWeight" : " bold" ,
31
31
}
32
32
}
33
33
>
34
34
"A"
35
- </Component >,
36
- <Component >
35
+ </Text >,
36
+ <Text >
37
37
38
- </Component >,
39
- <Component
38
+ </Text >,
39
+ <Text
40
40
style = {
41
41
Object {
42
42
" fontWeight" : " bold" ,
43
43
}
44
44
}
45
45
>
46
46
"B"
47
- </Component >,
48
- <Component >
47
+ </Text >,
48
+ <Text >
49
49
50
- </Component >,
51
- <Component
50
+ </Text >,
51
+ <Text
52
52
style = {
53
53
Object {
54
54
" fontWeight" : " bold" ,
55
55
}
56
56
}
57
57
>
58
58
"C"
59
- </Component >,
59
+ </Text >,
60
60
]
61
61
` ;
62
62
63
63
exports [` YellowBoxCategory renders substitutions with leading content 1` ] = `
64
64
Array [
65
- <Component >
65
+ <Text >
66
66
!
67
- </Component >,
68
- <Component
67
+ </Text >,
68
+ <Text
69
69
style = {
70
70
Object {
71
71
" fontWeight" : " bold" ,
72
72
}
73
73
}
74
74
>
75
75
"A"
76
- </Component >,
76
+ </Text >,
77
77
]
78
78
` ;
79
79
80
80
exports [` YellowBoxCategory renders substitutions with trailing content 1` ] = `
81
81
Array [
82
- <Component
82
+ <Text
83
83
style = {
84
84
Object {
85
85
" fontWeight" : " bold" ,
86
86
}
87
87
}
88
88
>
89
89
"A"
90
- </Component >,
91
- <Component >
90
+ </Text >,
91
+ <Text >
92
92
!
93
- </Component >,
93
+ </Text >,
94
94
]
95
95
` ;
You can’t perform that action at this time.
0 commit comments