@@ -212,62 +212,6 @@ class RewriteInvalidCharactersAndClearExample extends React.Component<
212212
213213type ExampleRef = { current : null | React . ElementRef < typeof ExampleTextInput > } ;
214214
215- class BlurOnSubmitExample extends React . Component < { ...} > {
216- ref1 : ExampleRef = createRef ( ) ;
217- ref2 : ExampleRef = createRef ( ) ;
218- ref3 : ExampleRef = createRef ( ) ;
219- ref4 : ExampleRef = createRef ( ) ;
220- ref5 : ExampleRef = createRef ( ) ;
221-
222- render ( ) : React . Node {
223- return (
224- < View >
225- < ExampleTextInput
226- ref = { this . ref1 }
227- style = { styles . singleLine }
228- placeholder = "blurOnSubmit = false"
229- returnKeyType = "next"
230- blurOnSubmit = { false }
231- onSubmitEditing = { ( ) => this . ref2 . current ?. focus ( ) }
232- />
233- < ExampleTextInput
234- ref = { this . ref2 }
235- style = { styles . singleLine }
236- keyboardType = "email-address"
237- placeholder = "blurOnSubmit = false"
238- returnKeyType = "next"
239- blurOnSubmit = { false }
240- onSubmitEditing = { ( ) => this . ref3 . current ?. focus ( ) }
241- />
242- < ExampleTextInput
243- ref = { this . ref3 }
244- style = { styles . singleLine }
245- keyboardType = "url"
246- placeholder = "blurOnSubmit = false"
247- returnKeyType = "next"
248- blurOnSubmit = { false }
249- onSubmitEditing = { ( ) => this . ref4 . current ?. focus ( ) }
250- />
251- < ExampleTextInput
252- ref = { this . ref4 }
253- style = { styles . singleLine }
254- keyboardType = "numeric"
255- placeholder = "blurOnSubmit = false"
256- blurOnSubmit = { false }
257- onSubmitEditing = { ( ) => this . ref5 . current ?. focus ( ) }
258- />
259- < ExampleTextInput
260- ref = { this . ref5 }
261- style = { styles . singleLine }
262- keyboardType = "numbers-and-punctuation"
263- placeholder = "blurOnSubmit = true"
264- returnKeyType = "done"
265- />
266- </ View >
267- ) ;
268- }
269- }
270-
271215class SubmitBehaviorExample extends React . Component < { ...} > {
272216 ref1 : ExampleRef = createRef ( ) ;
273217 ref2 : ExampleRef = createRef ( ) ;
@@ -276,10 +220,6 @@ class SubmitBehaviorExample extends React.Component<{...}> {
276220 ref5 : ExampleRef = createRef ( ) ;
277221 ref6 : ExampleRef = createRef ( ) ;
278222 ref7 : ExampleRef = createRef ( ) ;
279- ref8 : ExampleRef = createRef ( ) ;
280- ref9 : ExampleRef = createRef ( ) ;
281- ref10 : ExampleRef = createRef ( ) ;
282- ref11 : ExampleRef = createRef ( ) ;
283223
284224 render ( ) : React . Node {
285225 return (
@@ -303,51 +243,26 @@ class SubmitBehaviorExample extends React.Component<{...}> {
303243 />
304244 < ExampleTextInput
305245 ref = { this . ref4 }
306- blurOnSubmit
307- placeholder = "single line blurOnSubmit true"
308- onSubmitEditing = { ( ) => this . ref5 . current ?. focus ( ) }
309- />
310- < ExampleTextInput
311- ref = { this . ref5 }
312- blurOnSubmit = { false }
313- placeholder = "single line blurOnSubmit false"
314- onSubmitEditing = { ( ) => this . ref6 . current ?. focus ( ) }
315- />
316- < ExampleTextInput
317- ref = { this . ref6 }
318246 multiline
319247 placeholder = "multiline submit"
320248 submitBehavior = "submit"
321- onSubmitEditing = { ( ) => this . ref7 . current ?. focus ( ) }
249+ onSubmitEditing = { ( ) => this . ref5 . current ?. focus ( ) }
322250 />
323251 < ExampleTextInput
324- ref = { this . ref7 }
252+ ref = { this . ref5 }
325253 multiline
326254 placeholder = "multiline blurAndSubmit"
327255 submitBehavior = "blurAndSubmit"
328- onSubmitEditing = { ( ) => this . ref8 . current ?. focus ( ) }
329- />
330- < ExampleTextInput
331- ref = { this . ref8 }
332- multiline
333- blurOnSubmit
334- placeholder = "multiline blurOnSubmit true"
335- onSubmitEditing = { ( ) => this . ref9 . current ?. focus ( ) }
336- />
337- < ExampleTextInput
338- ref = { this . ref9 }
339- multiline
340- blurOnSubmit = { false }
341- placeholder = "multiline blurOnSubmit false"
256+ onSubmitEditing = { ( ) => this . ref6 . current ?. focus ( ) }
342257 />
343258 < ExampleTextInput
344- ref = { this . ref10 }
259+ ref = { this . ref6 }
345260 multiline
346261 placeholder = "multiline newline"
347262 submitBehavior = "newline"
348263 />
349264 < ExampleTextInput
350- ref = { this . ref11 }
265+ ref = { this . ref7 }
351266 multiline
352267 placeholder = "multiline default"
353268 />
@@ -1047,12 +962,6 @@ module.exports = [
1047962 return < View > { examples} < / V i e w > ;
1048963 } ,
1049964 } ,
1050- {
1051- title : 'Blur on submit' ,
1052- render : function ( ) : React . MixedElement {
1053- return < BlurOnSubmitExample /> ;
1054- } ,
1055- } ,
1056965 {
1057966 title : 'enterKeyHint modes' ,
1058967 name : 'enterKeyHintTypes' ,
0 commit comments