File tree Expand file tree Collapse file tree 3 files changed +28
-66
lines changed Expand file tree Collapse file tree 3 files changed +28
-66
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import type {
23
23
AccessibilityValue ,
24
24
} from '../../Components/View/ViewAccessibility' ;
25
25
import type { EdgeInsetsProp } from '../../StyleSheet/EdgeInsetsPropType' ;
26
+ import type { CursorValue } from '../../StyleSheet/StyleSheetTypes' ;
26
27
import type {
27
28
BlurEvent ,
28
29
FocusEvent ,
@@ -54,28 +55,7 @@ type Props = $ReadOnly<{|
54
55
accessibilityViewIsModal ?: ?boolean ,
55
56
accessible ?: ?boolean ,
56
57
children ?: ?React . Node ,
57
- cursor ?: ?(
58
- | 'alias'
59
- | 'auto'
60
- | 'col-resize'
61
- | 'context-menu'
62
- | 'copy'
63
- | 'crosshair'
64
- | 'default'
65
- | 'disappearing-item'
66
- | 'e-resize'
67
- | 'grab'
68
- | 'grabbing'
69
- | 'n-resize'
70
- | 'no-drop'
71
- | 'not-allowed'
72
- | 'pointer'
73
- | 'row-resize'
74
- | 's-resize'
75
- | 'text'
76
- | 'vertical-text'
77
- | 'w-resize'
78
- ) ,
58
+ cursor ?: ?CursorValue ,
79
59
delayLongPress ?: ?number ,
80
60
delayPressIn ?: ?number ,
81
61
delayPressOut ?: ?number ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import type {
23
23
import type { EdgeInsetsProp } from '../../StyleSheet/EdgeInsetsPropType' ;
24
24
import type { Node } from 'react' ;
25
25
import type { ViewStyleProp } from '../../StyleSheet/StyleSheet' ;
26
+ import type { CursorValue } from '../../StyleSheet/StyleSheetTypes' ;
26
27
import type {
27
28
AccessibilityRole ,
28
29
AccessibilityState ,
@@ -630,26 +631,5 @@ export type ViewProps = $ReadOnly<{|
630
631
/*
631
632
* Sets the type of mouse cursor, to show when the mouse pointer is over the view.
632
633
*/
633
- cursor ?: ?(
634
- | 'alias'
635
- | 'auto'
636
- | 'col-resize'
637
- | 'context-menu'
638
- | 'copy'
639
- | 'crosshair'
640
- | 'default'
641
- | 'disappearing-item'
642
- | 'e-resize'
643
- | 'grab'
644
- | 'grabbing'
645
- | 'n-resize'
646
- | 'no-drop'
647
- | 'not-allowed'
648
- | 'pointer'
649
- | 'row-resize'
650
- | 's-resize'
651
- | 'text'
652
- | 'vertical-text'
653
- | 'w-resize'
654
- ) ,
634
+ cursor ?: ?CursorValue ,
655
635
| } > ;
Original file line number Diff line number Diff line change @@ -14,6 +14,29 @@ const AnimatedNode = require('../Animated/src/nodes/AnimatedNode');
14
14
15
15
import type { NativeColorValue } from './PlatformColorValueTypes' ;
16
16
17
+ export type CursorValue = ?(
18
+ | 'alias'
19
+ | 'auto'
20
+ | 'col-resize'
21
+ | 'context-menu'
22
+ | 'copy'
23
+ | 'crosshair'
24
+ | 'default'
25
+ | 'disappearing-item'
26
+ | 'e-resize'
27
+ | 'grab'
28
+ | 'grabbing'
29
+ | 'n-resize'
30
+ | 'no-drop'
31
+ | 'not-allowed'
32
+ | 'pointer'
33
+ | 'row-resize'
34
+ | 's-resize'
35
+ | 'text'
36
+ | 'vertical-text'
37
+ | 'w-resize'
38
+ )
39
+
17
40
export type ColorValue = null | string | NativeColorValue ;
18
41
19
42
export type ColorArrayValue = null | $ReadOnlyArray < ColorValue > ;
@@ -583,28 +606,7 @@ export type ____ViewStyle_Internal = $ReadOnly<{|
583
606
borderTopWidth ?: number | AnimatedNode ,
584
607
opacity ?: number | AnimatedNode ,
585
608
elevation ?: number ,
586
- cursor ?: ?(
587
- | 'alias'
588
- | 'auto'
589
- | 'col-resize'
590
- | 'context-menu'
591
- | 'copy'
592
- | 'crosshair'
593
- | 'default'
594
- | 'disappearing-item'
595
- | 'e-resize'
596
- | 'grab'
597
- | 'grabbing'
598
- | 'n-resize'
599
- | 'no-drop'
600
- | 'not-allowed'
601
- | 'pointer'
602
- | 'row-resize'
603
- | 's-resize'
604
- | 'text'
605
- | 'vertical-text'
606
- | 'w-resize'
607
- ) ,
609
+ cursor ?: CursorValue ,
608
610
| } > ;
609
611
610
612
export type ____FontWeight_Internal =
You can’t perform that action at this time.
0 commit comments