@office-iss/react-native-win32 0.82.0-preview.3 → 0.83.0-preview.0
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/.flowconfig +2 -2
- package/CHANGELOG.json +15979 -15955
- package/CHANGELOG.md +26 -22
- package/IntegrationTests/ImageCachePolicyTest.js +1 -1
- package/Libraries/Animated/components/AnimatedFlatList.js +5 -3
- package/Libraries/Animated/components/AnimatedImage.js +4 -3
- package/Libraries/Animated/components/AnimatedSectionList.js +2 -2
- package/Libraries/Animated/components/AnimatedText.js +7 -3
- package/Libraries/Animated/components/AnimatedView.js +3 -2
- package/Libraries/Animated/createAnimatedComponent.js +24 -12
- package/Libraries/Animated/nodes/AnimatedColor.js +26 -10
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +43 -15
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +43 -15
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +2 -2
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +2 -2
- package/Libraries/Components/RefreshControl/RefreshControl.d.ts +3 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +6 -6
- package/Libraries/Components/Switch/Switch.d.ts +2 -2
- package/Libraries/Components/TextInput/TextInput.d.ts +2 -5
- package/Libraries/Components/TextInput/TextInput.js +6 -0
- package/Libraries/Components/TextInput/TextInput.win32.js +18 -12
- package/Libraries/Components/TextInput/TextInputState.win32.js +2 -2
- package/Libraries/Components/Touchable/TouchableBounce.js +7 -7
- package/Libraries/Components/Touchable/TouchableWin32.js +9 -6
- package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +19 -1
- package/Libraries/Components/View/View.d.ts +2 -2
- package/Libraries/Components/View/View.win32.js +17 -15
- package/Libraries/Components/View/ViewNativeComponent.js +13 -1
- package/Libraries/Components/View/ViewWin32.d.ts +2 -2
- package/Libraries/Components/View/ViewWin32.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/setUpPerformance.js +2 -0
- package/Libraries/Debugging/DebuggingOverlay.js +14 -14
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +8 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +5 -2
- package/Libraries/Image/Image.d.ts +3 -3
- package/Libraries/Image/ImageInjection.js +3 -6
- package/Libraries/Image/ImageTypes.flow.js +3 -7
- package/Libraries/Lists/FlatList.js +8 -8
- package/Libraries/Lists/SectionList.d.ts +5 -1
- package/Libraries/Lists/ViewabilityHelper.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +1 -0
- package/Libraries/LogBox/UI/AnsiHighlight.js +4 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +11 -2
- package/Libraries/NativeComponent/NativeComponentRegistry.d.ts +98 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -0
- package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +3 -1
- package/Libraries/Network/RCTNetworking.android.js +3 -1
- package/Libraries/Network/RCTNetworking.ios.js +3 -0
- package/Libraries/Network/RCTNetworking.win32.js +3 -0
- package/Libraries/Network/XMLHttpRequest.js +1 -41
- package/Libraries/Pressability/Pressability.win32.js +5 -5
- package/Libraries/Pressability/usePressability.js +14 -3
- package/Libraries/ReactNative/PaperUIManager.win32.js +7 -7
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +20 -82
- package/Libraries/ReactNative/getNativeComponentAttributes.js +12 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +6759 -4478
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3169 -3119
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +4732 -3535
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +6646 -4070
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3136 -2825
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4761 -3312
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.win32.js +2 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +44 -0
- package/Libraries/StyleSheet/processBackgroundPosition.js +284 -0
- package/Libraries/StyleSheet/processBackgroundRepeat.js +105 -0
- package/Libraries/StyleSheet/processBackgroundSize.js +104 -0
- package/Libraries/Text/Text.d.ts +2 -2
- package/Libraries/Text/TextNativeComponent.js +10 -0
- package/Libraries/Text/TextNativeComponent.win32.js +10 -0
- package/Libraries/TurboModule/TurboModuleRegistry.js +3 -9
- package/Libraries/Utilities/DevLoadingView.js +14 -6
- package/Libraries/Utilities/FocusManager.win32.js +2 -2
- package/Libraries/Utilities/HMRClient.js +13 -5
- package/flow/bom.js.flow +1 -0
- package/index.js +6 -0
- package/index.win32.js +130 -207
- package/index.win32.js.flow +488 -0
- package/jest/mockComponent.js +6 -6
- package/jest/setup.js +15 -10
- package/overrides.json +16 -10
- package/package.json +37 -24
- package/src/private/components/virtualview/VirtualView.js +22 -27
- package/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.js +6 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +100 -19
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +18 -3
- package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -0
- package/src/private/specs_DEPRECATED/modules/NativeNetworkingIOS.js +1 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +12 -2
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +76 -15
- package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +1 -0
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +1 -0
- package/src/private/webapis/performance/ResourceTiming.js +31 -4
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +4 -1
- package/src/private/webapis/performance/specs/NativePerformance.js +3 -0
- package/src-win/Libraries/Components/Touchable/TouchableWin32.tsx +6 -3
- package/src-win/Libraries/Components/View/ViewWin32.d.ts +2 -2
- package/src-win/Libraries/Text/Text.d.ts +2 -2
- package/src-win/index.win32.js.flow +488 -0
- package/types/index.d.ts +1 -0
- package/types/public/ReactNativeTypes.d.ts +115 -2
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +0 -152
package/index.win32.js
CHANGED
|
@@ -9,156 +9,73 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
// flowlint unsafe-getters-setters:off
|
|
12
|
-
// flowlint unclear-type:off
|
|
13
|
-
// flowlint untyped-import:off
|
|
14
12
|
|
|
15
13
|
'use strict';
|
|
16
14
|
'use client';
|
|
17
15
|
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
import typeof NativeModules from './Libraries/BatchedBridge/NativeModules';
|
|
29
|
-
import typeof codegenNativeCommands from './Libraries/Utilities/codegenNativeCommands';
|
|
30
|
-
import typeof codegenNativeComponent from './Libraries/Utilities/codegenNativeComponent';
|
|
31
|
-
import {findNodeHandle} from './Libraries/ReactNative/RendererProxy';
|
|
32
|
-
import {unstable_batchedUpdates} from './Libraries/ReactNative/RendererProxy';
|
|
16
|
+
// ----------------------------------------------------------------------------
|
|
17
|
+
// Runtime entry point for react-native-win32.
|
|
18
|
+
//
|
|
19
|
+
// This module is separate from index.win32.js.flow as it provides a more lenient
|
|
20
|
+
// `module.exports` API at runtime, for lazy module loading and backwards
|
|
21
|
+
// compatibility.
|
|
22
|
+
//
|
|
23
|
+
// IMPORTANT: Keep this file in sync with index.win32.js.flow. Test your changes
|
|
24
|
+
// whenever updating React Native's public API.
|
|
25
|
+
// ----------------------------------------------------------------------------
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
|
|
36
|
-
import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
|
|
37
|
-
import typeof Button from './Libraries/Components/Button';
|
|
38
|
-
import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
|
|
39
|
-
import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
40
|
-
import typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';
|
|
41
|
-
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
42
|
-
import typeof LayoutConformance from './Libraries/Components/LayoutConformance/LayoutConformance';
|
|
43
|
-
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
|
|
44
|
-
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
45
|
-
import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';
|
|
46
|
-
import typeof SafeAreaView from './Libraries/Components/SafeAreaView/SafeAreaView';
|
|
47
|
-
import typeof ScrollView from './Libraries/Components/ScrollView/ScrollView';
|
|
48
|
-
import typeof StatusBar from './Libraries/Components/StatusBar/StatusBar';
|
|
49
|
-
import typeof Switch from './Libraries/Components/Switch/Switch';
|
|
50
|
-
import typeof InputAccessoryView from './Libraries/Components/TextInput/InputAccessoryView';
|
|
51
|
-
import typeof TextInput from './Libraries/Components/TextInput/TextInput';
|
|
52
|
-
import typeof ToastAndroid from './Libraries/Components/ToastAndroid/ToastAndroid';
|
|
53
|
-
import typeof Touchable from './Libraries/Components/Touchable/Touchable';
|
|
54
|
-
import typeof TouchableHighlight from './Libraries/Components/Touchable/TouchableHighlight';
|
|
55
|
-
import typeof TouchableNativeFeedback from './Libraries/Components/Touchable/TouchableNativeFeedback';
|
|
56
|
-
import typeof TouchableOpacity from './Libraries/Components/Touchable/TouchableOpacity';
|
|
57
|
-
import typeof TouchableWithoutFeedback from './Libraries/Components/Touchable/TouchableWithoutFeedback';
|
|
58
|
-
import typeof View from './Libraries/Components/View/View';
|
|
59
|
-
import typeof NativeEventEmitter from './Libraries/EventEmitter/NativeEventEmitter';
|
|
60
|
-
import typeof RCTDeviceEventEmitter from './Libraries/EventEmitter/RCTDeviceEventEmitter';
|
|
61
|
-
import typeof RCTNativeAppEventEmitter from './Libraries/EventEmitter/RCTNativeAppEventEmitter';
|
|
62
|
-
import typeof Image from './Libraries/Image/Image';
|
|
63
|
-
import typeof ImageBackground from './Libraries/Image/ImageBackground';
|
|
64
|
-
import typeof InteractionManager from './Libraries/Interaction/InteractionManager';
|
|
65
|
-
import typeof PanResponder from './Libraries/Interaction/PanResponder';
|
|
66
|
-
import typeof LayoutAnimation from './Libraries/LayoutAnimation/LayoutAnimation';
|
|
67
|
-
import typeof Linking from './Libraries/Linking/Linking';
|
|
68
|
-
import typeof FlatList from './Libraries/Lists/FlatList';
|
|
69
|
-
import typeof SectionList from './Libraries/Lists/SectionList';
|
|
70
|
-
import typeof VirtualizedList from './Libraries/Lists/VirtualizedList';
|
|
71
|
-
import typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList';
|
|
72
|
-
import typeof LogBox from './Libraries/LogBox/LogBox';
|
|
73
|
-
import typeof Modal from './Libraries/Modal/Modal';
|
|
74
|
-
// $FlowFixMe[invalid-exported-annotation]
|
|
75
|
-
import typeof NativeDialogManagerAndroid from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
|
|
76
|
-
import typeof * as NativeComponentRegistry from './Libraries/NativeComponent/NativeComponentRegistry';
|
|
77
|
-
import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
78
|
-
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
|
79
|
-
import typeof PermissionsAndroid from './Libraries/PermissionsAndroid/PermissionsAndroid';
|
|
80
|
-
import typeof PushNotificationIOS from './Libraries/PushNotificationIOS/PushNotificationIOS';
|
|
81
|
-
import typeof {AppRegistry} from './Libraries/ReactNative/AppRegistry';
|
|
82
|
-
import typeof I18nManager from './Libraries/ReactNative/I18nManager';
|
|
83
|
-
import typeof {RootTagContext} from './Libraries/ReactNative/RootTag';
|
|
84
|
-
import typeof UIManager from './Libraries/ReactNative/UIManager';
|
|
85
|
-
import typeof ReactNative from './Libraries/Renderer/shims/ReactNative';
|
|
86
|
-
import type {HostComponent} from './src/private/types/HostComponent';
|
|
87
|
-
import type {HostInstance} from './src/private/types/HostInstance';
|
|
88
|
-
import typeof Settings from './Libraries/Settings/Settings';
|
|
89
|
-
import typeof Share from './Libraries/Share/Share';
|
|
90
|
-
import typeof {PlatformColor} from './Libraries/StyleSheet/PlatformColorValueTypes';
|
|
91
|
-
// Plugins
|
|
92
|
-
import typeof {DynamicColorIOS} from './Libraries/StyleSheet/PlatformColorValueTypesIOS';
|
|
93
|
-
import typeof processColor from './Libraries/StyleSheet/processColor';
|
|
94
|
-
import typeof StyleSheet from './Libraries/StyleSheet/StyleSheet';
|
|
95
|
-
import typeof Text from './Libraries/Text/Text';
|
|
96
|
-
import typeof * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry';
|
|
97
|
-
import typeof UTFSequence from './Libraries/UTFSequence';
|
|
98
|
-
import typeof * as Appearance from './Libraries/Utilities/Appearance';
|
|
99
|
-
import typeof BackHandler from './Libraries/Utilities/BackHandler';
|
|
100
|
-
import typeof DeviceInfo from './Libraries/Utilities/DeviceInfo';
|
|
101
|
-
import typeof DevSettings from './Libraries/Utilities/DevSettings';
|
|
102
|
-
import typeof Dimensions from './Libraries/Utilities/Dimensions';
|
|
103
|
-
import typeof PixelRatio from './Libraries/Utilities/PixelRatio';
|
|
104
|
-
import typeof Platform from './Libraries/Utilities/Platform';
|
|
105
|
-
import typeof useColorScheme from './Libraries/Utilities/useColorScheme';
|
|
106
|
-
import typeof useWindowDimensions from './Libraries/Utilities/useWindowDimensions';
|
|
107
|
-
import typeof Vibration from './Libraries/Vibration/Vibration';
|
|
108
|
-
import typeof DevMenu from './src/private/devsupport/devmenu/DevMenu';
|
|
109
|
-
import typeof registerCallableModule from './Libraries/Core/registerCallableModule';
|
|
110
|
-
import typeof ReactNativeVersion from './Libraries/Core/ReactNativeVersion';
|
|
111
|
-
// Windows]]
|
|
27
|
+
import typeof * as ReactNativePublicAPI from './index.win32.js.flow';
|
|
112
28
|
|
|
113
29
|
const warnOnce = require('./Libraries/Utilities/warnOnce').default;
|
|
114
30
|
const invariant = require('invariant');
|
|
115
31
|
|
|
116
|
-
// Windows types
|
|
117
|
-
import typeof {ColorGradientWin32} from './Libraries/StyleSheet/PlatformColorValueTypesWin32';
|
|
118
|
-
|
|
119
32
|
module.exports = {
|
|
120
33
|
// #region Components
|
|
121
|
-
get ActivityIndicator()
|
|
34
|
+
get ActivityIndicator() {
|
|
122
35
|
return require('./Libraries/Components/ActivityIndicator/ActivityIndicator')
|
|
123
36
|
.default;
|
|
124
37
|
},
|
|
125
|
-
get Button()
|
|
38
|
+
get Button() {
|
|
126
39
|
return require('./Libraries/Components/Button').default;
|
|
127
40
|
},
|
|
128
|
-
|
|
129
|
-
get DrawerLayoutAndroid(): DrawerLayoutAndroid {
|
|
41
|
+
get DrawerLayoutAndroid() {
|
|
130
42
|
return require('./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid')
|
|
131
43
|
.default;
|
|
132
44
|
},
|
|
133
|
-
get FlatList()
|
|
45
|
+
get FlatList() {
|
|
134
46
|
return require('./Libraries/Lists/FlatList').default;
|
|
135
47
|
},
|
|
136
|
-
get Image()
|
|
48
|
+
get Image() {
|
|
137
49
|
return require('./Libraries/Image/Image').default;
|
|
138
50
|
},
|
|
139
|
-
get ImageBackground()
|
|
51
|
+
get ImageBackground() {
|
|
140
52
|
return require('./Libraries/Image/ImageBackground').default;
|
|
141
53
|
},
|
|
142
|
-
get InputAccessoryView()
|
|
54
|
+
get InputAccessoryView() {
|
|
143
55
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
144
56
|
.default;
|
|
145
57
|
},
|
|
146
|
-
get KeyboardAvoidingView()
|
|
58
|
+
get KeyboardAvoidingView() {
|
|
147
59
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
148
60
|
.default;
|
|
149
61
|
},
|
|
150
|
-
get experimental_LayoutConformance()
|
|
62
|
+
get experimental_LayoutConformance() {
|
|
151
63
|
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
152
64
|
.default;
|
|
153
65
|
},
|
|
154
|
-
get Modal()
|
|
66
|
+
get Modal() {
|
|
155
67
|
return require('./Libraries/Modal/Modal').default;
|
|
156
68
|
},
|
|
157
|
-
get
|
|
69
|
+
get unstable_NativeText() {
|
|
70
|
+
return require('./Libraries/Text/TextNativeComponent').NativeText;
|
|
71
|
+
},
|
|
72
|
+
get unstable_NativeView() {
|
|
73
|
+
return require('./Libraries/Components/View/ViewNativeComponent').default;
|
|
74
|
+
},
|
|
75
|
+
get Pressable() {
|
|
158
76
|
return require('./Libraries/Components/Pressable/Pressable').default;
|
|
159
77
|
},
|
|
160
|
-
|
|
161
|
-
get ProgressBarAndroid(): ProgressBarAndroid {
|
|
78
|
+
get ProgressBarAndroid() {
|
|
162
79
|
warnOnce(
|
|
163
80
|
'progress-bar-android-moved',
|
|
164
81
|
'ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. ' +
|
|
@@ -168,7 +85,7 @@ module.exports = {
|
|
|
168
85
|
return require('./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid')
|
|
169
86
|
.default;
|
|
170
87
|
},
|
|
171
|
-
get RefreshControl()
|
|
88
|
+
get RefreshControl() {
|
|
172
89
|
return require('./Libraries/Components/RefreshControl/RefreshControl')
|
|
173
90
|
.default;
|
|
174
91
|
},
|
|
@@ -177,7 +94,7 @@ module.exports = {
|
|
|
177
94
|
* Please use 'react-native-safe-area-context' instead.
|
|
178
95
|
* See https://github.com/AppAndFlow/react-native-safe-area-context
|
|
179
96
|
*/
|
|
180
|
-
get SafeAreaView()
|
|
97
|
+
get SafeAreaView() {
|
|
181
98
|
warnOnce(
|
|
182
99
|
'safe-area-view-deprecated',
|
|
183
100
|
'SafeAreaView has been deprecated and will be removed in a future release. ' +
|
|
@@ -186,82 +103,87 @@ module.exports = {
|
|
|
186
103
|
);
|
|
187
104
|
return require('./Libraries/Components/SafeAreaView/SafeAreaView').default;
|
|
188
105
|
},
|
|
189
|
-
get ScrollView()
|
|
106
|
+
get ScrollView() {
|
|
190
107
|
return require('./Libraries/Components/ScrollView/ScrollView').default;
|
|
191
108
|
},
|
|
192
|
-
get SectionList()
|
|
109
|
+
get SectionList() {
|
|
193
110
|
return require('./Libraries/Lists/SectionList').default;
|
|
194
111
|
},
|
|
195
|
-
get StatusBar()
|
|
112
|
+
get StatusBar() {
|
|
196
113
|
return require('./Libraries/Components/StatusBar/StatusBar').default;
|
|
197
114
|
},
|
|
198
|
-
get Switch()
|
|
115
|
+
get Switch() {
|
|
199
116
|
return require('./Libraries/Components/Switch/Switch').default;
|
|
200
117
|
},
|
|
201
|
-
get Text()
|
|
118
|
+
get Text() {
|
|
202
119
|
return require('./Libraries/Text/Text').default;
|
|
203
120
|
},
|
|
204
|
-
|
|
205
|
-
|
|
121
|
+
get unstable_TextAncestorContext() {
|
|
122
|
+
return require('./Libraries/Text/TextAncestorContext').default;
|
|
123
|
+
},
|
|
124
|
+
get TextInput() {
|
|
206
125
|
return require('./Libraries/Components/TextInput/TextInput').default;
|
|
207
126
|
},
|
|
208
|
-
get Touchable()
|
|
127
|
+
get Touchable() {
|
|
209
128
|
return require('./Libraries/Components/Touchable/Touchable').default;
|
|
210
129
|
},
|
|
211
|
-
get TouchableHighlight()
|
|
130
|
+
get TouchableHighlight() {
|
|
212
131
|
return require('./Libraries/Components/Touchable/TouchableHighlight')
|
|
213
132
|
.default;
|
|
214
133
|
},
|
|
215
|
-
|
|
216
|
-
get TouchableNativeFeedback(): TouchableNativeFeedback {
|
|
134
|
+
get TouchableNativeFeedback() {
|
|
217
135
|
return require('./Libraries/Components/Touchable/TouchableNativeFeedback')
|
|
218
136
|
.default;
|
|
219
137
|
},
|
|
220
|
-
get TouchableOpacity()
|
|
138
|
+
get TouchableOpacity() {
|
|
221
139
|
return require('./Libraries/Components/Touchable/TouchableOpacity').default;
|
|
222
140
|
},
|
|
223
|
-
get TouchableWithoutFeedback()
|
|
141
|
+
get TouchableWithoutFeedback() {
|
|
224
142
|
return require('./Libraries/Components/Touchable/TouchableWithoutFeedback')
|
|
225
143
|
.default;
|
|
226
144
|
},
|
|
227
|
-
get View()
|
|
145
|
+
get View() {
|
|
228
146
|
return require('./Libraries/Components/View/View').default;
|
|
229
147
|
},
|
|
230
|
-
get VirtualizedList()
|
|
148
|
+
get VirtualizedList() {
|
|
231
149
|
return require('./Libraries/Lists/VirtualizedList').default;
|
|
232
150
|
},
|
|
233
|
-
get VirtualizedSectionList()
|
|
151
|
+
get VirtualizedSectionList() {
|
|
234
152
|
return require('./Libraries/Lists/VirtualizedSectionList').default;
|
|
235
153
|
},
|
|
154
|
+
get unstable_VirtualView() {
|
|
155
|
+
return require('./src/private/components/virtualview/VirtualView').default;
|
|
156
|
+
},
|
|
157
|
+
// #endregion
|
|
236
158
|
// #region APIs
|
|
237
|
-
get AccessibilityInfo()
|
|
159
|
+
get AccessibilityInfo() {
|
|
238
160
|
return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
|
|
239
161
|
.default;
|
|
240
162
|
},
|
|
241
|
-
get ActionSheetIOS()
|
|
163
|
+
get ActionSheetIOS() {
|
|
242
164
|
return require('./Libraries/ActionSheetIOS/ActionSheetIOS').default;
|
|
243
165
|
},
|
|
244
|
-
get Alert()
|
|
166
|
+
get Alert() {
|
|
245
167
|
return require('./Libraries/Alert/Alert').default;
|
|
246
168
|
},
|
|
247
169
|
// Include any types exported in the Animated module together with its default export, so
|
|
248
170
|
// you can references types such as Animated.Numeric
|
|
249
|
-
get Animated()
|
|
171
|
+
get Animated() {
|
|
250
172
|
return require('./Libraries/Animated/Animated').default;
|
|
251
173
|
},
|
|
252
|
-
get Appearance()
|
|
174
|
+
get Appearance() {
|
|
253
175
|
return require('./Libraries/Utilities/Appearance');
|
|
254
176
|
},
|
|
255
|
-
get AppRegistry()
|
|
177
|
+
get AppRegistry() {
|
|
256
178
|
return require('./Libraries/ReactNative/AppRegistry').AppRegistry;
|
|
257
179
|
},
|
|
258
|
-
get AppState()
|
|
180
|
+
get AppState() {
|
|
259
181
|
return require('./Libraries/AppState/AppState').default;
|
|
260
182
|
},
|
|
261
|
-
get BackHandler()
|
|
183
|
+
get BackHandler() {
|
|
262
184
|
return require('./Libraries/Utilities/BackHandler').default;
|
|
263
185
|
},
|
|
264
|
-
get Clipboard()
|
|
186
|
+
get Clipboard() {
|
|
265
187
|
warnOnce(
|
|
266
188
|
'clipboard-moved',
|
|
267
189
|
'Clipboard has been extracted from react-native core and will be removed in a future release. ' +
|
|
@@ -270,47 +192,47 @@ module.exports = {
|
|
|
270
192
|
);
|
|
271
193
|
return require('./Libraries/Components/Clipboard/Clipboard').default;
|
|
272
194
|
},
|
|
273
|
-
get codegenNativeCommands()
|
|
195
|
+
get codegenNativeCommands() {
|
|
274
196
|
return require('./Libraries/Utilities/codegenNativeCommands').default;
|
|
275
197
|
},
|
|
276
|
-
get codegenNativeComponent()
|
|
198
|
+
get codegenNativeComponent() {
|
|
277
199
|
return require('./Libraries/Utilities/codegenNativeComponent').default;
|
|
278
200
|
},
|
|
279
|
-
get DeviceEventEmitter()
|
|
201
|
+
get DeviceEventEmitter() {
|
|
280
202
|
return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
|
|
281
203
|
},
|
|
282
|
-
get DeviceInfo()
|
|
204
|
+
get DeviceInfo() {
|
|
283
205
|
return require('./Libraries/Utilities/DeviceInfo').default;
|
|
284
206
|
},
|
|
285
|
-
get DevMenu()
|
|
207
|
+
get DevMenu() {
|
|
286
208
|
return require('./src/private/devsupport/devmenu/DevMenu').default;
|
|
287
209
|
},
|
|
288
|
-
get DevSettings()
|
|
210
|
+
get DevSettings() {
|
|
289
211
|
return require('./Libraries/Utilities/DevSettings').default;
|
|
290
212
|
},
|
|
291
|
-
get Dimensions()
|
|
213
|
+
get Dimensions() {
|
|
292
214
|
return require('./Libraries/Utilities/Dimensions').default;
|
|
293
215
|
},
|
|
294
|
-
get DynamicColorIOS()
|
|
216
|
+
get DynamicColorIOS() {
|
|
295
217
|
return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
|
|
296
218
|
.DynamicColorIOS;
|
|
297
219
|
},
|
|
298
|
-
get Easing()
|
|
220
|
+
get Easing() {
|
|
299
221
|
return require('./Libraries/Animated/Easing').default;
|
|
300
222
|
},
|
|
301
|
-
get findNodeHandle()
|
|
223
|
+
get findNodeHandle() {
|
|
302
224
|
return require('./Libraries/ReactNative/RendererProxy').findNodeHandle;
|
|
303
225
|
},
|
|
304
|
-
get FocusManager()
|
|
226
|
+
get FocusManager() {
|
|
305
227
|
return require('./Libraries/Utilities/FocusManager').default;
|
|
306
228
|
},
|
|
307
|
-
get I18nManager()
|
|
229
|
+
get I18nManager() {
|
|
308
230
|
return require('./Libraries/ReactNative/I18nManager').default;
|
|
309
231
|
},
|
|
310
232
|
/**
|
|
311
233
|
* @deprecated
|
|
312
234
|
*/
|
|
313
|
-
get InteractionManager()
|
|
235
|
+
get InteractionManager() {
|
|
314
236
|
warnOnce(
|
|
315
237
|
'interaction-manager-deprecated',
|
|
316
238
|
'InteractionManager has been deprecated and will be removed in a ' +
|
|
@@ -319,54 +241,54 @@ module.exports = {
|
|
|
319
241
|
);
|
|
320
242
|
return require('./Libraries/Interaction/InteractionManager').default;
|
|
321
243
|
},
|
|
322
|
-
get Keyboard()
|
|
244
|
+
get Keyboard() {
|
|
323
245
|
return require('./Libraries/Components/Keyboard/Keyboard').default;
|
|
324
246
|
},
|
|
325
|
-
get LayoutAnimation()
|
|
247
|
+
get LayoutAnimation() {
|
|
326
248
|
return require('./Libraries/LayoutAnimation/LayoutAnimation').default;
|
|
327
249
|
},
|
|
328
|
-
get Linking()
|
|
250
|
+
get Linking() {
|
|
329
251
|
return require('./Libraries/Linking/Linking').default;
|
|
330
252
|
},
|
|
331
|
-
get LogBox()
|
|
253
|
+
get LogBox() {
|
|
332
254
|
return require('./Libraries/LogBox/LogBox').default;
|
|
333
255
|
},
|
|
334
|
-
get NativeAppEventEmitter()
|
|
256
|
+
get NativeAppEventEmitter() {
|
|
335
257
|
return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
|
|
336
258
|
},
|
|
337
|
-
get NativeComponentRegistry()
|
|
259
|
+
get NativeComponentRegistry() {
|
|
338
260
|
return require('./Libraries/NativeComponent/NativeComponentRegistry');
|
|
339
261
|
},
|
|
340
|
-
get NativeDialogManagerAndroid()
|
|
262
|
+
get NativeDialogManagerAndroid() {
|
|
341
263
|
return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')
|
|
342
264
|
.default;
|
|
343
265
|
},
|
|
344
|
-
get NativeEventEmitter()
|
|
266
|
+
get NativeEventEmitter() {
|
|
345
267
|
return require('./Libraries/EventEmitter/NativeEventEmitter').default;
|
|
346
268
|
},
|
|
347
|
-
get NativeModules()
|
|
269
|
+
get NativeModules() {
|
|
348
270
|
return require('./Libraries/BatchedBridge/NativeModules').default;
|
|
349
271
|
},
|
|
350
|
-
get Networking()
|
|
272
|
+
get Networking() {
|
|
351
273
|
return require('./Libraries/Network/RCTNetworking').default;
|
|
352
274
|
},
|
|
353
|
-
get PanResponder()
|
|
275
|
+
get PanResponder() {
|
|
354
276
|
return require('./Libraries/Interaction/PanResponder').default;
|
|
355
277
|
},
|
|
356
|
-
get PermissionsAndroid()
|
|
278
|
+
get PermissionsAndroid() {
|
|
357
279
|
return require('./Libraries/PermissionsAndroid/PermissionsAndroid').default;
|
|
358
280
|
},
|
|
359
|
-
get PixelRatio()
|
|
281
|
+
get PixelRatio() {
|
|
360
282
|
return require('./Libraries/Utilities/PixelRatio').default;
|
|
361
283
|
},
|
|
362
|
-
get Platform()
|
|
284
|
+
get Platform() {
|
|
363
285
|
return require('./Libraries/Utilities/Platform').default;
|
|
364
286
|
},
|
|
365
|
-
get PlatformColor()
|
|
287
|
+
get PlatformColor() {
|
|
366
288
|
return require('./Libraries/StyleSheet/PlatformColorValueTypes')
|
|
367
289
|
.PlatformColor;
|
|
368
290
|
},
|
|
369
|
-
get PushNotificationIOS()
|
|
291
|
+
get PushNotificationIOS() {
|
|
370
292
|
warnOnce(
|
|
371
293
|
'pushNotificationIOS-moved',
|
|
372
294
|
'PushNotificationIOS has been extracted from react-native core and will be removed in a future release. ' +
|
|
@@ -376,102 +298,103 @@ module.exports = {
|
|
|
376
298
|
return require('./Libraries/PushNotificationIOS/PushNotificationIOS')
|
|
377
299
|
.default;
|
|
378
300
|
},
|
|
379
|
-
|
|
380
|
-
get processColor(): processColor {
|
|
301
|
+
get processColor() {
|
|
381
302
|
return require('./Libraries/StyleSheet/processColor').default;
|
|
382
303
|
},
|
|
383
|
-
get registerCallableModule()
|
|
304
|
+
get registerCallableModule() {
|
|
384
305
|
return require('./Libraries/Core/registerCallableModule').default;
|
|
385
306
|
},
|
|
386
|
-
get requireNativeComponent()
|
|
387
|
-
uiViewClassName: string,
|
|
388
|
-
) => HostComponent<T> {
|
|
307
|
+
get requireNativeComponent() {
|
|
389
308
|
return require('./Libraries/ReactNative/requireNativeComponent').default;
|
|
390
309
|
},
|
|
391
|
-
get ReactNativeVersion()
|
|
310
|
+
get ReactNativeVersion() {
|
|
392
311
|
return require('./Libraries/Core/ReactNativeVersion').default;
|
|
393
312
|
},
|
|
394
|
-
get RootTagContext()
|
|
313
|
+
get RootTagContext() {
|
|
395
314
|
return require('./Libraries/ReactNative/RootTag').RootTagContext;
|
|
396
315
|
},
|
|
397
|
-
get Settings()
|
|
316
|
+
get Settings() {
|
|
398
317
|
return require('./Libraries/Settings/Settings').default;
|
|
399
318
|
},
|
|
400
|
-
get Share()
|
|
319
|
+
get Share() {
|
|
401
320
|
return require('./Libraries/Share/Share').default;
|
|
402
321
|
},
|
|
403
|
-
get StyleSheet()
|
|
322
|
+
get StyleSheet() {
|
|
404
323
|
return require('./Libraries/StyleSheet/StyleSheet').default;
|
|
405
324
|
},
|
|
406
|
-
get Systrace()
|
|
325
|
+
get Systrace() {
|
|
407
326
|
return require('./Libraries/Performance/Systrace');
|
|
408
327
|
},
|
|
409
|
-
|
|
410
|
-
get ToastAndroid(): ToastAndroid {
|
|
328
|
+
get ToastAndroid() {
|
|
411
329
|
return require('./Libraries/Components/ToastAndroid/ToastAndroid').default;
|
|
412
330
|
},
|
|
413
|
-
get TurboModuleRegistry()
|
|
331
|
+
get TurboModuleRegistry() {
|
|
414
332
|
return require('./Libraries/TurboModule/TurboModuleRegistry');
|
|
415
333
|
},
|
|
416
|
-
get UIManager()
|
|
334
|
+
get UIManager() {
|
|
417
335
|
return require('./Libraries/ReactNative/UIManager').default;
|
|
418
336
|
},
|
|
419
|
-
get unstable_batchedUpdates()
|
|
337
|
+
get unstable_batchedUpdates() {
|
|
420
338
|
return require('./Libraries/ReactNative/RendererProxy')
|
|
421
339
|
.unstable_batchedUpdates;
|
|
422
340
|
},
|
|
423
|
-
get
|
|
424
|
-
return () =>
|
|
425
|
-
console.warn(
|
|
426
|
-
'LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.',
|
|
427
|
-
);
|
|
428
|
-
},
|
|
429
|
-
get useAnimatedValue(): useAnimatedValue {
|
|
341
|
+
get useAnimatedValue() {
|
|
430
342
|
return require('./Libraries/Animated/useAnimatedValue').default;
|
|
431
343
|
},
|
|
432
|
-
get useColorScheme()
|
|
344
|
+
get useColorScheme() {
|
|
433
345
|
return require('./Libraries/Utilities/useColorScheme').default;
|
|
434
346
|
},
|
|
435
|
-
get useWindowDimensions()
|
|
347
|
+
get useWindowDimensions() {
|
|
436
348
|
return require('./Libraries/Utilities/useWindowDimensions').default;
|
|
437
349
|
},
|
|
438
|
-
get UTFSequence()
|
|
350
|
+
get UTFSequence() {
|
|
439
351
|
return require('./Libraries/UTFSequence').default;
|
|
440
352
|
},
|
|
441
|
-
get Vibration()
|
|
353
|
+
get Vibration() {
|
|
442
354
|
return require('./Libraries/Vibration/Vibration').default;
|
|
443
355
|
},
|
|
356
|
+
get VirtualViewMode() {
|
|
357
|
+
return require('./src/private/components/virtualview/VirtualView')
|
|
358
|
+
.VirtualViewMode;
|
|
359
|
+
},
|
|
444
360
|
// #endregion
|
|
445
|
-
|
|
446
|
-
|
|
361
|
+
|
|
362
|
+
// Additional win32 exports (Typescript components exported as flow any)
|
|
363
|
+
get ColorGradientWin32() {
|
|
447
364
|
return require('./Libraries/StyleSheet/PlatformColorValueTypesWin32')
|
|
448
365
|
.ColorGradientWin32;
|
|
449
366
|
},
|
|
450
|
-
get ViewWin32()
|
|
367
|
+
get ViewWin32() {
|
|
368
|
+
/* $FlowFixMe[untyped-import] ViewWin32 defined in TS not flow */
|
|
451
369
|
return require('./Libraries/Components/View/ViewWin32');
|
|
452
370
|
},
|
|
453
|
-
get TextWin32()
|
|
371
|
+
get TextWin32() {
|
|
454
372
|
// Legacy export
|
|
455
|
-
return require('./Libraries/Text/Text');
|
|
373
|
+
return require('./Libraries/Text/Text').default;
|
|
456
374
|
},
|
|
457
|
-
get ButtonWin32()
|
|
375
|
+
get ButtonWin32() {
|
|
376
|
+
/* $FlowFixMe[untyped-import] ButtonWin32 defined in TS not flow */
|
|
458
377
|
return require('./Libraries/Components/Button/ButtonWin32').ButtonWin32;
|
|
459
378
|
},
|
|
460
|
-
get TouchableWin32()
|
|
379
|
+
get TouchableWin32() {
|
|
380
|
+
/* $FlowFixMe[untyped-import] TouchableWin32 defined in TS not flow */
|
|
461
381
|
return require('./Libraries/Components/Touchable/TouchableWin32')
|
|
462
382
|
.TouchableWin32;
|
|
463
383
|
},
|
|
464
|
-
get PersonaCoin()
|
|
384
|
+
get PersonaCoin() {
|
|
385
|
+
/* $FlowFixMe[untyped-import] PersonaCoin defined in TS not flow */
|
|
465
386
|
return require('./Libraries/PersonaCoin/PersonaCoin').PersonaCoin;
|
|
466
387
|
},
|
|
467
|
-
get PersonaCoinSize()
|
|
388
|
+
get PersonaCoinSize() {
|
|
389
|
+
/* $FlowFixMe[untyped-import] PersonaCoinTypes defined in TS not flow */
|
|
468
390
|
return require('./Libraries/PersonaCoin/PersonaCoinTypes').PersonaCoinSize;
|
|
469
391
|
},
|
|
470
|
-
get PersonaCoinPresence()
|
|
392
|
+
get PersonaCoinPresence() {
|
|
393
|
+
/* $FlowFixMe[untyped-import] PersonaCoinTypes defined in TS not flow */
|
|
471
394
|
return require('./Libraries/PersonaCoin/PersonaCoinTypes')
|
|
472
395
|
.PersonaCoinPresence;
|
|
473
396
|
},
|
|
474
|
-
};
|
|
397
|
+
} as ReactNativePublicAPI;
|
|
475
398
|
|
|
476
399
|
if (__DEV__) {
|
|
477
400
|
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|