@fluentui-react-native/focus-zone 0.23.2 → 0.23.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.cache/tsconfig.tsbuildinfo +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/RCTFocusZone.podspec +1 -1
  4. package/SPEC.md +42 -0
  5. package/lib/FocusZone.d.ts +2 -6
  6. package/lib/FocusZone.d.ts.map +1 -1
  7. package/lib/FocusZone.js +28 -45
  8. package/lib/FocusZone.js.map +1 -1
  9. package/lib/FocusZone.types.d.ts +16 -15
  10. package/lib/FocusZone.types.d.ts.map +1 -1
  11. package/lib/FocusZone.types.js.map +1 -1
  12. package/lib/FocusZoneNativeComponent.d.ts +5 -3
  13. package/lib/FocusZoneNativeComponent.d.ts.map +1 -1
  14. package/lib/FocusZoneNativeComponent.js +3 -1
  15. package/lib/FocusZoneNativeComponent.js.map +1 -1
  16. package/lib/FocusZoneNativeComponent.win32.d.ts +16 -0
  17. package/lib/FocusZoneNativeComponent.win32.d.ts.map +1 -0
  18. package/lib/FocusZoneNativeComponent.win32.js +3 -0
  19. package/lib/FocusZoneNativeComponent.win32.js.map +1 -0
  20. package/lib/__tests__/FocusZone.test.js +68 -70
  21. package/lib/__tests__/FocusZone.test.js.map +1 -1
  22. package/lib/__tests__/FocusZone.types.test.d.ts +2 -0
  23. package/lib/__tests__/FocusZone.types.test.d.ts.map +1 -0
  24. package/lib/__tests__/FocusZone.types.test.js +26 -0
  25. package/lib/__tests__/FocusZone.types.test.js.map +1 -0
  26. package/macos/RCTFocusZone.m +76 -17
  27. package/macos/RCTFocusZoneComponentView.h +14 -0
  28. package/macos/RCTFocusZoneComponentView.mm +201 -0
  29. package/package.json +30 -8
  30. package/react-native.config.cjs +15 -0
  31. package/src/FocusZone.tsx +50 -0
  32. package/src/FocusZone.types.ts +16 -16
  33. package/src/FocusZoneNativeComponent.ts +8 -6
  34. package/src/FocusZoneNativeComponent.win32.ts +18 -0
  35. package/src/__tests__/FocusZone.test.tsx +105 -125
  36. package/src/__tests__/FocusZone.types.test.ts +36 -0
  37. package/tsconfig.json +5 -7
  38. package/windows/ExperimentalFeatures.props +33 -0
  39. package/windows/FRNFocusZone/FRNFocusZone.def +3 -0
  40. package/windows/FRNFocusZone/FRNFocusZone.rc +0 -0
  41. package/windows/FRNFocusZone/FRNFocusZone.vcxproj +147 -0
  42. package/windows/FRNFocusZone/FRNFocusZone.vcxproj.filters +44 -0
  43. package/windows/FRNFocusZone/FocusZoneComponentView.cpp +590 -0
  44. package/windows/FRNFocusZone/FocusZoneComponentView.h +7 -0
  45. package/windows/FRNFocusZone/ReactPackageProvider.cpp +24 -0
  46. package/windows/FRNFocusZone/ReactPackageProvider.h +24 -0
  47. package/windows/FRNFocusZone/ReactPackageProvider.idl +9 -0
  48. package/windows/FRNFocusZone/codegen/.clang-format +2 -0
  49. package/windows/FRNFocusZone/codegen/react/components/FRNFocusZoneSpec/FocusZone.g.h +243 -0
  50. package/windows/FRNFocusZone/packages.lock.json +151 -0
  51. package/windows/FRNFocusZone/pch.cpp +1 -0
  52. package/windows/FRNFocusZone/pch.h +40 -0
  53. package/windows/FRNFocusZone/resource.h +5 -0
  54. package/windows/FRNFocusZone/targetver.h +8 -0
  55. package/windows/FRNFocusZone.sln +43 -0
  56. package/windows/NuGet.Config +13 -0
  57. package/src/FocusZone.ts +0 -57
  58. package/src/__tests__/__snapshots__/FocusZone.test.tsx.snap +0 -1516
