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
Ship refactor for TextInput state synchronization (#49989)
Summary:
Changelog: [internal]
We verified that the refactor is safe using a production experiment, so we can ship this version that doesn't require state updates and has slightly better performance
Reviewed By: sammy-SC
Differential Revision: D71050517
exports[`TextInput tests (useTextChildren = false) should render as expected: should deep render when mocked (please verify output manually) 1`] =`
220
+
<RCTSinglelineTextInputView
221
+
accessible={true}
222
+
allowFontScaling={true}
223
+
focusable={true}
224
+
forwardedRef={null}
225
+
mostRecentEventCount={0}
226
+
onBlur={[Function]}
227
+
onChange={[Function]}
228
+
onClick={[Function]}
229
+
onFocus={[Function]}
230
+
onResponderGrant={[Function]}
231
+
onResponderMove={[Function]}
232
+
onResponderRelease={[Function]}
233
+
onResponderTerminate={[Function]}
234
+
onResponderTerminationRequest={[Function]}
235
+
onScroll={[Function]}
236
+
onSelectionChange={[Function]}
237
+
onSelectionChangeShouldSetResponder={[Function]}
238
+
onStartShouldSetResponder={[Function]}
239
+
rejectResponderTermination={true}
240
+
selection={null}
241
+
submitBehavior="blurAndSubmit"
242
+
underlineColorAndroid="transparent"
243
+
/>
244
+
`;
245
+
246
+
exports[`TextInput tests (useTextChildren = false) should render as expected: should deep render when not mocked (please verify output manually) 1`] =`
247
+
<RCTSinglelineTextInputView
248
+
accessible={true}
249
+
allowFontScaling={true}
250
+
focusable={true}
251
+
forwardedRef={null}
252
+
mostRecentEventCount={0}
253
+
onBlur={[Function]}
254
+
onChange={[Function]}
255
+
onClick={[Function]}
256
+
onFocus={[Function]}
257
+
onResponderGrant={[Function]}
258
+
onResponderMove={[Function]}
259
+
onResponderRelease={[Function]}
260
+
onResponderTerminate={[Function]}
261
+
onResponderTerminationRequest={[Function]}
262
+
onScroll={[Function]}
263
+
onSelectionChange={[Function]}
264
+
onSelectionChangeShouldSetResponder={[Function]}
265
+
onStartShouldSetResponder={[Function]}
266
+
rejectResponderTermination={true}
267
+
selection={null}
268
+
submitBehavior="blurAndSubmit"
269
+
underlineColorAndroid="transparent"
270
+
/>
271
+
`;
272
+
273
+
exports[`TextInput tests (useTextChildren = true) should render as expected: should deep render when mocked (please verify output manually) 1`] =`
274
+
<RCTSinglelineTextInputView
275
+
accessible={true}
276
+
allowFontScaling={true}
277
+
focusable={true}
278
+
forwardedRef={null}
279
+
mostRecentEventCount={0}
280
+
onBlur={[Function]}
281
+
onChange={[Function]}
282
+
onClick={[Function]}
283
+
onFocus={[Function]}
284
+
onResponderGrant={[Function]}
285
+
onResponderMove={[Function]}
286
+
onResponderRelease={[Function]}
287
+
onResponderTerminate={[Function]}
288
+
onResponderTerminationRequest={[Function]}
289
+
onScroll={[Function]}
290
+
onSelectionChange={[Function]}
291
+
onSelectionChangeShouldSetResponder={[Function]}
292
+
onStartShouldSetResponder={[Function]}
293
+
rejectResponderTermination={true}
294
+
selection={null}
295
+
submitBehavior="blurAndSubmit"
296
+
underlineColorAndroid="transparent"
297
+
/>
298
+
`;
299
+
300
+
exports[`TextInput tests (useTextChildren = true) should render as expected: should deep render when not mocked (please verify output manually) 1`] =`
0 commit comments