-
-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathText.res
More file actions
78 lines (71 loc) · 1.89 KB
/
Text.res
File metadata and controls
78 lines (71 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include NativeElement
type android_hyphenationFrequency = [
| #normal
| #none
| #full
]
type dataDetectorType = [
| #phoneNumber
| #link
| #address
| #calendarEvent
| #none
| #all
]
type ellipsizeMode = [#clip | #head | #middle | #tail]
type textBreakStrategy = [#simple | #highQuality | #balanced]
type lineBreakStrategyIOS = [
| #none
| #standard
| #"hangul-word"
| #"push-out"
]
type accessibilityProps = {
accessible?: bool,
accessibilityActions?: array<Accessibility.actionInfo>,
accessibilityHint?: string,
accessibilityLabel?: string,
accessibilityLanguage?: string,
accessibilityRole?: Accessibility.role,
// `role` has precedence over the accessibilityRole prop
role?: Role.t,
accessibilityState?: Accessibility.state,
onAccessibilityAction?: Accessibility.actionEvent => unit,
}
type props = {
ref?: ref,
...accessibilityProps,
...View.gestureResponderHandlersProps,
...View.webProps,
// view props
nativeID?: string,
onLayout?: Event.layoutEvent => unit,
style?: Style.t,
testID?: string,
children?: React.element,
// text props
adjustsFontSizeToFit?: bool,
allowFontScaling?: bool,
android_hyphenationFrequency?: android_hyphenationFrequency,
ariaLevel?: int,
dataDetectorTypes?: array<dataDetectorType>,
disabled?: bool,
ellipsizeMode?: ellipsizeMode,
lineBreakStrategyIOS?: lineBreakStrategyIOS,
maxFontSizeMultiplier?: int,
minimumFontScale?: float,
numberOfLines?: int,
onLongPress?: Event.pressEvent => unit,
onPress?: Event.pressEvent => unit,
onPressIn?: Event.pressEvent => unit,
onPressOut?: Event.pressEvent => unit,
onTextLayout?: Event.textLayoutEvent => unit,
pressRetentionOffset?: Rect.t,
selectable?: bool,
selectionColor?: string,
suppressHighlighting?: bool,
textBreakStrategy?: textBreakStrategy,
value?: string,
}
@module("react-native")
external make: React.component<props> = "Text"