@office-iss/react-native-win32 0.79.0-preview.2 → 0.80.0-preview.1
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 +120 -12
- package/CHANGELOG.md +50 -7
- 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 +2 -2
- 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 +24 -24
- 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/overrides.json
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.
|
|
10
|
+
"baseVersion": "0.80.0",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "70ed729d5f52c241530e8459cc40263d4e9fa9c0"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"type": "derived",
|
|
20
20
|
"file": "src-win/index.win32.js",
|
|
21
21
|
"baseFile": "packages/react-native/index.js",
|
|
22
|
-
"baseHash": "
|
|
22
|
+
"baseHash": "96361b83bfc122f1d78cc7d87ea0d7c3bfac138f"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"type": "platform",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"type": "patch",
|
|
30
30
|
"file": "src-win/Libraries/Alert/Alert.win32.js",
|
|
31
31
|
"baseFile": "packages/react-native/Libraries/Alert/Alert.js",
|
|
32
|
-
"baseHash": "
|
|
32
|
+
"baseHash": "bd8f474e454f2b703ca7fb55cb022f24046bc0f8"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"type": "derived",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"type": "derived",
|
|
42
42
|
"file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
|
|
43
43
|
"baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
|
|
44
|
-
"baseHash": "
|
|
44
|
+
"baseHash": "5a43c9cf537c5cb89e7f634e45be708f4b021493"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"type": "copy",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"type": "derived",
|
|
61
61
|
"file": "src-win/Libraries/Components/Button.win32.js",
|
|
62
62
|
"baseFile": "packages/react-native/Libraries/Components/Button.js",
|
|
63
|
-
"baseHash": "
|
|
63
|
+
"baseHash": "4e77e13aa5774e813fbd874a13a920ea12e3ed91"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"type": "platform",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"type": "copy",
|
|
75
75
|
"file": "src-win/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
76
76
|
"baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
77
|
-
"baseHash": "
|
|
77
|
+
"baseHash": "fe92a96a2bfd0e92b99b2803ce133c7a3cf2b022",
|
|
78
78
|
"issue": 14290
|
|
79
79
|
},
|
|
80
80
|
{
|
|
@@ -85,15 +85,14 @@
|
|
|
85
85
|
"type": "patch",
|
|
86
86
|
"file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
|
|
87
87
|
"baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
|
|
88
|
-
"baseHash": "
|
|
88
|
+
"baseHash": "96bdd4aebf4133fd2fe6d1b448f9d7b4cd3e8982",
|
|
89
89
|
"issue": 6240
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"type": "patch",
|
|
93
93
|
"file": "src-win/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
94
94
|
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
95
|
-
"baseHash": "
|
|
96
|
-
"issue": 0
|
|
95
|
+
"baseHash": "d1cc663442d184b62799b748c475a5a2c5c558c7"
|
|
97
96
|
},
|
|
98
97
|
{
|
|
99
98
|
"type": "copy",
|
|
@@ -105,17 +104,23 @@
|
|
|
105
104
|
"type": "platform",
|
|
106
105
|
"file": "src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx"
|
|
107
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"type": "derived",
|
|
109
|
+
"file": "src-win/Libraries/Components/TextInput/TextInput.flow.win32.js",
|
|
110
|
+
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.flow.js",
|
|
111
|
+
"baseHash": "f407548782cade71af32a52ecb440f72a403f06e"
|
|
112
|
+
},
|
|
108
113
|
{
|
|
109
114
|
"type": "derived",
|
|
110
115
|
"file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
|
|
111
116
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
112
|
-
"baseHash": "
|
|
117
|
+
"baseHash": "9965c0079652083ab549bc2799eb9528b56a1b2d"
|
|
113
118
|
},
|
|
114
119
|
{
|
|
115
120
|
"type": "patch",
|
|
116
121
|
"file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
|
|
117
122
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
|
|
118
|
-
"baseHash": "
|
|
123
|
+
"baseHash": "400af173e846317c705487f51f3cb165e7378a4f"
|
|
119
124
|
},
|
|
120
125
|
{
|
|
121
126
|
"type": "platform",
|
|
@@ -125,7 +130,7 @@
|
|
|
125
130
|
"type": "copy",
|
|
126
131
|
"file": "src-win/Libraries/Components/ToastAndroid/ToastAndroid.win32.js",
|
|
127
132
|
"baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js",
|
|
128
|
-
"baseHash": "
|
|
133
|
+
"baseHash": "a623c5a09b665a36e84e7fc943bd619c8ca3cc14",
|
|
129
134
|
"issue": 4378
|
|
130
135
|
},
|
|
131
136
|
{
|
|
@@ -136,8 +141,7 @@
|
|
|
136
141
|
"type": "patch",
|
|
137
142
|
"file": "src-win/Libraries/Components/Touchable/Touchable.win32.js",
|
|
138
143
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/Touchable.js",
|
|
139
|
-
"baseHash": "
|
|
140
|
-
"issue": 0
|
|
144
|
+
"baseHash": "2f7db68acd47af643bc0625d31d199332d519871"
|
|
141
145
|
},
|
|
142
146
|
{
|
|
143
147
|
"type": "derived",
|
|
@@ -149,7 +153,7 @@
|
|
|
149
153
|
"type": "derived",
|
|
150
154
|
"file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
|
|
151
155
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
|
|
152
|
-
"baseHash": "
|
|
156
|
+
"baseHash": "8706705c1f8d3dd5390ea631ce5ae60e300ae50d"
|
|
153
157
|
},
|
|
154
158
|
{
|
|
155
159
|
"type": "platform",
|
|
@@ -173,19 +177,19 @@
|
|
|
173
177
|
"type": "patch",
|
|
174
178
|
"file": "src-win/Libraries/Components/View/View.win32.js",
|
|
175
179
|
"baseFile": "packages/react-native/Libraries/Components/View/View.js",
|
|
176
|
-
"baseHash": "
|
|
180
|
+
"baseHash": "2dd3e58cf6c4bc0882550eedd8150435972365eb"
|
|
177
181
|
},
|
|
178
182
|
{
|
|
179
183
|
"type": "derived",
|
|
180
184
|
"file": "src-win/Libraries/Components/View/ViewAccessibility.d.ts",
|
|
181
185
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts",
|
|
182
|
-
"baseHash": "
|
|
186
|
+
"baseHash": "1e4e3a89397960e8f08b86be62496473829c0ac3"
|
|
183
187
|
},
|
|
184
188
|
{
|
|
185
189
|
"type": "derived",
|
|
186
190
|
"file": "src-win/Libraries/Components/View/ViewAccessibility.win32.js",
|
|
187
191
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.js",
|
|
188
|
-
"baseHash": "
|
|
192
|
+
"baseHash": "04981261b2ed61b31bfbb396478bb6b103d99253"
|
|
189
193
|
},
|
|
190
194
|
{
|
|
191
195
|
"type": "derived",
|
|
@@ -197,7 +201,7 @@
|
|
|
197
201
|
"type": "patch",
|
|
198
202
|
"file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
199
203
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
200
|
-
"baseHash": "
|
|
204
|
+
"baseHash": "ec1ffd005b6631e6af027731b087a7620fbf5cf5",
|
|
201
205
|
"issue": 6240
|
|
202
206
|
},
|
|
203
207
|
{
|
|
@@ -301,6 +305,12 @@
|
|
|
301
305
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js",
|
|
302
306
|
"baseHash": "3a3d7da499937cce35c9bd17a11f10b2eeac04cc"
|
|
303
307
|
},
|
|
308
|
+
{
|
|
309
|
+
"type": "derived",
|
|
310
|
+
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js",
|
|
311
|
+
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js",
|
|
312
|
+
"baseHash": "b355418205aa52cf33fb7e4d521b26083eada49d"
|
|
313
|
+
},
|
|
304
314
|
{
|
|
305
315
|
"type": "derived",
|
|
306
316
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js",
|
|
@@ -319,13 +329,13 @@
|
|
|
319
329
|
"type": "derived",
|
|
320
330
|
"file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
|
|
321
331
|
"baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
|
|
322
|
-
"baseHash": "
|
|
332
|
+
"baseHash": "b520e2bdb2be31bdb6ad7e3769dbe69168870c8c"
|
|
323
333
|
},
|
|
324
334
|
{
|
|
325
335
|
"type": "copy",
|
|
326
336
|
"file": "src-win/Libraries/Network/RCTNetworking.win32.js",
|
|
327
337
|
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
|
|
328
|
-
"baseHash": "
|
|
338
|
+
"baseHash": "4b96609d7e8d0596d2960aacfda35af73cec1085",
|
|
329
339
|
"issue": 4318
|
|
330
340
|
},
|
|
331
341
|
{
|
|
@@ -355,7 +365,7 @@
|
|
|
355
365
|
"type": "patch",
|
|
356
366
|
"file": "src-win/Libraries/Pressability/Pressability.win32.js",
|
|
357
367
|
"baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
|
|
358
|
-
"baseHash": "
|
|
368
|
+
"baseHash": "b52df7d819237b8acdd08f84631e3c257a9cb390",
|
|
359
369
|
"issue": 6240
|
|
360
370
|
},
|
|
361
371
|
{
|
|
@@ -384,7 +394,7 @@
|
|
|
384
394
|
"type": "derived",
|
|
385
395
|
"file": "src-win/Libraries/Settings/Settings.win32.js",
|
|
386
396
|
"baseFile": "packages/react-native/Libraries/Settings/Settings.js",
|
|
387
|
-
"baseHash": "
|
|
397
|
+
"baseHash": "84da45c9a1bf8cec6d5044433f3c10e7298381d7"
|
|
388
398
|
},
|
|
389
399
|
{
|
|
390
400
|
"type": "platform",
|
|
@@ -398,42 +408,36 @@
|
|
|
398
408
|
"type": "platform",
|
|
399
409
|
"file": "src-win/Libraries/StyleSheet/PlatformColorValueTypesWin32.js"
|
|
400
410
|
},
|
|
401
|
-
{
|
|
402
|
-
"type": "patch",
|
|
403
|
-
"file": "src-win/Libraries/StyleSheet/StyleSheet.win32.js",
|
|
404
|
-
"baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
|
|
405
|
-
"baseHash": "6c83ae0478119480b693eeab590fa4ba5af98084"
|
|
406
|
-
},
|
|
407
411
|
{
|
|
408
412
|
"type": "derived",
|
|
409
413
|
"file": "src-win/Libraries/Text/Text.d.ts",
|
|
410
414
|
"baseFile": "packages/react-native/Libraries/Text/Text.d.ts",
|
|
411
|
-
"baseHash": "
|
|
415
|
+
"baseHash": "b5f44957bc61497fcb7203934bdbc6ca9725cf42"
|
|
412
416
|
},
|
|
413
417
|
{
|
|
414
418
|
"type": "derived",
|
|
415
419
|
"file": "src-win/Libraries/Text/Text.win32.js",
|
|
416
420
|
"baseFile": "packages/react-native/Libraries/Text/Text.js",
|
|
417
|
-
"baseHash": "
|
|
421
|
+
"baseHash": "1f802db19830e468b84640fc5c7740a11e154250"
|
|
418
422
|
},
|
|
419
423
|
{
|
|
420
424
|
"type": "derived",
|
|
421
425
|
"file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
|
|
422
426
|
"baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
|
|
423
|
-
"baseHash": "
|
|
427
|
+
"baseHash": "19efb0b15014c3e11be035a67c9e46b8e25f3090",
|
|
424
428
|
"issue": 7074
|
|
425
429
|
},
|
|
426
430
|
{
|
|
427
431
|
"type": "derived",
|
|
428
432
|
"file": "src-win/Libraries/Text/TextProps.win32.js",
|
|
429
433
|
"baseFile": "packages/react-native/Libraries/Text/TextProps.js",
|
|
430
|
-
"baseHash": "
|
|
434
|
+
"baseHash": "b0e5a0c71f35c962049d73191ed4b7ace570ca92"
|
|
431
435
|
},
|
|
432
436
|
{
|
|
433
437
|
"type": "patch",
|
|
434
438
|
"file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
|
|
435
439
|
"baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
|
|
436
|
-
"baseHash": "
|
|
440
|
+
"baseHash": "ed736df6081d2fbbf54a646b8373bf485449255a",
|
|
437
441
|
"issue": 6240
|
|
438
442
|
},
|
|
439
443
|
{
|
|
@@ -443,17 +447,11 @@
|
|
|
443
447
|
"baseHash": "dfaab027e0fe3a2d7b6dccd92c1de2a558a5d36c",
|
|
444
448
|
"issue": 4629
|
|
445
449
|
},
|
|
446
|
-
{
|
|
447
|
-
"type": "derived",
|
|
448
|
-
"file": "src-win/Libraries/Utilities/DeviceInfo.win32.js",
|
|
449
|
-
"baseFile": "packages/react-native/Libraries/Utilities/DeviceInfo.js",
|
|
450
|
-
"baseHash": "e40e5c968968ee7c3115df57e6c07f8383719ee2"
|
|
451
|
-
},
|
|
452
450
|
{
|
|
453
451
|
"type": "derived",
|
|
454
452
|
"file": "src-win/Libraries/Utilities/Dimensions.win32.js",
|
|
455
453
|
"baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
|
|
456
|
-
"baseHash": "
|
|
454
|
+
"baseHash": "07b59b2dd822c45eb9bccba8da0ce361eeb67bc1"
|
|
457
455
|
},
|
|
458
456
|
{
|
|
459
457
|
"type": "platform",
|
|
@@ -479,7 +477,7 @@
|
|
|
479
477
|
"type": "patch",
|
|
480
478
|
"file": "src-win/Libraries/Utilities/PlatformTypes.js",
|
|
481
479
|
"baseFile": "packages/react-native/Libraries/Utilities/PlatformTypes.js",
|
|
482
|
-
"baseHash": "
|
|
480
|
+
"baseHash": "0bd36210528f74f9081d858c9ab64ead92c54950",
|
|
483
481
|
"issue": 14686
|
|
484
482
|
},
|
|
485
483
|
{
|
|
@@ -492,14 +490,14 @@
|
|
|
492
490
|
"type": "patch",
|
|
493
491
|
"file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
|
|
494
492
|
"baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
|
|
495
|
-
"baseHash": "
|
|
493
|
+
"baseHash": "3247a8e436a7beeda45ce7d77343229b5204cbfc",
|
|
496
494
|
"issue": 11041
|
|
497
495
|
},
|
|
498
496
|
{
|
|
499
497
|
"type": "copy",
|
|
500
|
-
"file": "src-win/src/private/
|
|
501
|
-
"baseFile": "packages/react-native/src/private/
|
|
502
|
-
"baseHash": "
|
|
498
|
+
"file": "src-win/src/private/devsupport/rndevtools/ReactDevToolsSettingsManager.win32.js",
|
|
499
|
+
"baseFile": "packages/react-native/src/private/devsupport/rndevtools/ReactDevToolsSettingsManager.android.js",
|
|
500
|
+
"baseHash": "2d33789b0c7a45996dc23f26c4b09fb2026a9285"
|
|
503
501
|
},
|
|
504
502
|
{
|
|
505
503
|
"type": "derived",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0-preview.1",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
28
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
29
|
-
"@react-native-community/cli": "
|
|
30
|
-
"@react-native-community/cli-platform-android": "
|
|
31
|
-
"@react-native-community/cli-platform-ios": "
|
|
29
|
+
"@react-native-community/cli": "17.0.0",
|
|
30
|
+
"@react-native-community/cli-platform-android": "17.0.0",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "17.0.0",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.
|
|
34
|
-
"@react-native/codegen": "0.
|
|
35
|
-
"@react-native/community-cli-plugin": "0.
|
|
36
|
-
"@react-native/gradle-plugin": "0.
|
|
37
|
-
"@react-native/js-polyfills": "0.
|
|
38
|
-
"@react-native/normalize-colors": "0.
|
|
39
|
-
"@react-native/virtualized-lists": "0.
|
|
33
|
+
"@react-native/assets-registry": "0.80.0",
|
|
34
|
+
"@react-native/codegen": "0.80.0",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.80.0",
|
|
36
|
+
"@react-native/gradle-plugin": "0.80.0",
|
|
37
|
+
"@react-native/js-polyfills": "0.80.0",
|
|
38
|
+
"@react-native/normalize-colors": "0.80.0",
|
|
39
|
+
"@react-native/virtualized-lists": "0.80.0",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"anser": "^1.4.9",
|
|
42
42
|
"ansi-regex": "^5.0.0",
|
|
43
43
|
"art": "^0.10.0",
|
|
44
44
|
"babel-jest": "^29.7.0",
|
|
45
|
-
"babel-plugin-syntax-hermes-parser": "0.
|
|
45
|
+
"babel-plugin-syntax-hermes-parser": "0.28.1",
|
|
46
46
|
"base64-js": "^1.5.1",
|
|
47
47
|
"chalk": "^4.0.0",
|
|
48
48
|
"commander": "^12.0.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"invariant": "^2.2.4",
|
|
53
53
|
"jest-environment-node": "^29.7.0",
|
|
54
54
|
"memoize-one": "^5.0.0",
|
|
55
|
-
"metro-runtime": "^0.82.
|
|
56
|
-
"metro-source-map": "^0.82.
|
|
55
|
+
"metro-runtime": "^0.82.2",
|
|
56
|
+
"metro-source-map": "^0.82.2",
|
|
57
57
|
"mkdirp": "^0.5.1",
|
|
58
58
|
"nullthrows": "^1.1.1",
|
|
59
59
|
"pretty-format": "^29.7.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"react-devtools-core": "^6.1.1",
|
|
63
63
|
"react-refresh": "^0.14.0",
|
|
64
64
|
"regenerator-runtime": "^0.13.2",
|
|
65
|
-
"scheduler": "0.
|
|
65
|
+
"scheduler": "0.26.0",
|
|
66
66
|
"semver": "^7.1.3",
|
|
67
67
|
"stacktrace-parser": "^0.1.10",
|
|
68
68
|
"whatwg-fetch": "^3.0.0",
|
|
@@ -72,30 +72,30 @@
|
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@babel/core": "^7.25.2",
|
|
74
74
|
"@babel/eslint-parser": "^7.25.1",
|
|
75
|
-
"@react-native/metro-config": "0.
|
|
75
|
+
"@react-native/metro-config": "0.80.0",
|
|
76
76
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
77
77
|
"@rnw-scripts/eslint-config": "1.2.36",
|
|
78
78
|
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
|
|
79
|
-
"@rnw-scripts/just-task": "2.3.
|
|
79
|
+
"@rnw-scripts/just-task": "2.3.54",
|
|
80
80
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
81
81
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
82
82
|
"@types/node": "^18.0.0",
|
|
83
83
|
"@types/prop-types": "15.7.1",
|
|
84
84
|
"@types/react": "^19.0.0",
|
|
85
85
|
"eslint": "^8.19.0",
|
|
86
|
-
"flow-bin": "^0.
|
|
86
|
+
"flow-bin": "^0.267.0",
|
|
87
87
|
"jscodeshift": "^0.14.0",
|
|
88
88
|
"just-scripts": "^1.3.3",
|
|
89
89
|
"prettier": "2.8.8",
|
|
90
|
-
"react": "19.
|
|
91
|
-
"react-native": "0.
|
|
92
|
-
"react-native-platform-override": "^1.9.
|
|
90
|
+
"react": "19.1.0",
|
|
91
|
+
"react-native": "0.80.0",
|
|
92
|
+
"react-native-platform-override": "^1.9.56",
|
|
93
93
|
"typescript": "5.0.4"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@types/react": "^19.
|
|
97
|
-
"react": "^19.
|
|
98
|
-
"react-native": "0.
|
|
96
|
+
"@types/react": "^19.1.0",
|
|
97
|
+
"react": "^19.1.0",
|
|
98
|
+
"react-native": "^0.80.0"
|
|
99
99
|
},
|
|
100
100
|
"beachball": {
|
|
101
101
|
"defaultNpmTag": "preview",
|
|
@@ -57,6 +57,10 @@ const eventListenerAnimationFinishedCallbacks: {
|
|
|
57
57
|
let globalEventEmitterGetValueListener: ?EventSubscription = null;
|
|
58
58
|
let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
|
|
59
59
|
|
|
60
|
+
const shouldSignalBatch =
|
|
61
|
+
ReactNativeFeatureFlags.animatedShouldSignalBatch() ||
|
|
62
|
+
ReactNativeFeatureFlags.cxxNativeAnimatedEnabled();
|
|
63
|
+
|
|
60
64
|
function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
61
65
|
const methodNames = [
|
|
62
66
|
'createAnimatedNode', // 1
|
|
@@ -106,6 +110,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
|
106
110
|
if (queueOperations || queue.length !== 0) {
|
|
107
111
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
108
112
|
queue.push(() => method(...args));
|
|
113
|
+
} else if (shouldSignalBatch) {
|
|
114
|
+
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
115
|
+
queue.push(() => method(...args));
|
|
116
|
+
clearImmediate(flushQueueImmediate);
|
|
117
|
+
flushQueueImmediate = setImmediate(API.flushQueue);
|
|
109
118
|
} else {
|
|
110
119
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
111
120
|
method(...args);
|
|
@@ -138,21 +147,25 @@ const API = {
|
|
|
138
147
|
}) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
|
|
139
148
|
|
|
140
149
|
setWaitingForIdentifier(id: string): void {
|
|
150
|
+
if (shouldSignalBatch) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
|
|
141
154
|
waitingForQueuedOperations.add(id);
|
|
142
155
|
queueOperations = true;
|
|
143
156
|
if (
|
|
144
157
|
ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
|
|
145
158
|
flushQueueImmediate
|
|
146
159
|
) {
|
|
147
|
-
|
|
148
|
-
clearImmediate(flushQueueImmediate);
|
|
149
|
-
} else {
|
|
150
|
-
clearTimeout(flushQueueImmediate);
|
|
151
|
-
}
|
|
160
|
+
clearImmediate(flushQueueImmediate);
|
|
152
161
|
}
|
|
153
162
|
},
|
|
154
163
|
|
|
155
164
|
unsetWaitingForIdentifier(id: string): void {
|
|
165
|
+
if (shouldSignalBatch) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
156
169
|
waitingForQueuedOperations.delete(id);
|
|
157
170
|
|
|
158
171
|
if (waitingForQueuedOperations.size === 0) {
|
|
@@ -206,7 +219,7 @@ const API = {
|
|
|
206
219
|
return;
|
|
207
220
|
}
|
|
208
221
|
|
|
209
|
-
if (Platform.OS === 'android') {
|
|
222
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
210
223
|
NativeAnimatedModule?.startOperationBatch?.();
|
|
211
224
|
}
|
|
212
225
|
|
|
@@ -215,7 +228,7 @@ const API = {
|
|
|
215
228
|
}
|
|
216
229
|
queue.length = 0;
|
|
217
230
|
|
|
218
|
-
if (Platform.OS === 'android') {
|
|
231
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
219
232
|
NativeAnimatedModule?.finishOperationBatch?.();
|
|
220
233
|
}
|
|
221
234
|
}) as () => void,
|
|
@@ -371,7 +384,7 @@ function assertNativeAnimatedModule(): void {
|
|
|
371
384
|
let _warnedMissingNativeAnimated = false;
|
|
372
385
|
|
|
373
386
|
function shouldUseNativeDriver(
|
|
374
|
-
config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig
|
|
387
|
+
config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig<mixed>,
|
|
375
388
|
): boolean {
|
|
376
389
|
if (config.useNativeDriver == null) {
|
|
377
390
|
console.warn(
|
|
@@ -57,6 +57,10 @@ const eventListenerAnimationFinishedCallbacks: {
|
|
|
57
57
|
let globalEventEmitterGetValueListener: ?EventSubscription = null;
|
|
58
58
|
let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
|
|
59
59
|
|
|
60
|
+
const shouldSignalBatch =
|
|
61
|
+
ReactNativeFeatureFlags.animatedShouldSignalBatch() ||
|
|
62
|
+
ReactNativeFeatureFlags.cxxNativeAnimatedEnabled();
|
|
63
|
+
|
|
60
64
|
function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
61
65
|
const methodNames = [
|
|
62
66
|
'createAnimatedNode', // 1
|
|
@@ -106,6 +110,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
|
106
110
|
if (queueOperations || queue.length !== 0) {
|
|
107
111
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
108
112
|
queue.push(() => method(...args));
|
|
113
|
+
} else if (shouldSignalBatch) {
|
|
114
|
+
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
115
|
+
queue.push(() => method(...args));
|
|
116
|
+
clearImmediate(flushQueueImmediate);
|
|
117
|
+
flushQueueImmediate = setImmediate(API.flushQueue);
|
|
109
118
|
} else {
|
|
110
119
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
111
120
|
method(...args);
|
|
@@ -138,21 +147,25 @@ const API = {
|
|
|
138
147
|
}) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
|
|
139
148
|
|
|
140
149
|
setWaitingForIdentifier(id: string): void {
|
|
150
|
+
if (shouldSignalBatch) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
|
|
141
154
|
waitingForQueuedOperations.add(id);
|
|
142
155
|
queueOperations = true;
|
|
143
156
|
if (
|
|
144
157
|
ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
|
|
145
158
|
flushQueueImmediate
|
|
146
159
|
) {
|
|
147
|
-
|
|
148
|
-
clearImmediate(flushQueueImmediate);
|
|
149
|
-
} else {
|
|
150
|
-
clearTimeout(flushQueueImmediate);
|
|
151
|
-
}
|
|
160
|
+
clearImmediate(flushQueueImmediate);
|
|
152
161
|
}
|
|
153
162
|
},
|
|
154
163
|
|
|
155
164
|
unsetWaitingForIdentifier(id: string): void {
|
|
165
|
+
if (shouldSignalBatch) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
156
169
|
waitingForQueuedOperations.delete(id);
|
|
157
170
|
|
|
158
171
|
if (waitingForQueuedOperations.size === 0) {
|
|
@@ -209,7 +222,7 @@ const API = {
|
|
|
209
222
|
return;
|
|
210
223
|
}
|
|
211
224
|
|
|
212
|
-
if (Platform.OS === 'android') {
|
|
225
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
213
226
|
NativeAnimatedModule?.startOperationBatch?.();
|
|
214
227
|
}
|
|
215
228
|
|
|
@@ -218,7 +231,7 @@ const API = {
|
|
|
218
231
|
}
|
|
219
232
|
queue.length = 0;
|
|
220
233
|
|
|
221
|
-
if (Platform.OS === 'android') {
|
|
234
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
222
235
|
NativeAnimatedModule?.finishOperationBatch?.();
|
|
223
236
|
}
|
|
224
237
|
}) as () => void,
|
|
@@ -374,7 +387,7 @@ function assertNativeAnimatedModule(): void {
|
|
|
374
387
|
let _warnedMissingNativeAnimated = false;
|
|
375
388
|
|
|
376
389
|
function shouldUseNativeDriver(
|
|
377
|
-
config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig
|
|
390
|
+
config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig<mixed>,
|
|
378
391
|
): boolean {
|
|
379
392
|
if (config.useNativeDriver == null) {
|
|
380
393
|
console.warn(
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
import type {AnimatedPropsAllowlist} from '../../../Libraries/Animated/nodes/AnimatedProps';
|
|
12
12
|
import type {EventSubscription} from '../../../Libraries/EventEmitter/NativeEventEmitter';
|
|
13
13
|
|
|
14
|
-
import {AnimatedEvent} from '../../../Libraries/Animated/AnimatedEvent';
|
|
15
14
|
import AnimatedNode from '../../../Libraries/Animated/nodes/AnimatedNode';
|
|
16
15
|
import AnimatedProps from '../../../Libraries/Animated/nodes/AnimatedProps';
|
|
17
16
|
import AnimatedValue from '../../../Libraries/Animated/nodes/AnimatedValue';
|
|
@@ -51,6 +50,9 @@ export default function createAnimatedPropsHook(
|
|
|
51
50
|
): AnimatedPropsHook {
|
|
52
51
|
const useAnimatedPropsMemo = createAnimatedPropsMemoHook(allowlist);
|
|
53
52
|
|
|
53
|
+
const useNativePropsInFabric =
|
|
54
|
+
ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
|
|
55
|
+
|
|
54
56
|
return function useAnimatedProps<TProps: {...}, TInstance>(
|
|
55
57
|
props: TProps,
|
|
56
58
|
): [ReducedProps<TProps>, CallbackRef<TInstance | null>] {
|
|
@@ -63,9 +65,6 @@ export default function createAnimatedPropsHook(
|
|
|
63
65
|
props,
|
|
64
66
|
);
|
|
65
67
|
|
|
66
|
-
const useNativePropsInFabric =
|
|
67
|
-
ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
|
|
68
|
-
|
|
69
68
|
useEffect(() => {
|
|
70
69
|
// If multiple components call `flushQueue`, the first one will flush the
|
|
71
70
|
// queue and subsequent ones will do nothing.
|
|
@@ -112,6 +111,7 @@ export default function createAnimatedPropsHook(
|
|
|
112
111
|
(instance: TInstance) => {
|
|
113
112
|
// NOTE: This may be called more often than necessary (e.g. when `props`
|
|
114
113
|
// changes), but `setNativeView` already optimizes for that.
|
|
114
|
+
// $FlowFixMe[incompatible-call]
|
|
115
115
|
node.setNativeView(instance);
|
|
116
116
|
|
|
117
117
|
// NOTE: When using the JS animation driver, this callback is called on
|
|
@@ -182,24 +182,19 @@ export default function createAnimatedPropsHook(
|
|
|
182
182
|
};
|
|
183
183
|
|
|
184
184
|
const target = getEventTarget(instance);
|
|
185
|
-
const events = [];
|
|
186
185
|
const animatedValueListeners: AnimatedValueListeners = [];
|
|
186
|
+
const eventTuples = node.__getNativeAnimatedEventTuples();
|
|
187
187
|
|
|
188
|
-
for (const propName
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
propValue.__attach(target, propName);
|
|
193
|
-
events.push([propName, propValue]);
|
|
194
|
-
// $FlowFixMe[incompatible-call] - the `addListenersToPropsValue` drills down the propValue.
|
|
195
|
-
addListenersToPropsValue(propValue, animatedValueListeners);
|
|
196
|
-
}
|
|
188
|
+
for (const [propName, propValue] of eventTuples) {
|
|
189
|
+
propValue.__attach(target, propName);
|
|
190
|
+
// $FlowFixMe[incompatible-call] - the `addListenersToPropsValue` drills down the propValue.
|
|
191
|
+
addListenersToPropsValue(propValue, animatedValueListeners);
|
|
197
192
|
}
|
|
198
193
|
|
|
199
194
|
return () => {
|
|
200
195
|
onUpdateRef.current = null;
|
|
201
196
|
|
|
202
|
-
for (const [propName, propValue] of
|
|
197
|
+
for (const [propName, propValue] of eventTuples) {
|
|
203
198
|
propValue.__detach(target, propName);
|
|
204
199
|
}
|
|
205
200
|
|
|
@@ -208,7 +203,7 @@ export default function createAnimatedPropsHook(
|
|
|
208
203
|
}
|
|
209
204
|
};
|
|
210
205
|
},
|
|
211
|
-
[node
|
|
206
|
+
[node],
|
|
212
207
|
);
|
|
213
208
|
const callbackRef = useRefEffect<TInstance>(refEffect);
|
|
214
209
|
|
|
@@ -91,8 +91,7 @@ export function createAnimatedPropsMemoHook(
|
|
|
91
91
|
const prev = prevRef.current;
|
|
92
92
|
|
|
93
93
|
const next =
|
|
94
|
-
prev != null &&
|
|
95
|
-
areCompositeKeysEqual(prev.compositeKey, compositeKey, allowlist)
|
|
94
|
+
prev != null && areCompositeKeysEqual(prev.compositeKey, compositeKey)
|
|
96
95
|
? prev
|
|
97
96
|
: {
|
|
98
97
|
compositeKey,
|