@@ -1,1516 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`FocusZone No Props No children 1`] = `
4
- <RCTFocusZone
5
- navigateAtEnd="NavigateStopAtEnds"
6
- />
7
- `;
8
-
9
- exports[`FocusZone No Props One child 1`] = `
10
- <RCTFocusZone
11
- navigateAtEnd="NavigateStopAtEnds"
12
- >
13
- <View
14
- accessibilityRole="button"
15
- accessibilityState={
16
- {
17
- "busy": undefined,
18
- "checked": undefined,
19
- "disabled": undefined,
20
- "expanded": undefined,
21
- "selected": undefined,
22
- }
23
- }
24
- accessibilityValue={
25
- {
26
- "max": undefined,
27
- "min": undefined,
28
- "now": undefined,
29
- "text": undefined,
30
- }
31
- }
32
- accessible={true}
33
- collapsable={false}
34
- focusable={true}
35
- onClick={[Function]}
36
- onKeyDown={[Function]}
37
- onKeyUp={[Function]}
38
- onMouseEnter={[Function]}
39
- onMouseLeave={[Function]}
40
- onResponderGrant={[Function]}
41
- onResponderMove={[Function]}
42
- onResponderRelease={[Function]}
43
- onResponderTerminate={[Function]}
44
- onResponderTerminationRequest={[Function]}
45
- onStartShouldSetResponder={[Function]}
46
- style={
47
- {
48
- "opacity": 1,
49
- }
50
- }
51
- >
52
- <View
53
- style={
54
- [
55
- undefined,
56
- ]
57
- }
58
- >
59
- <Text
60
- style={
61
- [
62
- {
63
- "margin": 8,
64
- "textAlign": "center",
65
- },
66
- ]
67
- }
68
- >
69
- button
70
- </Text>
71
- </View>
72
- </View>
73
- </RCTFocusZone>
74
- `;
75
-
76
- exports[`FocusZone No Props Three children 1`] = `
77
- <RCTFocusZone
78
- navigateAtEnd="NavigateStopAtEnds"
79
- >
80
- <View
81
- accessibilityRole="button"
82
- accessibilityState={
83
- {
84
- "busy": undefined,
85
- "checked": undefined,
86
- "disabled": undefined,
87
- "expanded": undefined,
88
- "selected": undefined,
89
- }
90
- }
91
- accessibilityValue={
92
- {
93
- "max": undefined,
94
- "min": undefined,
95
- "now": undefined,
96
- "text": undefined,
97
- }
98
- }
99
- accessible={true}
100
- collapsable={false}
101
- focusable={true}
102
- onClick={[Function]}
103
- onKeyDown={[Function]}
104
- onKeyUp={[Function]}
105
- onMouseEnter={[Function]}
106
- onMouseLeave={[Function]}
107
- onResponderGrant={[Function]}
108
- onResponderMove={[Function]}
109
- onResponderRelease={[Function]}
110
- onResponderTerminate={[Function]}
111
- onResponderTerminationRequest={[Function]}
112
- onStartShouldSetResponder={[Function]}
113
- style={
114
- {
115
- "opacity": 1,
116
- }
117
- }
118
- >
119
- <View
120
- style={
121
- [
122
- undefined,
123
- ]
124
- }
125
- >
126
- <Text
127
- style={
128
- [
129
- {
130
- "margin": 8,
131
- "textAlign": "center",
132
- },
133
- ]
134
- }
135
- >
136
- button
137
- </Text>
138
- </View>
139
- </View>
140
- <View
141
- accessibilityRole="button"
142
- accessibilityState={
143
- {
144
- "busy": undefined,
145
- "checked": undefined,
146
- "disabled": undefined,
147
- "expanded": undefined,
148
- "selected": undefined,
149
- }
150
- }
151
- accessibilityValue={
152
- {
153
- "max": undefined,
154
- "min": undefined,
155
- "now": undefined,
156
- "text": undefined,
157
- }
158
- }
159
- accessible={true}
160
- collapsable={false}
161
- focusable={true}
162
- onClick={[Function]}
163
- onKeyDown={[Function]}
164
- onKeyUp={[Function]}
165
- onMouseEnter={[Function]}
166
- onMouseLeave={[Function]}
167
- onResponderGrant={[Function]}
168
- onResponderMove={[Function]}
169
- onResponderRelease={[Function]}
170
- onResponderTerminate={[Function]}
171
- onResponderTerminationRequest={[Function]}
172
- onStartShouldSetResponder={[Function]}
173
- style={
174
- {
175
- "opacity": 1,
176
- }
177
- }
178
- >
179
- <View
180
- style={
181
- [
182
- undefined,
183
- ]
184
- }
185
- >
186
- <Text
187
- style={
188
- [
189
- {
190
- "margin": 8,
191
- "textAlign": "center",
192
- },
193
- ]
194
- }
195
- >
196
- button
197
- </Text>
198
- </View>
199
- </View>
200
- <View
201
- accessibilityRole="button"
202
- accessibilityState={
203
- {
204
- "busy": undefined,
205
- "checked": undefined,
206
- "disabled": undefined,
207
- "expanded": undefined,
208
- "selected": undefined,
209
- }
210
- }
211
- accessibilityValue={
212
- {
213
- "max": undefined,
214
- "min": undefined,
215
- "now": undefined,
216
- "text": undefined,
217
- }
218
- }
219
- accessible={true}
220
- collapsable={false}
221
- focusable={true}
222
- onClick={[Function]}
223
- onKeyDown={[Function]}
224
- onKeyUp={[Function]}
225
- onMouseEnter={[Function]}
226
- onMouseLeave={[Function]}
227
- onResponderGrant={[Function]}
228
- onResponderMove={[Function]}
229
- onResponderRelease={[Function]}
230
- onResponderTerminate={[Function]}
231
- onResponderTerminationRequest={[Function]}
232
- onStartShouldSetResponder={[Function]}
233
- style={
234
- {
235
- "opacity": 1,
236
- }
237
- }
238
- >
239
- <View
240
- style={
241
- [
242
- undefined,
243
- ]
244
- }
245
- >
246
- <Text
247
- style={
248
- [
249
- {
250
- "margin": 8,
251
- "textAlign": "center",
252
- },
253
- ]
254
- }
255
- >
256
- button
257
- </Text>
258
- </View>
259
- </View>
260
- </RCTFocusZone>
261
- `;
262
-
263
- exports[`FocusZone No Props Two children 1`] = `
264
- <RCTFocusZone
265
- navigateAtEnd="NavigateStopAtEnds"
266
- >
267
- <View
268
- accessibilityRole="button"
269
- accessibilityState={
270
- {
271
- "busy": undefined,
272
- "checked": undefined,
273
- "disabled": undefined,
274
- "expanded": undefined,
275
- "selected": undefined,
276
- }
277
- }
278
- accessibilityValue={
279
- {
280
- "max": undefined,
281
- "min": undefined,
282
- "now": undefined,
283
- "text": undefined,
284
- }
285
- }
286
- accessible={true}
287
- collapsable={false}
288
- focusable={true}
289
- onClick={[Function]}
290
- onKeyDown={[Function]}
291
- onKeyUp={[Function]}
292
- onMouseEnter={[Function]}
293
- onMouseLeave={[Function]}
294
- onResponderGrant={[Function]}
295
- onResponderMove={[Function]}
296
- onResponderRelease={[Function]}
297
- onResponderTerminate={[Function]}
298
- onResponderTerminationRequest={[Function]}
299
- onStartShouldSetResponder={[Function]}
300
- style={
301
- {
302
- "opacity": 1,
303
- }
304
- }
305
- >
306
- <View
307
- style={
308
- [
309
- undefined,
310
- ]
311
- }
312
- >
313
- <Text
314
- style={
315
- [
316
- {
317
- "margin": 8,
318
- "textAlign": "center",
319
- },
320
- ]
321
- }
322
- >
323
- button
324
- </Text>
325
- </View>
326
- </View>
327
- <View
328
- accessibilityRole="button"
329
- accessibilityState={
330
- {
331
- "busy": undefined,
332
- "checked": undefined,
333
- "disabled": undefined,
334
- "expanded": undefined,
335
- "selected": undefined,
336
- }
337
- }
338
- accessibilityValue={
339
- {
340
- "max": undefined,
341
- "min": undefined,
342
- "now": undefined,
343
- "text": undefined,
344
- }
345
- }
346
- accessible={true}
347
- collapsable={false}
348
- focusable={true}
349
- onClick={[Function]}
350
- onKeyDown={[Function]}
351
- onKeyUp={[Function]}
352
- onMouseEnter={[Function]}
353
- onMouseLeave={[Function]}
354
- onResponderGrant={[Function]}
355
- onResponderMove={[Function]}
356
- onResponderRelease={[Function]}
357
- onResponderTerminate={[Function]}
358
- onResponderTerminationRequest={[Function]}
359
- onStartShouldSetResponder={[Function]}
360
- style={
361
- {
362
- "opacity": 1,
363
- }
364
- }
365
- >
366
- <View
367
- style={
368
- [
369
- undefined,
370
- ]
371
- }
372
- >
373
- <Text
374
- style={
375
- [
376
- {
377
- "margin": 8,
378
- "textAlign": "center",
379
- },
380
- ]
381
- }
382
- >
383
- button
384
- </Text>
385
- </View>
386
- </View>
387
- </RCTFocusZone>
388
- `;
389
-
390
- exports[`FocusZone With Props All Props 1`] = `
391
- <RCTFocusZone
392
- disabled={false}
393
- focusZoneDirection="vertical"
394
- navigateAtEnd="NavigateStopAtEnds"
395
- use2DNavigation={true}
396
- >
397
- <View
398
- accessibilityRole="button"
399
- accessibilityState={
400
- {
401
- "busy": undefined,
402
- "checked": undefined,
403
- "disabled": undefined,
404
- "expanded": undefined,
405
- "selected": undefined,
406
- }
407
- }
408
- accessibilityValue={
409
- {
410
- "max": undefined,
411
- "min": undefined,
412
- "now": undefined,
413
- "text": undefined,
414
- }
415
- }
416
- accessible={true}
417
- collapsable={false}
418
- focusable={true}
419
- onClick={[Function]}
420
- onKeyDown={[Function]}
421
- onKeyUp={[Function]}
422
- onMouseEnter={[Function]}
423
- onMouseLeave={[Function]}
424
- onResponderGrant={[Function]}
425
- onResponderMove={[Function]}
426
- onResponderRelease={[Function]}
427
- onResponderTerminate={[Function]}
428
- onResponderTerminationRequest={[Function]}
429
- onStartShouldSetResponder={[Function]}
430
- style={
431
- {
432
- "opacity": 1,
433
- }
434
- }
435
- >
436
- <View
437
- style={
438
- [
439
- undefined,
440
- ]
441
- }
442
- >
443
- <Text
444
- style={
445
- [
446
- {
447
- "margin": 8,
448
- "textAlign": "center",
449
- },
450
- ]
451
- }
452
- >
453
- button
454
- </Text>
455
- </View>
456
- </View>
457
- <View
458
- accessibilityRole="button"
459
- accessibilityState={
460
- {
461
- "busy": undefined,
462
- "checked": undefined,
463
- "disabled": undefined,
464
- "expanded": undefined,
465
- "selected": undefined,
466
- }
467
- }
468
- accessibilityValue={
469
- {
470
- "max": undefined,
471
- "min": undefined,
472
- "now": undefined,
473
- "text": undefined,
474
- }
475
- }
476
- accessible={true}
477
- collapsable={false}
478
- focusable={true}
479
- onClick={[Function]}
480
- onKeyDown={[Function]}
481
- onKeyUp={[Function]}
482
- onMouseEnter={[Function]}
483
- onMouseLeave={[Function]}
484
- onResponderGrant={[Function]}
485
- onResponderMove={[Function]}
486
- onResponderRelease={[Function]}
487
- onResponderTerminate={[Function]}
488
- onResponderTerminationRequest={[Function]}
489
- onStartShouldSetResponder={[Function]}
490
- style={
491
- {
492
- "opacity": 1,
493
- }
494
- }
495
- >
496
- <View
497
- style={
498
- [
499
- undefined,
500
- ]
501
- }
502
- >
503
- <Text
504
- style={
505
- [
506
- {
507
- "margin": 8,
508
- "textAlign": "center",
509
- },
510
- ]
511
- }
512
- >
513
- button
514
- </Text>
515
- </View>
516
- </View>
517
- <View
518
- accessibilityRole="button"
519
- accessibilityState={
520
- {
521
- "busy": undefined,
522
- "checked": undefined,
523
- "disabled": undefined,
524
- "expanded": undefined,
525
- "selected": undefined,
526
- }
527
- }
528
- accessibilityValue={
529
- {
530
- "max": undefined,
531
- "min": undefined,
532
- "now": undefined,
533
- "text": undefined,
534
- }
535
- }
536
- accessible={true}
537
- collapsable={false}
538
- focusable={true}
539
- onClick={[Function]}
540
- onKeyDown={[Function]}
541
- onKeyUp={[Function]}
542
- onMouseEnter={[Function]}
543
- onMouseLeave={[Function]}
544
- onResponderGrant={[Function]}
545
- onResponderMove={[Function]}
546
- onResponderRelease={[Function]}
547
- onResponderTerminate={[Function]}
548
- onResponderTerminationRequest={[Function]}
549
- onStartShouldSetResponder={[Function]}
550
- style={
551
- {
552
- "opacity": 1,
553
- }
554
- }
555
- >
556
- <View
557
- style={
558
- [
559
- undefined,
560
- ]
561
- }
562
- >
563
- <Text
564
- style={
565
- [
566
- {
567
- "margin": 8,
568
- "textAlign": "center",
569
- },
570
- ]
571
- }
572
- >
573
- button
574
- </Text>
575
- </View>
576
- </View>
577
- </RCTFocusZone>
578
- `;
579
-
580
- exports[`FocusZone With Props defaultTabbableElement Prop 1`] = `
581
- <RCTFocusZone
582
- navigateAtEnd="NavigateStopAtEnds"
583
- >
584
- <View
585
- accessibilityRole="button"
586
- accessibilityState={
587
- {
588
- "busy": undefined,
589
- "checked": undefined,
590
- "disabled": undefined,
591
- "expanded": undefined,
592
- "selected": undefined,
593
- }
594
- }
595
- accessibilityValue={
596
- {
597
- "max": undefined,
598
- "min": undefined,
599
- "now": undefined,
600
- "text": undefined,
601
- }
602
- }
603
- accessible={true}
604
- collapsable={false}
605
- focusable={true}
606
- onClick={[Function]}
607
- onKeyDown={[Function]}
608
- onKeyUp={[Function]}
609
- onMouseEnter={[Function]}
610
- onMouseLeave={[Function]}
611
- onResponderGrant={[Function]}
612
- onResponderMove={[Function]}
613
- onResponderRelease={[Function]}
614
- onResponderTerminate={[Function]}
615
- onResponderTerminationRequest={[Function]}
616
- onStartShouldSetResponder={[Function]}
617
- style={
618
- {
619
- "opacity": 1,
620
- }
621
- }
622
- >
623
- <View
624
- style={
625
- [
626
- undefined,
627
- ]
628
- }
629
- >
630
- <Text
631
- style={
632
- [
633
- {
634
- "margin": 8,
635
- "textAlign": "center",
636
- },
637
- ]
638
- }
639
- >
640
- button
641
- </Text>
642
- </View>
643
- </View>
644
- <View
645
- accessibilityRole="button"
646
- accessibilityState={
647
- {
648
- "busy": undefined,
649
- "checked": undefined,
650
- "disabled": undefined,
651
- "expanded": undefined,
652
- "selected": undefined,
653
- }
654
- }
655
- accessibilityValue={
656
- {
657
- "max": undefined,
658
- "min": undefined,
659
- "now": undefined,
660
- "text": undefined,
661
- }
662
- }
663
- accessible={true}
664
- collapsable={false}
665
- focusable={true}
666
- onClick={[Function]}
667
- onKeyDown={[Function]}
668
- onKeyUp={[Function]}
669
- onMouseEnter={[Function]}
670
- onMouseLeave={[Function]}
671
- onResponderGrant={[Function]}
672
- onResponderMove={[Function]}
673
- onResponderRelease={[Function]}
674
- onResponderTerminate={[Function]}
675
- onResponderTerminationRequest={[Function]}
676
- onStartShouldSetResponder={[Function]}
677
- style={
678
- {
679
- "opacity": 1,
680
- }
681
- }
682
- >
683
- <View
684
- style={
685
- [
686
- undefined,
687
- ]
688
- }
689
- >
690
- <Text
691
- style={
692
- [
693
- {
694
- "margin": 8,
695
- "textAlign": "center",
696
- },
697
- ]
698
- }
699
- >
700
- button
701
- </Text>
702
- </View>
703
- </View>
704
- <View
705
- accessibilityRole="button"
706
- accessibilityState={
707
- {
708
- "busy": undefined,
709
- "checked": undefined,
710
- "disabled": undefined,
711
- "expanded": undefined,
712
- "selected": undefined,
713
- }
714
- }
715
- accessibilityValue={
716
- {
717
- "max": undefined,
718
- "min": undefined,
719
- "now": undefined,
720
- "text": undefined,
721
- }
722
- }
723
- accessible={true}
724
- collapsable={false}
725
- focusable={true}
726
- onClick={[Function]}
727
- onKeyDown={[Function]}
728
- onKeyUp={[Function]}
729
- onMouseEnter={[Function]}
730
- onMouseLeave={[Function]}
731
- onResponderGrant={[Function]}
732
- onResponderMove={[Function]}
733
- onResponderRelease={[Function]}
734
- onResponderTerminate={[Function]}
735
- onResponderTerminationRequest={[Function]}
736
- onStartShouldSetResponder={[Function]}
737
- style={
738
- {
739
- "opacity": 1,
740
- }
741
- }
742
- >
743
- <View
744
- style={
745
- [
746
- undefined,
747
- ]
748
- }
749
- >
750
- <Text
751
- style={
752
- [
753
- {
754
- "margin": 8,
755
- "textAlign": "center",
756
- },
757
- ]
758
- }
759
- >
760
- button
761
- </Text>
762
- </View>
763
- </View>
764
- </RCTFocusZone>
765
- `;
766
-
767
- exports[`FocusZone With Props disabled Prop 1`] = `
768
- <RCTFocusZone
769
- disabled={true}
770
- navigateAtEnd="NavigateStopAtEnds"
771
- >
772
- <View
773
- accessibilityRole="button"
774
- accessibilityState={
775
- {
776
- "busy": undefined,
777
- "checked": undefined,
778
- "disabled": undefined,
779
- "expanded": undefined,
780
- "selected": undefined,
781
- }
782
- }
783
- accessibilityValue={
784
- {
785
- "max": undefined,
786
- "min": undefined,
787
- "now": undefined,
788
- "text": undefined,
789
- }
790
- }
791
- accessible={true}
792
- collapsable={false}
793
- focusable={true}
794
- onClick={[Function]}
795
- onKeyDown={[Function]}
796
- onKeyUp={[Function]}
797
- onMouseEnter={[Function]}
798
- onMouseLeave={[Function]}
799
- onResponderGrant={[Function]}
800
- onResponderMove={[Function]}
801
- onResponderRelease={[Function]}
802
- onResponderTerminate={[Function]}
803
- onResponderTerminationRequest={[Function]}
804
- onStartShouldSetResponder={[Function]}
805
- style={
806
- {
807
- "opacity": 1,
808
- }
809
- }
810
- >
811
- <View
812
- style={
813
- [
814
- undefined,
815
- ]
816
- }
817
- >
818
- <Text
819
- style={
820
- [
821
- {
822
- "margin": 8,
823
- "textAlign": "center",
824
- },
825
- ]
826
- }
827
- >
828
- button
829
- </Text>
830
- </View>
831
- </View>
832
- <View
833
- accessibilityRole="button"
834
- accessibilityState={
835
- {
836
- "busy": undefined,
837
- "checked": undefined,
838
- "disabled": undefined,
839
- "expanded": undefined,
840
- "selected": undefined,
841
- }
842
- }
843
- accessibilityValue={
844
- {
845
- "max": undefined,
846
- "min": undefined,
847
- "now": undefined,
848
- "text": undefined,
849
- }
850
- }
851
- accessible={true}
852
- collapsable={false}
853
- focusable={true}
854
- onClick={[Function]}
855
- onKeyDown={[Function]}
856
- onKeyUp={[Function]}
857
- onMouseEnter={[Function]}
858
- onMouseLeave={[Function]}
859
- onResponderGrant={[Function]}
860
- onResponderMove={[Function]}
861
- onResponderRelease={[Function]}
862
- onResponderTerminate={[Function]}
863
- onResponderTerminationRequest={[Function]}
864
- onStartShouldSetResponder={[Function]}
865
- style={
866
- {
867
- "opacity": 1,
868
- }
869
- }
870
- >
871
- <View
872
- style={
873
- [
874
- undefined,
875
- ]
876
- }
877
- >
878
- <Text
879
- style={
880
- [
881
- {
882
- "margin": 8,
883
- "textAlign": "center",
884
- },
885
- ]
886
- }
887
- >
888
- button
889
- </Text>
890
- </View>
891
- </View>
892
- <View
893
- accessibilityRole="button"
894
- accessibilityState={
895
- {
896
- "busy": undefined,
897
- "checked": undefined,
898
- "disabled": undefined,
899
- "expanded": undefined,
900
- "selected": undefined,
901
- }
902
- }
903
- accessibilityValue={
904
- {
905
- "max": undefined,
906
- "min": undefined,
907
- "now": undefined,
908
- "text": undefined,
909
- }
910
- }
911
- accessible={true}
912
- collapsable={false}
913
- focusable={true}
914
- onClick={[Function]}
915
- onKeyDown={[Function]}
916
- onKeyUp={[Function]}
917
- onMouseEnter={[Function]}
918
- onMouseLeave={[Function]}
919
- onResponderGrant={[Function]}
920
- onResponderMove={[Function]}
921
- onResponderRelease={[Function]}
922
- onResponderTerminate={[Function]}
923
- onResponderTerminationRequest={[Function]}
924
- onStartShouldSetResponder={[Function]}
925
- style={
926
- {
927
- "opacity": 1,
928
- }
929
- }
930
- >
931
- <View
932
- style={
933
- [
934
- undefined,
935
- ]
936
- }
937
- >
938
- <Text
939
- style={
940
- [
941
- {
942
- "margin": 8,
943
- "textAlign": "center",
944
- },
945
- ]
946
- }
947
- >
948
- button
949
- </Text>
950
- </View>
951
- </View>
952
- </RCTFocusZone>
953
- `;
954
-
955
- exports[`FocusZone With Props focusZoneDirection Prop 1`] = `
956
- <RCTFocusZone
957
- focusZoneDirection="bidirectional"
958
- navigateAtEnd="NavigateStopAtEnds"
959
- >
960
- <View
961
- accessibilityRole="button"
962
- accessibilityState={
963
- {
964
- "busy": undefined,
965
- "checked": undefined,
966
- "disabled": undefined,
967
- "expanded": undefined,
968
- "selected": undefined,
969
- }
970
- }
971
- accessibilityValue={
972
- {
973
- "max": undefined,
974
- "min": undefined,
975
- "now": undefined,
976
- "text": undefined,
977
- }
978
- }
979
- accessible={true}
980
- collapsable={false}
981
- focusable={true}
982
- onClick={[Function]}
983
- onKeyDown={[Function]}
984
- onKeyUp={[Function]}
985
- onMouseEnter={[Function]}
986
- onMouseLeave={[Function]}
987
- onResponderGrant={[Function]}
988
- onResponderMove={[Function]}
989
- onResponderRelease={[Function]}
990
- onResponderTerminate={[Function]}
991
- onResponderTerminationRequest={[Function]}
992
- onStartShouldSetResponder={[Function]}
993
- style={
994
- {
995
- "opacity": 1,
996
- }
997
- }
998
- >
999
- <View
1000
- style={
1001
- [
1002
- undefined,
1003
- ]
1004
- }
1005
- >
1006
- <Text
1007
- style={
1008
- [
1009
- {
1010
- "margin": 8,
1011
- "textAlign": "center",
1012
- },
1013
- ]
1014
- }
1015
- >
1016
- button
1017
- </Text>
1018
- </View>
1019
- </View>
1020
- <View
1021
- accessibilityRole="button"
1022
- accessibilityState={
1023
- {
1024
- "busy": undefined,
1025
- "checked": undefined,
1026
- "disabled": undefined,
1027
- "expanded": undefined,
1028
- "selected": undefined,
1029
- }
1030
- }
1031
- accessibilityValue={
1032
- {
1033
- "max": undefined,
1034
- "min": undefined,
1035
- "now": undefined,
1036
- "text": undefined,
1037
- }
1038
- }
1039
- accessible={true}
1040
- collapsable={false}
1041
- focusable={true}
1042
- onClick={[Function]}
1043
- onKeyDown={[Function]}
1044
- onKeyUp={[Function]}
1045
- onMouseEnter={[Function]}
1046
- onMouseLeave={[Function]}
1047
- onResponderGrant={[Function]}
1048
- onResponderMove={[Function]}
1049
- onResponderRelease={[Function]}
1050
- onResponderTerminate={[Function]}
1051
- onResponderTerminationRequest={[Function]}
1052
- onStartShouldSetResponder={[Function]}
1053
- style={
1054
- {
1055
- "opacity": 1,
1056
- }
1057
- }
1058
- >
1059
- <View
1060
- style={
1061
- [
1062
- undefined,
1063
- ]
1064
- }
1065
- >
1066
- <Text
1067
- style={
1068
- [
1069
- {
1070
- "margin": 8,
1071
- "textAlign": "center",
1072
- },
1073
- ]
1074
- }
1075
- >
1076
- button
1077
- </Text>
1078
- </View>
1079
- </View>
1080
- <View
1081
- accessibilityRole="button"
1082
- accessibilityState={
1083
- {
1084
- "busy": undefined,
1085
- "checked": undefined,
1086
- "disabled": undefined,
1087
- "expanded": undefined,
1088
- "selected": undefined,
1089
- }
1090
- }
1091
- accessibilityValue={
1092
- {
1093
- "max": undefined,
1094
- "min": undefined,
1095
- "now": undefined,
1096
- "text": undefined,
1097
- }
1098
- }
1099
- accessible={true}
1100
- collapsable={false}
1101
- focusable={true}
1102
- onClick={[Function]}
1103
- onKeyDown={[Function]}
1104
- onKeyUp={[Function]}
1105
- onMouseEnter={[Function]}
1106
- onMouseLeave={[Function]}
1107
- onResponderGrant={[Function]}
1108
- onResponderMove={[Function]}
1109
- onResponderRelease={[Function]}
1110
- onResponderTerminate={[Function]}
1111
- onResponderTerminationRequest={[Function]}
1112
- onStartShouldSetResponder={[Function]}
1113
- style={
1114
- {
1115
- "opacity": 1,
1116
- }
1117
- }
1118
- >
1119
- <View
1120
- style={
1121
- [
1122
- undefined,
1123
- ]
1124
- }
1125
- >
1126
- <Text
1127
- style={
1128
- [
1129
- {
1130
- "margin": 8,
1131
- "textAlign": "center",
1132
- },
1133
- ]
1134
- }
1135
- >
1136
- button
1137
- </Text>
1138
- </View>
1139
- </View>
1140
- </RCTFocusZone>
1141
- `;
1142
-
1143
- exports[`FocusZone With Props isCircularNavigation Prop 1`] = `
1144
- <RCTFocusZone
1145
- navigateAtEnd="NavigateWrap"
1146
- >
1147
- <View
1148
- accessibilityRole="button"
1149
- accessibilityState={
1150
- {
1151
- "busy": undefined,
1152
- "checked": undefined,
1153
- "disabled": undefined,
1154
- "expanded": undefined,
1155
- "selected": undefined,
1156
- }
1157
- }
1158
- accessibilityValue={
1159
- {
1160
- "max": undefined,
1161
- "min": undefined,
1162
- "now": undefined,
1163
- "text": undefined,
1164
- }
1165
- }
1166
- accessible={true}
1167
- collapsable={false}
1168
- focusable={true}
1169
- onClick={[Function]}
1170
- onKeyDown={[Function]}
1171
- onKeyUp={[Function]}
1172
- onMouseEnter={[Function]}
1173
- onMouseLeave={[Function]}
1174
- onResponderGrant={[Function]}
1175
- onResponderMove={[Function]}
1176
- onResponderRelease={[Function]}
1177
- onResponderTerminate={[Function]}
1178
- onResponderTerminationRequest={[Function]}
1179
- onStartShouldSetResponder={[Function]}
1180
- style={
1181
- {
1182
- "opacity": 1,
1183
- }
1184
- }
1185
- >
1186
- <View
1187
- style={
1188
- [
1189
- undefined,
1190
- ]
1191
- }
1192
- >
1193
- <Text
1194
- style={
1195
- [
1196
- {
1197
- "margin": 8,
1198
- "textAlign": "center",
1199
- },
1200
- ]
1201
- }
1202
- >
1203
- button
1204
- </Text>
1205
- </View>
1206
- </View>
1207
- <View
1208
- accessibilityRole="button"
1209
- accessibilityState={
1210
- {
1211
- "busy": undefined,
1212
- "checked": undefined,
1213
- "disabled": undefined,
1214
- "expanded": undefined,
1215
- "selected": undefined,
1216
- }
1217
- }
1218
- accessibilityValue={
1219
- {
1220
- "max": undefined,
1221
- "min": undefined,
1222
- "now": undefined,
1223
- "text": undefined,
1224
- }
1225
- }
1226
- accessible={true}
1227
- collapsable={false}
1228
- focusable={true}
1229
- onClick={[Function]}
1230
- onKeyDown={[Function]}
1231
- onKeyUp={[Function]}
1232
- onMouseEnter={[Function]}
1233
- onMouseLeave={[Function]}
1234
- onResponderGrant={[Function]}
1235
- onResponderMove={[Function]}
1236
- onResponderRelease={[Function]}
1237
- onResponderTerminate={[Function]}
1238
- onResponderTerminationRequest={[Function]}
1239
- onStartShouldSetResponder={[Function]}
1240
- style={
1241
- {
1242
- "opacity": 1,
1243
- }
1244
- }
1245
- >
1246
- <View
1247
- style={
1248
- [
1249
- undefined,
1250
- ]
1251
- }
1252
- >
1253
- <Text
1254
- style={
1255
- [
1256
- {
1257
- "margin": 8,
1258
- "textAlign": "center",
1259
- },
1260
- ]
1261
- }
1262
- >
1263
- button
1264
- </Text>
1265
- </View>
1266
- </View>
1267
- <View
1268
- accessibilityRole="button"
1269
- accessibilityState={
1270
- {
1271
- "busy": undefined,
1272
- "checked": undefined,
1273
- "disabled": undefined,
1274
- "expanded": undefined,
1275
- "selected": undefined,
1276
- }
1277
- }
1278
- accessibilityValue={
1279
- {
1280
- "max": undefined,
1281
- "min": undefined,
1282
- "now": undefined,
1283
- "text": undefined,
1284
- }
1285
- }
1286
- accessible={true}
1287
- collapsable={false}
1288
- focusable={true}
1289
- onClick={[Function]}
1290
- onKeyDown={[Function]}
1291
- onKeyUp={[Function]}
1292
- onMouseEnter={[Function]}
1293
- onMouseLeave={[Function]}
1294
- onResponderGrant={[Function]}
1295
- onResponderMove={[Function]}
1296
- onResponderRelease={[Function]}
1297
- onResponderTerminate={[Function]}
1298
- onResponderTerminationRequest={[Function]}
1299
- onStartShouldSetResponder={[Function]}
1300
- style={
1301
- {
1302
- "opacity": 1,
1303
- }
1304
- }
1305
- >
1306
- <View
1307
- style={
1308
- [
1309
- undefined,
1310
- ]
1311
- }
1312
- >
1313
- <Text
1314
- style={
1315
- [
1316
- {
1317
- "margin": 8,
1318
- "textAlign": "center",
1319
- },
1320
- ]
1321
- }
1322
- >
1323
- button
1324
- </Text>
1325
- </View>
1326
- </View>
1327
- </RCTFocusZone>
1328
- `;
1329
-
1330
- exports[`FocusZone With Props use2DNavigation Prop 1`] = `
1331
- <RCTFocusZone
1332
- navigateAtEnd="NavigateStopAtEnds"
1333
- use2DNavigation={true}
1334
- >
1335
- <View
1336
- accessibilityRole="button"
1337
- accessibilityState={
1338
- {
1339
- "busy": undefined,
1340
- "checked": undefined,
1341
- "disabled": undefined,
1342
- "expanded": undefined,
1343
- "selected": undefined,
1344
- }
1345
- }
1346
- accessibilityValue={
1347
- {
1348
- "max": undefined,
1349
- "min": undefined,
1350
- "now": undefined,
1351
- "text": undefined,
1352
- }
1353
- }
1354
- accessible={true}
1355
- collapsable={false}
1356
- focusable={true}
1357
- onClick={[Function]}
1358
- onKeyDown={[Function]}
1359
- onKeyUp={[Function]}
1360
- onMouseEnter={[Function]}
1361
- onMouseLeave={[Function]}
1362
- onResponderGrant={[Function]}
1363
- onResponderMove={[Function]}
1364
- onResponderRelease={[Function]}
1365
- onResponderTerminate={[Function]}
1366
- onResponderTerminationRequest={[Function]}
1367
- onStartShouldSetResponder={[Function]}
1368
- style={
1369
- {
1370
- "opacity": 1,
1371
- }
1372
- }
1373
- >
1374
- <View
1375
- style={
1376
- [
1377
- undefined,
1378
- ]
1379
- }
1380
- >
1381
- <Text
1382
- style={
1383
- [
1384
- {
1385
- "margin": 8,
1386
- "textAlign": "center",
1387
- },
1388
- ]
1389
- }
1390
- >
1391
- button
1392
- </Text>
1393
- </View>
1394
- </View>
1395
- <View
1396
- accessibilityRole="button"
1397
- accessibilityState={
1398
- {
1399
- "busy": undefined,
1400
- "checked": undefined,
1401
- "disabled": undefined,
1402
- "expanded": undefined,
1403
- "selected": undefined,
1404
- }
1405
- }
1406
- accessibilityValue={
1407
- {
1408
- "max": undefined,
1409
- "min": undefined,
1410
- "now": undefined,
1411
- "text": undefined,
1412
- }
1413
- }
1414
- accessible={true}
1415
- collapsable={false}
1416
- focusable={true}
1417
- onClick={[Function]}
1418
- onKeyDown={[Function]}
1419
- onKeyUp={[Function]}
1420
- onMouseEnter={[Function]}
1421
- onMouseLeave={[Function]}
1422
- onResponderGrant={[Function]}
1423
- onResponderMove={[Function]}
1424
- onResponderRelease={[Function]}
1425
- onResponderTerminate={[Function]}
1426
- onResponderTerminationRequest={[Function]}
1427
- onStartShouldSetResponder={[Function]}
1428
- style={
1429
- {
1430
- "opacity": 1,
1431
- }
1432
- }
1433
- >
1434
- <View
1435
- style={
1436
- [
1437
- undefined,
1438
- ]
1439
- }
1440
- >
1441
- <Text
1442
- style={
1443
- [
1444
- {
1445
- "margin": 8,
1446
- "textAlign": "center",
1447
- },
1448
- ]
1449
- }
1450
- >
1451
- button
1452
- </Text>
1453
- </View>
1454
- </View>
1455
- <View
1456
- accessibilityRole="button"
1457
- accessibilityState={
1458
- {
1459
- "busy": undefined,
1460
- "checked": undefined,
1461
- "disabled": undefined,
1462
- "expanded": undefined,
1463
- "selected": undefined,
1464
- }
1465
- }
1466
- accessibilityValue={
1467
- {
1468
- "max": undefined,
1469
- "min": undefined,
1470
- "now": undefined,
1471
- "text": undefined,
1472
- }
1473
- }
1474
- accessible={true}
1475
- collapsable={false}
1476
- focusable={true}
1477
- onClick={[Function]}
1478
- onKeyDown={[Function]}
1479
- onKeyUp={[Function]}
1480
- onMouseEnter={[Function]}
1481
- onMouseLeave={[Function]}
1482
- onResponderGrant={[Function]}
1483
- onResponderMove={[Function]}
1484
- onResponderRelease={[Function]}
1485
- onResponderTerminate={[Function]}
1486
- onResponderTerminationRequest={[Function]}
1487
- onStartShouldSetResponder={[Function]}
1488
- style={
1489
- {
1490
- "opacity": 1,
1491
- }
1492
- }
1493
- >
1494
- <View
1495
- style={
1496
- [
1497
- undefined,
1498
- ]
1499
- }
1500
- >
1501
- <Text
1502
- style={
1503
- [
1504
- {
1505
- "margin": 8,
1506
- "textAlign": "center",
1507
- },
1508
- ]
1509
- }
1510
- >
1511
- button
1512
- </Text>
1513
- </View>
1514
- </View>
1515
- </RCTFocusZone>
1516
- `;