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
Called when the element is clicked. Inherited View Prop.
13
+
### `overflow`
16
14
17
-
| type |required|
15
+
| type |default|
18
16
|:--|:--|
19
-
|function | No|
17
+
|enum('visible', 'hidden') | 'visible'|
20
18
21
-
### `onKeyDownCapture`
19
+
### `opacity`
22
20
23
-
Occurs when the onKeyDown event is being routed. onKeyDown is the corresponding bubbling event. On Windows, this corresponds to PreviewKeyDown
21
+
Sets the transparency of the view.
24
22
25
23
| type | required |
26
24
|:--|:--|
27
25
| number | No |
28
26
29
-
### `onKeyUpCapture`
27
+
### `snapToInterval`
30
28
31
-
Occurs when the onKeyUp event is being routed. onKeyUp is the corresponding bubbling event. On Windows, this corresponds to PreviewKeyUp.
29
+
When set, causes the scroll view to stop at multiples of the value of snapToInterval. This can be used for paginating through children that have lengths smaller than the scroll view. Typically used in combination with snapToAlignment and decelerationRate="fast". Overrides less configurable pagingEnabled prop.
32
30
33
31
| type | required |
34
32
|:--|:--|
35
33
| number | No |
36
34
37
-
### `overflow`
38
-
39
-
| type | default |
40
-
|:--|:--|
41
-
| enum('visible', 'hidden') | 'visible' |
42
-
43
-
### `zIndex`
44
-
45
-
zIndex controls which components display on top of others. Normally, you don't use zIndex. Components render according to their order in the document tree, so later components draw over earlier ones. zIndex may be useful if you have animations or custom modal interfaces where you don't want this behavior.
35
+
### `snapToAlignment`
46
36
47
-
It works like the CSS z-index property - components with a larger zIndex will render on top. Think of the z-direction like it's pointing from the phone into your eyeball. See https://developer.mozilla.org/en-US/docs/Web/CSS/z-index for more details.
37
+
When snapToInterval is set, snapToAlignment will define the relationship of the snapping to the scroll view.
48
38
49
39
| type | required |
50
40
|:--|:--|
51
-
|number| No |
41
+
|enum('start', 'center', 'end')| No |
52
42
53
-
### `tooltip`
43
+
### `pagingEnabled`
54
44
55
-
Text shown on hover. While tooltip support isn’t fully available for all components, it does work with some props such as `Text`.
45
+
When true, the scroll view stops on multiples of the scroll view's size when scrolling. This can be used for horizontal pagination.
56
46
57
-
| type |required|
47
+
| type |default|
58
48
|:--|:--|
59
-
|string|No|
49
+
|bool|false|
60
50
61
-
### `opacity`
51
+
### `selectable`
62
52
63
-
Sets the transparency of the view.
53
+
Lets the user select text, to use the native copy and paste functionality.
64
54
65
-
| type |required|
55
+
| type |default|
66
56
|:--|:--|
67
-
|number|No|
57
+
|bool|false|
68
58
69
-
### `onMomentumScrollBegin`
59
+
### `selectionColor`
70
60
71
-
Called when the momentum scroll starts (scroll which occurs as the ScrollView starts gliding).
61
+
The highlight color of the text.
72
62
73
63
| type | required |
74
64
|:--|:--|
75
-
| function | No |
65
+
| color | No |
66
+
67
+
### `textAlign`
76
68
77
-
### `onMomentumScrollEnd`
69
+
Align the input text to the left, center, or right sides of the input field.
78
70
79
-
Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).
71
+
Possible values for textAlign are:
72
+
73
+
- left
74
+
- center
75
+
- right
80
76
81
77
| type | required |
82
78
|:--|:--|
83
-
|function| No |
79
+
|enum('left', 'center', 'right')| No |
84
80
85
-
### `pagingEnabled`
81
+
### `contextMenuHidden`
86
82
87
-
When true, the scroll view stops on multiples of the scroll view's size when scrolling. This can be used for horizontal pagination.
83
+
If true, context menu is hidden. The default value is false.
88
84
89
-
| type |default|
85
+
| type |required|
90
86
|:--|:--|
91
-
| bool |false|
87
+
| bool |No|
92
88
93
-
### `selectable`
89
+
### `writingDirection`
94
90
95
-
Lets the user select text, to use the native copy and paste functionality.
0 commit comments