@office-iss/react-native-win32 0.72.8 → 0.73.0-preview.2
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 +15 -5
- package/CHANGELOG.json +530 -101
- package/CHANGELOG.md +213 -56
- package/IntegrationTests/PromiseTest.js +1 -0
- package/IntegrationTests/websocket_integration_test_server.js +1 -1
- package/Libraries/Animated/Animated.js +1 -1
- package/Libraries/Animated/AnimatedImplementation.js +1 -1
- package/Libraries/Animated/NativeAnimatedHelper.js +14 -10
- package/Libraries/Animated/NativeAnimatedHelper.win32.js +16 -12
- package/Libraries/Animated/NativeAnimatedModule.js +6 -2
- package/Libraries/Animated/NativeAnimatedTurboModule.js +7 -4
- package/Libraries/Animated/animations/Animation.js +57 -3
- package/Libraries/Animated/animations/DecayAnimation.js +9 -0
- package/Libraries/Animated/animations/SpringAnimation.js +8 -0
- package/Libraries/Animated/animations/TimingAnimation.js +8 -0
- package/Libraries/Animated/components/AnimatedFlatList.js +2 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +2 -0
- package/Libraries/Animated/components/AnimatedSectionList.js +2 -1
- package/Libraries/Animated/createAnimatedComponent.js +1 -0
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedObject.js +146 -0
- package/Libraries/Animated/nodes/AnimatedProps.js +19 -7
- package/Libraries/Animated/nodes/AnimatedStyle.js +29 -55
- package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -17
- package/Libraries/Animated/shouldUseTurboAnimatedModule.js +17 -0
- package/Libraries/Animated/useAnimatedProps.js +9 -10
- package/Libraries/AppState/AppState.d.ts +1 -1
- package/Libraries/AppState/NativeAppState.js +8 -4
- package/Libraries/BatchedBridge/MessageQueue.js +45 -36
- package/Libraries/Blob/Blob.js +6 -2
- package/Libraries/Blob/BlobManager.js +9 -10
- package/Libraries/Blob/BlobRegistry.js +14 -9
- package/Libraries/Blob/File.js +1 -1
- package/Libraries/Blob/FileReader.js +1 -2
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +1 -5
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +7 -48
- package/Libraries/Components/Button/ButtonWin32.Props.d.ts +1 -1
- package/Libraries/Components/Button/ButtonWin32.Props.js.map +1 -1
- package/Libraries/Components/Button/ButtonWin32.d.ts +1 -1
- package/Libraries/Components/Button/ButtonWin32.js +1 -4
- package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
- package/Libraries/Components/Clipboard/Clipboard.d.ts +4 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +3 -1
- package/Libraries/Components/EnterString.win32.d.ts +1 -1
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +26 -6
- package/Libraries/Components/Pressable/Pressable.js +3 -2
- package/Libraries/Components/Pressable/Pressable.win32.js +4 -3
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +7 -7
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +7 -8
- package/Libraries/Components/ScrollView/ScrollView.js +3 -1
- package/Libraries/Components/ScrollView/ScrollView.win32.js +3 -1
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +39 -46
- package/Libraries/Components/Switch/Switch.js +1 -0
- package/Libraries/Components/Text/TextWin32.d.ts +1 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +49 -7
- package/Libraries/Components/TextInput/TextInput.flow.js +43 -10
- package/Libraries/Components/TextInput/TextInput.js +62 -10
- package/Libraries/Components/TextInput/TextInput.win32.js +953 -206
- package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +23 -0
- package/Libraries/Components/ToastAndroid/{ToastAndroid.ios.js → ToastAndroid.js} +9 -1
- package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +9 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +2 -2
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +4 -1
- package/Libraries/Components/Touchable/TouchableWin32.d.ts +1 -1
- package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +1 -0
- package/Libraries/Components/TraceUpdateOverlay/TraceUpdateOverlay.js +16 -6
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +9 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -0
- package/Libraries/Components/View/View.js +46 -32
- package/Libraries/Components/View/View.win32.js +37 -6
- package/Libraries/Components/View/ViewAccessibility.d.ts +8 -2
- package/Libraries/Components/View/ViewNativeComponent.js +1 -0
- package/Libraries/Components/View/ViewPropTypes.js +18 -3
- package/Libraries/Components/View/ViewPropTypes.win32.js +30 -4
- package/Libraries/Components/View/ViewWin32.js +3 -2
- package/Libraries/Core/Devtools/loadBundleFromServer.js +152 -0
- package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -1
- package/Libraries/Core/ExceptionsManager.js +16 -7
- package/Libraries/Core/ExtendedError.js +12 -0
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +0 -2
- package/Libraries/Core/ReactNativeVersionCheck.win32.js +0 -2
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +20 -0
- package/Libraries/Core/setUpDeveloperTools.js +5 -1
- package/Libraries/Core/setUpIntersectionObserver.js +16 -0
- package/Libraries/{Components/ProgressBarAndroid/ProgressBarAndroid.ios.js → Core/setUpMutationObserver.js} +6 -2
- package/Libraries/Core/setUpPerformance.js +6 -13
- package/Libraries/Core/setUpPerformanceObserver.js +16 -0
- package/Libraries/Core/setUpRegeneratorRuntime.js +4 -2
- package/Libraries/DOM/Nodes/ReactNativeElement.js +135 -18
- package/Libraries/DOM/Nodes/ReadOnlyCharacterData.js +72 -0
- package/Libraries/DOM/Nodes/ReadOnlyElement.js +209 -21
- package/Libraries/DOM/Nodes/ReadOnlyNode.js +206 -17
- package/Libraries/DOM/Nodes/ReadOnlyText.js +30 -0
- package/Libraries/DOM/Nodes/Utilities/Traversal.js +54 -0
- package/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -6
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +15 -4
- package/Libraries/Image/Image.android.js +8 -2
- package/Libraries/Image/Image.d.ts +1 -1
- package/Libraries/Image/Image.ios.js +4 -1
- package/Libraries/Image/Image.win32.js +6 -3
- package/Libraries/Image/ImageBackground.js +3 -0
- package/Libraries/Image/resolveAssetSource.win32.js +1 -1
- package/Libraries/Inspector/DevtoolsOverlay.js +6 -3
- package/Libraries/Inspector/NetworkOverlay.js +2 -2
- package/Libraries/Interaction/JSEventLoopWatchdog.js +1 -5
- package/Libraries/Interaction/PanResponder.js +1 -4
- package/Libraries/IntersectionObserver/IntersectionObserver.js +252 -0
- package/Libraries/IntersectionObserver/IntersectionObserverEntry.js +140 -0
- package/Libraries/IntersectionObserver/IntersectionObserverManager.js +221 -0
- package/Libraries/IntersectionObserver/NativeIntersectionObserver.js +41 -0
- package/Libraries/IntersectionObserver/__mocks__/NativeIntersectionObserver.js +162 -0
- package/Libraries/LayoutAnimation/LayoutAnimation.js +1 -1
- package/Libraries/Lists/FlatList.d.ts +2 -1
- package/Libraries/Lists/FlatList.js +15 -5
- package/Libraries/Lists/SectionList.js +4 -0
- package/Libraries/LogBox/Data/LogBoxData.js +2 -1
- package/Libraries/LogBox/Data/LogBoxLog.js +4 -1
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +5 -2
- package/Libraries/LogBox/Data/parseLogBoxLog.js +57 -20
- package/Libraries/LogBox/UI/AnsiHighlight.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +24 -31
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxMessage.js +4 -7
- package/Libraries/MutationObserver/MutationObserver.js +184 -0
- package/Libraries/MutationObserver/MutationObserverManager.js +218 -0
- package/Libraries/MutationObserver/MutationRecord.js +82 -0
- package/Libraries/MutationObserver/NativeMutationObserver.js +58 -0
- package/Libraries/MutationObserver/__mocks__/NativeMutationObserver.js +327 -0
- package/Libraries/NativeComponent/BaseViewConfig.android.js +18 -3
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +33 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +33 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +13 -9
- package/Libraries/NativeModules/specs/NativeSourceCode.js +6 -6
- package/Libraries/Network/RCTNetworking.android.js +2 -1
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/NewAppScreen/components/DebugInstructions.js +4 -4
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +9 -2
- package/Libraries/Performance/QuickPerformanceLogger.js +1 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +1 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +1 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +3 -1
- package/Libraries/Pressability/Pressability.js +28 -3
- package/Libraries/Pressability/Pressability.win32.js +30 -5
- package/Libraries/ReactNative/AppContainer.js +2 -3
- package/Libraries/ReactNative/AppRegistry.d.ts +0 -5
- package/Libraries/ReactNative/AppRegistry.js +66 -53
- package/Libraries/ReactNative/BridgelessUIManager.js +38 -9
- package/Libraries/ReactNative/FabricUIManager.js +143 -34
- package/Libraries/ReactNative/I18nManager.js +5 -11
- package/Libraries/ReactNative/NativeI18nManager.js +7 -5
- package/Libraries/ReactNative/PaperUIManager.win32.js +2 -2
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +151 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +81 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +492 -0
- package/Libraries/ReactNative/ReactFabricPublicInstance/warnForStyleProps.js +32 -0
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +19 -3
- package/Libraries/ReactNative/UIManager.js +8 -0
- package/Libraries/ReactNative/__mocks__/FabricUIManager.js +648 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +38 -2
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +27 -27
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3 -3
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3 -3
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +27 -27
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3 -3
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +3 -3
- package/Libraries/Renderer/shims/ReactFabric.js +5 -6
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -3
- package/Libraries/Renderer/shims/ReactNative.js +2 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +35 -17
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -3
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -3
- package/Libraries/Settings/{Settings.android.js → Settings.js} +4 -4
- package/Libraries/Share/Share.d.ts +3 -9
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +9 -4
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +28 -13
- package/Libraries/StyleSheet/PlatformColorValueTypes.win32.js +14 -4
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesWin32.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheet.d.ts +10 -1
- package/Libraries/StyleSheet/StyleSheet.js +3 -0
- package/Libraries/StyleSheet/StyleSheet.win32.js +3 -0
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +31 -17
- package/Libraries/StyleSheet/StyleSheetTypes.js +90 -6
- package/Libraries/StyleSheet/flattenStyle.js +4 -0
- package/Libraries/StyleSheet/private/_TransformStyle.js +16 -2
- package/Libraries/StyleSheet/processColor.js +1 -2
- package/Libraries/StyleSheet/processTransformOrigin.js +136 -0
- package/Libraries/StyleSheet/splitLayoutProps.js +1 -0
- package/Libraries/Text/Text.d.ts +5 -5
- package/Libraries/Text/Text.js +17 -10
- package/Libraries/Text/Text.win32.js +354 -0
- package/Libraries/Text/TextProps.win32.js +281 -0
- package/Libraries/TurboModule/TurboModuleRegistry.js +47 -7
- package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +6 -0
- package/Libraries/Types/CoreEventTypes.d.ts +5 -2
- package/Libraries/Utilities/GlobalPerformanceLogger.js +2 -12
- package/Libraries/Utilities/NativeDeviceInfo.js +8 -9
- package/Libraries/Utilities/NativePlatformConstantsAndroid.js +23 -18
- package/Libraries/Utilities/NativePlatformConstantsIOS.js +16 -13
- package/Libraries/Utilities/NativePlatformConstantsWin.js +13 -10
- package/Libraries/Utilities/PerformanceLoggerContext.js +1 -1
- package/Libraries/Utilities/Platform.android.js +12 -8
- package/Libraries/Utilities/Platform.d.ts +1 -0
- package/Libraries/Utilities/Platform.flow.js +84 -0
- package/Libraries/Utilities/Platform.flow.win32.js +111 -0
- package/Libraries/Utilities/Platform.ios.js +12 -8
- package/Libraries/Utilities/Platform.win32.js +12 -8
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -2
- package/Libraries/Utilities/SceneTracker.js +1 -1
- package/Libraries/Utilities/createPerformanceLogger.js +63 -32
- package/Libraries/Utilities/useColorScheme.js +7 -8
- package/Libraries/WebPerformance/MemoryInfo.js +1 -1
- package/Libraries/WebPerformance/NativePerformance.js +3 -8
- package/Libraries/WebPerformance/NativePerformanceObserver.js +4 -0
- package/Libraries/WebPerformance/Performance.js +42 -15
- package/Libraries/WebPerformance/PerformanceEntry.js +14 -6
- package/Libraries/WebPerformance/PerformanceEventTiming.js +18 -1
- package/Libraries/WebPerformance/ReactNativeStartupTiming.js +40 -14
- package/Libraries/WebPerformance/__mocks__/NativePerformance.js +4 -2
- package/Libraries/WebPerformance/__mocks__/NativePerformanceObserver.js +21 -3
- package/Libraries/promiseRejectionTrackingOptions.js +21 -9
- package/Libraries/vendor/emitter/EventEmitter.js +17 -17
- package/flow/global.js +1 -3
- package/flow/jest.js +5 -1
- package/{Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js → jest/ReactNativeInternalFeatureFlagsMock.js} +2 -1
- package/jest/__tests__/setup-test.js +18 -0
- package/jest/mockModal.js +6 -4
- package/jest/setup.js +61 -30
- package/jest.config.js +1 -1
- package/just-task.js +1 -0
- package/overrides.json +54 -60
- package/package.json +35 -33
- package/src/Libraries/Components/Button/ButtonWin32.Props.ts +1 -1
- package/src/Libraries/Components/Button/ButtonWin32.tsx +0 -2
- package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +2 -2
- package/src/Libraries/Components/Touchable/TouchableWin32.tsx +1 -1
- package/src/Libraries/Components/View/ViewAccessibility.d.ts +8 -2
- package/src/Libraries/StyleSheet/PlatformColorValueTypesWin32.d.ts +1 -1
- package/types/experimental.d.ts +44 -0
- package/types/index.d.ts +2 -1
- package/types/modules/Devtools.d.ts +1 -0
- package/types/modules/globals.d.ts +16 -1
- package/IntegrationTests/BUCK +0 -32
- package/IntegrationTests/PropertiesUpdateTest.js +0 -29
- package/IntegrationTests/RCTRootViewIntegrationTestApp.js +0 -86
- package/IntegrationTests/ReactContentSizeUpdateTest.js +0 -89
- package/IntegrationTests/SizeFlexibilityUpdateTest.js +0 -106
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfoWin32.js +0 -37
- package/Libraries/Components/TextInput/TextInput.Types.win32.d.ts +0 -51
- package/Libraries/Components/TextInput/TextInput.Types.win32.js +0 -3
- package/Libraries/Components/TextInput/TextInput.Types.win32.js.map +0 -1
- package/Libraries/Utilities/AcessibilityMapping.js +0 -154
- package/Libraries/Utilities/AcessibilityMapping.win32.js +0 -156
- package/Libraries/Utilities/NativeDevSplitBundleLoader.js +0 -19
- package/Libraries/Utilities/useColorScheme.win32.js +0 -26
- package/flow/use-sync-external-store.js +0 -20
- package/flow-typed/npm/base64-js_v1.x.x.js +0 -12
- package/flow-typed/npm/glob_v7.x.x.js +0 -79
- package/flow-typed/npm/pretty-format_v26.x.x.js +0 -49
- package/flow-typed/npm/promise_v8.x.x.js +0 -30
- package/flow-typed/npm/react-dom_v17.x.x.js +0 -139
- package/flow-typed/npm/react-test-renderer_v16.x.x.js +0 -79
- package/flow-typed/npm/stacktrace-parser_v0.1.x.js +0 -17
- package/flow-typed/npm/yargs_v17.x.x.js +0 -341
- package/src/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -161
- package/src/Libraries/Components/TextInput/TextInput.Types.win32.ts +0 -68
- /package/Libraries/{Renderer/public → ReactNative/ReactFabricPublicInstance}/ReactFabricPublicInstanceUtils.js +0 -0
package/overrides.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.
|
|
10
|
+
"baseVersion": "0.73.0-rc.3",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "fd2609719419d6fd262c1e7f993eb566ad2444f6"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"type": "derived",
|
|
@@ -35,20 +35,15 @@
|
|
|
35
35
|
"type": "derived",
|
|
36
36
|
"file": "src/Libraries/Animated/NativeAnimatedHelper.win32.js",
|
|
37
37
|
"baseFile": "packages/react-native/Libraries/Animated/NativeAnimatedHelper.js",
|
|
38
|
-
"baseHash": "
|
|
38
|
+
"baseHash": "99fc31f856815c19024407d629e4a0762df9011e",
|
|
39
39
|
"issue": 11041
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"type": "
|
|
43
|
-
"file": "src/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts",
|
|
44
|
-
"baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts",
|
|
45
|
-
"baseHash": "f55fda723b8dc0f9836f2fa4a4a766ed45c71c00"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "derived",
|
|
42
|
+
"type": "patch",
|
|
49
43
|
"file": "src/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
|
|
50
44
|
"baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
|
|
51
|
-
"baseHash": "163927cc271b53109f06eaf5fc6d30a9af8cb27e"
|
|
45
|
+
"baseHash": "163927cc271b53109f06eaf5fc6d30a9af8cb27e",
|
|
46
|
+
"issue": 4578
|
|
52
47
|
},
|
|
53
48
|
{
|
|
54
49
|
"type": "copy",
|
|
@@ -57,12 +52,6 @@
|
|
|
57
52
|
"baseHash": "d37b2f72125246ababf3260e99ef790ce76fe3bb",
|
|
58
53
|
"issue": 4578
|
|
59
54
|
},
|
|
60
|
-
{
|
|
61
|
-
"type": "derived",
|
|
62
|
-
"file": "src/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfoWin32.js",
|
|
63
|
-
"baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js",
|
|
64
|
-
"baseHash": "9427a7feebfbe3de606b2d100439cabf2faa8661"
|
|
65
|
-
},
|
|
66
55
|
{
|
|
67
56
|
"type": "derived",
|
|
68
57
|
"file": "src/Libraries/Components/Button.win32.js",
|
|
@@ -80,7 +69,7 @@
|
|
|
80
69
|
{
|
|
81
70
|
"type": "copy",
|
|
82
71
|
"file": "src/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
83
|
-
"baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.
|
|
72
|
+
"baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
84
73
|
"baseHash": "09f143fc3f2ee80463764e1c2b3f23107d501a4c",
|
|
85
74
|
"issue": 4378
|
|
86
75
|
},
|
|
@@ -92,27 +81,27 @@
|
|
|
92
81
|
"type": "patch",
|
|
93
82
|
"file": "src/Libraries/Components/Pressable/Pressable.win32.js",
|
|
94
83
|
"baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
|
|
95
|
-
"baseHash": "
|
|
84
|
+
"baseHash": "6fb2aede8cff4c47e8e965fed9ed1a9d55d33cfc",
|
|
96
85
|
"issue": 6240
|
|
97
86
|
},
|
|
98
87
|
{
|
|
99
|
-
"type": "
|
|
88
|
+
"type": "patch",
|
|
100
89
|
"file": "src/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
101
|
-
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.
|
|
102
|
-
"baseHash": "
|
|
103
|
-
"issue":
|
|
90
|
+
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
91
|
+
"baseHash": "e69c4f61d26361e6aeb62b6d3f31d1c1bb78e4ae",
|
|
92
|
+
"issue": 0
|
|
104
93
|
},
|
|
105
94
|
{
|
|
106
|
-
"type": "
|
|
95
|
+
"type": "copy",
|
|
107
96
|
"file": "src/Libraries/Components/SafeAreaView/SafeAreaView.win32.js",
|
|
108
97
|
"baseFile": "packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js",
|
|
109
|
-
"baseHash": "
|
|
98
|
+
"baseHash": "ae5845b576484b3600e395d3b1ee03223530b8f7"
|
|
110
99
|
},
|
|
111
100
|
{
|
|
112
101
|
"type": "derived",
|
|
113
102
|
"file": "src/Libraries/Components/ScrollView/ScrollView.win32.js",
|
|
114
103
|
"baseFile": "packages/react-native/Libraries/Components/ScrollView/ScrollView.js",
|
|
115
|
-
"baseHash": "
|
|
104
|
+
"baseHash": "87a276aff215fedb38d7ced5d9aef61224ebe0c2"
|
|
116
105
|
},
|
|
117
106
|
{
|
|
118
107
|
"type": "platform",
|
|
@@ -126,15 +115,11 @@
|
|
|
126
115
|
"type": "platform",
|
|
127
116
|
"file": "src/Libraries/Components/TextInput/Tests/TextInputTest.tsx"
|
|
128
117
|
},
|
|
129
|
-
{
|
|
130
|
-
"type": "platform",
|
|
131
|
-
"file": "src/Libraries/Components/TextInput/TextInput.Types.win32.ts"
|
|
132
|
-
},
|
|
133
118
|
{
|
|
134
119
|
"type": "derived",
|
|
135
120
|
"file": "src/Libraries/Components/TextInput/TextInput.win32.js",
|
|
136
121
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
137
|
-
"baseHash": "
|
|
122
|
+
"baseHash": "4e2811777a14ba8f87dc0a36ca11fcf390bd8def"
|
|
138
123
|
},
|
|
139
124
|
{
|
|
140
125
|
"type": "patch",
|
|
@@ -142,11 +127,15 @@
|
|
|
142
127
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
|
|
143
128
|
"baseHash": "60655baaca427e1c7c1b8884833b848335c4033b"
|
|
144
129
|
},
|
|
130
|
+
{
|
|
131
|
+
"type": "platform",
|
|
132
|
+
"file": "src/Libraries/Components/TextInput/Win32TextInputNativeComponent.js"
|
|
133
|
+
},
|
|
145
134
|
{
|
|
146
135
|
"type": "copy",
|
|
147
136
|
"file": "src/Libraries/Components/ToastAndroid/ToastAndroid.win32.js",
|
|
148
|
-
"baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.
|
|
149
|
-
"baseHash": "
|
|
137
|
+
"baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js",
|
|
138
|
+
"baseHash": "37f29678da7a4de7bc92cf52796a7e0388e1540a",
|
|
150
139
|
"issue": 4378
|
|
151
140
|
},
|
|
152
141
|
{
|
|
@@ -170,7 +159,7 @@
|
|
|
170
159
|
"type": "derived",
|
|
171
160
|
"file": "src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
|
|
172
161
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
|
|
173
|
-
"baseHash": "
|
|
162
|
+
"baseHash": "fa5b3198efddd86eca7965aa90104408ed53fbbf"
|
|
174
163
|
},
|
|
175
164
|
{
|
|
176
165
|
"type": "platform",
|
|
@@ -188,13 +177,13 @@
|
|
|
188
177
|
"type": "patch",
|
|
189
178
|
"file": "src/Libraries/Components/View/ReactNativeViewAttributes.win32.js",
|
|
190
179
|
"baseFile": "packages/react-native/Libraries/Components/View/ReactNativeViewAttributes.js",
|
|
191
|
-
"baseHash": "
|
|
180
|
+
"baseHash": "0aabb0825ab9d65cb39f526ad3ac10874d6cde7e"
|
|
192
181
|
},
|
|
193
182
|
{
|
|
194
183
|
"type": "patch",
|
|
195
184
|
"file": "src/Libraries/Components/View/View.win32.js",
|
|
196
185
|
"baseFile": "packages/react-native/Libraries/Components/View/View.js",
|
|
197
|
-
"baseHash": "
|
|
186
|
+
"baseHash": "f25ca9bd8f25d1dd05d98d40946a41b19fac87f1"
|
|
198
187
|
},
|
|
199
188
|
{
|
|
200
189
|
"type": "derived",
|
|
@@ -218,7 +207,7 @@
|
|
|
218
207
|
"type": "patch",
|
|
219
208
|
"file": "src/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
220
209
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
221
|
-
"baseHash": "
|
|
210
|
+
"baseHash": "2bbe617e19537c49c2cbd7abad16580e386f1d65",
|
|
222
211
|
"issue": 6240
|
|
223
212
|
},
|
|
224
213
|
{
|
|
@@ -235,7 +224,7 @@
|
|
|
235
224
|
"type": "patch",
|
|
236
225
|
"file": "src/Libraries/Core/ReactNativeVersionCheck.win32.js",
|
|
237
226
|
"baseFile": "packages/react-native/Libraries/Core/ReactNativeVersionCheck.js",
|
|
238
|
-
"baseHash": "
|
|
227
|
+
"baseHash": "44de206d0f29cc9562dd1c4dcc61d852664b2a0f",
|
|
239
228
|
"issue": 5170
|
|
240
229
|
},
|
|
241
230
|
{
|
|
@@ -252,7 +241,7 @@
|
|
|
252
241
|
"type": "derived",
|
|
253
242
|
"file": "src/Libraries/Image/Image.win32.js",
|
|
254
243
|
"baseFile": "packages/react-native/Libraries/Image/Image.ios.js",
|
|
255
|
-
"baseHash": "
|
|
244
|
+
"baseHash": "ead4aaa048a5ae0186d3f8ade054b970a2115a3a",
|
|
256
245
|
"issue": 4320
|
|
257
246
|
},
|
|
258
247
|
{
|
|
@@ -324,7 +313,7 @@
|
|
|
324
313
|
"type": "patch",
|
|
325
314
|
"file": "src/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js",
|
|
326
315
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js",
|
|
327
|
-
"baseHash": "
|
|
316
|
+
"baseHash": "1a12281b1cfab7352fcfeb5984f0ed3c83c04660",
|
|
328
317
|
"issue": 7952
|
|
329
318
|
},
|
|
330
319
|
{
|
|
@@ -351,7 +340,7 @@
|
|
|
351
340
|
"type": "derived",
|
|
352
341
|
"file": "src/Libraries/NativeComponent/BaseViewConfig.win32.js",
|
|
353
342
|
"baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
|
|
354
|
-
"baseHash": "
|
|
343
|
+
"baseHash": "ae7bdcfff1117d4a349b7b9bcc108a22ae7099ae"
|
|
355
344
|
},
|
|
356
345
|
{
|
|
357
346
|
"type": "copy",
|
|
@@ -387,7 +376,7 @@
|
|
|
387
376
|
"type": "patch",
|
|
388
377
|
"file": "src/Libraries/Pressability/Pressability.win32.js",
|
|
389
378
|
"baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
|
|
390
|
-
"baseHash": "
|
|
379
|
+
"baseHash": "d5a39e2602915a52ae14cc88aaba8bd1d1c8be8a",
|
|
391
380
|
"issue": 6240
|
|
392
381
|
},
|
|
393
382
|
{
|
|
@@ -415,8 +404,8 @@
|
|
|
415
404
|
{
|
|
416
405
|
"type": "derived",
|
|
417
406
|
"file": "src/Libraries/Settings/Settings.win32.js",
|
|
418
|
-
"baseFile": "packages/react-native/Libraries/Settings/Settings.
|
|
419
|
-
"baseHash": "
|
|
407
|
+
"baseFile": "packages/react-native/Libraries/Settings/Settings.js",
|
|
408
|
+
"baseHash": "1aa8e2b8b3c8e1577f617383c3a47fe8499eb031"
|
|
420
409
|
},
|
|
421
410
|
{
|
|
422
411
|
"type": "platform",
|
|
@@ -434,7 +423,13 @@
|
|
|
434
423
|
"type": "patch",
|
|
435
424
|
"file": "src/Libraries/StyleSheet/StyleSheet.win32.js",
|
|
436
425
|
"baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
|
|
437
|
-
"baseHash": "
|
|
426
|
+
"baseHash": "e73098e3a22f8f74328e0a9f387839bb03322bb6"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"type": "derived",
|
|
430
|
+
"file": "src/Libraries/Text/Text.win32.js",
|
|
431
|
+
"baseFile": "packages/react-native/Libraries/Text/Text.js",
|
|
432
|
+
"baseHash": "02a8ebee89958ab16c6014c2fe1d5b6253113918"
|
|
438
433
|
},
|
|
439
434
|
{
|
|
440
435
|
"type": "derived",
|
|
@@ -443,6 +438,12 @@
|
|
|
443
438
|
"baseHash": "abcdb74e2fe1e491baaefdd0ba6369199b8032d0",
|
|
444
439
|
"issue": 7074
|
|
445
440
|
},
|
|
441
|
+
{
|
|
442
|
+
"type": "derived",
|
|
443
|
+
"file": "src/Libraries/Text/TextProps.win32.js",
|
|
444
|
+
"baseFile": "packages/react-native/Libraries/Text/TextProps.js",
|
|
445
|
+
"baseHash": "7ecbe61c439e5c6f79fe5ae262f063060fa6a24f"
|
|
446
|
+
},
|
|
446
447
|
{
|
|
447
448
|
"type": "patch",
|
|
448
449
|
"file": "src/Libraries/Types/CoreEventTypes.win32.js",
|
|
@@ -450,12 +451,6 @@
|
|
|
450
451
|
"baseHash": "7fe2b87cf49f4674d731d07f0883bab2f5cfc356",
|
|
451
452
|
"issue": 6240
|
|
452
453
|
},
|
|
453
|
-
{
|
|
454
|
-
"type": "derived",
|
|
455
|
-
"file": "src/Libraries/Utilities/AcessibilityMapping.win32.js",
|
|
456
|
-
"baseFile": "packages/react-native/Libraries/Utilities/AcessibilityMapping.js",
|
|
457
|
-
"baseHash": "7a662ddd93c6cd0a7193e3002120aeb196991340"
|
|
458
|
-
},
|
|
459
454
|
{
|
|
460
455
|
"type": "copy",
|
|
461
456
|
"file": "src/Libraries/Utilities/BackHandler.win32.js",
|
|
@@ -487,20 +482,19 @@
|
|
|
487
482
|
"type": "derived",
|
|
488
483
|
"file": "src/Libraries/Utilities/NativePlatformConstantsWin.js",
|
|
489
484
|
"baseFile": "packages/react-native/Libraries/Utilities/NativePlatformConstantsIOS.js",
|
|
490
|
-
"baseHash": "
|
|
485
|
+
"baseHash": "77a07a52a5d20150d5596574e251aba1b767a9cd"
|
|
491
486
|
},
|
|
492
487
|
{
|
|
493
488
|
"type": "derived",
|
|
494
|
-
"file": "src/Libraries/Utilities/Platform.win32.js",
|
|
495
|
-
"baseFile": "packages/react-native/Libraries/Utilities/Platform.
|
|
496
|
-
"baseHash": "
|
|
489
|
+
"file": "src/Libraries/Utilities/Platform.flow.win32.js",
|
|
490
|
+
"baseFile": "packages/react-native/Libraries/Utilities/Platform.flow.js",
|
|
491
|
+
"baseHash": "c0a203e8d15f99ff00edaab6c4a40a49606a99f0"
|
|
497
492
|
},
|
|
498
493
|
{
|
|
499
|
-
"type": "
|
|
500
|
-
"file": "src/Libraries/Utilities/
|
|
501
|
-
"baseFile": "packages/react-native/Libraries/Utilities/
|
|
502
|
-
"baseHash": "
|
|
503
|
-
"issue": 0
|
|
494
|
+
"type": "derived",
|
|
495
|
+
"file": "src/Libraries/Utilities/Platform.win32.js",
|
|
496
|
+
"baseFile": "packages/react-native/Libraries/Utilities/Platform.android.js",
|
|
497
|
+
"baseHash": "a09b2fdd9859584069281df3311ef188a5640b00"
|
|
504
498
|
},
|
|
505
499
|
{
|
|
506
500
|
"type": "copy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0-preview.2",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"build": "rnw-scripts build",
|
|
15
15
|
"bundle": "rnw-scripts prepareBundle && react-native bundle --platform win32 --entry-file ../react-native-win32-tester/js/RNTesterApp.win32.js --bundle-output dist/win32/dev/js/RNTesterApp.bundle --assets-dest dist/win32/dev --sourcemap-output ./dist/win32/dev/js/RNTesterApp.bundle.map",
|
|
16
16
|
"clean": "rnw-scripts clean",
|
|
17
|
-
"flow-check": "flow
|
|
17
|
+
"flow-check": "rnw-scripts flow-check",
|
|
18
18
|
"lint:fix": "rnw-scripts lint:fix",
|
|
19
19
|
"lint": "rnw-scripts lint",
|
|
20
20
|
"run-win32-devmain": "npx @office-iss/rex-win32@0.71.15-devmain.16607.10000 --bundle js/RNTesterApp --component RNTesterApp --basePath ./dist/win32/dev --jsEngine v8 --useDevMain --useDirectDebugger --useFastRefresh",
|
|
@@ -25,82 +25,84 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
|
-
"@jest/create-cache-key-function": "^29.
|
|
29
|
-
"@react-native-community/cli": "
|
|
30
|
-
"@react-native-community/cli-platform-android": "
|
|
31
|
-
"@react-native-community/cli-platform-ios": "
|
|
28
|
+
"@jest/create-cache-key-function": "^29.6.3",
|
|
29
|
+
"@react-native-community/cli": "12.0.0-alpha.17",
|
|
30
|
+
"@react-native-community/cli-platform-android": "12.0.0-alpha.17",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "12.0.0-alpha.17",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "^0.
|
|
34
|
-
"@react-native/codegen": "^0.
|
|
35
|
-
"@react-native/
|
|
36
|
-
"@react-native/
|
|
37
|
-
"@react-native/
|
|
38
|
-
"@react-native/
|
|
33
|
+
"@react-native/assets-registry": "^0.73.1",
|
|
34
|
+
"@react-native/codegen": "^0.73.1",
|
|
35
|
+
"@react-native/community-cli-plugin": "^0.73.7",
|
|
36
|
+
"@react-native/gradle-plugin": "^0.73.2",
|
|
37
|
+
"@react-native/js-polyfills": "^0.73.1",
|
|
38
|
+
"@react-native/metro-config": "^0.73.0",
|
|
39
|
+
"@react-native/normalize-colors": "^0.73.2",
|
|
40
|
+
"@react-native/virtualized-lists": "^0.73.2",
|
|
39
41
|
"abort-controller": "^3.0.0",
|
|
40
42
|
"anser": "^1.4.9",
|
|
43
|
+
"ansi-regex": "^5.0.0",
|
|
41
44
|
"art": "^0.10.0",
|
|
42
|
-
"base64-js": "^1.1
|
|
43
|
-
"deprecated-react-native-prop-types": "4.1
|
|
45
|
+
"base64-js": "^1.5.1",
|
|
46
|
+
"deprecated-react-native-prop-types": "4.2.1",
|
|
44
47
|
"event-target-shim": "^5.0.1",
|
|
45
|
-
"flow-enums-runtime": "^0.0.
|
|
48
|
+
"flow-enums-runtime": "^0.0.6",
|
|
46
49
|
"invariant": "^2.2.4",
|
|
47
|
-
"jest-environment-node": "^29.
|
|
50
|
+
"jest-environment-node": "^29.6.3",
|
|
48
51
|
"jsc-android": "^250231.0.0",
|
|
49
52
|
"memoize-one": "^5.0.0",
|
|
50
|
-
"metro-runtime": "0.
|
|
51
|
-
"metro-source-map": "0.
|
|
53
|
+
"metro-runtime": "0.79.1",
|
|
54
|
+
"metro-source-map": "0.79.1",
|
|
52
55
|
"mkdirp": "^0.5.1",
|
|
53
56
|
"nullthrows": "^1.1.1",
|
|
54
57
|
"pretty-format": "^26.5.2",
|
|
55
58
|
"promise": "^8.3.0",
|
|
56
59
|
"react-clone-referenced-element": "^1.0.1",
|
|
57
|
-
"react-devtools-core": "^4.27.
|
|
58
|
-
"react-refresh": "^0.
|
|
60
|
+
"react-devtools-core": "^4.27.7",
|
|
61
|
+
"react-refresh": "^0.14.0",
|
|
59
62
|
"react-shallow-renderer": "^16.15.0",
|
|
60
63
|
"regenerator-runtime": "^0.13.2",
|
|
61
64
|
"scheduler": "0.24.0-canary-efb381bbf-20230505",
|
|
62
65
|
"stacktrace-parser": "^0.1.10",
|
|
63
|
-
"use-sync-external-store": "^1.0.0",
|
|
64
66
|
"whatwg-fetch": "^3.0.0",
|
|
65
67
|
"ws": "^6.2.2",
|
|
66
68
|
"yargs": "^17.6.2"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
71
|
"@babel/core": "^7.20.0",
|
|
70
|
-
"@babel/eslint-parser": "^7.
|
|
72
|
+
"@babel/eslint-parser": "^7.20.0",
|
|
71
73
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
72
|
-
"@rnw-scripts/eslint-config": "1.
|
|
73
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
74
|
-
"@rnw-scripts/just-task": "2.3.
|
|
74
|
+
"@rnw-scripts/eslint-config": "1.2.3",
|
|
75
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.6",
|
|
76
|
+
"@rnw-scripts/just-task": "2.3.17",
|
|
75
77
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
76
78
|
"@rnx-kit/jest-preset": "^0.1.0",
|
|
77
|
-
"@types/node": "^
|
|
79
|
+
"@types/node": "^18.0.0",
|
|
78
80
|
"@types/prop-types": "15.7.1",
|
|
79
81
|
"@types/react": "^18.0.18",
|
|
80
82
|
"eslint": "^8.19.0",
|
|
81
|
-
"flow-bin": "^0.
|
|
83
|
+
"flow-bin": "^0.215.0",
|
|
82
84
|
"jscodeshift": "^0.14.0",
|
|
83
85
|
"just-scripts": "^1.3.3",
|
|
84
86
|
"prettier": "^2.4.1",
|
|
85
87
|
"react": "18.2.0",
|
|
86
|
-
"react-native": "0.
|
|
87
|
-
"react-native-platform-override": "^1.9.
|
|
88
|
+
"react-native": "0.73.0-rc.3",
|
|
89
|
+
"react-native-platform-override": "^1.9.16",
|
|
88
90
|
"typescript": "^4.9.5"
|
|
89
91
|
},
|
|
90
92
|
"peerDependencies": {
|
|
91
93
|
"react": "18.2.0",
|
|
92
|
-
"react-native": "^0.
|
|
94
|
+
"react-native": "^0.73.0-rc.3"
|
|
93
95
|
},
|
|
94
96
|
"beachball": {
|
|
95
|
-
"defaultNpmTag": "
|
|
97
|
+
"defaultNpmTag": "preview",
|
|
96
98
|
"disallowedChangeTypes": [
|
|
97
99
|
"major",
|
|
98
100
|
"minor",
|
|
99
|
-
"
|
|
101
|
+
"patch"
|
|
100
102
|
]
|
|
101
103
|
},
|
|
102
104
|
"promoteRelease": true,
|
|
103
105
|
"engines": {
|
|
104
|
-
"node": ">=
|
|
106
|
+
"node": ">= 18"
|
|
105
107
|
}
|
|
106
108
|
}
|
|
@@ -9,7 +9,7 @@ export interface IButtonWin32Style extends Omit<RN.TextStyle, ButtonWin32OmitSty
|
|
|
9
9
|
|
|
10
10
|
export interface IButtonWin32Props extends RN.ButtonProps {
|
|
11
11
|
/**
|
|
12
|
-
* Style information which controls the visual
|
|
12
|
+
* Style information which controls the visual appearance of the button.
|
|
13
13
|
*/
|
|
14
14
|
style?: RN.StyleProp<IButtonWin32Style>;
|
|
15
15
|
|
|
@@ -33,7 +33,6 @@ export class ButtonWin32 extends React.Component<IButtonWin32Props, IButtonWin32
|
|
|
33
33
|
onBlur: this._onBlur,
|
|
34
34
|
onMouseEnter: this.props.onMouseEnter,
|
|
35
35
|
onMouseLeave: this.props.onMouseLeave,
|
|
36
|
-
// @ts-ignore
|
|
37
36
|
onTouchStart: this.props.onTouchStart,
|
|
38
37
|
onTouchEnd: this._onTouchEnd,
|
|
39
38
|
testID: this.props.testID,
|
|
@@ -48,7 +47,6 @@ export class ButtonWin32 extends React.Component<IButtonWin32Props, IButtonWin32
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
return (
|
|
51
|
-
// @ts-ignore
|
|
52
50
|
<RN.ViewWin32 {...viewProps}>
|
|
53
51
|
<RN.TextWin32 {...textProps}>{this.props.title}</RN.TextWin32>
|
|
54
52
|
</RN.ViewWin32>
|
|
@@ -193,7 +193,7 @@ interface ITouchableWin32HighlightComponentProps extends ITouchableWin32Highligh
|
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* Example implementation of TouchableHighlight - not meant for use outside these examples
|
|
196
|
-
* The main difference between a
|
|
196
|
+
* The main difference between a full TouchableHighlight implementation and this example is that
|
|
197
197
|
* TouchableHighlight should manipulate the opacity of the wrapped view to display the underlay color.
|
|
198
198
|
* This example merely uses hard coded color values to distinguish between different control states
|
|
199
199
|
*/
|
|
@@ -284,7 +284,7 @@ class TouchableWin32HighlightComponent extends React.Component<ITouchableWin32Hi
|
|
|
284
284
|
* The generated style uses hard-coded color values,
|
|
285
285
|
* though it is trivial to pass these values as props.
|
|
286
286
|
* This is an example of a render style (one that is a
|
|
287
|
-
*
|
|
287
|
+
* function passed on to TouchableWin32 and resolved according
|
|
288
288
|
* to the internal state of TouchableWin32).
|
|
289
289
|
*/
|
|
290
290
|
private readonly _generateStyle = (state: ITouchableWin32State): ViewStyle => {
|
|
@@ -157,7 +157,7 @@ const transitions: ITransitions = {
|
|
|
157
157
|
// (function children) or styles. A keypressed state is equivalent to a normal
|
|
158
158
|
// press state. If either a pointer, mouse, or special key (space/enter) is pressed
|
|
159
159
|
// the touchable considers itself to be in a pressed state. Do note that key presses
|
|
160
|
-
// will not invoke gesture responder
|
|
160
|
+
// will not invoke gesture responder hooks and are not subject to the passed in delays.
|
|
161
161
|
interface IInternalTouchableWin32State extends ITouchableWin32State {
|
|
162
162
|
isKeyPressed: boolean;
|
|
163
163
|
}
|
|
@@ -321,7 +321,7 @@ export interface AccessibilityPropsIOS {
|
|
|
321
321
|
accessibilityViewIsModal?: boolean | undefined;
|
|
322
322
|
|
|
323
323
|
/**
|
|
324
|
-
* When
|
|
324
|
+
* When accessible is true, the system will invoke this function when the user performs the escape gesture (scrub with two fingers).
|
|
325
325
|
* @platform ios
|
|
326
326
|
*/
|
|
327
327
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
@@ -395,19 +395,22 @@ export interface AccessibilityPropsWin32 {
|
|
|
395
395
|
* @platform win32
|
|
396
396
|
*/
|
|
397
397
|
accessibilityPositionInSet?: number;
|
|
398
|
+
'aria-posinset'?: number;
|
|
398
399
|
/**
|
|
399
400
|
* accessibilitySetSize
|
|
400
401
|
* @platform win32
|
|
401
402
|
*/
|
|
402
403
|
accessibilitySetSize?: ?number;
|
|
404
|
+
'aria-setsize'?: number;
|
|
403
405
|
|
|
404
406
|
/**
|
|
405
407
|
* accessibilityDescription provides more detailed information specific to the element (i.e. last edit date, full location for a file)
|
|
406
|
-
* while accessibilityHint provides
|
|
408
|
+
* while accessibilityHint provides information on what will happen when they perform an action.
|
|
407
409
|
* @platform win32
|
|
408
410
|
*
|
|
409
411
|
*/
|
|
410
412
|
accessibilityDescription?: string;
|
|
413
|
+
'aria-description'?: string;
|
|
411
414
|
|
|
412
415
|
/**
|
|
413
416
|
* Tells a person using a screen reader what kind of annotation they
|
|
@@ -432,6 +435,7 @@ export interface AccessibilityPropsWin32 {
|
|
|
432
435
|
* @platform win32
|
|
433
436
|
*/
|
|
434
437
|
accessibilityLevel?: number;
|
|
438
|
+
'aria-level'?: number | undefined;
|
|
435
439
|
|
|
436
440
|
/**
|
|
437
441
|
* Identifies the ItemType property, which is a text string describing the type of the automation element.
|
|
@@ -450,6 +454,7 @@ export interface AccessibilityPropsWin32 {
|
|
|
450
454
|
* @platform win32
|
|
451
455
|
*/
|
|
452
456
|
accessibilityControls?: string | undefined;
|
|
457
|
+
'aria-controls'?: string;
|
|
453
458
|
|
|
454
459
|
/**
|
|
455
460
|
* Windows Accessibility extensions for allowing other DOM elements to label or describe a given element.
|
|
@@ -458,6 +463,7 @@ export interface AccessibilityPropsWin32 {
|
|
|
458
463
|
* @platform win32
|
|
459
464
|
*/
|
|
460
465
|
accessibilityDescribedBy?: string | undefined;
|
|
466
|
+
'aria-describedby'?: string;
|
|
461
467
|
}
|
|
462
468
|
|
|
463
469
|
export type Role =
|
|
@@ -30,7 +30,7 @@ export type GradientColorValueWin32 = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* Creates a color value that renders using a
|
|
33
|
+
* Creates a color value that renders using a gradient brush.
|
|
34
34
|
* This can be used to provide a value to most components that take a standard color value.
|
|
35
35
|
*/
|
|
36
36
|
export declare const ColorGradientWin32: (
|
package/types/experimental.d.ts
CHANGED
|
@@ -38,6 +38,41 @@ export {};
|
|
|
38
38
|
|
|
39
39
|
declare module '.' {
|
|
40
40
|
export interface FlexStyle {
|
|
41
|
+
/**
|
|
42
|
+
* Equivalent to `top`, `bottom`, `right` and `left`
|
|
43
|
+
*/
|
|
44
|
+
inset?: DimensionValue | undefined;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Equivalent to `top`, `bottom`
|
|
48
|
+
*/
|
|
49
|
+
insetBlock?: DimensionValue | undefined;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Equivalent to `bottom`
|
|
53
|
+
*/
|
|
54
|
+
insetBlockEnd?: DimensionValue | undefined;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Equivalent to `top`
|
|
58
|
+
*/
|
|
59
|
+
insetBlockStart?: DimensionValue | undefined;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Equivalent to `right` and `left`
|
|
63
|
+
*/
|
|
64
|
+
insetInline?: DimensionValue | undefined;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Equivalent to `right` or `left`
|
|
68
|
+
*/
|
|
69
|
+
insetInlineEnd?: DimensionValue | undefined;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Equivalent to `right` or `left`
|
|
73
|
+
*/
|
|
74
|
+
insetInlineStart?: DimensionValue | undefined;
|
|
75
|
+
|
|
41
76
|
/**
|
|
42
77
|
* Equivalent to `marginVertical`
|
|
43
78
|
*/
|
|
@@ -98,4 +133,13 @@ declare module '.' {
|
|
|
98
133
|
*/
|
|
99
134
|
paddingInlineStart?: DimensionValue | undefined;
|
|
100
135
|
}
|
|
136
|
+
|
|
137
|
+
export interface ViewProps {
|
|
138
|
+
/**
|
|
139
|
+
* Contols whether this view, and its transitive children, are laid in a way
|
|
140
|
+
* consistent with web browsers ('strict'), or consistent with existing
|
|
141
|
+
* React Native code which may rely on incorrect behavior ('classic').
|
|
142
|
+
*/
|
|
143
|
+
experimental_layoutConformance?: 'strict' | 'classic' | undefined;
|
|
144
|
+
}
|
|
101
145
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
// Mateusz Wit <https://github.com/MateWW>
|
|
52
52
|
// Saad Najmi <https://github.com/saadnajmi>
|
|
53
53
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
54
|
-
// Minimum TypeScript Version: 4.
|
|
54
|
+
// Minimum TypeScript Version: 4.8
|
|
55
55
|
|
|
56
56
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
57
57
|
//
|
|
@@ -103,6 +103,7 @@ export * from '../Libraries/Components/View/View';
|
|
|
103
103
|
export * from '../Libraries/Components/View/ViewAccessibility';
|
|
104
104
|
export * from '../Libraries/Components/View/ViewPropTypes';
|
|
105
105
|
export * from '../Libraries/Components/Button';
|
|
106
|
+
export * from '../Libraries/DevToolsSettings/DevToolsSettingsManager';
|
|
106
107
|
export * from '../Libraries/EventEmitter/NativeEventEmitter';
|
|
107
108
|
export * from '../Libraries/EventEmitter/RCTDeviceEventEmitter';
|
|
108
109
|
export * from '../Libraries/EventEmitter/RCTNativeAppEventEmitter';
|