@rootnative/web 0.0.0-alpha.3 → 0.0.0-alpha.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.
- package/CHANGELOG.md +21 -1
- package/dist/apis/AccessibilityInfo/index.d.ts +30 -0
- package/dist/apis/AccessibilityInfo/index.js +84 -0
- package/dist/apis/AccessibilityInfo/index.js.map +1 -0
- package/dist/apis/Alert/index.d.ts +22 -0
- package/dist/apis/Alert/index.js +141 -0
- package/dist/apis/Alert/index.js.map +1 -0
- package/dist/apis/AppState/index.d.ts +21 -0
- package/dist/apis/AppState/index.js +86 -0
- package/dist/apis/AppState/index.js.map +1 -0
- package/dist/apis/Appearance/index.d.ts +14 -0
- package/dist/apis/Appearance/index.js +39 -0
- package/dist/apis/Appearance/index.js.map +1 -0
- package/dist/apis/BackHandler/index.d.ts +10 -0
- package/dist/apis/BackHandler/index.js +16 -0
- package/dist/apis/BackHandler/index.js.map +1 -0
- package/dist/apis/Clipboard/index.d.ts +9 -0
- package/dist/apis/Clipboard/index.js +45 -0
- package/dist/apis/Clipboard/index.js.map +1 -0
- package/dist/apis/Dimensions/index.d.ts +19 -0
- package/dist/apis/Dimensions/index.js +66 -0
- package/dist/apis/Dimensions/index.js.map +1 -0
- package/dist/apis/I18nManager/index.d.ts +14 -0
- package/dist/apis/I18nManager/index.js +33 -0
- package/dist/apis/I18nManager/index.js.map +1 -0
- package/dist/apis/Keyboard/index.d.ts +36 -0
- package/dist/apis/Keyboard/index.js +149 -0
- package/dist/apis/Keyboard/index.js.map +1 -0
- package/dist/apis/Linking/index.d.ts +29 -0
- package/dist/apis/Linking/index.js +86 -0
- package/dist/apis/Linking/index.js.map +1 -0
- package/dist/apis/PanResponder/index.d.ts +50 -0
- package/dist/apis/PanResponder/index.js +239 -0
- package/dist/apis/PanResponder/index.js.map +1 -0
- package/dist/apis/PixelRatio/index.d.ts +8 -0
- package/dist/apis/PixelRatio/index.js +15 -0
- package/dist/apis/PixelRatio/index.js.map +1 -0
- package/dist/apis/Platform/index.d.ts +4 -0
- package/dist/apis/Platform/index.js +28 -0
- package/dist/apis/Platform/index.js.map +1 -0
- package/dist/apis/Platform/types.d.ts +19 -0
- package/dist/apis/Share/index.d.ts +30 -0
- package/dist/apis/Share/index.js +34 -0
- package/dist/apis/Share/index.js.map +1 -0
- package/dist/apis/StyleSheet/index.d.ts +23 -0
- package/dist/apis/StyleSheet/index.js +29 -0
- package/dist/apis/StyleSheet/index.js.map +1 -0
- package/dist/apis/StyleSheet/types.d.ts +328 -0
- package/dist/apis/Vibration/index.d.ts +9 -0
- package/dist/apis/Vibration/index.js +40 -0
- package/dist/apis/Vibration/index.js.map +1 -0
- package/dist/apis/processColor/index.d.ts +3 -0
- package/dist/apis/processColor/index.js +12 -0
- package/dist/apis/processColor/index.js.map +1 -0
- package/dist/apis/useColorScheme/index.d.ts +3 -0
- package/dist/apis/useColorScheme/index.js +13 -0
- package/dist/apis/useColorScheme/index.js.map +1 -0
- package/dist/apis/useWindowDimensions/index.d.ts +3 -0
- package/dist/apis/useWindowDimensions/index.js +19 -0
- package/dist/apis/useWindowDimensions/index.js.map +1 -0
- package/dist/bundler/index.js +30 -0
- package/dist/bundler/index.js.map +1 -0
- package/dist/bundler/inlinePlatformOS.js +121 -0
- package/dist/bundler/inlinePlatformOS.js.map +1 -0
- package/dist/bundler/worklets.js +61 -0
- package/dist/bundler/worklets.js.map +1 -0
- package/dist/compat/TurboModuleRegistry/index.d.ts +16 -0
- package/dist/compat/TurboModuleRegistry/index.js +14 -0
- package/dist/compat/TurboModuleRegistry/index.js.map +1 -0
- package/dist/compat/createElement/index.d.ts +9 -0
- package/dist/compat/createElement/index.js +40 -0
- package/dist/compat/createElement/index.js.map +1 -0
- package/dist/compat/findNodeHandle/index.d.ts +7 -0
- package/dist/compat/findNodeHandle/index.js +19 -0
- package/dist/compat/findNodeHandle/index.js.map +1 -0
- package/dist/components/ActivityIndicator/index.d.ts +5 -0
- package/dist/components/ActivityIndicator/index.js +74 -0
- package/dist/components/ActivityIndicator/index.js.map +1 -0
- package/dist/components/ActivityIndicator/types.d.ts +8 -0
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/index.js +48 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Button/types.d.ts +31 -0
- package/dist/components/FlatList/index.d.ts +5 -0
- package/dist/components/FlatList/index.js +433 -0
- package/dist/components/FlatList/index.js.map +1 -0
- package/dist/components/FlatList/types.d.ts +138 -0
- package/dist/components/FlatList/viewability.js +86 -0
- package/dist/components/FlatList/viewability.js.map +1 -0
- package/dist/components/Image/index.d.ts +7 -0
- package/dist/components/Image/index.js +301 -0
- package/dist/components/Image/index.js.map +1 -0
- package/dist/components/Image/source.js +97 -0
- package/dist/components/Image/source.js.map +1 -0
- package/dist/components/Image/types.d.ts +96 -0
- package/dist/components/KeyboardAvoidingView/index.d.ts +10 -0
- package/dist/components/KeyboardAvoidingView/index.js +118 -0
- package/dist/components/KeyboardAvoidingView/index.js.map +1 -0
- package/dist/components/KeyboardAvoidingView/types.d.ts +14 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.js +271 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/types.d.ts +29 -0
- package/dist/components/Pressable/index.d.ts +5 -0
- package/dist/components/Pressable/index.js +106 -0
- package/dist/components/Pressable/index.js.map +1 -0
- package/dist/components/Pressable/types.d.ts +44 -0
- package/dist/components/RefreshControl/index.d.ts +5 -0
- package/dist/components/RefreshControl/index.js +176 -0
- package/dist/components/RefreshControl/index.js.map +1 -0
- package/dist/components/RefreshControl/pull.js +16 -0
- package/dist/components/RefreshControl/pull.js.map +1 -0
- package/dist/components/RefreshControl/types.d.ts +14 -0
- package/dist/components/ScrollView/index.d.ts +5 -0
- package/dist/components/ScrollView/index.js +318 -0
- package/dist/components/ScrollView/index.js.map +1 -0
- package/dist/components/ScrollView/snap.js +38 -0
- package/dist/components/ScrollView/snap.js.map +1 -0
- package/dist/components/ScrollView/types.d.ts +115 -0
- package/dist/components/StatusBar/index.d.ts +26 -0
- package/dist/components/StatusBar/index.js +113 -0
- package/dist/components/StatusBar/index.js.map +1 -0
- package/dist/components/Switch/index.d.ts +5 -0
- package/dist/components/Switch/index.js +89 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Switch/types.d.ts +25 -0
- package/dist/components/Text/TextAncestorContext.d.ts +3 -0
- package/dist/components/Text/TextAncestorContext.js +6 -0
- package/dist/components/Text/TextAncestorContext.js.map +1 -0
- package/dist/components/Text/index.d.ts +6 -0
- package/dist/components/Text/index.js +133 -0
- package/dist/components/Text/index.js.map +1 -0
- package/dist/components/Text/types.d.ts +38 -0
- package/dist/components/TextInput/autocomplete.js +102 -0
- package/dist/components/TextInput/autocomplete.js.map +1 -0
- package/dist/components/TextInput/index.d.ts +8 -0
- package/dist/components/TextInput/index.js +290 -0
- package/dist/components/TextInput/index.js.map +1 -0
- package/dist/components/TextInput/types.d.ts +130 -0
- package/dist/components/TouchableHighlight/index.d.ts +5 -0
- package/dist/components/TouchableHighlight/index.js +109 -0
- package/dist/components/TouchableHighlight/index.js.map +1 -0
- package/dist/components/TouchableHighlight/types.d.ts +15 -0
- package/dist/components/TouchableNativeFeedback/index.d.ts +11 -0
- package/dist/components/TouchableNativeFeedback/index.js +29 -0
- package/dist/components/TouchableNativeFeedback/index.js.map +1 -0
- package/dist/components/TouchableNativeFeedback/types.d.ts +19 -0
- package/dist/components/TouchableOpacity/index.d.ts +5 -0
- package/dist/components/TouchableOpacity/index.js +122 -0
- package/dist/components/TouchableOpacity/index.js.map +1 -0
- package/dist/components/TouchableOpacity/types.d.ts +11 -0
- package/dist/components/TouchableWithoutFeedback/index.d.ts +5 -0
- package/dist/components/TouchableWithoutFeedback/index.js +70 -0
- package/dist/components/TouchableWithoutFeedback/index.js.map +1 -0
- package/dist/components/TouchableWithoutFeedback/types.d.ts +40 -0
- package/dist/components/View/index.d.ts +5 -0
- package/dist/components/View/index.js +50 -0
- package/dist/components/View/index.js.map +1 -0
- package/dist/components/View/types.d.ts +98 -0
- package/dist/dom/Head.d.ts +21 -0
- package/dist/dom/Head.js +53 -0
- package/dist/dom/Head.js.map +1 -0
- package/dist/dom/index.d.ts +2 -22
- package/dist/dom/index.js +1 -53
- package/dist/events/press/Pressability.d.ts +2 -0
- package/dist/events/press/Pressability.js +366 -0
- package/dist/events/press/Pressability.js.map +1 -0
- package/dist/events/press/cursorStyle.js +5 -0
- package/dist/events/press/cursorStyle.js.map +1 -0
- package/dist/events/press/index.d.ts +4 -0
- package/dist/events/press/mergeHandlers.js +30 -0
- package/dist/events/press/mergeHandlers.js.map +1 -0
- package/dist/events/press/types.d.ts +48 -0
- package/dist/events/press/usePressability.d.ts +4 -0
- package/dist/events/press/usePressability.js +18 -0
- package/dist/events/press/usePressability.js.map +1 -0
- package/dist/events/responderEvent.js +50 -0
- package/dist/events/responderEvent.js.map +1 -0
- package/dist/events/types.d.ts +33 -0
- package/dist/index.d.ts +66 -1597
- package/dist/index.js +42 -4864
- package/dist/reactNativeVersion.d.ts +7 -0
- package/dist/reactNativeVersion.js +10 -0
- package/dist/reactNativeVersion.js.map +1 -0
- package/dist/render/domProps.js +66 -0
- package/dist/render/domProps.js.map +1 -0
- package/dist/render/hitSlop.js +21 -0
- package/dist/render/hitSlop.js.map +1 -0
- package/dist/render/hostMethods.js +44 -0
- package/dist/render/hostMethods.js.map +1 -0
- package/dist/render/resolveTag.js +64 -0
- package/dist/render/resolveTag.js.map +1 -0
- package/dist/render/useElementLayout.js +25 -0
- package/dist/render/useElementLayout.js.map +1 -0
- package/dist/server/index.d.ts +2 -27
- package/dist/server/index.js +2 -2
- package/dist/{StyleRegistryContext-ROsMlY4O.js → style/StyleRegistryContext.js} +3 -3
- package/dist/style/StyleRegistryContext.js.map +1 -0
- package/dist/style/color.js +16 -0
- package/dist/style/color.js.map +1 -0
- package/dist/style/compile.js +72 -0
- package/dist/style/compile.js.map +1 -0
- package/dist/style/direction.js +33 -0
- package/dist/style/direction.js.map +1 -0
- package/dist/style/index.d.ts +1 -1
- package/dist/style/index.js +5 -2
- package/dist/style/index.js.map +1 -1
- package/dist/style/registry.d.ts +27 -0
- package/dist/{registry-Aa_Od5m0.js → style/registry.js} +3 -3
- package/dist/style/registry.js.map +1 -0
- package/dist/style/resolveStyle.js +181 -0
- package/dist/style/resolveStyle.js.map +1 -0
- package/dist/style/shadow.js +87 -0
- package/dist/style/shadow.js.map +1 -0
- package/dist/style/splitLayoutProps.js +52 -0
- package/dist/style/splitLayoutProps.js.map +1 -0
- package/dist/style/transform.js +35 -0
- package/dist/style/transform.js.map +1 -0
- package/dist/style/types.d.ts +4 -0
- package/dist/style/units.js +21 -0
- package/dist/style/units.js.map +1 -0
- package/dist/style/webStyle.js +9 -0
- package/dist/style/webStyle.js.map +1 -0
- package/dist/{env-DK5Mt9yX.js → utils/env.js} +2 -2
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/scrollLock.js +28 -0
- package/dist/utils/scrollLock.js.map +1 -0
- package/dist/utils/warn.js +11 -0
- package/dist/utils/warn.js.map +1 -0
- package/dist/vite/index.js +4 -202
- package/dist/vite/index.js.map +1 -1
- package/llms.txt +20 -0
- package/package.json +4 -3
- package/dist/StyleRegistryContext-ROsMlY4O.js.map +0 -1
- package/dist/compile-CVUjQrR9.js +0 -400
- package/dist/compile-CVUjQrR9.js.map +0 -1
- package/dist/dom/index.js.map +0 -1
- package/dist/env-DK5Mt9yX.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/registry-Aa_Od5m0.js.map +0 -1
- package/dist/types-BxTWbdj9.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,1599 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
type NativeSyntheticEvent<T> = BaseSyntheticEvent<T, HTMLElement, EventTarget>;
|
|
67
|
-
type NativeTouchEvent = Readonly<{
|
|
68
|
-
changedTouches: ReadonlyArray<NativeTouchEvent>;
|
|
69
|
-
force?: number | undefined;
|
|
70
|
-
identifier: number;
|
|
71
|
-
locationX: number;
|
|
72
|
-
locationY: number;
|
|
73
|
-
pageX: number;
|
|
74
|
-
pageY: number;
|
|
75
|
-
target: EventTarget | null;
|
|
76
|
-
timestamp: number;
|
|
77
|
-
touches: ReadonlyArray<NativeTouchEvent>;
|
|
78
|
-
}>;
|
|
79
|
-
type GestureResponderEvent = NativeSyntheticEvent<NativeTouchEvent>;
|
|
80
|
-
type MouseEvent = NativeSyntheticEvent<Readonly<{
|
|
81
|
-
clientX: number;
|
|
82
|
-
clientY: number;
|
|
83
|
-
pageX: number;
|
|
84
|
-
pageY: number;
|
|
85
|
-
timestamp: number;
|
|
86
|
-
}>>;
|
|
87
|
-
type FocusEvent = FocusEvent$1<HTMLElement>;
|
|
88
|
-
type BlurEvent = FocusEvent$1<HTMLElement>;
|
|
89
|
-
type TargetedEvent = Readonly<{
|
|
90
|
-
target: EventTarget | null;
|
|
91
|
-
}>;
|
|
92
|
-
type PointerEvent = PointerEvent$1<HTMLElement>;
|
|
93
|
-
type EventSubscription = {
|
|
94
|
-
remove: () => void;
|
|
95
|
-
};
|
|
96
|
-
type AppStateStatus = "inactive" | "background" | "active" | "extension" | "unknown";
|
|
97
|
-
type AppStateEventDefinitions = {
|
|
98
|
-
change: [AppStateStatus];
|
|
99
|
-
memoryWarning: [];
|
|
100
|
-
blur: [];
|
|
101
|
-
focus: [];
|
|
102
|
-
};
|
|
103
|
-
type AppStateEvent = keyof AppStateEventDefinitions;
|
|
104
|
-
/**
|
|
105
|
-
* The app is `active` while its page is visible, and in the `background` while the page is
|
|
106
|
-
* hidden or unloads. A focus change of the window fires `blur` and `focus`, as on Android, and
|
|
107
|
-
* the state stays `active`.
|
|
108
|
-
*/
|
|
109
|
-
export declare const AppState: {
|
|
110
|
-
readonly currentState: AppStateStatus;
|
|
111
|
-
readonly isAvailable: boolean;
|
|
112
|
-
addEventListener: <K extends AppStateEvent>(type: K, handler: (...args: AppStateEventDefinitions[K]) => void) => EventSubscription;
|
|
113
|
-
};
|
|
114
|
-
type BackPressHandler = () => boolean | null | undefined;
|
|
115
|
-
type BackHandlerSubscription = {
|
|
116
|
-
remove: () => void;
|
|
117
|
-
};
|
|
118
|
-
export declare const BackHandler: {
|
|
119
|
-
addEventListener: (eventName: "hardwareBackPress", handler: BackPressHandler) => BackHandlerSubscription;
|
|
120
|
-
removeEventListener: (eventName: "hardwareBackPress", handler: BackPressHandler) => void;
|
|
121
|
-
exitApp: () => void;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Reads and writes text on the clipboard with the async Clipboard API. Deprecated in React
|
|
125
|
-
* Native, so the first call logs a warning.
|
|
126
|
-
*/
|
|
127
|
-
export declare const Clipboard: {
|
|
128
|
-
getString: () => Promise<string>;
|
|
129
|
-
setString: (content: string) => void;
|
|
130
|
-
};
|
|
131
|
-
type ScaledSize = {
|
|
132
|
-
width: number;
|
|
133
|
-
height: number;
|
|
134
|
-
scale: number;
|
|
135
|
-
fontScale: number;
|
|
136
|
-
};
|
|
137
|
-
type DimensionsValue = {
|
|
138
|
-
window: ScaledSize;
|
|
139
|
-
screen: ScaledSize;
|
|
140
|
-
};
|
|
141
|
-
type DimensionsChangeHandler = (value: DimensionsValue) => void;
|
|
142
|
-
type EmitterSubscription = {
|
|
143
|
-
remove: () => void;
|
|
144
|
-
};
|
|
145
|
-
export declare const Dimensions: {
|
|
146
|
-
get: (dimension: "window" | "screen") => ScaledSize;
|
|
147
|
-
addEventListener: (type: "change", handler: DimensionsChangeHandler) => EmitterSubscription;
|
|
148
|
-
};
|
|
149
|
-
type I18nManagerConstants = {
|
|
150
|
-
isRTL: boolean;
|
|
151
|
-
doLeftAndRightSwapInRTL: boolean;
|
|
152
|
-
localeIdentifier: string | undefined;
|
|
153
|
-
};
|
|
154
|
-
export declare const I18nManager: {
|
|
155
|
-
readonly isRTL: boolean;
|
|
156
|
-
readonly doLeftAndRightSwapInRTL: boolean;
|
|
157
|
-
getConstants: () => I18nManagerConstants;
|
|
158
|
-
allowRTL: (allow: boolean) => void;
|
|
159
|
-
forceRTL: (force: boolean) => void;
|
|
160
|
-
swapLeftAndRightInRTL: (swap: boolean) => void;
|
|
161
|
-
};
|
|
162
|
-
type KeyboardEventName = "keyboardWillShow" | "keyboardDidShow" | "keyboardWillHide" | "keyboardDidHide" | "keyboardWillChangeFrame" | "keyboardDidChangeFrame";
|
|
163
|
-
type KeyboardEventEasing = "easeIn" | "easeInEaseOut" | "easeOut" | "linear" | "keyboard";
|
|
164
|
-
type KeyboardMetrics = Readonly<{
|
|
165
|
-
screenX: number;
|
|
166
|
-
screenY: number;
|
|
167
|
-
width: number;
|
|
168
|
-
height: number;
|
|
169
|
-
}>;
|
|
170
|
-
type AndroidKeyboardEvent = Readonly<{
|
|
171
|
-
duration: 0;
|
|
172
|
-
easing: "keyboard";
|
|
173
|
-
endCoordinates: KeyboardMetrics;
|
|
174
|
-
}>;
|
|
175
|
-
type IOSKeyboardEvent = Readonly<{
|
|
176
|
-
duration: number;
|
|
177
|
-
easing: KeyboardEventEasing;
|
|
178
|
-
endCoordinates: KeyboardMetrics;
|
|
179
|
-
startCoordinates: KeyboardMetrics;
|
|
180
|
-
isEventFromThisApp: boolean;
|
|
181
|
-
}>;
|
|
182
|
-
type KeyboardEvent = AndroidKeyboardEvent | IOSKeyboardEvent;
|
|
183
|
-
/**
|
|
184
|
-
* The keyboard of a phone or a tablet, as on Android: `keyboardDidShow` fires when the keyboard
|
|
185
|
-
* shows and when its height changes, and `keyboardDidHide` fires when it hides. The `Will` and
|
|
186
|
-
* `ChangeFrame` events never fire.
|
|
187
|
-
*/
|
|
188
|
-
export declare const Keyboard: {
|
|
189
|
-
addListener: <K extends KeyboardEventName>(eventType: K, listener: (event: KeyboardEvent) => unknown, context?: unknown) => EventSubscription;
|
|
190
|
-
removeAllListeners: (eventType?: KeyboardEventName | null) => void;
|
|
191
|
-
dismiss: () => void;
|
|
192
|
-
isVisible: () => boolean;
|
|
193
|
-
metrics: () => KeyboardMetrics | null | undefined;
|
|
194
|
-
scheduleLayoutAnimation: (event: KeyboardEvent) => void;
|
|
195
|
-
};
|
|
196
|
-
type LinkingEventDefinitions = {
|
|
197
|
-
url: [{
|
|
198
|
-
url: string;
|
|
199
|
-
}];
|
|
200
|
-
};
|
|
201
|
-
type LinkingEvent = keyof LinkingEventDefinitions;
|
|
202
|
-
/**
|
|
203
|
-
* Opens URLs and reports the URL that the page loaded with. A URL of this site opens in this tab,
|
|
204
|
-
* a URL of another site in a new tab, and `mailto:`, `tel:`, and other schemes go to the system.
|
|
205
|
-
* The browser never fires `url`: back, forward, and links belong to the router.
|
|
206
|
-
*/
|
|
207
|
-
export declare const Linking: {
|
|
208
|
-
addEventListener: <K extends LinkingEvent>(eventType: K, listener: (...args: LinkingEventDefinitions[K]) => unknown) => EventSubscription;
|
|
209
|
-
addListener: <K extends LinkingEvent>(eventType: K, listener: (...args: LinkingEventDefinitions[K]) => unknown, context?: unknown) => EventSubscription;
|
|
210
|
-
emit: <K extends LinkingEvent>(eventType: K, ...args: LinkingEventDefinitions[K]) => void;
|
|
211
|
-
removeAllListeners: <K extends LinkingEvent>(eventType?: K | null) => void;
|
|
212
|
-
listenerCount: <K extends LinkingEvent>(eventType: K) => number;
|
|
213
|
-
openURL: (url: string) => Promise<void>;
|
|
214
|
-
canOpenURL: (url: string) => Promise<boolean>;
|
|
215
|
-
openSettings: () => Promise<void>;
|
|
216
|
-
getInitialURL: () => Promise<string | null>;
|
|
217
|
-
sendIntent: (action: string, extras?: Array<{
|
|
218
|
-
key: string;
|
|
219
|
-
value: string | number | boolean;
|
|
220
|
-
}>) => Promise<void>;
|
|
221
|
-
};
|
|
222
|
-
type PanResponderGestureState = {
|
|
223
|
-
stateID: number;
|
|
224
|
-
moveX: number;
|
|
225
|
-
moveY: number;
|
|
226
|
-
x0: number;
|
|
227
|
-
y0: number;
|
|
228
|
-
dx: number;
|
|
229
|
-
dy: number;
|
|
230
|
-
vx: number;
|
|
231
|
-
vy: number;
|
|
232
|
-
numberActiveTouches: number;
|
|
233
|
-
_accountsForMovesUpTo: number;
|
|
234
|
-
};
|
|
235
|
-
type Callback = (event: GestureResponderEvent, gestureState: PanResponderGestureState) => void;
|
|
236
|
-
type Predicate = (event: GestureResponderEvent, gestureState: PanResponderGestureState) => boolean;
|
|
237
|
-
type PanResponderCallbacks = {
|
|
238
|
-
onStartShouldSetPanResponder?: Predicate | undefined;
|
|
239
|
-
onStartShouldSetPanResponderCapture?: Predicate | undefined;
|
|
240
|
-
onMoveShouldSetPanResponder?: Predicate | undefined;
|
|
241
|
-
onMoveShouldSetPanResponderCapture?: Predicate | undefined;
|
|
242
|
-
onPanResponderGrant?: Callback | undefined;
|
|
243
|
-
onPanResponderStart?: Callback | undefined;
|
|
244
|
-
onPanResponderMove?: Callback | undefined;
|
|
245
|
-
onPanResponderEnd?: Callback | undefined;
|
|
246
|
-
onPanResponderRelease?: Callback | undefined;
|
|
247
|
-
onPanResponderReject?: Callback | undefined;
|
|
248
|
-
onPanResponderTerminate?: Callback | undefined;
|
|
249
|
-
onPanResponderTerminationRequest?: Predicate | undefined;
|
|
250
|
-
onShouldBlockNativeResponder?: Predicate | undefined;
|
|
251
|
-
};
|
|
252
|
-
type Handler = (event: PointerEvent$1<HTMLElement>) => void;
|
|
253
|
-
type GestureResponderHandlers = {
|
|
254
|
-
onPointerDownCapture: Handler;
|
|
255
|
-
onPointerDown: Handler;
|
|
256
|
-
onPointerMoveCapture: Handler;
|
|
257
|
-
onPointerMove: Handler;
|
|
258
|
-
onPointerUp: Handler;
|
|
259
|
-
onPointerCancel: Handler;
|
|
260
|
-
};
|
|
261
|
-
type PanResponderInstance = {
|
|
262
|
-
panHandlers: GestureResponderHandlers;
|
|
263
|
-
getInteractionHandle: () => number | null;
|
|
264
|
-
};
|
|
265
|
-
export declare const PanResponder: {
|
|
266
|
-
create: (config: PanResponderCallbacks) => PanResponderInstance;
|
|
267
|
-
};
|
|
268
|
-
export declare const PixelRatio: {
|
|
269
|
-
get: () => number;
|
|
270
|
-
getFontScale: () => number;
|
|
271
|
-
getPixelSizeForLayoutSize: (layoutSize: number) => number;
|
|
272
|
-
roundToNearestPixel: (layoutSize: number) => number;
|
|
273
|
-
startDetecting: () => void;
|
|
274
|
-
};
|
|
275
|
-
type ReactNativeVersion = {
|
|
276
|
-
major: number;
|
|
277
|
-
minor: number;
|
|
278
|
-
patch: number;
|
|
279
|
-
prerelease: string | undefined;
|
|
280
|
-
};
|
|
281
|
-
type PlatformOSType = "ios" | "android" | "macos" | "windows" | "web" | "native";
|
|
282
|
-
type OptionalPlatformSelectSpec<T> = { [key in PlatformOSType]?: T; };
|
|
283
|
-
type PlatformSelectSpec<T> = (Omit<OptionalPlatformSelectSpec<T>, "default"> & {
|
|
284
|
-
default: T;
|
|
285
|
-
}) | OptionalPlatformSelectSpec<T>;
|
|
286
|
-
type PlatformType = {
|
|
287
|
-
OS: "web";
|
|
288
|
-
get Version(): string;
|
|
289
|
-
get constants(): {
|
|
290
|
-
reactNativeVersion: ReactNativeVersion;
|
|
291
|
-
};
|
|
292
|
-
get isTV(): boolean;
|
|
293
|
-
get isTesting(): boolean;
|
|
294
|
-
get isDisableAnimations(): boolean;
|
|
295
|
-
select: <T>(spec: PlatformSelectSpec<T>) => T;
|
|
296
|
-
};
|
|
297
|
-
export declare const Platform: PlatformType;
|
|
298
|
-
type ProcessedColorValue = number;
|
|
299
|
-
export declare const processColor: (color: unknown) => ProcessedColorValue | null | undefined;
|
|
300
|
-
type ShareContent = {
|
|
301
|
-
title?: string | undefined;
|
|
302
|
-
url: string;
|
|
303
|
-
message?: string | undefined;
|
|
304
|
-
} | {
|
|
305
|
-
title?: string | undefined;
|
|
306
|
-
url?: string | undefined;
|
|
307
|
-
message: string;
|
|
308
|
-
};
|
|
309
|
-
type ShareOptions = {
|
|
310
|
-
dialogTitle?: string | undefined;
|
|
311
|
-
excludedActivityTypes?: Array<string> | undefined;
|
|
312
|
-
tintColor?: string | undefined;
|
|
313
|
-
subject?: string | undefined;
|
|
314
|
-
anchor?: number | undefined;
|
|
315
|
-
};
|
|
316
|
-
type ShareAction = {
|
|
317
|
-
action: "sharedAction" | "dismissedAction";
|
|
318
|
-
activityType?: string | null | undefined;
|
|
319
|
-
};
|
|
320
|
-
/**
|
|
321
|
-
* Opens the browser's share sheet with `navigator.share`. It shares the title, the message,
|
|
322
|
-
* and the URL. A closed sheet resolves `dismissedAction`, as on iOS.
|
|
323
|
-
*/
|
|
324
|
-
export declare const Share: {
|
|
325
|
-
share: (content: ShareContent, options?: ShareOptions) => Promise<ShareAction>;
|
|
326
|
-
readonly sharedAction: "sharedAction";
|
|
327
|
-
readonly dismissedAction: "dismissedAction";
|
|
328
|
-
};
|
|
329
|
-
type ImageResizeMode = "cover" | "contain" | "stretch" | "repeat" | "center";
|
|
330
|
-
/** A color from `PlatformColor` or `DynamicColorIOS` on native. The web has neither. */
|
|
331
|
-
type NativeColorValue = symbol & {
|
|
332
|
-
__NativeColorValue__: string;
|
|
333
|
-
};
|
|
334
|
-
/** @deprecated Use `NativeColorValue`. */
|
|
335
|
-
type OpaqueColorValue = NativeColorValue;
|
|
336
|
-
type ColorValue = null | string | number | NativeColorValue;
|
|
337
|
-
type DimensionValue = number | string | "auto" | null;
|
|
338
|
-
type CursorValue = "auto" | "pointer";
|
|
339
|
-
type PointValue = {
|
|
340
|
-
x: number;
|
|
341
|
-
y: number;
|
|
342
|
-
};
|
|
343
|
-
type EdgeInsetsValue = {
|
|
344
|
-
top: number;
|
|
345
|
-
left: number;
|
|
346
|
-
right: number;
|
|
347
|
-
bottom: number;
|
|
348
|
-
};
|
|
349
|
-
type LayoutStyle = Readonly<{
|
|
350
|
-
display?: "none" | "flex" | "contents" | undefined;
|
|
351
|
-
width?: DimensionValue | undefined;
|
|
352
|
-
height?: DimensionValue | undefined;
|
|
353
|
-
bottom?: DimensionValue | undefined;
|
|
354
|
-
end?: DimensionValue | undefined;
|
|
355
|
-
left?: DimensionValue | undefined;
|
|
356
|
-
right?: DimensionValue | undefined;
|
|
357
|
-
start?: DimensionValue | undefined;
|
|
358
|
-
top?: DimensionValue | undefined;
|
|
359
|
-
inset?: DimensionValue | undefined;
|
|
360
|
-
insetBlock?: DimensionValue | undefined;
|
|
361
|
-
insetBlockEnd?: DimensionValue | undefined;
|
|
362
|
-
insetBlockStart?: DimensionValue | undefined;
|
|
363
|
-
insetInline?: DimensionValue | undefined;
|
|
364
|
-
insetInlineEnd?: DimensionValue | undefined;
|
|
365
|
-
insetInlineStart?: DimensionValue | undefined;
|
|
366
|
-
minWidth?: DimensionValue | undefined;
|
|
367
|
-
maxWidth?: DimensionValue | undefined;
|
|
368
|
-
minHeight?: DimensionValue | undefined;
|
|
369
|
-
maxHeight?: DimensionValue | undefined;
|
|
370
|
-
margin?: DimensionValue | undefined;
|
|
371
|
-
marginBlock?: DimensionValue | undefined;
|
|
372
|
-
marginBlockEnd?: DimensionValue | undefined;
|
|
373
|
-
marginBlockStart?: DimensionValue | undefined;
|
|
374
|
-
marginBottom?: DimensionValue | undefined;
|
|
375
|
-
marginEnd?: DimensionValue | undefined;
|
|
376
|
-
marginHorizontal?: DimensionValue | undefined;
|
|
377
|
-
marginInline?: DimensionValue | undefined;
|
|
378
|
-
marginInlineEnd?: DimensionValue | undefined;
|
|
379
|
-
marginInlineStart?: DimensionValue | undefined;
|
|
380
|
-
marginLeft?: DimensionValue | undefined;
|
|
381
|
-
marginRight?: DimensionValue | undefined;
|
|
382
|
-
marginStart?: DimensionValue | undefined;
|
|
383
|
-
marginTop?: DimensionValue | undefined;
|
|
384
|
-
marginVertical?: DimensionValue | undefined;
|
|
385
|
-
padding?: DimensionValue | undefined;
|
|
386
|
-
paddingBlock?: DimensionValue | undefined;
|
|
387
|
-
paddingBlockEnd?: DimensionValue | undefined;
|
|
388
|
-
paddingBlockStart?: DimensionValue | undefined;
|
|
389
|
-
paddingBottom?: DimensionValue | undefined;
|
|
390
|
-
paddingEnd?: DimensionValue | undefined;
|
|
391
|
-
paddingHorizontal?: DimensionValue | undefined;
|
|
392
|
-
paddingInline?: DimensionValue | undefined;
|
|
393
|
-
paddingInlineEnd?: DimensionValue | undefined;
|
|
394
|
-
paddingInlineStart?: DimensionValue | undefined;
|
|
395
|
-
paddingLeft?: DimensionValue | undefined;
|
|
396
|
-
paddingRight?: DimensionValue | undefined;
|
|
397
|
-
paddingStart?: DimensionValue | undefined;
|
|
398
|
-
paddingTop?: DimensionValue | undefined;
|
|
399
|
-
paddingVertical?: DimensionValue | undefined;
|
|
400
|
-
borderWidth?: number | undefined;
|
|
401
|
-
borderBottomWidth?: number | undefined;
|
|
402
|
-
borderEndWidth?: number | undefined;
|
|
403
|
-
borderLeftWidth?: number | undefined;
|
|
404
|
-
borderRightWidth?: number | undefined;
|
|
405
|
-
borderStartWidth?: number | undefined;
|
|
406
|
-
borderTopWidth?: number | undefined;
|
|
407
|
-
position?: "absolute" | "relative" | "static" | undefined;
|
|
408
|
-
flexDirection?: "row" | "row-reverse" | "column" | "column-reverse" | undefined;
|
|
409
|
-
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
410
|
-
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
411
|
-
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
|
412
|
-
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
|
413
|
-
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
414
|
-
overflow?: "visible" | "hidden" | "scroll" | undefined;
|
|
415
|
-
flex?: number | undefined;
|
|
416
|
-
flexGrow?: number | undefined;
|
|
417
|
-
flexShrink?: number | undefined;
|
|
418
|
-
flexBasis?: number | string | undefined;
|
|
419
|
-
aspectRatio?: number | string | undefined;
|
|
420
|
-
boxSizing?: "border-box" | "content-box" | undefined;
|
|
421
|
-
zIndex?: number | undefined;
|
|
422
|
-
direction?: "inherit" | "ltr" | "rtl" | undefined;
|
|
423
|
-
rowGap?: number | string | undefined;
|
|
424
|
-
columnGap?: number | string | undefined;
|
|
425
|
-
gap?: number | string | undefined;
|
|
426
|
-
}>;
|
|
427
|
-
type ShadowStyle = Readonly<{
|
|
428
|
-
shadowColor?: ColorValue | undefined;
|
|
429
|
-
shadowOffset?: Readonly<{
|
|
430
|
-
width?: number | undefined;
|
|
431
|
-
height?: number | undefined;
|
|
432
|
-
}> | undefined;
|
|
433
|
-
shadowOpacity?: number | undefined;
|
|
434
|
-
shadowRadius?: number | undefined;
|
|
435
|
-
}>;
|
|
436
|
-
type KeysOfUnion<T> = T extends unknown ? keyof T : never;
|
|
437
|
-
type ValueOfUnion<T, K> = T extends unknown ? (K extends keyof T ? T[K] : never) : never;
|
|
438
|
-
type MergeUnion<T> = { [K in KeysOfUnion<T>]?: ValueOfUnion<T, K>; };
|
|
439
|
-
type MaximumOneOf<T> = { [K in keyof T]: { [P in keyof T]?: P extends K ? T[P] : never; }; }[keyof T];
|
|
440
|
-
type TransformOperation = Readonly<MaximumOneOf<MergeUnion<{
|
|
441
|
-
readonly perspective: number;
|
|
442
|
-
} | {
|
|
443
|
-
readonly rotate: string;
|
|
444
|
-
} | {
|
|
445
|
-
readonly rotateX: string;
|
|
446
|
-
} | {
|
|
447
|
-
readonly rotateY: string;
|
|
448
|
-
} | {
|
|
449
|
-
readonly rotateZ: string;
|
|
450
|
-
} | {
|
|
451
|
-
readonly scale: number;
|
|
452
|
-
} | {
|
|
453
|
-
readonly scaleX: number;
|
|
454
|
-
} | {
|
|
455
|
-
readonly scaleY: number;
|
|
456
|
-
} | {
|
|
457
|
-
readonly translateX: number | string;
|
|
458
|
-
} | {
|
|
459
|
-
readonly translateY: number | string;
|
|
460
|
-
} | {
|
|
461
|
-
readonly translate: [number | string, number | string];
|
|
462
|
-
} | {
|
|
463
|
-
readonly skewX: string;
|
|
464
|
-
} | {
|
|
465
|
-
readonly skewY: string;
|
|
466
|
-
} | {
|
|
467
|
-
readonly matrix: ReadonlyArray<number>;
|
|
468
|
-
}>>>;
|
|
469
|
-
type TransformsStyle = Readonly<{
|
|
470
|
-
transform?: ReadonlyArray<TransformOperation> | string | undefined;
|
|
471
|
-
transformOrigin?: [string | number, string | number, string | number] | string | undefined;
|
|
472
|
-
}>;
|
|
473
|
-
type FilterFunction = {
|
|
474
|
-
brightness: number | string;
|
|
475
|
-
} | {
|
|
476
|
-
blur: number | string;
|
|
477
|
-
} | {
|
|
478
|
-
contrast: number | string;
|
|
479
|
-
} | {
|
|
480
|
-
grayscale: number | string;
|
|
481
|
-
} | {
|
|
482
|
-
hueRotate: number | string;
|
|
483
|
-
} | {
|
|
484
|
-
invert: number | string;
|
|
485
|
-
} | {
|
|
486
|
-
opacity: number | string;
|
|
487
|
-
} | {
|
|
488
|
-
saturate: number | string;
|
|
489
|
-
} | {
|
|
490
|
-
sepia: number | string;
|
|
491
|
-
} | {
|
|
492
|
-
dropShadow: DropShadowValue | string;
|
|
493
|
-
};
|
|
494
|
-
type DropShadowValue = {
|
|
495
|
-
offsetX: number | string;
|
|
496
|
-
offsetY: number | string;
|
|
497
|
-
standardDeviation?: number | string | undefined;
|
|
498
|
-
color?: ColorValue | undefined;
|
|
499
|
-
};
|
|
500
|
-
type ColorStops = ReadonlyArray<{
|
|
501
|
-
color: ColorValue;
|
|
502
|
-
positions?: ReadonlyArray<string> | undefined;
|
|
503
|
-
}>;
|
|
504
|
-
type LinearGradientValue = {
|
|
505
|
-
type: "linear-gradient";
|
|
506
|
-
direction?: string | undefined;
|
|
507
|
-
colorStops: ColorStops;
|
|
508
|
-
};
|
|
509
|
-
type EdgePosition = {
|
|
510
|
-
top: number | string;
|
|
511
|
-
left: number | string;
|
|
512
|
-
} | {
|
|
513
|
-
top: number | string;
|
|
514
|
-
right: number | string;
|
|
515
|
-
} | {
|
|
516
|
-
bottom: number | string;
|
|
517
|
-
left: number | string;
|
|
518
|
-
} | {
|
|
519
|
-
bottom: number | string;
|
|
520
|
-
right: number | string;
|
|
521
|
-
};
|
|
522
|
-
type RadialGradientPosition = EdgePosition;
|
|
523
|
-
type RadialGradientShape = "circle" | "ellipse";
|
|
524
|
-
type RadialGradientSize = "closest-corner" | "closest-side" | "farthest-corner" | "farthest-side" | {
|
|
525
|
-
x: string | number;
|
|
526
|
-
y: string | number;
|
|
527
|
-
};
|
|
528
|
-
type RadialGradientValue = {
|
|
529
|
-
type: "radial-gradient";
|
|
530
|
-
shape: RadialGradientShape;
|
|
531
|
-
size: RadialGradientSize;
|
|
532
|
-
position: RadialGradientPosition;
|
|
533
|
-
colorStops: ColorStops;
|
|
534
|
-
};
|
|
535
|
-
type BackgroundImageValue = LinearGradientValue | RadialGradientValue;
|
|
536
|
-
type BackgroundSizeValue = {
|
|
537
|
-
x: string | number;
|
|
538
|
-
y: string | number;
|
|
539
|
-
};
|
|
540
|
-
type BackgroundRepeatKeyword = "repeat" | "space" | "round" | "no-repeat";
|
|
541
|
-
type BackgroundPositionValue = EdgePosition;
|
|
542
|
-
type BackgroundRepeatValue = {
|
|
543
|
-
x: BackgroundRepeatKeyword;
|
|
544
|
-
y: BackgroundRepeatKeyword;
|
|
545
|
-
};
|
|
546
|
-
type BoxShadowValue = {
|
|
547
|
-
offsetX: number | string;
|
|
548
|
-
offsetY: number | string;
|
|
549
|
-
color?: ColorValue | undefined;
|
|
550
|
-
blurRadius?: number | string | undefined;
|
|
551
|
-
spreadDistance?: number | string | undefined;
|
|
552
|
-
inset?: boolean | undefined;
|
|
553
|
-
};
|
|
554
|
-
type BlendMode = "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity" | "plus-lighter";
|
|
555
|
-
type ViewStyleBase = Readonly<{
|
|
556
|
-
backfaceVisibility?: "visible" | "hidden" | undefined;
|
|
557
|
-
backgroundColor?: ColorValue | undefined;
|
|
558
|
-
borderColor?: ColorValue | undefined;
|
|
559
|
-
borderCurve?: "circular" | "continuous" | undefined;
|
|
560
|
-
borderBottomColor?: ColorValue | undefined;
|
|
561
|
-
borderEndColor?: ColorValue | undefined;
|
|
562
|
-
borderLeftColor?: ColorValue | undefined;
|
|
563
|
-
borderRightColor?: ColorValue | undefined;
|
|
564
|
-
borderStartColor?: ColorValue | undefined;
|
|
565
|
-
borderTopColor?: ColorValue | undefined;
|
|
566
|
-
borderBlockColor?: ColorValue | undefined;
|
|
567
|
-
borderBlockEndColor?: ColorValue | undefined;
|
|
568
|
-
borderBlockStartColor?: ColorValue | undefined;
|
|
569
|
-
borderRadius?: number | string | undefined;
|
|
570
|
-
borderBottomEndRadius?: number | string | undefined;
|
|
571
|
-
borderBottomLeftRadius?: number | string | undefined;
|
|
572
|
-
borderBottomRightRadius?: number | string | undefined;
|
|
573
|
-
borderBottomStartRadius?: number | string | undefined;
|
|
574
|
-
borderEndEndRadius?: number | string | undefined;
|
|
575
|
-
borderEndStartRadius?: number | string | undefined;
|
|
576
|
-
borderStartEndRadius?: number | string | undefined;
|
|
577
|
-
borderStartStartRadius?: number | string | undefined;
|
|
578
|
-
borderTopEndRadius?: number | string | undefined;
|
|
579
|
-
borderTopLeftRadius?: number | string | undefined;
|
|
580
|
-
borderTopRightRadius?: number | string | undefined;
|
|
581
|
-
borderTopStartRadius?: number | string | undefined;
|
|
582
|
-
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
583
|
-
opacity?: number | undefined;
|
|
584
|
-
outlineColor?: ColorValue | undefined;
|
|
585
|
-
outlineOffset?: number | undefined;
|
|
586
|
-
outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
587
|
-
outlineWidth?: number | undefined;
|
|
588
|
-
elevation?: number | undefined;
|
|
589
|
-
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
590
|
-
cursor?: CursorValue | undefined;
|
|
591
|
-
boxShadow?: ReadonlyArray<BoxShadowValue> | string | undefined;
|
|
592
|
-
filter?: ReadonlyArray<FilterFunction> | string | undefined;
|
|
593
|
-
mixBlendMode?: BlendMode | undefined;
|
|
594
|
-
backgroundImage?: ReadonlyArray<BackgroundImageValue> | string | undefined;
|
|
595
|
-
experimental_backgroundImage?: ReadonlyArray<BackgroundImageValue> | string | undefined;
|
|
596
|
-
backgroundSize?: ReadonlyArray<BackgroundSizeValue> | string | undefined;
|
|
597
|
-
experimental_backgroundSize?: ReadonlyArray<BackgroundSizeValue> | string | undefined;
|
|
598
|
-
backgroundPosition?: ReadonlyArray<BackgroundPositionValue> | string | undefined;
|
|
599
|
-
experimental_backgroundPosition?: ReadonlyArray<BackgroundPositionValue> | string | undefined;
|
|
600
|
-
backgroundRepeat?: ReadonlyArray<BackgroundRepeatValue> | string | undefined;
|
|
601
|
-
experimental_backgroundRepeat?: ReadonlyArray<BackgroundRepeatValue> | string | undefined;
|
|
602
|
-
isolation?: "auto" | "isolate" | undefined;
|
|
603
|
-
}>;
|
|
604
|
-
type WebOnlyViewStyle = Readonly<{
|
|
605
|
-
touchAction?: CSSProperties["touchAction"] | undefined;
|
|
606
|
-
}>;
|
|
607
|
-
interface ViewStyle extends LayoutStyle, ShadowStyle, TransformsStyle, ViewStyleBase, WebOnlyViewStyle {}
|
|
608
|
-
type FontWeight = "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black";
|
|
609
|
-
type FontVariant = "small-caps" | "oldstyle-nums" | "lining-nums" | "tabular-nums" | "common-ligatures" | "no-common-ligatures" | "discretionary-ligatures" | "no-discretionary-ligatures" | "historical-ligatures" | "no-historical-ligatures" | "contextual" | "no-contextual" | "proportional-nums" | "stylistic-one" | "stylistic-two" | "stylistic-three" | "stylistic-four" | "stylistic-five" | "stylistic-six" | "stylistic-seven" | "stylistic-eight" | "stylistic-nine" | "stylistic-ten" | "stylistic-eleven" | "stylistic-twelve" | "stylistic-thirteen" | "stylistic-fourteen" | "stylistic-fifteen" | "stylistic-sixteen" | "stylistic-seventeen" | "stylistic-eighteen" | "stylistic-nineteen" | "stylistic-twenty";
|
|
610
|
-
type TextStyleBase = Readonly<{
|
|
611
|
-
color?: ColorValue | undefined;
|
|
612
|
-
fontFamily?: string | undefined;
|
|
613
|
-
fontSize?: number | undefined;
|
|
614
|
-
fontStyle?: "normal" | "italic" | undefined;
|
|
615
|
-
fontWeight?: FontWeight | undefined;
|
|
616
|
-
fontVariant?: ReadonlyArray<FontVariant> | string | undefined;
|
|
617
|
-
fontVariationSettings?: string | Readonly<{
|
|
618
|
-
[axis: string]: number;
|
|
619
|
-
}> | undefined;
|
|
620
|
-
textShadowOffset?: Readonly<{
|
|
621
|
-
width: number;
|
|
622
|
-
height: number;
|
|
623
|
-
}> | undefined;
|
|
624
|
-
textShadowRadius?: number | undefined;
|
|
625
|
-
textShadowColor?: ColorValue | undefined;
|
|
626
|
-
letterSpacing?: number | undefined;
|
|
627
|
-
lineHeight?: number | undefined;
|
|
628
|
-
textAlign?: "auto" | "left" | "right" | "center" | "justify" | "start" | "end" | undefined;
|
|
629
|
-
textAlignVertical?: "auto" | "top" | "bottom" | "center" | undefined;
|
|
630
|
-
includeFontPadding?: boolean | undefined;
|
|
631
|
-
textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through" | undefined;
|
|
632
|
-
textDecorationStyle?: "solid" | "double" | "dotted" | "dashed" | "wavy" | undefined;
|
|
633
|
-
textDecorationColor?: ColorValue | undefined;
|
|
634
|
-
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined;
|
|
635
|
-
userSelect?: "auto" | "text" | "none" | "contain" | "all" | undefined;
|
|
636
|
-
verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
|
|
637
|
-
writingDirection?: "auto" | "ltr" | "rtl" | undefined;
|
|
638
|
-
}>;
|
|
639
|
-
interface TextStyle extends ViewStyle, TextStyleBase {}
|
|
640
|
-
type ImageStyleBase = Readonly<{
|
|
641
|
-
resizeMode?: ImageResizeMode | undefined;
|
|
642
|
-
objectFit?: "cover" | "contain" | "fill" | "scale-down" | "none" | undefined;
|
|
643
|
-
tintColor?: ColorValue | undefined;
|
|
644
|
-
overlayColor?: ColorValue | undefined;
|
|
645
|
-
}>;
|
|
646
|
-
interface ImageStyle extends Omit<ViewStyle, "overflow">, ImageStyleBase {
|
|
647
|
-
readonly overflow?: "visible" | "hidden" | undefined;
|
|
648
|
-
}
|
|
649
|
-
/** Every style key of every component, the type that `StyleSheet.create` checks. */
|
|
650
|
-
type AnyStyle = Omit<TextStyle, keyof ImageStyleBase> & ImageStyleBase;
|
|
651
|
-
type NamedStyles = {
|
|
652
|
-
readonly [name: string]: Partial<AnyStyle>;
|
|
653
|
-
};
|
|
654
|
-
declare const absoluteFillObject: {
|
|
655
|
-
readonly position: "absolute";
|
|
656
|
-
readonly left: 0;
|
|
657
|
-
readonly right: 0;
|
|
658
|
-
readonly top: 0;
|
|
659
|
-
readonly bottom: 0;
|
|
660
|
-
};
|
|
661
|
-
type AbsoluteFillStyle = typeof absoluteFillObject;
|
|
662
|
-
declare const create: <S extends NamedStyles>(styles: S & NamedStyles) => Readonly<S>;
|
|
663
|
-
declare const flatten: <T extends object>(style: StyleProp<T>) => T | undefined;
|
|
664
|
-
declare const compose: <T>(style1: StyleProp<T>, style2: StyleProp<T>) => StyleProp<T>;
|
|
665
|
-
export declare const StyleSheet: {
|
|
666
|
-
readonly absoluteFill: AbsoluteFillStyle;
|
|
667
|
-
readonly absoluteFillObject: AbsoluteFillStyle;
|
|
668
|
-
readonly hairlineWidth: number;
|
|
669
|
-
readonly create: typeof create;
|
|
670
|
-
readonly flatten: typeof flatten;
|
|
671
|
-
readonly compose: typeof compose;
|
|
672
|
-
};
|
|
673
|
-
export declare const useColorScheme: () => ColorSchemeName;
|
|
674
|
-
export declare const useWindowDimensions: () => ScaledSize;
|
|
675
|
-
/**
|
|
676
|
-
* Vibrates the device with `navigator.vibrate`, with Android's rules: the durations apply, and
|
|
677
|
-
* an array starts with a wait.
|
|
678
|
-
*/
|
|
679
|
-
export declare const Vibration: {
|
|
680
|
-
vibrate: (pattern?: number | Array<number>, repeat?: boolean) => void;
|
|
681
|
-
cancel: () => void;
|
|
682
|
-
};
|
|
683
|
-
type MeasureOnSuccessCallback = (x: number, y: number, width: number, height: number, pageX: number, pageY: number) => void;
|
|
684
|
-
type MeasureInWindowOnSuccessCallback = (x: number, y: number, width: number, height: number) => void;
|
|
685
|
-
type MeasureLayoutOnSuccessCallback = (left: number, top: number, width: number, height: number) => void;
|
|
686
|
-
type HostMethods = {
|
|
687
|
-
measure: (callback: MeasureOnSuccessCallback) => void;
|
|
688
|
-
measureInWindow: (callback: MeasureInWindowOnSuccessCallback) => void;
|
|
689
|
-
measureLayout: (relativeToNativeNode: Element | number, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void) => void;
|
|
690
|
-
setNativeProps: (nativeProps: object) => void;
|
|
691
|
-
};
|
|
692
|
-
type HostInstance = HTMLElement & HostMethods;
|
|
693
|
-
type ViewInstance = HostInstance;
|
|
694
|
-
/**
|
|
695
|
-
* Compat type. The type of a component that a library gets from a native component spec. Its
|
|
696
|
-
* `ref` is the host instance.
|
|
697
|
-
*/
|
|
698
|
-
type HostComponent<Config extends object> = (props: Omit<Config, "ref"> & {
|
|
699
|
-
ref?: Ref<HostInstance> | undefined;
|
|
700
|
-
}) => ReactNode;
|
|
701
|
-
type AccessibilityActionEvent = NativeSyntheticEvent<Readonly<{
|
|
702
|
-
actionName: string;
|
|
703
|
-
}>>;
|
|
704
|
-
type LayoutRectangle = {
|
|
705
|
-
x: number;
|
|
706
|
-
y: number;
|
|
707
|
-
width: number;
|
|
708
|
-
height: number;
|
|
709
|
-
};
|
|
710
|
-
type LayoutChangeEvent = {
|
|
711
|
-
nativeEvent: {
|
|
712
|
-
layout: LayoutRectangle;
|
|
713
|
-
};
|
|
714
|
-
};
|
|
715
|
-
type AccessibilityState = {
|
|
716
|
-
disabled?: boolean | undefined;
|
|
717
|
-
selected?: boolean | undefined;
|
|
718
|
-
checked?: boolean | "mixed" | undefined;
|
|
719
|
-
busy?: boolean | undefined;
|
|
720
|
-
expanded?: boolean | undefined;
|
|
721
|
-
};
|
|
722
|
-
type AccessibilityValue = {
|
|
723
|
-
min?: number | undefined;
|
|
724
|
-
max?: number | undefined;
|
|
725
|
-
now?: number | undefined;
|
|
726
|
-
text?: string | undefined;
|
|
727
|
-
};
|
|
728
|
-
type Role = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "group" | "heading" | "img" | "link" | "list" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "meter" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "summary" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem";
|
|
729
|
-
type DOMEventHandlers<T> = Omit<DOMAttributes<T>, "children" | "dangerouslySetInnerHTML">;
|
|
730
|
-
interface AccessibilityProps {
|
|
731
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
732
|
-
[key: `data-${string}`]: string | number | boolean | undefined;
|
|
733
|
-
accessible?: boolean | undefined;
|
|
734
|
-
accessibilityLabel?: string | undefined;
|
|
735
|
-
accessibilityLabelledBy?: string | ReadonlyArray<string> | undefined;
|
|
736
|
-
accessibilityHint?: string | undefined;
|
|
737
|
-
accessibilityRole?: string | undefined;
|
|
738
|
-
accessibilityState?: AccessibilityState | undefined;
|
|
739
|
-
accessibilityValue?: AccessibilityValue | undefined;
|
|
740
|
-
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
741
|
-
accessibilityElementsHidden?: boolean | undefined;
|
|
742
|
-
accessibilityViewIsModal?: boolean | undefined;
|
|
743
|
-
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
744
|
-
role?: Role | undefined;
|
|
745
|
-
"aria-busy"?: boolean | undefined;
|
|
746
|
-
"aria-checked"?: boolean | "mixed" | undefined;
|
|
747
|
-
"aria-disabled"?: boolean | undefined;
|
|
748
|
-
"aria-expanded"?: boolean | undefined;
|
|
749
|
-
"aria-hidden"?: boolean | undefined;
|
|
750
|
-
"aria-label"?: string | undefined;
|
|
751
|
-
"aria-labelledby"?: string | undefined;
|
|
752
|
-
"aria-live"?: "polite" | "assertive" | "off" | undefined;
|
|
753
|
-
"aria-modal"?: boolean | undefined;
|
|
754
|
-
"aria-selected"?: boolean | undefined;
|
|
755
|
-
"aria-valuemax"?: number | undefined;
|
|
756
|
-
"aria-valuemin"?: number | undefined;
|
|
757
|
-
"aria-valuenow"?: number | undefined;
|
|
758
|
-
"aria-valuetext"?: string | undefined;
|
|
759
|
-
}
|
|
760
|
-
interface ViewProps extends AccessibilityProps, DOMEventHandlers<HTMLElement> {
|
|
761
|
-
children?: ReactNode;
|
|
762
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
763
|
-
ref?: Ref<ViewInstance> | undefined;
|
|
764
|
-
id?: string | undefined;
|
|
765
|
-
nativeID?: string | undefined;
|
|
766
|
-
testID?: string | undefined;
|
|
767
|
-
tabIndex?: 0 | -1 | undefined;
|
|
768
|
-
focusable?: boolean | undefined;
|
|
769
|
-
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
770
|
-
collapsable?: boolean | undefined;
|
|
771
|
-
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
772
|
-
onKeyDown?: DOMEventHandlers<HTMLElement>["onKeyDown"];
|
|
773
|
-
"aria-level"?: number | undefined;
|
|
774
|
-
href?: string | undefined;
|
|
775
|
-
}
|
|
776
|
-
interface ActivityIndicatorProps extends ViewProps {
|
|
777
|
-
animating?: boolean | undefined;
|
|
778
|
-
color?: string | undefined;
|
|
779
|
-
hidesWhenStopped?: boolean | undefined;
|
|
780
|
-
size?: number | "small" | "large" | undefined;
|
|
781
|
-
}
|
|
782
|
-
export declare function ActivityIndicator(props: ActivityIndicatorProps): ReactElement;
|
|
783
|
-
type Rect = Readonly<{
|
|
784
|
-
bottom?: number | undefined;
|
|
785
|
-
left?: number | undefined;
|
|
786
|
-
right?: number | undefined;
|
|
787
|
-
top?: number | undefined;
|
|
788
|
-
}>;
|
|
789
|
-
type Insets = Rect;
|
|
790
|
-
type RectOrSize = Rect | number;
|
|
791
|
-
type PressabilityConfig = Readonly<{
|
|
792
|
-
cancelable?: boolean | undefined;
|
|
793
|
-
disabled?: boolean | undefined;
|
|
794
|
-
hitSlop?: RectOrSize | undefined;
|
|
795
|
-
pressRectOffset?: RectOrSize | undefined;
|
|
796
|
-
android_disableSound?: boolean | undefined;
|
|
797
|
-
delayHoverIn?: number | undefined;
|
|
798
|
-
delayHoverOut?: number | undefined;
|
|
799
|
-
delayLongPress?: number | undefined;
|
|
800
|
-
delayPressIn?: number | undefined;
|
|
801
|
-
delayPressOut?: number | undefined;
|
|
802
|
-
minPressDuration?: number | undefined;
|
|
803
|
-
onBlur?: ((event: BlurEvent) => unknown) | undefined;
|
|
804
|
-
onFocus?: ((event: FocusEvent) => unknown) | undefined;
|
|
805
|
-
onHoverIn?: ((event: MouseEvent) => unknown) | undefined;
|
|
806
|
-
onHoverOut?: ((event: MouseEvent) => unknown) | undefined;
|
|
807
|
-
onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
808
|
-
onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
809
|
-
onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
810
|
-
onPressMove?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
811
|
-
onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
812
|
-
blockNativeResponder?: boolean | undefined;
|
|
813
|
-
}>;
|
|
814
|
-
type PressabilityEventHandlers = Readonly<{
|
|
815
|
-
onBlur: (event: FocusEvent$1<HTMLElement>) => void;
|
|
816
|
-
onClick: (event: MouseEvent$1<HTMLElement>) => void;
|
|
817
|
-
onContextMenu: (event: MouseEvent$1<HTMLElement>) => void;
|
|
818
|
-
onFocus: (event: FocusEvent$1<HTMLElement>) => void;
|
|
819
|
-
onKeyDown: (event: KeyboardEvent$1<HTMLElement>) => void;
|
|
820
|
-
onKeyUp: (event: KeyboardEvent$1<HTMLElement>) => void;
|
|
821
|
-
onPointerCancel: (event: PointerEvent$1<HTMLElement>) => void;
|
|
822
|
-
onPointerDown: (event: PointerEvent$1<HTMLElement>) => void;
|
|
823
|
-
onPointerEnter: (event: PointerEvent$1<HTMLElement>) => void;
|
|
824
|
-
onPointerLeave: (event: PointerEvent$1<HTMLElement>) => void;
|
|
825
|
-
onPointerMove: (event: PointerEvent$1<HTMLElement>) => void;
|
|
826
|
-
onPointerUp: (event: PointerEvent$1<HTMLElement>) => void;
|
|
827
|
-
}>;
|
|
828
|
-
type TouchablePressProps = {
|
|
829
|
-
delayLongPress?: number | undefined;
|
|
830
|
-
delayPressIn?: number | undefined;
|
|
831
|
-
delayPressOut?: number | undefined;
|
|
832
|
-
disabled?: boolean | undefined;
|
|
833
|
-
hitSlop?: RectOrSize | undefined;
|
|
834
|
-
onBlur?: ((event: BlurEvent) => unknown) | undefined;
|
|
835
|
-
onFocus?: ((event: FocusEvent) => unknown) | undefined;
|
|
836
|
-
onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
837
|
-
onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
838
|
-
onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
839
|
-
onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
840
|
-
pressRetentionOffset?: RectOrSize | undefined;
|
|
841
|
-
rejectResponderTermination?: boolean | undefined;
|
|
842
|
-
touchSoundDisabled?: boolean | undefined;
|
|
843
|
-
};
|
|
844
|
-
type TouchableTVProps = {
|
|
845
|
-
hasTVPreferredFocus?: boolean | undefined;
|
|
846
|
-
nextFocusDown?: number | undefined;
|
|
847
|
-
nextFocusForward?: number | undefined;
|
|
848
|
-
nextFocusLeft?: number | undefined;
|
|
849
|
-
nextFocusRight?: number | undefined;
|
|
850
|
-
nextFocusUp?: number | undefined;
|
|
851
|
-
};
|
|
852
|
-
interface TouchableWithoutFeedbackProps extends AccessibilityProps, TouchablePressProps {
|
|
853
|
-
children?: ReactNode | undefined;
|
|
854
|
-
focusable?: boolean | undefined;
|
|
855
|
-
id?: string | undefined;
|
|
856
|
-
nativeID?: string | undefined;
|
|
857
|
-
testID?: string | undefined;
|
|
858
|
-
onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
|
|
859
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
860
|
-
}
|
|
861
|
-
interface ButtonProps extends TouchableTVProps {
|
|
862
|
-
title: string;
|
|
863
|
-
onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
864
|
-
color?: string | undefined;
|
|
865
|
-
disabled?: boolean | undefined;
|
|
866
|
-
testID?: string | undefined;
|
|
867
|
-
ref?: Ref<HostInstance> | undefined;
|
|
868
|
-
accessible?: boolean | undefined;
|
|
869
|
-
accessibilityLabel?: string | undefined;
|
|
870
|
-
accessibilityHint?: string | undefined;
|
|
871
|
-
accessibilityLanguage?: string | undefined;
|
|
872
|
-
accessibilityState?: AccessibilityState | undefined;
|
|
873
|
-
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
874
|
-
"aria-busy"?: boolean | undefined;
|
|
875
|
-
"aria-checked"?: boolean | "mixed" | undefined;
|
|
876
|
-
"aria-disabled"?: boolean | undefined;
|
|
877
|
-
"aria-expanded"?: boolean | undefined;
|
|
878
|
-
"aria-label"?: string | undefined;
|
|
879
|
-
"aria-selected"?: boolean | undefined;
|
|
880
|
-
accessibilityActions?: ReadonlyArray<{
|
|
881
|
-
name: string;
|
|
882
|
-
label?: string | undefined;
|
|
883
|
-
}> | undefined;
|
|
884
|
-
onAccessibilityAction?: ((event: unknown) => unknown) | undefined;
|
|
885
|
-
touchSoundDisabled?: boolean | undefined;
|
|
886
|
-
}
|
|
887
|
-
export declare function Button(props: ButtonProps): ReactElement;
|
|
888
|
-
type NativeScrollPoint = {
|
|
889
|
-
x: number;
|
|
890
|
-
y: number;
|
|
891
|
-
};
|
|
892
|
-
type NativeScrollSize = {
|
|
893
|
-
width: number;
|
|
894
|
-
height: number;
|
|
895
|
-
};
|
|
896
|
-
type NativeScrollRectangle = {
|
|
897
|
-
top: number;
|
|
898
|
-
left: number;
|
|
899
|
-
bottom: number;
|
|
900
|
-
right: number;
|
|
901
|
-
};
|
|
902
|
-
type NativeScrollEvent = {
|
|
903
|
-
contentInset: NativeScrollRectangle;
|
|
904
|
-
contentOffset: NativeScrollPoint;
|
|
905
|
-
contentSize: NativeScrollSize;
|
|
906
|
-
layoutMeasurement: NativeScrollSize;
|
|
907
|
-
zoomScale: number;
|
|
908
|
-
};
|
|
909
|
-
type ScrollEvent = NativeSyntheticEvent<NativeScrollEvent>;
|
|
910
|
-
type ScrollToOptions = {
|
|
911
|
-
x?: number | undefined;
|
|
912
|
-
y?: number | undefined;
|
|
913
|
-
animated?: boolean | undefined;
|
|
914
|
-
};
|
|
915
|
-
type ScrollViewInstance = HostInstance & {
|
|
916
|
-
scrollTo: {
|
|
917
|
-
(options: ScrollToOptions): void;
|
|
918
|
-
(x: number, y: number): void;
|
|
919
|
-
(options: globalThis.ScrollToOptions): void;
|
|
920
|
-
};
|
|
921
|
-
scrollToEnd: (options?: {
|
|
922
|
-
animated?: boolean | undefined;
|
|
923
|
-
}) => void;
|
|
924
|
-
flashScrollIndicators: () => void;
|
|
925
|
-
getScrollResponder: () => ScrollViewInstance;
|
|
926
|
-
getScrollableNode: () => HTMLElement;
|
|
927
|
-
getInnerViewNode: () => HTMLElement | null;
|
|
928
|
-
getInnerViewRef: () => HTMLElement | null;
|
|
929
|
-
getNativeScrollRef: () => HTMLElement;
|
|
930
|
-
};
|
|
931
|
-
type ReservedViewProps = "ref" | "onScroll" | "onScrollEnd";
|
|
932
|
-
interface ScrollViewProps extends Omit<ViewProps, ReservedViewProps> {
|
|
933
|
-
ref?: Ref<ScrollViewInstance> | undefined;
|
|
934
|
-
contentContainerStyle?: StyleProp<ViewStyle> | undefined;
|
|
935
|
-
horizontal?: boolean | undefined;
|
|
936
|
-
scrollEnabled?: boolean | undefined;
|
|
937
|
-
showsHorizontalScrollIndicator?: boolean | undefined;
|
|
938
|
-
showsVerticalScrollIndicator?: boolean | undefined;
|
|
939
|
-
pagingEnabled?: boolean | undefined;
|
|
940
|
-
snapToInterval?: number | undefined;
|
|
941
|
-
snapToOffsets?: ReadonlyArray<number> | undefined;
|
|
942
|
-
snapToAlignment?: "start" | "center" | "end" | undefined;
|
|
943
|
-
snapToStart?: boolean | undefined;
|
|
944
|
-
snapToEnd?: boolean | undefined;
|
|
945
|
-
contentOffset?: NativeScrollPoint | undefined;
|
|
946
|
-
centerContent?: boolean | undefined;
|
|
947
|
-
stickyHeaderIndices?: ReadonlyArray<number> | undefined;
|
|
948
|
-
stickyHeaderHiddenOnScroll?: boolean | undefined;
|
|
949
|
-
invertStickyHeaders?: boolean | undefined;
|
|
950
|
-
keyboardDismissMode?: "none" | "on-drag" | "interactive" | undefined;
|
|
951
|
-
keyboardShouldPersistTaps?: boolean | "always" | "never" | "handled" | undefined;
|
|
952
|
-
refreshControl?: ReactElement | undefined;
|
|
953
|
-
scrollEventThrottle?: number | undefined;
|
|
954
|
-
onScroll?: ((event: ScrollEvent) => void) | undefined;
|
|
955
|
-
onScrollBeginDrag?: ((event: ScrollEvent) => void) | undefined;
|
|
956
|
-
onScrollEndDrag?: ((event: ScrollEvent) => void) | undefined;
|
|
957
|
-
onMomentumScrollBegin?: ((event: ScrollEvent) => void) | undefined;
|
|
958
|
-
onMomentumScrollEnd?: ((event: ScrollEvent) => void) | undefined;
|
|
959
|
-
onContentSizeChange?: ((width: number, height: number) => void) | undefined;
|
|
960
|
-
alwaysBounceHorizontal?: boolean | undefined;
|
|
961
|
-
alwaysBounceVertical?: boolean | undefined;
|
|
962
|
-
automaticallyAdjustContentInsets?: boolean | undefined;
|
|
963
|
-
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
964
|
-
automaticallyAdjustsScrollIndicatorInsets?: boolean | undefined;
|
|
965
|
-
bounces?: boolean | undefined;
|
|
966
|
-
bouncesZoom?: boolean | undefined;
|
|
967
|
-
canCancelContentTouches?: boolean | undefined;
|
|
968
|
-
contentInset?: Partial<NativeScrollRectangle> | undefined;
|
|
969
|
-
contentInsetAdjustmentBehavior?: "automatic" | "scrollableAxes" | "never" | "always" | undefined;
|
|
970
|
-
decelerationRate?: "fast" | "normal" | number | undefined;
|
|
971
|
-
directionalLockEnabled?: boolean | undefined;
|
|
972
|
-
disableIntervalMomentum?: boolean | undefined;
|
|
973
|
-
disableScrollViewPanResponder?: boolean | undefined;
|
|
974
|
-
endFillColor?: unknown;
|
|
975
|
-
fadingEdgeLength?: number | undefined;
|
|
976
|
-
indicatorStyle?: "default" | "black" | "white" | undefined;
|
|
977
|
-
maintainVisibleContentPosition?: {
|
|
978
|
-
minIndexForVisible: number;
|
|
979
|
-
autoscrollToTopThreshold?: number | undefined;
|
|
980
|
-
} | undefined;
|
|
981
|
-
maximumZoomScale?: number | undefined;
|
|
982
|
-
minimumZoomScale?: number | undefined;
|
|
983
|
-
nestedScrollEnabled?: boolean | undefined;
|
|
984
|
-
overScrollMode?: "auto" | "always" | "never" | undefined;
|
|
985
|
-
persistentScrollbar?: boolean | undefined;
|
|
986
|
-
pinchGestureEnabled?: boolean | undefined;
|
|
987
|
-
removeClippedSubviews?: boolean | undefined;
|
|
988
|
-
scrollIndicatorInsets?: Partial<NativeScrollRectangle> | undefined;
|
|
989
|
-
scrollPerfTag?: string | undefined;
|
|
990
|
-
scrollToOverflowEnabled?: boolean | undefined;
|
|
991
|
-
scrollsToTop?: boolean | undefined;
|
|
992
|
-
snapToIntervalMomentum?: boolean | undefined;
|
|
993
|
-
zoomScale?: number | undefined;
|
|
994
|
-
onScrollToTop?: ((event: ScrollEvent) => void) | undefined;
|
|
995
|
-
}
|
|
996
|
-
type ViewToken<ItemT = unknown> = {
|
|
997
|
-
item: ItemT;
|
|
998
|
-
key: string;
|
|
999
|
-
index: number | null;
|
|
1000
|
-
isViewable: boolean;
|
|
1001
|
-
section?: unknown;
|
|
1002
|
-
};
|
|
1003
|
-
type ViewabilityConfig = {
|
|
1004
|
-
minimumViewTime?: number | undefined;
|
|
1005
|
-
viewAreaCoveragePercentThreshold?: number | undefined;
|
|
1006
|
-
itemVisiblePercentThreshold?: number | undefined;
|
|
1007
|
-
waitForInteraction?: boolean | undefined;
|
|
1008
|
-
};
|
|
1009
|
-
type ViewableItemsChangedInfo<ItemT = unknown> = {
|
|
1010
|
-
viewableItems: Array<ViewToken<ItemT>>;
|
|
1011
|
-
changed: Array<ViewToken<ItemT>>;
|
|
1012
|
-
};
|
|
1013
|
-
type ViewabilityConfigCallbackPair<ItemT = unknown> = {
|
|
1014
|
-
viewabilityConfig: ViewabilityConfig;
|
|
1015
|
-
onViewableItemsChanged: ((info: ViewableItemsChangedInfo<ItemT>) => void) | null;
|
|
1016
|
-
};
|
|
1017
|
-
type ViewabilityConfigCallbackPairs<ItemT = unknown> = Array<ViewabilityConfigCallbackPair<ItemT>>;
|
|
1018
|
-
type ListSeparators = {
|
|
1019
|
-
highlight: () => void;
|
|
1020
|
-
unhighlight: () => void;
|
|
1021
|
-
updateProps: (select: "leading" | "trailing", newProps: Record<string, unknown>) => void;
|
|
1022
|
-
};
|
|
1023
|
-
type ListRenderItemInfo<ItemT> = {
|
|
1024
|
-
item: ItemT;
|
|
1025
|
-
index: number;
|
|
1026
|
-
separators: ListSeparators;
|
|
1027
|
-
};
|
|
1028
|
-
type ListRenderItem<ItemT> = (info: ListRenderItemInfo<ItemT>) => ReactElement | null;
|
|
1029
|
-
type CellRendererProps<ItemT> = {
|
|
1030
|
-
cellKey: string;
|
|
1031
|
-
children: ReactNode;
|
|
1032
|
-
index: number;
|
|
1033
|
-
item: ItemT;
|
|
1034
|
-
onFocusCapture?: ((event: FocusEvent$1<HTMLElement>) => void) | undefined;
|
|
1035
|
-
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
1036
|
-
style: StyleProp<ViewStyle> | undefined;
|
|
1037
|
-
};
|
|
1038
|
-
type ListComponent = ComponentType<Record<string, never>> | ReactElement | null | undefined;
|
|
1039
|
-
type ListSeparatorProps<ItemT> = {
|
|
1040
|
-
highlighted: boolean;
|
|
1041
|
-
leadingItem: ItemT;
|
|
1042
|
-
};
|
|
1043
|
-
type ListSeparatorComponent<ItemT> = ComponentType<ListSeparatorProps<ItemT>> | ReactElement | null | undefined;
|
|
1044
|
-
type ScrollToIndexParams = {
|
|
1045
|
-
animated?: boolean | undefined;
|
|
1046
|
-
index: number;
|
|
1047
|
-
viewOffset?: number | undefined;
|
|
1048
|
-
viewPosition?: number | undefined;
|
|
1049
|
-
};
|
|
1050
|
-
type ScrollToItemParams<ItemT> = {
|
|
1051
|
-
animated?: boolean | undefined;
|
|
1052
|
-
item: ItemT;
|
|
1053
|
-
viewOffset?: number | undefined;
|
|
1054
|
-
viewPosition?: number | undefined;
|
|
1055
|
-
};
|
|
1056
|
-
type ScrollToOffsetParams = {
|
|
1057
|
-
animated?: boolean | undefined;
|
|
1058
|
-
offset: number;
|
|
1059
|
-
};
|
|
1060
|
-
type FlatListInstance<ItemT = unknown> = {
|
|
1061
|
-
scrollToEnd: (params?: {
|
|
1062
|
-
animated?: boolean | undefined;
|
|
1063
|
-
} | null) => void;
|
|
1064
|
-
scrollToIndex: (params: ScrollToIndexParams) => void;
|
|
1065
|
-
scrollToItem: (params: ScrollToItemParams<ItemT>) => void;
|
|
1066
|
-
scrollToOffset: (params: ScrollToOffsetParams) => void;
|
|
1067
|
-
recordInteraction: () => void;
|
|
1068
|
-
flashScrollIndicators: () => void;
|
|
1069
|
-
getScrollResponder: () => ScrollViewInstance | null;
|
|
1070
|
-
getNativeScrollRef: () => ScrollViewInstance | null;
|
|
1071
|
-
getScrollableNode: () => HTMLElement | null;
|
|
1072
|
-
setNativeProps: (props: Record<string, unknown>) => void;
|
|
1073
|
-
};
|
|
1074
|
-
type ReservedScrollViewProps = "ref" | "children";
|
|
1075
|
-
interface FlatListProps<ItemT> extends Omit<ScrollViewProps, ReservedScrollViewProps> {
|
|
1076
|
-
ref?: Ref<FlatListInstance<ItemT>> | undefined;
|
|
1077
|
-
data: Readonly<ArrayLike<ItemT>> | null | undefined;
|
|
1078
|
-
renderItem?: ListRenderItem<ItemT> | null | undefined;
|
|
1079
|
-
ListItemComponent?: ComponentType<ListRenderItemInfo<ItemT>> | undefined;
|
|
1080
|
-
keyExtractor?: ((item: ItemT, index: number) => string) | undefined;
|
|
1081
|
-
extraData?: unknown;
|
|
1082
|
-
getItemLayout?: ((data: Readonly<ArrayLike<ItemT>> | null | undefined, index: number) => {
|
|
1083
|
-
length: number;
|
|
1084
|
-
offset: number;
|
|
1085
|
-
index: number;
|
|
1086
|
-
}) | undefined;
|
|
1087
|
-
numColumns?: number | undefined;
|
|
1088
|
-
columnWrapperStyle?: StyleProp<ViewStyle> | undefined;
|
|
1089
|
-
inverted?: boolean | null | undefined;
|
|
1090
|
-
initialScrollIndex?: number | null | undefined;
|
|
1091
|
-
ItemSeparatorComponent?: ListSeparatorComponent<ItemT>;
|
|
1092
|
-
ListEmptyComponent?: ListComponent;
|
|
1093
|
-
ListHeaderComponent?: ListComponent;
|
|
1094
|
-
ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
|
|
1095
|
-
ListFooterComponent?: ListComponent;
|
|
1096
|
-
ListFooterComponentStyle?: StyleProp<ViewStyle> | undefined;
|
|
1097
|
-
CellRendererComponent?: ComponentType<CellRendererProps<ItemT>> | null | undefined;
|
|
1098
|
-
renderScrollComponent?: ((props: ScrollViewProps) => ReactElement<ScrollViewProps>) | undefined;
|
|
1099
|
-
onEndReached?: ((info: {
|
|
1100
|
-
distanceFromEnd: number;
|
|
1101
|
-
}) => void) | null | undefined;
|
|
1102
|
-
onEndReachedThreshold?: number | null | undefined;
|
|
1103
|
-
onStartReached?: ((info: {
|
|
1104
|
-
distanceFromStart: number;
|
|
1105
|
-
}) => void) | null | undefined;
|
|
1106
|
-
onStartReachedThreshold?: number | null | undefined;
|
|
1107
|
-
onViewableItemsChanged?: ((info: ViewableItemsChangedInfo<ItemT>) => void) | null | undefined;
|
|
1108
|
-
viewabilityConfig?: ViewabilityConfig | undefined;
|
|
1109
|
-
viewabilityConfigCallbackPairs?: ViewabilityConfigCallbackPairs<ItemT> | undefined;
|
|
1110
|
-
onScrollToIndexFailed?: ((info: {
|
|
1111
|
-
index: number;
|
|
1112
|
-
highestMeasuredFrameIndex: number;
|
|
1113
|
-
averageItemLength: number;
|
|
1114
|
-
}) => void) | undefined;
|
|
1115
|
-
onRefresh?: (() => void) | null | undefined;
|
|
1116
|
-
refreshing?: boolean | null | undefined;
|
|
1117
|
-
progressViewOffset?: number | undefined;
|
|
1118
|
-
debug?: boolean | undefined;
|
|
1119
|
-
disableVirtualization?: boolean | undefined;
|
|
1120
|
-
initialNumToRender?: number | undefined;
|
|
1121
|
-
maxToRenderPerBatch?: number | undefined;
|
|
1122
|
-
strictMode?: boolean | undefined;
|
|
1123
|
-
updateCellsBatchingPeriod?: number | undefined;
|
|
1124
|
-
windowSize?: number | undefined;
|
|
1125
|
-
legacyImplementation?: boolean | undefined;
|
|
1126
|
-
}
|
|
1127
|
-
export declare function FlatList<ItemT>(props: FlatListProps<ItemT>): ReactElement;
|
|
1128
|
-
type ImageInstance = HostInstance;
|
|
1129
|
-
type ImageURISource = {
|
|
1130
|
-
uri?: string | undefined;
|
|
1131
|
-
bundle?: string | undefined;
|
|
1132
|
-
method?: string | undefined;
|
|
1133
|
-
headers?: Record<string, string> | undefined;
|
|
1134
|
-
body?: string | undefined;
|
|
1135
|
-
cache?: "default" | "reload" | "force-cache" | "only-if-cached" | undefined;
|
|
1136
|
-
width?: number | undefined;
|
|
1137
|
-
height?: number | undefined;
|
|
1138
|
-
scale?: number | undefined;
|
|
1139
|
-
};
|
|
1140
|
-
type ImageSource = ImageURISource | ReadonlyArray<ImageURISource> | number | string;
|
|
1141
|
-
type ImageResolvedAssetSource = {
|
|
1142
|
-
uri: string;
|
|
1143
|
-
width?: number | undefined;
|
|
1144
|
-
height?: number | undefined;
|
|
1145
|
-
scale: number;
|
|
1146
|
-
};
|
|
1147
|
-
type ImageLoadEventData = {
|
|
1148
|
-
source: {
|
|
1149
|
-
uri: string;
|
|
1150
|
-
width: number;
|
|
1151
|
-
height: number;
|
|
1152
|
-
};
|
|
1153
|
-
};
|
|
1154
|
-
type ImageLoadEvent = {
|
|
1155
|
-
nativeEvent: ImageLoadEventData;
|
|
1156
|
-
};
|
|
1157
|
-
type ImageErrorEvent = {
|
|
1158
|
-
nativeEvent: {
|
|
1159
|
-
error: string;
|
|
1160
|
-
};
|
|
1161
|
-
};
|
|
1162
|
-
type ImageProgressEvent = {
|
|
1163
|
-
nativeEvent: {
|
|
1164
|
-
loaded: number;
|
|
1165
|
-
total: number;
|
|
1166
|
-
};
|
|
1167
|
-
};
|
|
1168
|
-
type ImageSize = {
|
|
1169
|
-
width: number;
|
|
1170
|
-
height: number;
|
|
1171
|
-
};
|
|
1172
|
-
type ReservedDOMHandlers$1 = "onLoad" | "onLoadStart" | "onError" | "onProgress";
|
|
1173
|
-
interface ImageProps extends AccessibilityProps, Omit<DOMEventHandlers<HTMLElement>, ReservedDOMHandlers$1> {
|
|
1174
|
-
source?: ImageSource | undefined;
|
|
1175
|
-
src?: string | undefined;
|
|
1176
|
-
srcSet?: string | undefined;
|
|
1177
|
-
alt?: string | undefined;
|
|
1178
|
-
defaultSource?: ImageURISource | number | string | undefined;
|
|
1179
|
-
resizeMode?: ImageResizeMode | undefined;
|
|
1180
|
-
resizeMethod?: "auto" | "resize" | "scale" | "none" | undefined;
|
|
1181
|
-
blurRadius?: number | undefined;
|
|
1182
|
-
tintColor?: unknown;
|
|
1183
|
-
width?: number | undefined;
|
|
1184
|
-
height?: number | undefined;
|
|
1185
|
-
crossOrigin?: "anonymous" | "use-credentials" | undefined;
|
|
1186
|
-
referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
|
|
1187
|
-
fadeDuration?: number | undefined;
|
|
1188
|
-
progressiveRenderingEnabled?: boolean | undefined;
|
|
1189
|
-
loadingIndicatorSource?: ImageURISource | number | undefined;
|
|
1190
|
-
style?: StyleProp<ImageStyle> | undefined;
|
|
1191
|
-
ref?: Ref<ImageInstance> | undefined;
|
|
1192
|
-
id?: string | undefined;
|
|
1193
|
-
nativeID?: string | undefined;
|
|
1194
|
-
testID?: string | undefined;
|
|
1195
|
-
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
1196
|
-
onLoad?: ((event: ImageLoadEvent) => void) | undefined;
|
|
1197
|
-
onLoadStart?: (() => void) | undefined;
|
|
1198
|
-
onLoadEnd?: (() => void) | undefined;
|
|
1199
|
-
onError?: ((event: ImageErrorEvent) => void) | undefined;
|
|
1200
|
-
onProgress?: ((event: ImageProgressEvent) => void) | undefined;
|
|
1201
|
-
loading?: "eager" | "lazy" | undefined;
|
|
1202
|
-
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
1203
|
-
decoding?: "sync" | "async" | "auto" | undefined;
|
|
1204
|
-
}
|
|
1205
|
-
type ImageStatics = {
|
|
1206
|
-
getSize: {
|
|
1207
|
-
(uri: string): Promise<ImageSize>;
|
|
1208
|
-
(uri: string, success: (width: number, height: number) => void, failure?: (error: unknown) => void): void;
|
|
1209
|
-
};
|
|
1210
|
-
getSizeWithHeaders: {
|
|
1211
|
-
(uri: string, headers: Record<string, string>): Promise<ImageSize>;
|
|
1212
|
-
(uri: string, headers: Record<string, string>, success: (width: number, height: number) => void, failure?: (error: unknown) => void): void;
|
|
1213
|
-
};
|
|
1214
|
-
prefetch: (url: string) => Promise<boolean>;
|
|
1215
|
-
queryCache: (urls: ReadonlyArray<string>) => Promise<Record<string, "memory" | "disk" | "disk/memory">>;
|
|
1216
|
-
resolveAssetSource: (source: ImageSource | undefined) => ImageResolvedAssetSource | null;
|
|
1217
|
-
};
|
|
1218
|
-
declare function ImageComponent(props: ImageProps): ReactElement;
|
|
1219
|
-
export declare const Image: typeof ImageComponent & ImageStatics;
|
|
1220
|
-
interface KeyboardAvoidingViewProps extends ViewProps {
|
|
1221
|
-
/** How the view moves out of the way of the keyboard. With no value, it doesn't. */
|
|
1222
|
-
behavior?: "height" | "position" | "padding" | undefined;
|
|
1223
|
-
/** The style of the inner view, with the `position` behavior. */
|
|
1224
|
-
contentContainerStyle?: ViewProps["style"];
|
|
1225
|
-
/** `false` stops the view from moving. Defaults to `true`. */
|
|
1226
|
-
enabled?: boolean | undefined;
|
|
1227
|
-
/** The distance between the top of the window and the top of the view. Defaults to 0. */
|
|
1228
|
-
keyboardVerticalOffset?: number | undefined;
|
|
1229
|
-
}
|
|
1230
|
-
/** The element of the outer view. */
|
|
1231
|
-
type KeyboardAvoidingViewInstance = HostInstance;
|
|
1232
|
-
/**
|
|
1233
|
-
* A view that moves out of the way of the keyboard, with the math of React Native 0.88. As on
|
|
1234
|
-
* native, the frame of the view comes from `onLayout`, so its `y` is relative to its parent.
|
|
1235
|
-
* `keyboardVerticalOffset` adds the distance to the top of the window.
|
|
1236
|
-
*/
|
|
1237
|
-
export declare function KeyboardAvoidingView(props: KeyboardAvoidingViewProps): ReactElement;
|
|
1238
|
-
type ModalEvent = {
|
|
1239
|
-
nativeEvent: null;
|
|
1240
|
-
};
|
|
1241
|
-
type ModalOrientationChangeEvent = {
|
|
1242
|
-
nativeEvent: {
|
|
1243
|
-
orientation: "portrait" | "landscape";
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
|
-
type ModalProps = Omit<ViewProps, "ref"> & {
|
|
1247
|
-
ref?: Ref<HTMLDialogElement> | undefined;
|
|
1248
|
-
modalRef?: Ref<HTMLDialogElement> | undefined;
|
|
1249
|
-
visible?: boolean | undefined;
|
|
1250
|
-
transparent?: boolean | undefined;
|
|
1251
|
-
backdropColor?: string | undefined;
|
|
1252
|
-
animationType?: "none" | "slide" | "fade" | undefined;
|
|
1253
|
-
onRequestClose?: ((event: ModalEvent) => void) | undefined;
|
|
1254
|
-
onShow?: ((event: ModalEvent) => void) | undefined;
|
|
1255
|
-
onDismiss?: (() => void) | undefined;
|
|
1256
|
-
allowSwipeDismissal?: boolean | undefined;
|
|
1257
|
-
hardwareAccelerated?: boolean | undefined;
|
|
1258
|
-
navigationBarTranslucent?: boolean | undefined;
|
|
1259
|
-
onOrientationChange?: ((event: ModalOrientationChangeEvent) => void) | undefined;
|
|
1260
|
-
presentationStyle?: "fullScreen" | "pageSheet" | "formSheet" | "overFullScreen" | undefined;
|
|
1261
|
-
statusBarTranslucent?: boolean | undefined;
|
|
1262
|
-
supportedOrientations?: ReadonlyArray<"portrait" | "portrait-upside-down" | "landscape" | "landscape-left" | "landscape-right"> | undefined;
|
|
1263
|
-
};
|
|
1264
|
-
/**
|
|
1265
|
-
* React Native's `Modal` on a `<dialog>` in the top layer. `showModal()` makes the rest of the
|
|
1266
|
-
* page inert, keeps the focus inside, and turns Escape into `onRequestClose`.
|
|
1267
|
-
*/
|
|
1268
|
-
export declare function Modal(props: ModalProps): ReactElement | null;
|
|
1269
|
-
interface PressableStateCallbackType {
|
|
1270
|
-
readonly pressed: boolean;
|
|
1271
|
-
readonly hovered: boolean;
|
|
1272
|
-
readonly focused: boolean;
|
|
1273
|
-
}
|
|
1274
|
-
type PressableAndroidRippleConfig = {
|
|
1275
|
-
color?: string | undefined;
|
|
1276
|
-
borderless?: boolean | undefined;
|
|
1277
|
-
radius?: number | undefined;
|
|
1278
|
-
foreground?: boolean | undefined;
|
|
1279
|
-
};
|
|
1280
|
-
type PressableInstance = HostInstance;
|
|
1281
|
-
interface PressableProps extends Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus"> {
|
|
1282
|
-
children?: ReactNode | ((state: PressableStateCallbackType) => ReactNode) | undefined;
|
|
1283
|
-
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
|
|
1284
|
-
cancelable?: boolean | undefined;
|
|
1285
|
-
delayHoverIn?: number | undefined;
|
|
1286
|
-
delayHoverOut?: number | undefined;
|
|
1287
|
-
delayLongPress?: number | undefined;
|
|
1288
|
-
disabled?: boolean | undefined;
|
|
1289
|
-
hitSlop?: RectOrSize | undefined;
|
|
1290
|
-
pressRetentionOffset?: RectOrSize | undefined;
|
|
1291
|
-
onBlur?: ((event: BlurEvent) => unknown) | undefined;
|
|
1292
|
-
onFocus?: ((event: FocusEvent) => unknown) | undefined;
|
|
1293
|
-
onHoverIn?: ((event: MouseEvent) => unknown) | undefined;
|
|
1294
|
-
onHoverOut?: ((event: MouseEvent) => unknown) | undefined;
|
|
1295
|
-
onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
1296
|
-
onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
1297
|
-
onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
1298
|
-
onPressMove?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
1299
|
-
onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
1300
|
-
blockNativeResponder?: boolean | undefined;
|
|
1301
|
-
android_disableSound?: boolean | undefined;
|
|
1302
|
-
android_ripple?: PressableAndroidRippleConfig | undefined;
|
|
1303
|
-
testOnly_pressed?: boolean | undefined;
|
|
1304
|
-
unstable_pressDelay?: number | undefined;
|
|
1305
|
-
}
|
|
1306
|
-
export declare const Pressable: NamedExoticComponent<PressableProps>;
|
|
1307
|
-
interface RefreshControlProps extends ViewProps {
|
|
1308
|
-
refreshing: boolean;
|
|
1309
|
-
onRefresh?: (() => void | Promise<void>) | undefined;
|
|
1310
|
-
progressViewOffset?: number | undefined;
|
|
1311
|
-
colors?: ReadonlyArray<string> | undefined;
|
|
1312
|
-
enabled?: boolean | undefined;
|
|
1313
|
-
progressBackgroundColor?: string | undefined;
|
|
1314
|
-
size?: "default" | "large" | undefined;
|
|
1315
|
-
tintColor?: string | undefined;
|
|
1316
|
-
title?: string | undefined;
|
|
1317
|
-
titleColor?: string | undefined;
|
|
1318
|
-
}
|
|
1319
|
-
export declare function RefreshControl(props: RefreshControlProps): ReactElement;
|
|
1320
|
-
export declare function ScrollView(props: ScrollViewProps): ReactElement;
|
|
1321
|
-
type StatusBarStyle = "default" | "light-content" | "dark-content";
|
|
1322
|
-
type StatusBarAnimation = "none" | "fade" | "slide";
|
|
1323
|
-
type StatusBarProps = {
|
|
1324
|
-
animated?: boolean | undefined;
|
|
1325
|
-
backgroundColor?: unknown;
|
|
1326
|
-
barStyle?: StatusBarStyle | null | undefined;
|
|
1327
|
-
hidden?: boolean | undefined;
|
|
1328
|
-
networkActivityIndicatorVisible?: boolean | undefined;
|
|
1329
|
-
showHideTransition?: StatusBarAnimation | undefined;
|
|
1330
|
-
translucent?: boolean | undefined;
|
|
1331
|
-
};
|
|
1332
|
-
declare function StatusBarComponent(props: StatusBarProps): null;
|
|
1333
|
-
type StatusBarStatics = {
|
|
1334
|
-
currentHeight: number | null;
|
|
1335
|
-
setBarStyle: (style: StatusBarStyle, animated?: boolean) => void;
|
|
1336
|
-
setBackgroundColor: (color: unknown, animated?: boolean) => void;
|
|
1337
|
-
setHidden: (hidden: boolean, animation?: StatusBarAnimation) => void;
|
|
1338
|
-
setTranslucent: (translucent: boolean) => void;
|
|
1339
|
-
setNetworkActivityIndicatorVisible: (visible: boolean) => void;
|
|
1340
|
-
pushStackEntry: (props: StatusBarProps) => StatusBarProps;
|
|
1341
|
-
popStackEntry: (entry: StatusBarProps) => void;
|
|
1342
|
-
replaceStackEntry: (entry: StatusBarProps, props: StatusBarProps) => StatusBarProps;
|
|
1343
|
-
};
|
|
1344
|
-
export declare const StatusBar: typeof StatusBarComponent & StatusBarStatics;
|
|
1345
|
-
type SwitchChangeEventData = {
|
|
1346
|
-
value: boolean;
|
|
1347
|
-
target: EventTarget | null;
|
|
1348
|
-
};
|
|
1349
|
-
type SwitchChangeEvent = NativeSyntheticEvent<SwitchChangeEventData>;
|
|
1350
|
-
interface SwitchProps extends Omit<ViewProps, "children" | "onChange" | "ref"> {
|
|
1351
|
-
ref?: Ref<HTMLInputElement> | undefined;
|
|
1352
|
-
value?: boolean | undefined;
|
|
1353
|
-
disabled?: boolean | undefined;
|
|
1354
|
-
onChange?: ((event: SwitchChangeEvent) => unknown) | undefined;
|
|
1355
|
-
onValueChange?: ((value: boolean) => unknown) | undefined;
|
|
1356
|
-
thumbColor?: string | undefined;
|
|
1357
|
-
trackColor?: Readonly<{
|
|
1358
|
-
false?: string | null | undefined;
|
|
1359
|
-
true?: string | null | undefined;
|
|
1360
|
-
}> | undefined;
|
|
1361
|
-
ios_backgroundColor?: string | undefined;
|
|
1362
|
-
onTintColor?: string | undefined;
|
|
1363
|
-
thumbTintColor?: string | undefined;
|
|
1364
|
-
tintColor?: string | undefined;
|
|
1365
|
-
}
|
|
1366
|
-
export declare function Switch(props: SwitchProps): ReactElement;
|
|
1367
|
-
type TextInstance = HostInstance;
|
|
1368
|
-
/** @deprecated Use `GestureResponderEvent`, the type that React Native gives `onPress`. */
|
|
1369
|
-
type PressEvent = GestureResponderEvent;
|
|
1370
|
-
interface TextProps extends AccessibilityProps, DOMEventHandlers<HTMLElement> {
|
|
1371
|
-
children?: ReactNode;
|
|
1372
|
-
style?: StyleProp<TextStyle> | undefined;
|
|
1373
|
-
ref?: Ref<TextInstance> | undefined;
|
|
1374
|
-
id?: string | undefined;
|
|
1375
|
-
nativeID?: string | undefined;
|
|
1376
|
-
testID?: string | undefined;
|
|
1377
|
-
tabIndex?: 0 | -1 | undefined;
|
|
1378
|
-
disabled?: boolean | undefined;
|
|
1379
|
-
numberOfLines?: number | undefined;
|
|
1380
|
-
ellipsizeMode?: "clip" | "head" | "middle" | "tail" | undefined;
|
|
1381
|
-
selectable?: boolean | undefined;
|
|
1382
|
-
selectionColor?: string | undefined;
|
|
1383
|
-
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
1384
|
-
onPress?: ((event: GestureResponderEvent) => void) | undefined;
|
|
1385
|
-
onPressIn?: ((event: GestureResponderEvent) => void) | undefined;
|
|
1386
|
-
onPressOut?: ((event: GestureResponderEvent) => void) | undefined;
|
|
1387
|
-
onLongPress?: ((event: GestureResponderEvent) => void) | undefined;
|
|
1388
|
-
pressRetentionOffset?: RectOrSize | undefined;
|
|
1389
|
-
suppressHighlighting?: boolean | undefined;
|
|
1390
|
-
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
1391
|
-
"aria-level"?: number | undefined;
|
|
1392
|
-
href?: string | undefined;
|
|
1393
|
-
target?: "_blank" | "_self" | "_parent" | "_top" | undefined;
|
|
1394
|
-
rel?: string | undefined;
|
|
1395
|
-
download?: string | boolean | undefined;
|
|
1396
|
-
lang?: string | undefined;
|
|
1397
|
-
}
|
|
1398
|
-
export declare const TextAncestorContext: Context<boolean>;
|
|
1399
|
-
export declare function Text(props: TextProps): ReactElement;
|
|
1400
|
-
type TextInputSelection = {
|
|
1401
|
-
start: number;
|
|
1402
|
-
end: number;
|
|
1403
|
-
};
|
|
1404
|
-
type TextInputChangeEventData = {
|
|
1405
|
-
text: string;
|
|
1406
|
-
eventCount: number;
|
|
1407
|
-
target: EventTarget | null;
|
|
1408
|
-
};
|
|
1409
|
-
type TextInputChangeEvent = NativeSyntheticEvent<TextInputChangeEventData>;
|
|
1410
|
-
type TextInputFocusEvent = NativeSyntheticEvent<TextInputChangeEventData>;
|
|
1411
|
-
type TextInputEndEditingEvent = NativeSyntheticEvent<{
|
|
1412
|
-
text: string;
|
|
1413
|
-
}>;
|
|
1414
|
-
type TextInputSubmitEditingEvent = NativeSyntheticEvent<{
|
|
1415
|
-
text: string;
|
|
1416
|
-
}>;
|
|
1417
|
-
type TextInputKeyPressEvent = NativeSyntheticEvent<{
|
|
1418
|
-
key: string;
|
|
1419
|
-
}>;
|
|
1420
|
-
type TextInputSelectionChangeEvent = NativeSyntheticEvent<{
|
|
1421
|
-
selection: TextInputSelection;
|
|
1422
|
-
}>;
|
|
1423
|
-
type TextInputContentSizeChangeEvent = NativeSyntheticEvent<{
|
|
1424
|
-
contentSize: {
|
|
1425
|
-
width: number;
|
|
1426
|
-
height: number;
|
|
1427
|
-
};
|
|
1428
|
-
}>;
|
|
1429
|
-
type TextInputScrollEvent = NativeSyntheticEvent<NativeScrollEvent>;
|
|
1430
|
-
type KeyboardType = "default" | "number-pad" | "decimal-pad" | "numeric" | "email-address" | "phone-pad" | "url" | "ascii-capable" | "numbers-and-punctuation" | "name-phone-pad" | "twitter" | "web-search" | "visible-password" | "ascii-capable-number-pad";
|
|
1431
|
-
type InputMode = "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
|
|
1432
|
-
type ReturnKeyType = "done" | "go" | "next" | "search" | "send" | "none" | "previous" | "default" | "emergency-call" | "google" | "join" | "route" | "yahoo";
|
|
1433
|
-
type EnterKeyHint = "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
1434
|
-
type SubmitBehavior = "submit" | "blurAndSubmit" | "newline";
|
|
1435
|
-
type TextInputInstance = HTMLInputElement & HTMLTextAreaElement & Omit<HostMethods, "setNativeProps"> & {
|
|
1436
|
-
clear: () => void;
|
|
1437
|
-
isFocused: () => boolean;
|
|
1438
|
-
getNativeRef: () => HTMLInputElement | HTMLTextAreaElement;
|
|
1439
|
-
setNativeProps: (props: {
|
|
1440
|
-
text?: string | undefined;
|
|
1441
|
-
style?: StyleProp<TextStyle> | undefined;
|
|
1442
|
-
}) => void;
|
|
1443
|
-
};
|
|
1444
|
-
type ReservedDOMHandlers = "onChange" | "onFocus" | "onBlur" | "onKeyPress" | "onSelect" | "onScroll" | "onInput";
|
|
1445
|
-
interface TextInputProps extends AccessibilityProps, Omit<DOMEventHandlers<HTMLElement>, ReservedDOMHandlers> {
|
|
1446
|
-
ref?: Ref<TextInputInstance> | undefined;
|
|
1447
|
-
style?: StyleProp<TextStyle> | undefined;
|
|
1448
|
-
id?: string | undefined;
|
|
1449
|
-
nativeID?: string | undefined;
|
|
1450
|
-
testID?: string | undefined;
|
|
1451
|
-
value?: string | undefined;
|
|
1452
|
-
defaultValue?: string | undefined;
|
|
1453
|
-
placeholder?: string | undefined;
|
|
1454
|
-
placeholderTextColor?: unknown;
|
|
1455
|
-
editable?: boolean | undefined;
|
|
1456
|
-
readOnly?: boolean | undefined;
|
|
1457
|
-
multiline?: boolean | undefined;
|
|
1458
|
-
numberOfLines?: number | undefined;
|
|
1459
|
-
maxLength?: number | undefined;
|
|
1460
|
-
secureTextEntry?: boolean | undefined;
|
|
1461
|
-
keyboardType?: KeyboardType | undefined;
|
|
1462
|
-
inputMode?: InputMode | undefined;
|
|
1463
|
-
returnKeyType?: ReturnKeyType | undefined;
|
|
1464
|
-
enterKeyHint?: EnterKeyHint | undefined;
|
|
1465
|
-
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
1466
|
-
autoCorrect?: boolean | undefined;
|
|
1467
|
-
spellCheck?: boolean | undefined;
|
|
1468
|
-
autoComplete?: string | undefined;
|
|
1469
|
-
textContentType?: string | undefined;
|
|
1470
|
-
autoFocus?: boolean | undefined;
|
|
1471
|
-
blurOnSubmit?: boolean | undefined;
|
|
1472
|
-
submitBehavior?: SubmitBehavior | undefined;
|
|
1473
|
-
selectTextOnFocus?: boolean | undefined;
|
|
1474
|
-
clearTextOnFocus?: boolean | undefined;
|
|
1475
|
-
selection?: {
|
|
1476
|
-
start: number;
|
|
1477
|
-
end?: number | undefined;
|
|
1478
|
-
} | undefined;
|
|
1479
|
-
selectionColor?: unknown;
|
|
1480
|
-
cursorColor?: unknown;
|
|
1481
|
-
caretHidden?: boolean | undefined;
|
|
1482
|
-
contextMenuHidden?: boolean | undefined;
|
|
1483
|
-
showSoftInputOnFocus?: boolean | undefined;
|
|
1484
|
-
textAlign?: "left" | "center" | "right" | undefined;
|
|
1485
|
-
onChange?: ((event: TextInputChangeEvent) => void) | undefined;
|
|
1486
|
-
onChangeText?: ((text: string) => void) | undefined;
|
|
1487
|
-
onFocus?: ((event: TextInputFocusEvent) => void) | undefined;
|
|
1488
|
-
onBlur?: ((event: TextInputFocusEvent) => void) | undefined;
|
|
1489
|
-
onEndEditing?: ((event: TextInputEndEditingEvent) => void) | undefined;
|
|
1490
|
-
onSubmitEditing?: ((event: TextInputSubmitEditingEvent) => void) | undefined;
|
|
1491
|
-
onKeyPress?: ((event: TextInputKeyPressEvent) => void) | undefined;
|
|
1492
|
-
onSelectionChange?: ((event: TextInputSelectionChangeEvent) => void) | undefined;
|
|
1493
|
-
onContentSizeChange?: ((event: TextInputContentSizeChangeEvent) => void) | undefined;
|
|
1494
|
-
onScroll?: ((event: TextInputScrollEvent) => void) | undefined;
|
|
1495
|
-
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
1496
|
-
allowFontScaling?: boolean | undefined;
|
|
1497
|
-
clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
|
|
1498
|
-
dataDetectorTypes?: unknown;
|
|
1499
|
-
disableFullscreenUI?: boolean | undefined;
|
|
1500
|
-
enablesReturnKeyAutomatically?: boolean | undefined;
|
|
1501
|
-
importantForAutofill?: "auto" | "no" | "noExcludeDescendants" | "yes" | "yesExcludeDescendants" | undefined;
|
|
1502
|
-
inlineImageLeft?: string | undefined;
|
|
1503
|
-
inlineImagePadding?: number | undefined;
|
|
1504
|
-
keyboardAppearance?: "default" | "light" | "dark" | undefined;
|
|
1505
|
-
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
1506
|
-
maxFontSizeMultiplier?: number | null | undefined;
|
|
1507
|
-
passwordRules?: string | null | undefined;
|
|
1508
|
-
rejectResponderTermination?: boolean | null | undefined;
|
|
1509
|
-
returnKeyLabel?: string | undefined;
|
|
1510
|
-
scrollEnabled?: boolean | undefined;
|
|
1511
|
-
smartInsertDelete?: boolean | undefined;
|
|
1512
|
-
textAlignVertical?: "auto" | "top" | "bottom" | "center" | undefined;
|
|
1513
|
-
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
1514
|
-
underlineColorAndroid?: unknown;
|
|
1515
|
-
verticalAlign?: "auto" | "top" | "bottom" | "middle" | undefined;
|
|
1516
|
-
}
|
|
1517
|
-
type TextInputState = {
|
|
1518
|
-
currentlyFocusedInput: () => HTMLInputElement | HTMLTextAreaElement | null;
|
|
1519
|
-
focusTextInput: (input: HTMLElement | null | undefined) => void;
|
|
1520
|
-
blurTextInput: (input: HTMLElement | null | undefined) => void;
|
|
1521
|
-
};
|
|
1522
|
-
declare function TextInputComponent(props: TextInputProps): ReactElement;
|
|
1523
|
-
export declare const TextInput: typeof TextInputComponent & {
|
|
1524
|
-
State: TextInputState;
|
|
1525
|
-
};
|
|
1526
|
-
interface TouchableHighlightProps extends Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus">, TouchablePressProps, TouchableTVProps {
|
|
1527
|
-
children?: ReactNode | undefined;
|
|
1528
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
1529
|
-
activeOpacity?: number | undefined;
|
|
1530
|
-
underlayColor?: string | undefined;
|
|
1531
|
-
onShowUnderlay?: (() => void) | undefined;
|
|
1532
|
-
onHideUnderlay?: (() => void) | undefined;
|
|
1533
|
-
testOnly_pressed?: boolean | undefined;
|
|
1534
|
-
}
|
|
1535
|
-
export declare function TouchableHighlight(props: TouchableHighlightProps): ReactElement;
|
|
1536
|
-
type ThemeAttributeBackgroundPropType = Readonly<{
|
|
1537
|
-
type: "ThemeAttrAndroid";
|
|
1538
|
-
attribute: "selectableItemBackground" | "selectableItemBackgroundBorderless";
|
|
1539
|
-
rippleRadius: number | null | undefined;
|
|
1540
|
-
}>;
|
|
1541
|
-
type RippleBackgroundPropType = Readonly<{
|
|
1542
|
-
type: "RippleAndroid";
|
|
1543
|
-
color: ProcessedColorValue | null | undefined;
|
|
1544
|
-
borderless: boolean;
|
|
1545
|
-
rippleRadius: number | null | undefined;
|
|
1546
|
-
}>;
|
|
1547
|
-
type BackgroundPropType = ThemeAttributeBackgroundPropType | RippleBackgroundPropType;
|
|
1548
|
-
type TouchableNativeFeedbackProps = TouchableWithoutFeedbackProps & TouchableTVProps & {
|
|
1549
|
-
background?: BackgroundPropType | undefined;
|
|
1550
|
-
useForeground?: boolean | undefined;
|
|
1551
|
-
};
|
|
1552
|
-
type TouchableNativeFeedbackStatics = {
|
|
1553
|
-
SelectableBackground: (rippleRadius?: number | null) => ThemeAttributeBackgroundPropType;
|
|
1554
|
-
SelectableBackgroundBorderless: (rippleRadius?: number | null) => ThemeAttributeBackgroundPropType;
|
|
1555
|
-
Ripple: (color: string, borderless: boolean, rippleRadius?: number | null) => RippleBackgroundPropType;
|
|
1556
|
-
canUseNativeForeground: () => boolean;
|
|
1557
|
-
};
|
|
1558
|
-
export declare const TouchableNativeFeedback: ((props: TouchableNativeFeedbackProps) => ReactElement) & TouchableNativeFeedbackStatics;
|
|
1559
|
-
type TouchableOpacityProps = Omit<ViewProps, "children" | "style" | "onBlur" | "onFocus"> & TouchablePressProps & TouchableTVProps & {
|
|
1560
|
-
children?: ReactNode | undefined;
|
|
1561
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
1562
|
-
activeOpacity?: number | undefined;
|
|
1563
|
-
};
|
|
1564
|
-
export declare function TouchableOpacity(props: TouchableOpacityProps): ReactElement;
|
|
1565
|
-
export declare function TouchableWithoutFeedback(props: TouchableWithoutFeedbackProps): ReactElement;
|
|
1566
|
-
export declare function View(props: ViewProps): ReactElement;
|
|
1567
|
-
type CreateElementProps = Readonly<Record<string, unknown>>;
|
|
1568
|
-
/**
|
|
1569
|
-
* Compat export. Renders `type` with React Native props: `style` compiles to class names, and
|
|
1570
|
-
* the accessibility props become ARIA attributes. Every other prop goes to the element as it
|
|
1571
|
-
* is. Libraries such as `react-native-svg` import it from `react-native` on the web.
|
|
1572
|
-
*/
|
|
1573
|
-
export declare const unstable_createElement: (type: ElementType, props?: CreateElementProps | null) => ReactElement;
|
|
1574
|
-
/**
|
|
1575
|
-
* Compat export. On native it returns the tag of a view. On the web it returns the DOM element
|
|
1576
|
-
* of a ref, of an element, or of a scroll component. A number comes back as it is. A class
|
|
1577
|
-
* component instance gives `null`, because React has no `findDOMNode`.
|
|
1578
|
-
*/
|
|
1579
|
-
export declare const findNodeHandle: (componentOrHandle: unknown) => Element | number | null;
|
|
1580
|
-
/**
|
|
1581
|
-
* Compat type. The base type of a native module spec. A library extends it for the module that
|
|
1582
|
-
* it reads with `TurboModuleRegistry`.
|
|
1583
|
-
*/
|
|
1584
|
-
interface TurboModule {
|
|
1585
|
-
readonly getConstants?: (() => {}) | undefined;
|
|
1586
|
-
}
|
|
1587
|
-
/**
|
|
1588
|
-
* Compat export. A browser has no native modules, so `get` always returns `null`. A library
|
|
1589
|
-
* that reads its native module at import time then takes its JavaScript path.
|
|
1590
|
-
*/
|
|
1591
|
-
export declare const TurboModuleRegistry: {
|
|
1592
|
-
get<T = unknown>(name: string): T | null;
|
|
1593
|
-
getEnforcing<T = unknown>(name: string): T;
|
|
1594
|
-
};
|
|
1595
|
-
export declare function usePressability(config: PressabilityConfig): PressabilityEventHandlers;
|
|
1596
|
-
export declare function usePressability(config: PressabilityConfig | null | undefined): PressabilityEventHandlers | null;
|
|
1
|
+
import { AccessibilityAnnouncementFinishedEvent, AccessibilityChangeEvent, AccessibilityChangeEventName, AccessibilityEventSubscription, AccessibilityInfo } from "./apis/AccessibilityInfo/index.js";
|
|
2
|
+
import { Alert, AlertButton, AlertButtonStyle, AlertOptions, AlertType } from "./apis/Alert/index.js";
|
|
3
|
+
import { Appearance, AppearanceListener, AppearancePreferences, ColorSchemeName, NativeEventSubscription } from "./apis/Appearance/index.js";
|
|
4
|
+
import { AppState, AppStateEvent, AppStateStatus } from "./apis/AppState/index.js";
|
|
5
|
+
import { BackHandler, BackHandlerSubscription, BackPressHandler } from "./apis/BackHandler/index.js";
|
|
6
|
+
import { Clipboard } from "./apis/Clipboard/index.js";
|
|
7
|
+
import { Dimensions, DimensionsChangeHandler, DimensionsValue, EmitterSubscription, ScaledSize } from "./apis/Dimensions/index.js";
|
|
8
|
+
import { I18nManager, I18nManagerConstants } from "./apis/I18nManager/index.js";
|
|
9
|
+
import { AndroidKeyboardEvent, IOSKeyboardEvent, Keyboard, KeyboardEvent, KeyboardEventEasing, KeyboardEventName, KeyboardMetrics } from "./apis/Keyboard/index.js";
|
|
10
|
+
import { Linking } from "./apis/Linking/index.js";
|
|
11
|
+
import { GestureResponderHandlers, PanResponder, PanResponderCallbacks, PanResponderGestureState, PanResponderInstance } from "./apis/PanResponder/index.js";
|
|
12
|
+
import { PixelRatio } from "./apis/PixelRatio/index.js";
|
|
13
|
+
import { Platform } from "./apis/Platform/index.js";
|
|
14
|
+
import { PlatformOSType, PlatformSelectSpec, PlatformType } from "./apis/Platform/types.js";
|
|
15
|
+
import { ProcessedColorValue, processColor } from "./apis/processColor/index.js";
|
|
16
|
+
import { Share, ShareAction, ShareContent, ShareOptions } from "./apis/Share/index.js";
|
|
17
|
+
import { AbsoluteFillStyle, StyleSheet } from "./apis/StyleSheet/index.js";
|
|
18
|
+
import { StyleProp } from "./style/types.js";
|
|
19
|
+
import { BoxShadowValue, ColorValue, CursorValue, DimensionValue, DropShadowValue, EdgeInsetsValue, FilterFunction, FontVariant, ImageResizeMode, ImageStyle, NativeColorValue, OpaqueColorValue, PointValue, TextStyle, TransformsStyle, ViewStyle } from "./apis/StyleSheet/types.js";
|
|
20
|
+
import { useColorScheme } from "./apis/useColorScheme/index.js";
|
|
21
|
+
import { useWindowDimensions } from "./apis/useWindowDimensions/index.js";
|
|
22
|
+
import { Vibration } from "./apis/Vibration/index.js";
|
|
23
|
+
import { ActivityIndicator } from "./components/ActivityIndicator/index.js";
|
|
24
|
+
import { AccessibilityActionEvent, AccessibilityProps, AccessibilityState, AccessibilityValue, DOMEventHandlers, HostComponent, HostInstance, HostMethods, LayoutChangeEvent, LayoutRectangle, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, Role, ViewInstance, ViewProps } from "./components/View/types.js";
|
|
25
|
+
import { ActivityIndicatorProps } from "./components/ActivityIndicator/types.js";
|
|
26
|
+
import { Button } from "./components/Button/index.js";
|
|
27
|
+
import { Insets, PressabilityConfig, PressabilityEventHandlers } from "./events/press/types.js";
|
|
28
|
+
import { TouchableWithoutFeedbackProps } from "./components/TouchableWithoutFeedback/types.js";
|
|
29
|
+
import { ButtonProps } from "./components/Button/types.js";
|
|
30
|
+
import { FlatList } from "./components/FlatList/index.js";
|
|
31
|
+
import { NativeScrollEvent, NativeScrollPoint, NativeScrollRectangle, NativeScrollSize, ScrollEvent, ScrollToOptions, ScrollViewInstance, ScrollViewProps } from "./components/ScrollView/types.js";
|
|
32
|
+
import { CellRendererProps, FlatListInstance, FlatListProps, ListRenderItem, ListRenderItemInfo, ListSeparatorComponent, ListSeparatorProps, ListSeparators, ScrollToIndexParams, ScrollToItemParams, ScrollToOffsetParams, ViewToken, ViewabilityConfig, ViewabilityConfigCallbackPair, ViewabilityConfigCallbackPairs, ViewableItemsChangedInfo } from "./components/FlatList/types.js";
|
|
33
|
+
import { Image } from "./components/Image/index.js";
|
|
34
|
+
import { ImageErrorEvent, ImageInstance, ImageLoadEvent, ImageLoadEventData, ImageProgressEvent, ImageProps, ImageResolvedAssetSource, ImageSize, ImageSource, ImageStatics, ImageURISource } from "./components/Image/types.js";
|
|
35
|
+
import { KeyboardAvoidingView } from "./components/KeyboardAvoidingView/index.js";
|
|
36
|
+
import { KeyboardAvoidingViewInstance, KeyboardAvoidingViewProps } from "./components/KeyboardAvoidingView/types.js";
|
|
37
|
+
import { Modal } from "./components/Modal/index.js";
|
|
38
|
+
import { ModalEvent, ModalOrientationChangeEvent, ModalProps } from "./components/Modal/types.js";
|
|
39
|
+
import { Pressable } from "./components/Pressable/index.js";
|
|
40
|
+
import { PressableAndroidRippleConfig, PressableInstance, PressableProps, PressableStateCallbackType } from "./components/Pressable/types.js";
|
|
41
|
+
import { RefreshControl } from "./components/RefreshControl/index.js";
|
|
42
|
+
import { RefreshControlProps } from "./components/RefreshControl/types.js";
|
|
43
|
+
import { ScrollView } from "./components/ScrollView/index.js";
|
|
44
|
+
import { StatusBar, StatusBarAnimation, StatusBarProps, StatusBarStatics, StatusBarStyle } from "./components/StatusBar/index.js";
|
|
45
|
+
import { Switch } from "./components/Switch/index.js";
|
|
46
|
+
import { SwitchChangeEvent, SwitchChangeEventData, SwitchProps } from "./components/Switch/types.js";
|
|
47
|
+
import { Text } from "./components/Text/index.js";
|
|
48
|
+
import { PressEvent, TextInstance, TextProps } from "./components/Text/types.js";
|
|
49
|
+
import { TextAncestorContext } from "./components/Text/TextAncestorContext.js";
|
|
50
|
+
import { TextInput } from "./components/TextInput/index.js";
|
|
51
|
+
import { EnterKeyHint, InputMode, KeyboardType, ReturnKeyType, SubmitBehavior, TextInputChangeEvent, TextInputChangeEventData, TextInputContentSizeChangeEvent, TextInputEndEditingEvent, TextInputFocusEvent, TextInputInstance, TextInputKeyPressEvent, TextInputProps, TextInputScrollEvent, TextInputSelection, TextInputSelectionChangeEvent, TextInputState, TextInputSubmitEditingEvent } from "./components/TextInput/types.js";
|
|
52
|
+
import { TouchableHighlight } from "./components/TouchableHighlight/index.js";
|
|
53
|
+
import { TouchableHighlightProps } from "./components/TouchableHighlight/types.js";
|
|
54
|
+
import { TouchableNativeFeedback } from "./components/TouchableNativeFeedback/index.js";
|
|
55
|
+
import { TouchableNativeFeedbackProps } from "./components/TouchableNativeFeedback/types.js";
|
|
56
|
+
import { TouchableOpacity } from "./components/TouchableOpacity/index.js";
|
|
57
|
+
import { TouchableOpacityProps } from "./components/TouchableOpacity/types.js";
|
|
58
|
+
import { TouchableWithoutFeedback } from "./components/TouchableWithoutFeedback/index.js";
|
|
59
|
+
import { View } from "./components/View/index.js";
|
|
60
|
+
import { CreateElementProps, unstable_createElement } from "./compat/createElement/index.js";
|
|
61
|
+
import { findNodeHandle } from "./compat/findNodeHandle/index.js";
|
|
62
|
+
import { TurboModule, TurboModuleRegistry } from "./compat/TurboModuleRegistry/index.js";
|
|
63
|
+
import "./events/press/index.js";
|
|
64
|
+
import { usePressability } from "./events/press/usePressability.js";
|
|
65
|
+
import { BlurEvent, EventSubscription, FocusEvent, GestureResponderEvent, MouseEvent, NativeSyntheticEvent, NativeTouchEvent, PointerEvent, TargetedEvent } from "./events/types.js";
|
|
1597
66
|
declare global {
|
|
1598
67
|
/**
|
|
1599
68
|
* `true` in a development build and `false` in a production build, as in React Native. The
|
|
@@ -1601,5 +70,5 @@ declare global {
|
|
|
1601
70
|
*/
|
|
1602
71
|
const __DEV__: boolean;
|
|
1603
72
|
}
|
|
1604
|
-
export type
|
|
73
|
+
export { type AbsoluteFillStyle, type AccessibilityActionEvent, type AccessibilityAnnouncementFinishedEvent, type AccessibilityChangeEvent, type AccessibilityChangeEventName, type AccessibilityEventSubscription, AccessibilityInfo, type AccessibilityProps, type AccessibilityState, type AccessibilityValue, ActivityIndicator, type ActivityIndicatorProps, Alert, type AlertButton, type AlertButtonStyle, type AlertOptions, type AlertType, type AndroidKeyboardEvent, AppState, type AppStateEvent, type AppStateStatus, Appearance, type AppearanceListener, type AppearancePreferences, BackHandler, type BackHandlerSubscription, type BackPressHandler, type BlurEvent, type BoxShadowValue, Button, type ButtonProps, type CellRendererProps, Clipboard, type ColorSchemeName, type ColorValue, type CreateElementProps, type CursorValue, type DOMEventHandlers, type DimensionValue, Dimensions, type DimensionsChangeHandler, type DimensionsValue, type DropShadowValue, type EdgeInsetsValue, type EmitterSubscription, type EnterKeyHint, type EventSubscription, type FilterFunction, FlatList, type FlatListInstance, type FlatListProps, type FocusEvent, type FontVariant, type GestureResponderEvent, type GestureResponderHandlers, type HostComponent, type HostInstance, type HostMethods, I18nManager, type I18nManagerConstants, type IOSKeyboardEvent, Image, type ImageErrorEvent, type ImageInstance, type ImageLoadEvent, type ImageLoadEventData, type ImageProgressEvent, type ImageProps, type ImageResizeMode, type ImageResolvedAssetSource, type ImageSize, type ImageSource, type ImageStatics, type ImageStyle, type ImageURISource, type InputMode, type Insets, Keyboard, KeyboardAvoidingView, type KeyboardAvoidingViewInstance, type KeyboardAvoidingViewProps, type KeyboardEvent, type KeyboardEventEasing, type KeyboardEventName, type KeyboardMetrics, type KeyboardType, type LayoutChangeEvent, type LayoutRectangle, Linking, type ListRenderItem, type ListRenderItemInfo, type ListSeparatorComponent, type ListSeparatorProps, type ListSeparators, type MeasureInWindowOnSuccessCallback, type MeasureLayoutOnSuccessCallback, type MeasureOnSuccessCallback, Modal, type ModalEvent, type ModalOrientationChangeEvent, type ModalProps, type MouseEvent, type NativeColorValue, type NativeEventSubscription, type NativeScrollEvent, type NativeScrollPoint, type NativeScrollRectangle, type NativeScrollSize, type NativeSyntheticEvent, type NativeTouchEvent, type OpaqueColorValue, PanResponder, type PanResponderCallbacks, type PanResponderGestureState, type PanResponderInstance, PixelRatio, Platform, type PlatformOSType, type PlatformSelectSpec, type PlatformType, type PointValue, type PointerEvent, type PressEvent, type PressabilityConfig, type PressabilityEventHandlers, Pressable, type PressableAndroidRippleConfig, type PressableInstance, type PressableProps, type PressableStateCallbackType, type ProcessedColorValue, RefreshControl, type RefreshControlProps, type ReturnKeyType, type Role, type ScaledSize, type ScrollEvent, type ScrollToIndexParams, type ScrollToItemParams, type ScrollToOffsetParams, type ScrollToOptions, ScrollView, type ScrollViewInstance, type ScrollViewProps, Share, type ShareAction, type ShareContent, type ShareOptions, StatusBar, type StatusBarAnimation, type StatusBarProps, type StatusBarStatics, type StatusBarStyle, type StyleProp, StyleSheet, type SubmitBehavior, Switch, type SwitchChangeEvent, type SwitchChangeEventData, type SwitchProps, type TargetedEvent, Text, TextAncestorContext, TextInput, type TextInputChangeEvent, type TextInputChangeEventData, type TextInputContentSizeChangeEvent, type TextInputEndEditingEvent, type TextInputFocusEvent, type TextInputInstance, type TextInputKeyPressEvent, type TextInputProps, type TextInputScrollEvent, type TextInputSelection, type TextInputSelectionChangeEvent, type TextInputState, type TextInputSubmitEditingEvent, type TextInstance, type TextProps, type TextStyle, TouchableHighlight, type TouchableHighlightProps, TouchableNativeFeedback, type TouchableNativeFeedbackProps, TouchableOpacity, type TouchableOpacityProps, TouchableWithoutFeedback, type TouchableWithoutFeedbackProps, type TransformsStyle, type TurboModule, TurboModuleRegistry, Vibration, View, type ViewInstance, type ViewProps, type ViewStyle, type ViewToken, type ViewabilityConfig, type ViewabilityConfigCallbackPair, type ViewabilityConfigCallbackPairs, type ViewableItemsChangedInfo, findNodeHandle, processColor, unstable_createElement, useColorScheme, usePressability, useWindowDimensions };
|
|
1605
74
|
//# sourceMappingURL=index.d.ts.map
|