@office-iss/react-native-win32 0.79.1 → 0.80.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 +10 -3
- package/CHANGELOG.json +117 -24
- package/CHANGELOG.md +49 -14
- package/IntegrationTests/ImageCachePolicyTest.js +1 -1
- package/IntegrationTests/LayoutEventsTest.js +1 -4
- package/Libraries/Alert/Alert.d.ts +4 -1
- package/Libraries/Alert/Alert.js +3 -0
- package/Libraries/Alert/RCTAlertManager.js +17 -0
- package/Libraries/Animated/Animated.js.flow +1 -3
- package/Libraries/Animated/AnimatedEvent.js +4 -3
- package/Libraries/Animated/AnimatedExports.js +2 -2
- package/Libraries/Animated/AnimatedExports.js.flow +140 -0
- package/Libraries/Animated/AnimatedImplementation.js +2 -123
- package/Libraries/Animated/Easing.js +13 -15
- package/Libraries/Animated/animations/Animation.js +8 -4
- package/Libraries/Animated/components/AnimatedFlatList.js +7 -6
- package/Libraries/Animated/components/AnimatedScrollView.js +48 -42
- package/Libraries/Animated/components/AnimatedSectionList.js +11 -7
- package/Libraries/Animated/createAnimatedComponent.js +105 -57
- package/Libraries/Animated/nodes/AnimatedNode.js +4 -3
- package/Libraries/Animated/nodes/AnimatedProps.js +46 -26
- package/Libraries/Animated/nodes/AnimatedValue.js +16 -7
- package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -1
- package/Libraries/AppState/AppState.js +7 -2
- package/Libraries/BatchedBridge/MessageQueue.js +2 -2
- package/Libraries/BatchedBridge/NativeModules.js +2 -0
- package/Libraries/Blob/BlobManager.js +1 -0
- package/Libraries/Blob/FileReader.js +219 -8
- package/Libraries/Blob/URL.js +37 -12
- package/Libraries/Blob/URLSearchParams.js +106 -31
- package/Libraries/Blob/URLSearchParams.js.flow +12 -7
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js +17 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -0
- package/Libraries/Components/Button.js +1 -1
- package/Libraries/Components/Button.win32.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -3
- package/Libraries/{NewAppScreen/components/Colors.js → Components/DrawerAndroid/DrawerLayoutAndroid.ios.js} +6 -10
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +6 -66
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js.flow +18 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.js +71 -0
- package/Libraries/Components/Keyboard/Keyboard.js +5 -3
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +6 -3
- package/Libraries/Components/Pressable/Pressable.js +20 -4
- package/Libraries/Components/Pressable/Pressable.win32.js +20 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +25 -3
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +29 -20
- package/Libraries/Components/RefreshControl/RefreshControl.js +1 -1
- package/Libraries/Components/ScrollView/ScrollView.d.ts +3 -3
- package/Libraries/Components/ScrollView/ScrollView.js +132 -122
- package/Libraries/Components/StaticRenderer.js +1 -1
- package/Libraries/Components/Switch/Switch.d.ts +3 -0
- package/Libraries/Components/Switch/Switch.js +8 -4
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -4
- package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +2 -1
- package/Libraries/Components/TextInput/Tests/TextInputTest.js.map +1 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +70 -33
- package/Libraries/Components/TextInput/TextInput.flow.js +100 -51
- package/Libraries/Components/TextInput/TextInput.flow.win32.js +1208 -0
- package/Libraries/Components/TextInput/TextInput.js +88 -1027
- package/Libraries/Components/TextInput/TextInput.win32.js +89 -1059
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
- package/Libraries/{Modal/ModalInjection.js → Components/ToastAndroid/ToastAndroid.ios.js} +3 -5
- package/Libraries/Components/ToastAndroid/ToastAndroid.js +4 -32
- package/Libraries/Components/ToastAndroid/ToastAndroid.js.flow +109 -0
- package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +4 -32
- package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +45 -0
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +2 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/Touchable.js +5 -5
- package/Libraries/Components/Touchable/Touchable.win32.js +5 -5
- package/Libraries/Components/Touchable/TouchableBounce.js +14 -7
- package/Libraries/Components/Touchable/TouchableHighlight.js +10 -7
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -6
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +6 -6
- package/Libraries/Components/Touchable/TouchableOpacity.js +13 -6
- package/Libraries/Components/View/View.js +18 -21
- package/Libraries/Components/View/View.win32.js +21 -24
- package/Libraries/Components/View/ViewAccessibility.js +25 -1
- package/Libraries/Components/View/ViewAccessibility.win32.js +9 -1
- package/Libraries/Components/View/ViewPropTypes.js +49 -3
- package/Libraries/Components/View/ViewPropTypes.win32.js +49 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +5 -5
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +3 -3
- package/Libraries/EventEmitter/NativeEventEmitter.js +9 -4
- package/Libraries/Image/AssetSourceResolver.js +17 -4
- package/Libraries/Image/Image.d.ts +26 -10
- package/Libraries/Image/Image.js +17 -0
- package/Libraries/Image/Image.js.flow +5 -5
- package/Libraries/Image/ImageBackground.js +2 -0
- package/Libraries/Image/ImageInjection.js +1 -1
- package/Libraries/Image/ImageProps.js +22 -17
- package/Libraries/Image/ImageSource.js +3 -1
- package/Libraries/Image/ImageSourceUtils.js +4 -2
- package/Libraries/Image/ImageTypes.flow.js +1 -1
- package/Libraries/Image/Tests/ImageWin32Test.d.ts +2 -1
- package/Libraries/Image/Tests/ImageWin32Test.js.map +1 -1
- package/Libraries/Interaction/InteractionManager.d.ts +13 -0
- package/Libraries/Interaction/InteractionManager.js +1 -1
- package/Libraries/Interaction/PanResponder.js +3 -3
- package/Libraries/Interaction/TaskQueue.js +1 -0
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.d.ts +2 -2
- package/Libraries/Lists/FlatList.js +8 -11
- package/Libraries/Lists/SectionList.js +39 -42
- package/Libraries/Lists/SectionListModern.js +25 -34
- package/Libraries/Lists/VirtualizedList.js +1 -0
- package/Libraries/Lists/VirtualizedSectionList.js +1 -0
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js +140 -0
- package/Libraries/Modal/Modal.js +33 -7
- package/Libraries/NativeComponent/BaseViewConfig.android.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.js +17 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +1 -0
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +2 -2
- package/Libraries/NativeModules/specs/NativeDevMenu.js +2 -2
- package/Libraries/Network/RCTNetworking.android.js +1 -1
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.js +17 -0
- package/Libraries/Network/RCTNetworking.js.flow +1 -1
- package/Libraries/Network/RCTNetworking.win32.js +1 -1
- package/Libraries/Network/XMLHttpRequest.js +781 -10
- package/Libraries/Performance/Systrace.js +7 -7
- package/Libraries/Pressability/Pressability.js +1 -1
- package/Libraries/Pressability/Pressability.win32.js +1 -1
- package/Libraries/ReactNative/AppContainer-dev.js +5 -4
- package/Libraries/ReactNative/AppRegistry.flow.js +49 -0
- package/Libraries/ReactNative/AppRegistry.js +2 -322
- package/Libraries/ReactNative/AppRegistry.js.flow +23 -0
- package/Libraries/ReactNative/AppRegistryImpl.js +316 -0
- package/Libraries/ReactNative/FabricUIManager.js +10 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +2 -4
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -4
- package/Libraries/ReactNative/RendererImplementation.js +10 -5
- package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -0
- package/Libraries/ReactNative/renderApplication.js +9 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +3 -3
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +51 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4840 -4748
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +4947 -4829
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3998 -3888
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5005 -4948
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +2744 -2652
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5020 -4933
- package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -3
- package/Libraries/Settings/Settings.ios.js +1 -0
- package/Libraries/Settings/Settings.js +13 -19
- package/Libraries/Settings/Settings.win32.js +19 -20
- package/Libraries/Settings/SettingsFallback.js +33 -0
- package/Libraries/StyleSheet/PlatformColorValueTypes.js +15 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +6 -0
- package/Libraries/StyleSheet/Rect.js +1 -0
- package/Libraries/StyleSheet/StyleSheet.js +31 -200
- package/Libraries/StyleSheet/StyleSheet.js.flow +188 -0
- package/Libraries/StyleSheet/{StyleSheet.win32.js → StyleSheetExports.js} +2 -151
- package/Libraries/StyleSheet/StyleSheetExports.js.flow +112 -0
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +130 -52
- package/Libraries/StyleSheet/flattenStyle.js +14 -4
- package/Libraries/StyleSheet/private/_TransformStyle.js +49 -21
- package/Libraries/StyleSheet/processBackgroundImage.js +670 -214
- package/Libraries/Text/Text.d.ts +2 -5
- package/Libraries/Text/Text.js +3 -3
- package/Libraries/Text/Text.win32.js +3 -3
- package/Libraries/Text/TextNativeComponent.js +0 -4
- package/Libraries/Text/TextNativeComponent.win32.js +0 -4
- package/Libraries/Text/TextProps.js +5 -33
- package/Libraries/Text/TextProps.win32.js +5 -30
- package/Libraries/Types/CodegenTypesNamespace.d.ts +45 -0
- package/Libraries/{Blob/__mocks__/BlobModule.js → Types/CodegenTypesNamespace.js} +4 -6
- package/Libraries/Types/CoreEventTypes.d.ts +6 -1
- package/Libraries/Types/CoreEventTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.win32.js +1 -1
- package/Libraries/Utilities/Appearance.js +2 -0
- package/Libraries/Utilities/BackHandler.js +17 -0
- package/Libraries/Utilities/DeviceInfo.js +2 -0
- package/Libraries/Utilities/Dimensions.js +1 -1
- package/Libraries/Utilities/Dimensions.win32.js +1 -1
- package/Libraries/Utilities/Platform.js +17 -0
- package/Libraries/Utilities/PlatformTypes.js +11 -3
- package/Libraries/Utilities/ReactNativeTestTools.js +2 -2
- package/Libraries/Utilities/codegenNativeCommands.d.ts +18 -0
- package/Libraries/Utilities/codegenNativeComponent.d.ts +26 -0
- package/Libraries/WebSocket/WebSocket.js +313 -8
- package/Libraries/vendor/core/ErrorUtils.js +28 -2
- package/Libraries/vendor/emitter/EventEmitter.js +6 -2
- package/flow/global.js +1 -0
- package/index.js +51 -331
- package/index.win32.js +71 -352
- package/interface.js +0 -4
- package/jest/resolver.js +31 -0
- package/overrides.json +45 -47
- package/package.json +25 -25
- package/src/private/animated/NativeAnimatedHelper.js +21 -8
- package/src/private/animated/NativeAnimatedHelper.win32.js +21 -8
- package/src/private/animated/createAnimatedPropsHook.js +11 -16
- package/src/private/animated/createAnimatedPropsMemoHook.js +1 -2
- package/src/private/components/{SafeAreaView_INTERNAL_DO_NOT_USE.js → safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js} +6 -6
- package/src/private/components/{HScrollViewNativeComponents.js → scrollview/HScrollViewNativeComponents.js} +8 -8
- package/src/private/components/scrollview/VScrollViewNativeComponents.js +25 -0
- package/src/private/{devmenu → devsupport/devmenu}/DevMenu.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BorderBox.js +3 -3
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/BoxInspector.js +6 -5
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementBox.js +8 -6
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementProperties.js +11 -10
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/Inspector.js +14 -12
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorOverlay.js +5 -4
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorPanel.js +9 -8
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/NetworkOverlay.js +10 -9
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/ReactDevToolsOverlay.js +7 -7
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/StyleInspector.js +7 -6
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/XHRInterceptor.js +2 -2
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/getInspectorDataForViewAtPoint.js +4 -4
- package/src/private/{inspector → devsupport/devmenu/elementinspector}/resolveBoxStyle.js +1 -1
- package/src/private/{inspector → devsupport/devmenu/perfmonitor}/PerformanceOverlay.js +6 -5
- package/src/private/{specs_DEPRECATED/modules → devsupport/devmenu/specs}/NativeDevMenu.js +2 -2
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.android.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.ios.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.win32.js +1 -1
- package/src/private/{debugging → devsupport/rndevtools}/setUpFuseboxReactDevToolsDispatcher.js +1 -1
- package/src/private/{fusebox → devsupport/rndevtools}/specs/NativeReactDevToolsRuntimeSettingsModule.js +2 -2
- package/src/private/{specs_DEPRECATED/modules → devsupport/rndevtools/specs}/NativeReactDevToolsSettingsManager.js +2 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +82 -80
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +9 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +17 -13
- package/src/private/renderer/errorhandling/ErrorHandlers.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +3 -0
- package/src/private/styles/composeStyles.js +12 -5
- package/src/private/types/HostComponent.js +1 -1
- package/src/private/types/HostInstance.js +67 -1
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -5
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +5 -18
- package/src/private/webapis/dom/nodes/internals/NodeInternals.js +6 -0
- package/src/private/webapis/performance/Performance.js +1 -3
- package/src/private/webapis/performance/PerformanceEntry.js +6 -1
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -0
- package/src/private/webapis/performance/specs/NativePerformance.js +10 -1
- package/src/types/globals.d.ts +42 -0
- package/src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx +7 -7
- package/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +3 -3
- package/src-win/Libraries/Image/Tests/ImageWin32Test.tsx +1 -1
- package/src-win/Libraries/Text/Text.d.ts +2 -5
- package/types/index.d.ts +6 -3
- package/types/public/ReactNativeTypes.d.ts +2 -2
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +0 -38
- package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +0 -22
- package/Libraries/Blob/FileReader_new.js +0 -231
- package/Libraries/Blob/FileReader_old.js +0 -186
- package/Libraries/Blob/__mocks__/FileReaderModule.js +0 -20
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +0 -32
- package/Libraries/Core/__mocks__/ErrorUtils.js +0 -33
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +0 -19
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +0 -49
- package/Libraries/Events/CustomEvent.js +0 -32
- package/Libraries/Events/EventPolyfill.js +0 -239
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +0 -118
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +0 -134
- package/Libraries/Network/XMLHttpRequest_new.js +0 -794
- package/Libraries/Network/XMLHttpRequest_old.js +0 -701
- package/Libraries/NewAppScreen/components/DebugInstructions.js +0 -41
- package/Libraries/NewAppScreen/components/Header.js +0 -77
- package/Libraries/NewAppScreen/components/HermesBadge.js +0 -53
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +0 -148
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +0 -39
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/NewAppScreen/index.js +0 -25
- package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +0 -58
- package/Libraries/Utilities/DeviceInfo.win32.js +0 -19
- package/Libraries/Utilities/__mocks__/BackHandler.js +0 -45
- package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +0 -16
- package/Libraries/Utilities/__mocks__/PixelRatio.js +0 -25
- package/Libraries/WebSocket/WebSocketEvent.js +0 -30
- package/Libraries/WebSocket/WebSocket_new.js +0 -325
- package/Libraries/WebSocket/WebSocket_old.js +0 -297
- package/Libraries/WebSocket/__mocks__/event-target-shim.js +0 -27
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +0 -30
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +0 -81
- package/flow/jest.js +0 -1287
- package/jest/__tests__/setup-test.js +0 -18
- package/src/private/components/VScrollViewNativeComponents.js +0 -25
- package/src/private/utilities/ensureInstance.js +0 -21
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +0 -267
- package/types/modules/LaunchScreen.d.ts +0 -18
- /package/src/private/{devmenu → devsupport/devmenu}/DevMenu.d.ts +0 -0
- /package/src/private/{debugging → devsupport/rndevtools}/FuseboxSessionObserver.js +0 -0
package/index.win32.js
CHANGED
|
@@ -24,6 +24,11 @@ import typeof useAnimatedValue from './Libraries/Animated/useAnimatedValue';
|
|
|
24
24
|
import typeof AppState from './Libraries/AppState/AppState';
|
|
25
25
|
import typeof FocusManager from './Libraries/Utilities/FocusManager';
|
|
26
26
|
import typeof NativeModules from './Libraries/BatchedBridge/NativeModules';
|
|
27
|
+
import typeof codegenNativeCommands from './Libraries/Utilities/codegenNativeCommands';
|
|
28
|
+
import typeof codegenNativeComponent from './Libraries/Utilities/codegenNativeComponent';
|
|
29
|
+
import {findNodeHandle} from './Libraries/ReactNative/RendererProxy';
|
|
30
|
+
import {unstable_batchedUpdates} from './Libraries/ReactNative/RendererProxy';
|
|
31
|
+
|
|
27
32
|
// Components
|
|
28
33
|
import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
|
|
29
34
|
import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
|
|
@@ -70,7 +75,7 @@ import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
|
70
75
|
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
|
71
76
|
import typeof PermissionsAndroid from './Libraries/PermissionsAndroid/PermissionsAndroid';
|
|
72
77
|
import typeof PushNotificationIOS from './Libraries/PushNotificationIOS/PushNotificationIOS';
|
|
73
|
-
import typeof AppRegistry from './Libraries/ReactNative/AppRegistry';
|
|
78
|
+
import typeof {AppRegistry} from './Libraries/ReactNative/AppRegistry';
|
|
74
79
|
import typeof I18nManager from './Libraries/ReactNative/I18nManager';
|
|
75
80
|
import typeof {RootTagContext} from './Libraries/ReactNative/RootTag';
|
|
76
81
|
import typeof UIManager from './Libraries/ReactNative/UIManager';
|
|
@@ -97,7 +102,7 @@ import typeof Platform from './Libraries/Utilities/Platform';
|
|
|
97
102
|
import typeof useColorScheme from './Libraries/Utilities/useColorScheme';
|
|
98
103
|
import typeof useWindowDimensions from './Libraries/Utilities/useWindowDimensions';
|
|
99
104
|
import typeof Vibration from './Libraries/Vibration/Vibration';
|
|
100
|
-
import typeof DevMenu from './src/private/devmenu/DevMenu';
|
|
105
|
+
import typeof DevMenu from './src/private/devsupport/devmenu/DevMenu';
|
|
101
106
|
import typeof registerCallableModule from './Libraries/Core/registerCallableModule';
|
|
102
107
|
// Windows]]
|
|
103
108
|
|
|
@@ -108,14 +113,6 @@ const invariant = require('invariant');
|
|
|
108
113
|
import typeof {ColorGradientWin32} from './Libraries/StyleSheet/PlatformColorValueTypesWin32';
|
|
109
114
|
|
|
110
115
|
module.exports = {
|
|
111
|
-
// Components
|
|
112
|
-
get AccessibilityInfo(): AccessibilityInfo {
|
|
113
|
-
return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
|
|
114
|
-
.default;
|
|
115
|
-
},
|
|
116
|
-
get registerCallableModule(): registerCallableModule {
|
|
117
|
-
return require('./Libraries/Core/registerCallableModule').default;
|
|
118
|
-
},
|
|
119
116
|
// #region Components
|
|
120
117
|
get ActivityIndicator(): ActivityIndicator {
|
|
121
118
|
return require('./Libraries/Components/ActivityIndicator/ActivityIndicator')
|
|
@@ -142,14 +139,14 @@ module.exports = {
|
|
|
142
139
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
143
140
|
.default;
|
|
144
141
|
},
|
|
145
|
-
get experimental_LayoutConformance(): LayoutConformance {
|
|
146
|
-
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
147
|
-
.default;
|
|
148
|
-
},
|
|
149
142
|
get KeyboardAvoidingView(): KeyboardAvoidingView {
|
|
150
143
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
151
144
|
.default;
|
|
152
145
|
},
|
|
146
|
+
get experimental_LayoutConformance(): LayoutConformance {
|
|
147
|
+
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
148
|
+
.default;
|
|
149
|
+
},
|
|
153
150
|
get Modal(): Modal {
|
|
154
151
|
return require('./Libraries/Modal/Modal').default;
|
|
155
152
|
},
|
|
@@ -221,8 +218,12 @@ module.exports = {
|
|
|
221
218
|
get VirtualizedSectionList(): VirtualizedSectionList {
|
|
222
219
|
return require('./Libraries/Lists/VirtualizedSectionList').default;
|
|
223
220
|
},
|
|
224
|
-
|
|
225
|
-
// APIs
|
|
221
|
+
// #endregion
|
|
222
|
+
// #region APIs
|
|
223
|
+
get AccessibilityInfo(): AccessibilityInfo {
|
|
224
|
+
return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
|
|
225
|
+
.default;
|
|
226
|
+
},
|
|
226
227
|
get ActionSheetIOS(): ActionSheetIOS {
|
|
227
228
|
return require('./Libraries/ActionSheetIOS/ActionSheetIOS').default;
|
|
228
229
|
},
|
|
@@ -231,16 +232,14 @@ module.exports = {
|
|
|
231
232
|
},
|
|
232
233
|
// Include any types exported in the Animated module together with its default export, so
|
|
233
234
|
// you can references types such as Animated.Numeric
|
|
234
|
-
get Animated():
|
|
235
|
-
// $FlowFixMe[incompatible-variance]: Ignoring variance issue with Color property
|
|
236
|
-
// $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types
|
|
235
|
+
get Animated(): Animated {
|
|
237
236
|
return require('./Libraries/Animated/Animated').default;
|
|
238
237
|
},
|
|
239
238
|
get Appearance(): Appearance {
|
|
240
239
|
return require('./Libraries/Utilities/Appearance');
|
|
241
240
|
},
|
|
242
241
|
get AppRegistry(): AppRegistry {
|
|
243
|
-
return require('./Libraries/ReactNative/AppRegistry').
|
|
242
|
+
return require('./Libraries/ReactNative/AppRegistry').AppRegistry;
|
|
244
243
|
},
|
|
245
244
|
get AppState(): AppState {
|
|
246
245
|
return require('./Libraries/AppState/AppState').default;
|
|
@@ -257,11 +256,20 @@ module.exports = {
|
|
|
257
256
|
);
|
|
258
257
|
return require('./Libraries/Components/Clipboard/Clipboard').default;
|
|
259
258
|
},
|
|
259
|
+
get codegenNativeCommands(): codegenNativeCommands<any> {
|
|
260
|
+
return require('./Libraries/Utilities/codegenNativeCommands').default;
|
|
261
|
+
},
|
|
262
|
+
get codegenNativeComponent(): codegenNativeComponent<any> {
|
|
263
|
+
return require('./Libraries/Utilities/codegenNativeComponent').default;
|
|
264
|
+
},
|
|
265
|
+
get DeviceEventEmitter(): RCTDeviceEventEmitter {
|
|
266
|
+
return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
|
|
267
|
+
},
|
|
260
268
|
get DeviceInfo(): DeviceInfo {
|
|
261
269
|
return require('./Libraries/Utilities/DeviceInfo').default;
|
|
262
270
|
},
|
|
263
271
|
get DevMenu(): DevMenu {
|
|
264
|
-
return require('./src/private/devmenu/DevMenu').default;
|
|
272
|
+
return require('./src/private/devsupport/devmenu/DevMenu').default;
|
|
265
273
|
},
|
|
266
274
|
get DevSettings(): DevSettings {
|
|
267
275
|
return require('./Libraries/Utilities/DevSettings').default;
|
|
@@ -269,10 +277,14 @@ module.exports = {
|
|
|
269
277
|
get Dimensions(): Dimensions {
|
|
270
278
|
return require('./Libraries/Utilities/Dimensions').default;
|
|
271
279
|
},
|
|
280
|
+
get DynamicColorIOS(): DynamicColorIOS {
|
|
281
|
+
return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
|
|
282
|
+
.DynamicColorIOS;
|
|
283
|
+
},
|
|
272
284
|
get Easing(): Easing {
|
|
273
285
|
return require('./Libraries/Animated/Easing').default;
|
|
274
286
|
},
|
|
275
|
-
get findNodeHandle():
|
|
287
|
+
get findNodeHandle(): typeof findNodeHandle {
|
|
276
288
|
return require('./Libraries/ReactNative/RendererProxy').findNodeHandle;
|
|
277
289
|
},
|
|
278
290
|
get FocusManager(): FocusManager {
|
|
@@ -281,6 +293,9 @@ module.exports = {
|
|
|
281
293
|
get I18nManager(): I18nManager {
|
|
282
294
|
return require('./Libraries/ReactNative/I18nManager').default;
|
|
283
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* @deprecated
|
|
298
|
+
*/
|
|
284
299
|
get InteractionManager(): InteractionManager {
|
|
285
300
|
return require('./Libraries/Interaction/InteractionManager').default;
|
|
286
301
|
},
|
|
@@ -296,6 +311,9 @@ module.exports = {
|
|
|
296
311
|
get LogBox(): LogBox {
|
|
297
312
|
return require('./Libraries/LogBox/LogBox').default;
|
|
298
313
|
},
|
|
314
|
+
get NativeAppEventEmitter(): RCTNativeAppEventEmitter {
|
|
315
|
+
return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
|
|
316
|
+
},
|
|
299
317
|
get NativeDialogManagerAndroid(): NativeDialogManagerAndroid {
|
|
300
318
|
return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')
|
|
301
319
|
.default;
|
|
@@ -303,6 +321,9 @@ module.exports = {
|
|
|
303
321
|
get NativeEventEmitter(): NativeEventEmitter {
|
|
304
322
|
return require('./Libraries/EventEmitter/NativeEventEmitter').default;
|
|
305
323
|
},
|
|
324
|
+
get NativeModules(): NativeModules {
|
|
325
|
+
return require('./Libraries/BatchedBridge/NativeModules').default;
|
|
326
|
+
},
|
|
306
327
|
get Networking(): Networking {
|
|
307
328
|
return require('./Libraries/Network/RCTNetworking').default;
|
|
308
329
|
},
|
|
@@ -315,6 +336,13 @@ module.exports = {
|
|
|
315
336
|
get PixelRatio(): PixelRatio {
|
|
316
337
|
return require('./Libraries/Utilities/PixelRatio').default;
|
|
317
338
|
},
|
|
339
|
+
get Platform(): Platform {
|
|
340
|
+
return require('./Libraries/Utilities/Platform').default;
|
|
341
|
+
},
|
|
342
|
+
get PlatformColor(): PlatformColor {
|
|
343
|
+
return require('./Libraries/StyleSheet/PlatformColorValueTypes')
|
|
344
|
+
.PlatformColor;
|
|
345
|
+
},
|
|
318
346
|
get PushNotificationIOS(): PushNotificationIOS {
|
|
319
347
|
warnOnce(
|
|
320
348
|
'pushNotificationIOS-moved',
|
|
@@ -326,6 +354,20 @@ module.exports = {
|
|
|
326
354
|
.default;
|
|
327
355
|
},
|
|
328
356
|
// $FlowFixMe[value-as-type]
|
|
357
|
+
get processColor(): processColor {
|
|
358
|
+
return require('./Libraries/StyleSheet/processColor').default;
|
|
359
|
+
},
|
|
360
|
+
get registerCallableModule(): registerCallableModule {
|
|
361
|
+
return require('./Libraries/Core/registerCallableModule').default;
|
|
362
|
+
},
|
|
363
|
+
get requireNativeComponent(): <T: {...}>(
|
|
364
|
+
uiViewClassName: string,
|
|
365
|
+
) => HostComponent<T> {
|
|
366
|
+
return require('./Libraries/ReactNative/requireNativeComponent').default;
|
|
367
|
+
},
|
|
368
|
+
get RootTagContext(): RootTagContext {
|
|
369
|
+
return require('./Libraries/ReactNative/RootTag').RootTagContext;
|
|
370
|
+
},
|
|
329
371
|
get Settings(): Settings {
|
|
330
372
|
return require('./Libraries/Settings/Settings').default;
|
|
331
373
|
},
|
|
@@ -348,13 +390,16 @@ module.exports = {
|
|
|
348
390
|
get UIManager(): UIManager {
|
|
349
391
|
return require('./Libraries/ReactNative/UIManager').default;
|
|
350
392
|
},
|
|
351
|
-
get unstable_batchedUpdates():
|
|
352
|
-
ReactNative,
|
|
353
|
-
'unstable_batchedUpdates',
|
|
354
|
-
> {
|
|
393
|
+
get unstable_batchedUpdates(): typeof unstable_batchedUpdates {
|
|
355
394
|
return require('./Libraries/ReactNative/RendererProxy')
|
|
356
395
|
.unstable_batchedUpdates;
|
|
357
396
|
},
|
|
397
|
+
get unstable_enableLogBox(): () => void {
|
|
398
|
+
return () =>
|
|
399
|
+
console.warn(
|
|
400
|
+
'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.',
|
|
401
|
+
);
|
|
402
|
+
},
|
|
358
403
|
get useAnimatedValue(): useAnimatedValue {
|
|
359
404
|
return require('./Libraries/Animated/useAnimatedValue').default;
|
|
360
405
|
},
|
|
@@ -370,45 +415,6 @@ module.exports = {
|
|
|
370
415
|
get Vibration(): Vibration {
|
|
371
416
|
return require('./Libraries/Vibration/Vibration').default;
|
|
372
417
|
},
|
|
373
|
-
|
|
374
|
-
// Plugins
|
|
375
|
-
get DeviceEventEmitter(): RCTDeviceEventEmitter {
|
|
376
|
-
return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
|
|
377
|
-
},
|
|
378
|
-
get DynamicColorIOS(): DynamicColorIOS {
|
|
379
|
-
return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
|
|
380
|
-
.DynamicColorIOS;
|
|
381
|
-
},
|
|
382
|
-
get NativeAppEventEmitter(): RCTNativeAppEventEmitter {
|
|
383
|
-
return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
|
|
384
|
-
},
|
|
385
|
-
get NativeModules(): NativeModules {
|
|
386
|
-
return require('./Libraries/BatchedBridge/NativeModules').default;
|
|
387
|
-
},
|
|
388
|
-
get Platform(): Platform {
|
|
389
|
-
return require('./Libraries/Utilities/Platform').default;
|
|
390
|
-
},
|
|
391
|
-
get PlatformColor(): PlatformColor {
|
|
392
|
-
return require('./Libraries/StyleSheet/PlatformColorValueTypes')
|
|
393
|
-
.PlatformColor;
|
|
394
|
-
},
|
|
395
|
-
get processColor(): processColor {
|
|
396
|
-
return require('./Libraries/StyleSheet/processColor').default;
|
|
397
|
-
},
|
|
398
|
-
get requireNativeComponent(): <T: {...}>(
|
|
399
|
-
uiViewClassName: string,
|
|
400
|
-
) => HostComponent<T> {
|
|
401
|
-
return require('./Libraries/ReactNative/requireNativeComponent').default;
|
|
402
|
-
},
|
|
403
|
-
get RootTagContext(): RootTagContext {
|
|
404
|
-
return require('./Libraries/ReactNative/RootTag').RootTagContext;
|
|
405
|
-
},
|
|
406
|
-
get unstable_enableLogBox(): () => void {
|
|
407
|
-
return () =>
|
|
408
|
-
console.warn(
|
|
409
|
-
'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.',
|
|
410
|
-
);
|
|
411
|
-
},
|
|
412
418
|
// Win32 Types (Typescript components exported as flow any)
|
|
413
419
|
get ColorGradientWin32(): ColorGradientWin32 {
|
|
414
420
|
return require('./Libraries/StyleSheet/PlatformColorValueTypesWin32')
|
|
@@ -441,293 +447,6 @@ module.exports = {
|
|
|
441
447
|
};
|
|
442
448
|
|
|
443
449
|
if (__DEV__) {
|
|
444
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
445
|
-
* attempting to access ART. */
|
|
446
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
447
|
-
* attempting to access ART. */
|
|
448
|
-
Object.defineProperty(module.exports, 'ART', {
|
|
449
|
-
configurable: true,
|
|
450
|
-
get() {
|
|
451
|
-
invariant(
|
|
452
|
-
false,
|
|
453
|
-
'ART has been removed from React Native. ' +
|
|
454
|
-
"Please upgrade to use either 'react-native-svg' or a similar package. " +
|
|
455
|
-
"If you cannot upgrade to a different library, please install the deprecated '@react-native-community/art' package. " +
|
|
456
|
-
'See https://github.com/react-native-art/art',
|
|
457
|
-
);
|
|
458
|
-
},
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
462
|
-
* attempting to access ListView. */
|
|
463
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
464
|
-
* attempting to access ListView. */
|
|
465
|
-
Object.defineProperty(module.exports, 'ListView', {
|
|
466
|
-
configurable: true,
|
|
467
|
-
get() {
|
|
468
|
-
invariant(
|
|
469
|
-
false,
|
|
470
|
-
'ListView has been removed from React Native. ' +
|
|
471
|
-
'See https://fb.me/nolistview for more information or use ' +
|
|
472
|
-
'`deprecated-react-native-listview`.',
|
|
473
|
-
);
|
|
474
|
-
},
|
|
475
|
-
});
|
|
476
|
-
|
|
477
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
478
|
-
* attempting to access SwipeableListView. */
|
|
479
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
480
|
-
* attempting to access SwipeableListView. */
|
|
481
|
-
Object.defineProperty(module.exports, 'SwipeableListView', {
|
|
482
|
-
configurable: true,
|
|
483
|
-
get() {
|
|
484
|
-
invariant(
|
|
485
|
-
false,
|
|
486
|
-
'SwipeableListView has been removed from React Native. ' +
|
|
487
|
-
'See https://fb.me/nolistview for more information or use ' +
|
|
488
|
-
'`deprecated-react-native-swipeable-listview`.',
|
|
489
|
-
);
|
|
490
|
-
},
|
|
491
|
-
});
|
|
492
|
-
|
|
493
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
494
|
-
* attempting to access WebView. */
|
|
495
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
496
|
-
* attempting to access WebView. */
|
|
497
|
-
Object.defineProperty(module.exports, 'WebView', {
|
|
498
|
-
configurable: true,
|
|
499
|
-
get() {
|
|
500
|
-
invariant(
|
|
501
|
-
false,
|
|
502
|
-
'WebView has been removed from React Native. ' +
|
|
503
|
-
"It can now be installed and imported from 'react-native-webview' instead of 'react-native'. " +
|
|
504
|
-
'See https://github.com/react-native-webview/react-native-webview',
|
|
505
|
-
);
|
|
506
|
-
},
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
510
|
-
* attempting to access NetInfo. */
|
|
511
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
512
|
-
* attempting to access NetInfo. */
|
|
513
|
-
Object.defineProperty(module.exports, 'NetInfo', {
|
|
514
|
-
configurable: true,
|
|
515
|
-
get() {
|
|
516
|
-
invariant(
|
|
517
|
-
false,
|
|
518
|
-
'NetInfo has been removed from React Native. ' +
|
|
519
|
-
"It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " +
|
|
520
|
-
'See https://github.com/react-native-netinfo/react-native-netinfo',
|
|
521
|
-
);
|
|
522
|
-
},
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
526
|
-
* attempting to access CameraRoll. */
|
|
527
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
528
|
-
* attempting to access CameraRoll. */
|
|
529
|
-
Object.defineProperty(module.exports, 'CameraRoll', {
|
|
530
|
-
configurable: true,
|
|
531
|
-
get() {
|
|
532
|
-
invariant(
|
|
533
|
-
false,
|
|
534
|
-
'CameraRoll has been removed from React Native. ' +
|
|
535
|
-
"It can now be installed and imported from '@react-native-camera-roll/camera-roll' instead of 'react-native'. " +
|
|
536
|
-
'See https://github.com/react-native-cameraroll/react-native-cameraroll',
|
|
537
|
-
);
|
|
538
|
-
},
|
|
539
|
-
});
|
|
540
|
-
|
|
541
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
542
|
-
* attempting to access ImageStore. */
|
|
543
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
544
|
-
* attempting to access ImageStore. */
|
|
545
|
-
Object.defineProperty(module.exports, 'ImageStore', {
|
|
546
|
-
configurable: true,
|
|
547
|
-
get() {
|
|
548
|
-
invariant(
|
|
549
|
-
false,
|
|
550
|
-
'ImageStore has been removed from React Native. ' +
|
|
551
|
-
'To get a base64-encoded string from a local image use either of the following third-party libraries:' +
|
|
552
|
-
"* expo-file-system: `readAsStringAsync(filepath, 'base64')`" +
|
|
553
|
-
"* react-native-fs: `readFile(filepath, 'base64')`",
|
|
554
|
-
);
|
|
555
|
-
},
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
559
|
-
* attempting to access ImageEditor. */
|
|
560
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
561
|
-
* attempting to access ImageEditor. */
|
|
562
|
-
Object.defineProperty(module.exports, 'ImageEditor', {
|
|
563
|
-
configurable: true,
|
|
564
|
-
get() {
|
|
565
|
-
invariant(
|
|
566
|
-
false,
|
|
567
|
-
'ImageEditor has been removed from React Native. ' +
|
|
568
|
-
"It can now be installed and imported from '@react-native-community/image-editor' instead of 'react-native'. " +
|
|
569
|
-
'See https://github.com/callstack/react-native-image-editor',
|
|
570
|
-
);
|
|
571
|
-
},
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
575
|
-
* attempting to access TimePickerAndroid. */
|
|
576
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
577
|
-
* attempting to access TimePickerAndroid. */
|
|
578
|
-
Object.defineProperty(module.exports, 'TimePickerAndroid', {
|
|
579
|
-
configurable: true,
|
|
580
|
-
get() {
|
|
581
|
-
invariant(
|
|
582
|
-
false,
|
|
583
|
-
'TimePickerAndroid has been removed from React Native. ' +
|
|
584
|
-
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
|
|
585
|
-
'See https://github.com/react-native-datetimepicker/datetimepicker',
|
|
586
|
-
);
|
|
587
|
-
},
|
|
588
|
-
});
|
|
589
|
-
|
|
590
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
591
|
-
* attempting to access ToolbarAndroid. */
|
|
592
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
593
|
-
* attempting to access ToolbarAndroid. */
|
|
594
|
-
Object.defineProperty(module.exports, 'ToolbarAndroid', {
|
|
595
|
-
configurable: true,
|
|
596
|
-
get() {
|
|
597
|
-
invariant(
|
|
598
|
-
false,
|
|
599
|
-
'ToolbarAndroid has been removed from React Native. ' +
|
|
600
|
-
"It can now be installed and imported from '@react-native-community/toolbar-android' instead of 'react-native'. " +
|
|
601
|
-
'See https://github.com/react-native-toolbar-android/toolbar-android',
|
|
602
|
-
);
|
|
603
|
-
},
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
607
|
-
* attempting to access ViewPagerAndroid. */
|
|
608
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
609
|
-
* attempting to access ViewPagerAndroid. */
|
|
610
|
-
Object.defineProperty(module.exports, 'ViewPagerAndroid', {
|
|
611
|
-
configurable: true,
|
|
612
|
-
get() {
|
|
613
|
-
invariant(
|
|
614
|
-
false,
|
|
615
|
-
'ViewPagerAndroid has been removed from React Native. ' +
|
|
616
|
-
"It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " +
|
|
617
|
-
'See https://github.com/callstack/react-native-pager-view',
|
|
618
|
-
);
|
|
619
|
-
},
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
623
|
-
* attempting to access CheckBox. */
|
|
624
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
625
|
-
* attempting to access CheckBox. */
|
|
626
|
-
Object.defineProperty(module.exports, 'CheckBox', {
|
|
627
|
-
configurable: true,
|
|
628
|
-
get() {
|
|
629
|
-
invariant(
|
|
630
|
-
false,
|
|
631
|
-
'CheckBox has been removed from React Native. ' +
|
|
632
|
-
"It can now be installed and imported from '@react-native-community/checkbox' instead of 'react-native'. " +
|
|
633
|
-
'See https://github.com/react-native-checkbox/react-native-checkbox',
|
|
634
|
-
);
|
|
635
|
-
},
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
639
|
-
* attempting to access SegmentedControlIOS. */
|
|
640
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
641
|
-
* attempting to access SegmentedControlIOS. */
|
|
642
|
-
Object.defineProperty(module.exports, 'SegmentedControlIOS', {
|
|
643
|
-
configurable: true,
|
|
644
|
-
get() {
|
|
645
|
-
invariant(
|
|
646
|
-
false,
|
|
647
|
-
'SegmentedControlIOS has been removed from React Native. ' +
|
|
648
|
-
"It can now be installed and imported from '@react-native-segmented-control/segmented-control' instead of 'react-native'." +
|
|
649
|
-
'See https://github.com/react-native-segmented-control/segmented-control',
|
|
650
|
-
);
|
|
651
|
-
},
|
|
652
|
-
});
|
|
653
|
-
|
|
654
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
655
|
-
* attempting to access StatusBarIOS. */
|
|
656
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
657
|
-
* attempting to access StatusBarIOS. */
|
|
658
|
-
Object.defineProperty(module.exports, 'StatusBarIOS', {
|
|
659
|
-
configurable: true,
|
|
660
|
-
get() {
|
|
661
|
-
invariant(
|
|
662
|
-
false,
|
|
663
|
-
'StatusBarIOS has been removed from React Native. ' +
|
|
664
|
-
'Has been merged with StatusBar. ' +
|
|
665
|
-
'See https://reactnative.dev/docs/statusbar',
|
|
666
|
-
);
|
|
667
|
-
},
|
|
668
|
-
});
|
|
669
|
-
|
|
670
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
671
|
-
* attempting to access PickerIOS. */
|
|
672
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
673
|
-
* attempting to access PickerIOS. */
|
|
674
|
-
Object.defineProperty(module.exports, 'PickerIOS', {
|
|
675
|
-
configurable: true,
|
|
676
|
-
get() {
|
|
677
|
-
invariant(
|
|
678
|
-
false,
|
|
679
|
-
'PickerIOS has been removed from React Native. ' +
|
|
680
|
-
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
|
|
681
|
-
'See https://github.com/react-native-picker/picker',
|
|
682
|
-
);
|
|
683
|
-
},
|
|
684
|
-
});
|
|
685
|
-
|
|
686
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
687
|
-
* attempting to access Picker. */
|
|
688
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
689
|
-
* attempting to access Picker. */
|
|
690
|
-
Object.defineProperty(module.exports, 'Picker', {
|
|
691
|
-
configurable: true,
|
|
692
|
-
get() {
|
|
693
|
-
invariant(
|
|
694
|
-
false,
|
|
695
|
-
'Picker has been removed from React Native. ' +
|
|
696
|
-
"It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. " +
|
|
697
|
-
'See https://github.com/react-native-picker/picker',
|
|
698
|
-
);
|
|
699
|
-
},
|
|
700
|
-
});
|
|
701
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
702
|
-
* attempting to access DatePickerAndroid. */
|
|
703
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
704
|
-
* attempting to access DatePickerAndroid. */
|
|
705
|
-
Object.defineProperty(module.exports, 'DatePickerAndroid', {
|
|
706
|
-
configurable: true,
|
|
707
|
-
get() {
|
|
708
|
-
invariant(
|
|
709
|
-
false,
|
|
710
|
-
'DatePickerAndroid has been removed from React Native. ' +
|
|
711
|
-
"It can now be installed and imported from '@react-native-community/datetimepicker' instead of 'react-native'. " +
|
|
712
|
-
'See https://github.com/react-native-datetimepicker/datetimepicker',
|
|
713
|
-
);
|
|
714
|
-
},
|
|
715
|
-
});
|
|
716
|
-
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
717
|
-
* attempting to access MaskedViewIOS. */
|
|
718
|
-
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
|
719
|
-
* attempting to access MaskedViewIOS. */
|
|
720
|
-
Object.defineProperty(module.exports, 'MaskedViewIOS', {
|
|
721
|
-
configurable: true,
|
|
722
|
-
get() {
|
|
723
|
-
invariant(
|
|
724
|
-
false,
|
|
725
|
-
'MaskedViewIOS has been removed from React Native. ' +
|
|
726
|
-
"It can now be installed and imported from '@react-native-masked-view/masked-view' instead of 'react-native'. " +
|
|
727
|
-
'See https://github.com/react-native-masked-view/masked-view',
|
|
728
|
-
);
|
|
729
|
-
},
|
|
730
|
-
});
|
|
731
450
|
/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
|
|
732
451
|
* attempting to access AsyncStorage. */
|
|
733
452
|
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
|
package/interface.js
CHANGED
package/jest/resolver.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
module.exports = (path, options) => {
|
|
13
|
+
const originalPackageFilter = options.packageFilter;
|
|
14
|
+
|
|
15
|
+
return options.defaultResolver(path, {
|
|
16
|
+
...options,
|
|
17
|
+
packageFilter: pkg => {
|
|
18
|
+
const filteredPkg = originalPackageFilter
|
|
19
|
+
? originalPackageFilter(pkg)
|
|
20
|
+
: pkg;
|
|
21
|
+
|
|
22
|
+
// Temporarily allow any react-native subpaths to be resolved and
|
|
23
|
+
// mocked by Jest (backwards compatibility around RFC0894)
|
|
24
|
+
if (filteredPkg.name === 'react-native') {
|
|
25
|
+
delete filteredPkg.exports;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return filteredPkg;
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
};
|