UNPKG

5.68 kBTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9
10import {
11 TextProps,
12 TextPropsIOS,
13 TextPropsAndroid,
14 AccessibilityProps,
15 AccessibilityPropsIOS,
16 AccessibilityPropsAndroid,
17 TextInputProps,
18 TextInputIOSProps,
19 TextInputAndroidProps,
20 ViewProps,
21 ViewPropsIOS,
22 ViewPropsAndroid,
23 ScrollViewProps,
24 ScrollViewPropsIOS,
25 ScrollViewPropsAndroid,
26 InputAccessoryViewProps,
27 ActivityIndicatorProps,
28 ActivityIndicatorIOSProps,
29 DrawerLayoutAndroidProps,
30 ProgressBarAndroidProps,
31 RefreshControlProps,
32 RefreshControlPropsIOS,
33 RefreshControlPropsAndroid,
34 ImageSourcePropType,
35 ImageProps,
36 ImagePropsIOS,
37 ImagePropsAndroid,
38 ImageBackgroundProps,
39 FlatListProps,
40 VirtualizedListProps,
41 SectionListProps,
42 ModalProps,
43 TouchableWithoutFeedbackProps,
44 TouchableHighlightProps,
45 TouchableOpacityProps,
46 TouchableNativeFeedbackProps,
47 ButtonProps,
48 StatusBarProps,
49 StatusBarPropsIOS,
50 StatusBarPropsAndroid,
51 SwitchProps,
52 SwitchPropsIOS,
53} from 'react-native';
54
55/*
56 * Previously, props interfaces where named *Properties
57 * They have been renamed to *Props to match React Native documentation
58 * The following lines ensure compatibility with *Properties and should be removed in the future
59 */
60
61/** @deprecated Use TextProps */
62export type TextProperties = TextProps;
63
64/** @deprecated Use TextPropsIOS */
65export type TextPropertiesIOS = TextPropsIOS;
66
67/** @deprecated Use TextPropsAndroid */
68export type TextPropertiesAndroid = TextPropsAndroid;
69
70/** @deprecated Use AccessibilityProps */
71export type AccessibilityProperties = AccessibilityProps;
72
73/** @deprecated Use AccessibilityPropsIOS */
74export type AccessibilityPropertiesIOS = AccessibilityPropsIOS;
75
76/** @deprecated Use AccessibilityPropsAndroid */
77export type AccessibilityPropertiesAndroid = AccessibilityPropsAndroid;
78
79/** @deprecated Use TextInputProps */
80export type TextInputProperties = TextInputProps;
81
82/** @deprecated Use TextInputIOSProps */
83export type TextInputIOSProperties = TextInputIOSProps;
84
85/** @deprecated Use TextInputAndroidProps */
86export type TextInputAndroidProperties = TextInputAndroidProps;
87
88/** @deprecated Use ViewProps */
89export type ViewProperties = ViewProps;
90
91/** @deprecated Use ViewPropsIOS */
92export type ViewPropertiesIOS = ViewPropsIOS;
93
94/** @deprecated Use ViewPropsAndroid */
95export type ViewPropertiesAndroid = ViewPropsAndroid;
96
97/** @deprecated Use ScrollViewProps */
98export type ScrollViewProperties = ScrollViewProps;
99
100/** @deprecated Use ScrollViewPropsIOS */
101export type ScrollViewPropertiesIOS = ScrollViewPropsIOS;
102
103/** @deprecated Use ScrollViewPropsAndroid */
104export type ScrollViewPropertiesAndroid = ScrollViewPropsAndroid;
105
106/** @deprecated Use InputAccessoryViewProps */
107export type InputAccessoryViewProperties = InputAccessoryViewProps;
108
109/** @deprecated Use ActivityIndicatorProps */
110export type ActivityIndicatorProperties = ActivityIndicatorProps;
111
112/** @deprecated Use ActivityIndicatorIOSProps */
113export type ActivityIndicatorIOSProperties = ActivityIndicatorIOSProps;
114
115/** @deprecated Use DrawerLayoutAndroidProps */
116export type DrawerLayoutAndroidProperties = DrawerLayoutAndroidProps;
117
118/** @deprecated Use ProgressBarAndroidProps */
119export type ProgressBarAndroidProperties = ProgressBarAndroidProps;
120
121/** @deprecated Use RefreshControlProps */
122export type RefreshControlProperties = RefreshControlProps;
123
124/** @deprecated Use RefreshControlPropsIOS */
125export type RefreshControlPropertiesIOS = RefreshControlPropsIOS;
126
127/** @deprecated Use RefreshControlPropsAndroid */
128export type RefreshControlPropertiesAndroid = RefreshControlPropsAndroid;
129
130/** @deprecated Use ImageSourcePropType */
131export type ImagePropertiesSourceOptions = ImageSourcePropType;
132
133/** @deprecated Use ImageProps */
134export type ImageProperties = ImageProps;
135
136/** @deprecated Use ImagePropsIOS */
137export type ImagePropertiesIOS = ImagePropsIOS;
138
139/** @deprecated Use ImagePropsAndroid */
140export type ImagePropertiesAndroid = ImagePropsAndroid;
141
142/** @deprecated Use ImageBackgroundProps */
143export type ImageBackgroundProperties = ImageBackgroundProps;
144
145/** @deprecated Use FlatListProps */
146export type FlatListProperties<ItemT> = FlatListProps<ItemT>;
147
148/** @deprecated Use VirtualizedListProps */
149export type VirtualizedListProperties<ItemT> = VirtualizedListProps<ItemT>;
150
151/** @deprecated Use SectionListProps */
152export type SectionListProperties<ItemT> = SectionListProps<ItemT>;
153
154/** @deprecated Use ModalProps */
155export type ModalProperties = ModalProps;
156
157/** @deprecated Use TouchableWithoutFeedbackProps */
158export type TouchableWithoutFeedbackProperties = TouchableWithoutFeedbackProps;
159
160/** @deprecated Use TouchableHighlightProps */
161export type TouchableHighlightProperties = TouchableHighlightProps;
162
163/** @deprecated Use TouchableOpacityProps */
164export type TouchableOpacityProperties = TouchableOpacityProps;
165
166/** @deprecated Use TouchableNativeFeedbackProps */
167export type TouchableNativeFeedbackProperties = TouchableNativeFeedbackProps;
168
169/** @deprecated Use ButtonProps */
170export type ButtonProperties = ButtonProps;
171
172/** @deprecated Use StatusBarProps */
173export type StatusBarProperties = StatusBarProps;
174
175/** @deprecated Use StatusBarPropsIOS */
176export type StatusBarPropertiesIOS = StatusBarPropsIOS;
177
178/** @deprecated Use StatusBarPropsAndroid */
179export type StatusBarPropertiesAndroid = StatusBarPropsAndroid;
180
181/** @deprecated Use SwitchProps */
182export type SwitchProperties = SwitchProps;
183
184/** @deprecated Use SwitchPropsIOS */
185export type SwitchPropertiesIOS = SwitchPropsIOS;