@@ -9,6 +9,7 @@ import AppRegistry from '..';
9
9
import React from 'react' ;
10
10
import ReactDOMServer from 'react-dom/server' ;
11
11
import StyleSheet from '../../StyleSheet' ;
12
+ import Text from '../../Text' ;
12
13
import View from '../../View' ;
13
14
14
15
const NoopComponent = ( ) => React . createElement ( 'div' ) ;
@@ -44,13 +45,20 @@ describe('AppRegistry', () => {
44
45
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
45
46
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
46
47
[stylesheet-group=\\"1\\"]{}
48
+ .css-text-13q1o4w{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
49
+ .css-textHasAncestor-1jxf684{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:inherit;display:inline;font:inherit;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:inherit;word-wrap:break-word;}
47
50
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
48
51
[stylesheet-group=\\"2\\"]{}
52
+ .r-display-krxsd3{display:-webkit-box;}
49
53
.r-display-xoduu5{display:inline-flex;}
50
54
.r-flex-13awgt0{flex:1;}
55
+ .r-overflow-1udh08x{overflow-x:hidden;overflow-y:hidden;}
51
56
[stylesheet-group=\\"3\\"]{}
57
+ .r-WebkitBoxOrient-8akbws{-webkit-box-orient:vertical;}
52
58
.r-bottom-1p0dtai{bottom:0px;}
59
+ .r-cursor-1loqt21{cursor:pointer;}
53
60
.r-left-1d2f490{left:0px;}
61
+ .r-maxWidth-dnmrzs{max-width:100%;}
54
62
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
55
63
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
56
64
.r-pointerEvents-12vffkv{pointer-events:none!important;}
@@ -59,7 +67,12 @@ describe('AppRegistry', () => {
59
67
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
60
68
.r-position-u8s1d{position:absolute;}
61
69
.r-right-zchlnj{right:0px;}
62
- .r-top-ipm5af{top:0px;}</style>"
70
+ .r-textOverflow-1udbk01{text-overflow:ellipsis;}
71
+ .r-top-ipm5af{top:0px;}
72
+ .r-userSelect-1xnzce8{-moz-user-select:text;-webkit-user-select:text;user-select:text;}
73
+ .r-userSelect-lrvibr{-moz-user-select:none;-webkit-user-select:none;user-select:none;}
74
+ .r-whiteSpace-3s2u2q{white-space:nowrap;}
75
+ .r-wordWrap-1iln25a{word-wrap:normal;}</style>"
63
76
` ) ;
64
77
} ) ;
65
78
@@ -78,7 +91,8 @@ describe('AppRegistry', () => {
78
91
} ;
79
92
80
93
// First render "RootComponent"
81
- const RootComponent = ( ) => React . createElement ( View ) ;
94
+ const RootComponent = ( ) =>
95
+ React . createElement ( View , React . createElement ( Text ) ) ;
82
96
AppRegistry . registerComponent ( 'App' , ( ) => RootComponent ) ;
83
97
const first = getApplicationStyles ( 'App' ) ;
84
98
expect ( first ) . toMatchInlineSnapshot ( `
@@ -88,13 +102,20 @@ describe('AppRegistry', () => {
88
102
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
89
103
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
90
104
[stylesheet-group=\\"1\\"]{}
105
+ .css-text-13q1o4w{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
106
+ .css-textHasAncestor-1jxf684{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:inherit;display:inline;font:inherit;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:inherit;word-wrap:break-word;}
91
107
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
92
108
[stylesheet-group=\\"2\\"]{}
109
+ .r-display-krxsd3{display:-webkit-box;}
93
110
.r-display-xoduu5{display:inline-flex;}
94
111
.r-flex-13awgt0{flex:1;}
112
+ .r-overflow-1udh08x{overflow-x:hidden;overflow-y:hidden;}
95
113
[stylesheet-group=\\"3\\"]{}
114
+ .r-WebkitBoxOrient-8akbws{-webkit-box-orient:vertical;}
96
115
.r-bottom-1p0dtai{bottom:0px;}
116
+ .r-cursor-1loqt21{cursor:pointer;}
97
117
.r-left-1d2f490{left:0px;}
118
+ .r-maxWidth-dnmrzs{max-width:100%;}
98
119
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
99
120
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
100
121
.r-pointerEvents-12vffkv{pointer-events:none!important;}
@@ -103,7 +124,12 @@ describe('AppRegistry', () => {
103
124
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
104
125
.r-position-u8s1d{position:absolute;}
105
126
.r-right-zchlnj{right:0px;}
106
- .r-top-ipm5af{top:0px;}"
127
+ .r-textOverflow-1udbk01{text-overflow:ellipsis;}
128
+ .r-top-ipm5af{top:0px;}
129
+ .r-userSelect-1xnzce8{-moz-user-select:text;-webkit-user-select:text;user-select:text;}
130
+ .r-userSelect-lrvibr{-moz-user-select:none;-webkit-user-select:none;user-select:none;}
131
+ .r-whiteSpace-3s2u2q{white-space:nowrap;}
132
+ .r-wordWrap-1iln25a{word-wrap:normal;}"
107
133
` ) ;
108
134
109
135
// Second render "AlternativeComponent"
@@ -124,15 +150,22 @@ describe('AppRegistry', () => {
124
150
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
125
151
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
126
152
[stylesheet-group=\\"1\\"]{}
153
+ .css-text-13q1o4w{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
154
+ .css-textHasAncestor-1jxf684{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:inherit;display:inline;font:inherit;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:inherit;word-wrap:break-word;}
127
155
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
128
156
[stylesheet-group=\\"2\\"]{}
129
157
.r-borderWidth-1bee2fs{border-bottom-width:1234px;border-left-width:1234px;border-right-width:1234px;border-top-width:1234px;}
158
+ .r-display-krxsd3{display:-webkit-box;}
130
159
.r-display-xoduu5{display:inline-flex;}
131
160
.r-flex-13awgt0{flex:1;}
161
+ .r-overflow-1udh08x{overflow-x:hidden;overflow-y:hidden;}
132
162
[stylesheet-group=\\"3\\"]{}
163
+ .r-WebkitBoxOrient-8akbws{-webkit-box-orient:vertical;}
133
164
.r-backgroundColor-aot4c7{background-color:rgba(128,0,128,1.00);}
134
165
.r-bottom-1p0dtai{bottom:0px;}
166
+ .r-cursor-1loqt21{cursor:pointer;}
135
167
.r-left-1d2f490{left:0px;}
168
+ .r-maxWidth-dnmrzs{max-width:100%;}
136
169
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
137
170
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
138
171
.r-pointerEvents-12vffkv{pointer-events:none!important;}
@@ -141,7 +174,12 @@ describe('AppRegistry', () => {
141
174
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
142
175
.r-position-u8s1d{position:absolute;}
143
176
.r-right-zchlnj{right:0px;}
144
- .r-top-ipm5af{top:0px;}"
177
+ .r-textOverflow-1udbk01{text-overflow:ellipsis;}
178
+ .r-top-ipm5af{top:0px;}
179
+ .r-userSelect-1xnzce8{-moz-user-select:text;-webkit-user-select:text;user-select:text;}
180
+ .r-userSelect-lrvibr{-moz-user-select:none;-webkit-user-select:none;user-select:none;}
181
+ .r-whiteSpace-3s2u2q{white-space:nowrap;}
182
+ .r-wordWrap-1iln25a{word-wrap:normal;}"
145
183
` ) ;
146
184
147
185
// Third render "RootComponent" again
0 commit comments