@office-iss/react-native-win32 0.76.2 → 0.77.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/.eslintignore +1 -1
- package/.flowconfig +5 -1
- package/CHANGELOG.json +164 -53
- package/CHANGELOG.md +74 -28
- package/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +1 -0
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +13 -0
- package/Libraries/Animated/AnimatedEvent.js +1 -1
- package/Libraries/Animated/AnimatedImplementation.js +2 -2
- package/Libraries/Animated/NativeAnimatedAllowlist.js +20 -9
- package/Libraries/Animated/animations/Animation.js +60 -25
- package/Libraries/Animated/animations/DecayAnimation.js +26 -38
- package/Libraries/Animated/animations/SpringAnimation.js +33 -39
- package/Libraries/Animated/animations/TimingAnimation.js +34 -42
- package/Libraries/Animated/components/AnimatedFlatList.js +1 -1
- package/Libraries/Animated/components/AnimatedSectionList.js +3 -1
- package/Libraries/Animated/createAnimatedComponent.js +60 -33
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +1 -1
- package/Libraries/Animated/nodes/AnimatedNode.js +39 -45
- package/Libraries/Animated/nodes/AnimatedObject.js +13 -3
- package/Libraries/Animated/nodes/AnimatedProps.js +96 -46
- package/Libraries/Animated/nodes/AnimatedStyle.js +108 -39
- package/Libraries/Animated/nodes/AnimatedTransform.js +56 -23
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -3
- package/Libraries/Animated/useAnimatedProps.js +41 -35
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +19 -3
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +77 -5
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +82 -5
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +4 -4
- package/Libraries/Components/Button.js +9 -4
- package/Libraries/Components/Button.win32.js +12 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +3 -1
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -0
- package/Libraries/Components/Pressable/Pressable.js +4 -4
- package/Libraries/Components/Pressable/Pressable.win32.js +4 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +13 -7
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +3 -2
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +4 -4
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +4 -4
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +0 -1
- package/Libraries/Components/ScrollView/ScrollView.js +49 -88
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewContext.js +2 -0
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +0 -2
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +8 -9
- package/Libraries/Components/Switch/Switch.js +8 -6
- package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +4 -4
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +6 -4
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +27 -4
- package/Libraries/Components/TextInput/TextInput.flow.js +36 -19
- package/Libraries/Components/TextInput/TextInput.js +37 -13
- package/Libraries/Components/TextInput/TextInput.win32.js +40 -15
- package/Libraries/Components/TextInput/TextInputState.js +11 -13
- package/Libraries/Components/TextInput/TextInputState.win32.js +13 -16
- package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +3 -0
- package/Libraries/Components/Touchable/BoundingDimensions.js +11 -3
- package/Libraries/Components/Touchable/Position.js +7 -2
- package/Libraries/Components/Touchable/Touchable.js +4 -0
- package/Libraries/Components/Touchable/Touchable.win32.js +4 -0
- package/Libraries/Components/Touchable/TouchableBounce.js +6 -2
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -5
- package/Libraries/Components/Touchable/TouchableOpacity.js +6 -5
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +1 -2
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +6 -1
- package/Libraries/Components/View/View.js +4 -4
- package/Libraries/Components/View/View.win32.js +4 -4
- package/Libraries/Components/View/ViewNativeComponent.js +6 -98
- package/Libraries/Components/View/ViewPropTypes.d.ts +7 -0
- package/Libraries/Components/View/ViewPropTypes.js +0 -3
- package/Libraries/Components/View/ViewPropTypes.win32.js +0 -3
- package/Libraries/Components/View/ViewWin32.js +1 -0
- package/Libraries/Core/ExceptionsManager.js +50 -29
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/__mocks__/NativeExceptionsManager.js +0 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -10
- package/Libraries/Core/setUpDeveloperTools.js +1 -5
- package/Libraries/Core/setUpErrorHandling.js +20 -18
- package/Libraries/Core/setUpReactDevTools.js +107 -8
- package/Libraries/Core/setUpSegmentFetcher.js +1 -0
- package/Libraries/Core/setUpTimers.js +21 -18
- package/Libraries/Debugging/DebuggingOverlay.js +4 -5
- package/Libraries/Image/AssetSourceResolver.js +12 -1
- package/Libraries/Image/Image.android.js +1 -5
- package/Libraries/Image/Image.d.ts +20 -29
- package/Libraries/Image/Image.ios.js +0 -2
- package/Libraries/Image/Image.win32.js +0 -2
- package/Libraries/Image/ImageBackground.js +2 -5
- package/Libraries/Image/ImageProps.js +7 -6
- package/Libraries/Image/ImageResizeMode.d.ts +8 -1
- package/Libraries/Image/ImageResizeMode.js +4 -1
- package/Libraries/Image/ImageSource.d.ts +0 -2
- package/Libraries/Image/ImageSource.js +0 -2
- package/Libraries/Image/ImageTypes.flow.js +11 -9
- package/Libraries/Image/ImageUtils.js +6 -3
- package/Libraries/Image/ImageViewNativeComponent.js +5 -3
- package/Libraries/Inspector/Inspector.js +1 -0
- package/Libraries/Inspector/Inspector.win32.js +2 -1
- package/Libraries/Inspector/NetworkOverlay.js +4 -0
- package/Libraries/Inspector/ReactDevToolsOverlay.js +8 -14
- package/Libraries/Inspector/getInspectorDataForViewAtPoint.js +3 -5
- package/Libraries/Interaction/InteractionManager.js +6 -1
- package/Libraries/Interaction/InteractionManagerStub.js +176 -0
- package/Libraries/Interaction/TouchHistoryMath.js +22 -19
- package/Libraries/JSInspector/NetworkAgent.js +1 -1
- package/Libraries/Lists/FlatList.d.ts +1 -2
- package/Libraries/Lists/FlatList.js +2 -2
- package/Libraries/Lists/SectionListModern.js +7 -7
- package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +2 -2
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +3 -3
- package/Libraries/LogBox/LogBox.js +18 -5
- package/Libraries/LogBox/LogBoxInspectorContainer.js +1 -1
- package/Libraries/LogBox/LogBoxNotificationContainer.js +2 -2
- package/Libraries/LogBox/UI/AnsiHighlight.js +26 -17
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +6 -1
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +6 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +1 -1
- package/Libraries/LogBox/UI/LogBoxMessage.js +2 -2
- package/Libraries/Modal/Modal.d.ts +12 -0
- package/Libraries/Modal/Modal.js +31 -4
- package/Libraries/NativeComponent/BaseViewConfig.android.js +72 -1
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +2 -1
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +3 -11
- package/Libraries/NativeComponent/NativeComponentRegistry.js +3 -3
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +0 -1
- package/Libraries/Network/XHRInterceptor.js +63 -14
- package/Libraries/Network/XMLHttpRequest.js +26 -1
- package/Libraries/NewAppScreen/components/HermesBadge.js +1 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +49 -2
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -4
- package/Libraries/Pressability/HoverState.js +2 -0
- package/Libraries/Pressability/HoverState.win32.js +2 -0
- package/Libraries/Pressability/Pressability.js +2 -3
- package/Libraries/Pressability/Pressability.win32.js +2 -3
- package/Libraries/Pressability/usePressability.js +4 -1
- package/Libraries/ReactNative/AppContainer.js +1 -1
- package/Libraries/ReactNative/AppRegistry.js +1 -11
- package/Libraries/ReactNative/DisplayMode.js +1 -1
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +2 -3
- package/Libraries/ReactNative/RendererImplementation.js +18 -17
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +1 -3
- package/Libraries/ReactNative/renderApplication.js +9 -8
- package/Libraries/ReactNative/requireNativeComponent.js +5 -2
- package/Libraries/Renderer/shims/ReactFabric.js +3 -3
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +3 -3
- package/Libraries/Renderer/shims/ReactNativeTypes.js +22 -35
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +5 -6
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/StyleSheet/StyleSheet.js +7 -1
- package/Libraries/StyleSheet/StyleSheet.win32.js +7 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +13 -2
- package/Libraries/StyleSheet/StyleSheetTypes.js +24 -6
- package/Libraries/StyleSheet/processBackgroundImage.js +87 -110
- package/Libraries/StyleSheet/processTransform.js +3 -34
- package/Libraries/Text/Text.js +248 -249
- package/Libraries/Text/Text.win32.js +282 -295
- package/Libraries/Text/TextNativeComponent.js +0 -1
- package/Libraries/TurboModule/TurboModuleRegistry.js +5 -5
- package/Libraries/Types/CoreEventTypes.d.ts +3 -10
- package/Libraries/Types/CoreEventTypes.js +4 -6
- package/Libraries/Types/CoreEventTypes.win32.js +4 -6
- package/Libraries/Utilities/Appearance.js +3 -1
- package/Libraries/Utilities/BackHandler.android.js +6 -18
- package/Libraries/Utilities/BackHandler.d.ts +0 -4
- package/Libraries/Utilities/BackHandler.ios.js +0 -7
- package/Libraries/Utilities/BackHandler.win32.js +6 -18
- package/Libraries/Utilities/FocusManager.win32.js +1 -1
- package/Libraries/Utilities/HMRClient.js +3 -4
- package/Libraries/Utilities/Platform.flow.js +2 -2
- package/Libraries/Utilities/Platform.flow.win32.js +3 -2
- package/Libraries/Utilities/__mocks__/BackHandler.js +3 -8
- package/Libraries/Utilities/codegenNativeComponent.js +1 -1
- package/Libraries/Utilities/useMergeRefs.js +26 -7
- package/Libraries/WebSocket/WebSocketEvent.js +4 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +31 -13
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +6 -5
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/index.js +10 -3
- package/index.win32.js +10 -3
- package/jest/setup.js +36 -1
- package/overrides.json +37 -37
- package/package.json +20 -20
- package/src/private/animated/NativeAnimatedHelper.js +18 -16
- package/src/private/animated/NativeAnimatedHelper.win32.js +18 -15
- package/src/private/animated/useAnimatedPropsMemo.js +348 -0
- package/src/private/components/HScrollViewNativeComponents.js +1 -27
- package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +11 -8
- package/src/private/components/VScrollViewNativeComponents.js +2 -25
- package/src/private/debugging/ReactDevToolsSettingsManager.android.js +20 -0
- package/src/private/debugging/ReactDevToolsSettingsManager.ios.js +30 -0
- package/src/private/debugging/ReactDevToolsSettingsManager.win32.js +20 -0
- package/src/private/{fusebox → debugging}/setUpFuseboxReactDevToolsDispatcher.js +6 -0
- package/src/private/devmenu/DevMenu.d.ts +20 -0
- package/src/private/devmenu/DevMenu.js +31 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +95 -86
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +8 -2
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +17 -19
- package/src/private/fusebox/specs/NativeReactDevToolsRuntimeSettingsModule.js +34 -0
- package/src/private/setup/setUpDOM.js +14 -6
- package/src/private/setup/setUpMutationObserver.js +5 -0
- package/src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -0
- package/src/private/specs/components/RCTModalHostViewNativeComponent.js +8 -0
- package/src/private/specs/modules/NativeAccessibilityInfo.js +9 -0
- package/src/private/specs/modules/NativeAccessibilityInfoWin32.js +9 -0
- package/src/private/specs/modules/NativeAccessibilityManager.js +4 -0
- package/src/private/specs/modules/NativeActionSheetManager.js +2 -0
- package/src/private/specs/modules/NativeAppearance.js +4 -10
- package/src/private/specs/modules/NativeExceptionsManager.js +0 -12
- package/src/private/specs/modules/{NativeDevToolsSettingsManager.js → NativeReactDevToolsSettingsManager.js} +3 -5
- package/src/private/webapis/dom/geometry/DOMRect.js +2 -2
- package/src/private/webapis/dom/geometry/DOMRectReadOnly.js +2 -2
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -3
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +102 -11
- package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +26 -0
- package/src/private/webapis/intersectionobserver/IntersectionObserverManager.js +1 -0
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +1 -0
- package/src/private/webapis/intersectionobserver/specs/__mocks__/NativeIntersectionObserver.js +9 -0
- package/src/private/webapis/performance/EventTiming.js +13 -8
- package/src/private/webapis/performance/Performance.js +66 -73
- package/src/private/webapis/performance/PerformanceEntry.js +2 -5
- package/src/private/webapis/performance/PerformanceObserver.js +65 -164
- package/src/private/webapis/performance/RawPerformanceEntry.js +1 -1
- package/src/private/webapis/performance/UserTiming.js +11 -7
- package/src/private/webapis/performance/Utilities.js +18 -0
- package/src/private/webapis/performance/specs/NativePerformance.js +71 -2
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +267 -0
- package/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +19 -3
- package/src-win/Libraries/Components/View/ViewPropTypes.d.ts +7 -0
- package/types/index.d.ts +1 -1
- package/types/public/ReactNativeTypes.d.ts +4 -8
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.android.js +0 -35
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.d.ts +0 -20
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.ios.js +0 -49
- package/Libraries/DevToolsSettings/DevToolsSettingsManager.win32.js +0 -35
- package/Libraries/DevToolsSettings/NativeDevToolsSettingsManager.js +0 -13
- package/Libraries/ReactNative/ReactFabricInternals.js +0 -17
- package/src/private/components/useSyncOnScroll.js +0 -48
- package/src/private/webapis/performance/specs/NativePerformanceObserver.js +0 -61
- package/src/private/webapis/performance/specs/__mocks__/NativePerformance.js +0 -67
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceObserver.js +0 -127
- package/types/experimental.d.ts +0 -59
- /package/src/private/{fusebox → debugging}/FuseboxSessionObserver.js +0 -0
package/.eslintignore
CHANGED
package/.flowconfig
CHANGED
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
; helloworld
|
|
89
89
|
<PROJECT_ROOT>/packages/helloworld/ios/Pods/
|
|
90
90
|
|
|
91
|
+
; Ignore rn-tester Pods
|
|
92
|
+
<PROJECT_ROOT>/packages/rn-tester/Pods/
|
|
93
|
+
|
|
91
94
|
[untyped]
|
|
92
95
|
.*/node_modules/@react-native-community/cli/.*/.*
|
|
93
96
|
; Should work out how to do this properly
|
|
@@ -136,6 +139,7 @@ suppress_type=$FlowFixMeProps
|
|
|
136
139
|
suppress_type=$FlowFixMeState
|
|
137
140
|
suppress_type=$FlowFixMeEmpty
|
|
138
141
|
|
|
142
|
+
ban_spread_key_props=true
|
|
139
143
|
|
|
140
144
|
sharedmemory.hash_table_pow=21
|
|
141
145
|
|
|
@@ -160,4 +164,4 @@ untyped-import
|
|
|
160
164
|
untyped-type-import
|
|
161
165
|
|
|
162
166
|
[version]
|
|
163
|
-
^0.
|
|
167
|
+
^0.253.0
|
package/CHANGELOG.json
CHANGED
|
@@ -2,133 +2,244 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"version": "0.
|
|
7
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
5
|
+
"date": "Fri, 20 Dec 2024 18:20:31 GMT",
|
|
6
|
+
"version": "0.77.0-preview.1",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.77.0-preview.1",
|
|
8
8
|
"comments": {
|
|
9
|
-
"
|
|
9
|
+
"prerelease": [
|
|
10
10
|
{
|
|
11
|
-
"author": "
|
|
11
|
+
"author": "email not defined",
|
|
12
12
|
"package": "@office-iss/react-native-win32",
|
|
13
|
-
"commit": "
|
|
14
|
-
"comment": "
|
|
13
|
+
"commit": "a9fce025c8ade8cedac7c773d009583c373a47a2",
|
|
14
|
+
"comment": "Promote 0.77 to preview"
|
|
15
15
|
}
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"date": "
|
|
21
|
-
"version": "0.
|
|
22
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
20
|
+
"date": "Wed, 18 Dec 2024 06:22:23 GMT",
|
|
21
|
+
"version": "0.0.0-canary.276",
|
|
22
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.276",
|
|
23
23
|
"comments": {
|
|
24
|
-
"
|
|
24
|
+
"prerelease": [
|
|
25
25
|
{
|
|
26
|
-
"author": "
|
|
26
|
+
"author": "email not defined",
|
|
27
27
|
"package": "@office-iss/react-native-win32",
|
|
28
|
-
"commit": "
|
|
29
|
-
"comment": "integrate
|
|
28
|
+
"commit": "d669d78450c97decf9f9f5acc09e526ddf8dd911",
|
|
29
|
+
"comment": "integrate RN-Nightly 0.77.0-nightly-20241125-4cffff35e"
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"date": "
|
|
36
|
-
"version": "0.
|
|
37
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
35
|
+
"date": "Sat, 14 Dec 2024 06:29:12 GMT",
|
|
36
|
+
"version": "0.0.0-canary.275",
|
|
37
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.275",
|
|
38
38
|
"comments": {
|
|
39
|
-
"
|
|
39
|
+
"prerelease": [
|
|
40
40
|
{
|
|
41
41
|
"author": "tatianakapos@microsoft.com",
|
|
42
42
|
"package": "@office-iss/react-native-win32",
|
|
43
|
-
"commit": "
|
|
44
|
-
"comment": "
|
|
43
|
+
"commit": "13d41421a38fa7ebe4c08a8f421baffebf14dac5",
|
|
44
|
+
"comment": "integrate RN Nightly 0.77.0-nightly-20241118-3986eefed"
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
"date": "
|
|
51
|
-
"version": "0.
|
|
52
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
50
|
+
"date": "Fri, 06 Dec 2024 06:22:27 GMT",
|
|
51
|
+
"version": "0.0.0-canary.274",
|
|
52
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.274",
|
|
53
53
|
"comments": {
|
|
54
54
|
"prerelease": [
|
|
55
55
|
{
|
|
56
|
-
"author": "
|
|
56
|
+
"author": "yajurgrover24@gmail.com",
|
|
57
57
|
"package": "@office-iss/react-native-win32",
|
|
58
|
-
"commit": "
|
|
59
|
-
"comment": "
|
|
58
|
+
"commit": "40c1c59be8c9046213d5eeffae7dfe45caedcb5a",
|
|
59
|
+
"comment": "Integrate 10/31"
|
|
60
60
|
}
|
|
61
61
|
]
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
"date": "
|
|
66
|
-
"version": "0.
|
|
67
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
65
|
+
"date": "Sat, 23 Nov 2024 06:23:15 GMT",
|
|
66
|
+
"version": "0.0.0-canary.273",
|
|
67
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.273",
|
|
68
68
|
"comments": {
|
|
69
69
|
"prerelease": [
|
|
70
70
|
{
|
|
71
|
-
"author": "
|
|
71
|
+
"author": "yajurgrover24@gmail.com",
|
|
72
72
|
"package": "@office-iss/react-native-win32",
|
|
73
|
-
"commit": "
|
|
74
|
-
"comment": "
|
|
73
|
+
"commit": "8be39042bf044cb756904b4750f10cb0725bb36b",
|
|
74
|
+
"comment": "Integrate 10/20"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"date": "Fri, 15 Nov 2024 06:22:29 GMT",
|
|
81
|
+
"version": "0.0.0-canary.272",
|
|
82
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.272",
|
|
83
|
+
"comments": {
|
|
84
|
+
"prerelease": [
|
|
85
|
+
{
|
|
86
|
+
"author": "yajurgrover24@gmail.com",
|
|
87
|
+
"package": "@office-iss/react-native-win32",
|
|
88
|
+
"commit": "9576b188ef25b0ed64643cd9bb3f411e790a1862",
|
|
89
|
+
"comment": "test integrate 10/15"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"date": "Thu, 07 Nov 2024 06:24:18 GMT",
|
|
96
|
+
"version": "0.0.0-canary.271",
|
|
97
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.271",
|
|
98
|
+
"comments": {
|
|
99
|
+
"prerelease": [
|
|
100
|
+
{
|
|
101
|
+
"author": "yajurgrover24@gmail.com",
|
|
102
|
+
"package": "@office-iss/react-native-win32",
|
|
103
|
+
"commit": "346ba4e17efa3d1cf2481f7b998eb4de1ab8f073",
|
|
104
|
+
"comment": "Integrate 10/10"
|
|
75
105
|
}
|
|
76
106
|
]
|
|
77
107
|
}
|
|
78
108
|
},
|
|
79
109
|
{
|
|
80
|
-
"date": "
|
|
81
|
-
"version": "0.
|
|
82
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
110
|
+
"date": "Sat, 02 Nov 2024 05:28:14 GMT",
|
|
111
|
+
"version": "0.0.0-canary.270",
|
|
112
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.270",
|
|
83
113
|
"comments": {
|
|
84
114
|
"prerelease": [
|
|
85
115
|
{
|
|
86
116
|
"author": "tatianakapos@microsoft.com",
|
|
87
117
|
"package": "@office-iss/react-native-win32",
|
|
88
|
-
"commit": "
|
|
89
|
-
"comment": "
|
|
118
|
+
"commit": "15e5afbf41a7b58eb98bc47eb58db530d9daa9ff",
|
|
119
|
+
"comment": "adds default Modal"
|
|
90
120
|
}
|
|
91
121
|
]
|
|
92
122
|
}
|
|
93
123
|
},
|
|
94
124
|
{
|
|
95
|
-
"date": "
|
|
96
|
-
"version": "0.
|
|
97
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
125
|
+
"date": "Wed, 23 Oct 2024 05:31:16 GMT",
|
|
126
|
+
"version": "0.0.0-canary.269",
|
|
127
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.269",
|
|
98
128
|
"comments": {
|
|
99
129
|
"prerelease": [
|
|
100
130
|
{
|
|
101
131
|
"author": "jthysell@microsoft.com",
|
|
102
132
|
"package": "@office-iss/react-native-win32",
|
|
103
|
-
"commit": "
|
|
104
|
-
"comment": "
|
|
133
|
+
"commit": "4d45e818929692b0bd4e3f836c190a94c616587b",
|
|
134
|
+
"comment": "Fix ignore files and update cli timeout"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"date": "Sat, 19 Oct 2024 05:29:45 GMT",
|
|
141
|
+
"version": "0.0.0-canary.268",
|
|
142
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.268",
|
|
143
|
+
"comments": {
|
|
144
|
+
"prerelease": [
|
|
145
|
+
{
|
|
146
|
+
"author": "jthysell@microsoft.com",
|
|
147
|
+
"package": "@office-iss/react-native-win32",
|
|
148
|
+
"commit": "d0c7fa8199238da974905788351a45694fa39e57",
|
|
149
|
+
"comment": "Fix repo linting with prettier"
|
|
105
150
|
},
|
|
106
151
|
{
|
|
107
|
-
"author": "
|
|
152
|
+
"author": "beachball",
|
|
108
153
|
"package": "@office-iss/react-native-win32",
|
|
109
|
-
"
|
|
110
|
-
"
|
|
154
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.30",
|
|
155
|
+
"commit": "not available"
|
|
111
156
|
},
|
|
112
157
|
{
|
|
113
|
-
"author": "
|
|
158
|
+
"author": "beachball",
|
|
159
|
+
"package": "@office-iss/react-native-win32",
|
|
160
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.34",
|
|
161
|
+
"commit": "not available"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"author": "beachball",
|
|
165
|
+
"package": "@office-iss/react-native-win32",
|
|
166
|
+
"comment": "Bump @rnw-scripts/just-task to v2.3.47",
|
|
167
|
+
"commit": "not available"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"author": "beachball",
|
|
114
171
|
"package": "@office-iss/react-native-win32",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
172
|
+
"comment": "Bump react-native-platform-override to v1.9.49",
|
|
173
|
+
"commit": "not available"
|
|
117
174
|
}
|
|
118
175
|
]
|
|
119
176
|
}
|
|
120
177
|
},
|
|
121
178
|
{
|
|
122
|
-
"date": "
|
|
123
|
-
"version": "0.
|
|
124
|
-
"tag": "@office-iss/react-native-win32_v0.
|
|
179
|
+
"date": "Wed, 16 Oct 2024 05:20:54 GMT",
|
|
180
|
+
"version": "0.0.0-canary.267",
|
|
181
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.267",
|
|
125
182
|
"comments": {
|
|
126
183
|
"prerelease": [
|
|
127
184
|
{
|
|
128
185
|
"author": "tatianakapos@microsoft.com",
|
|
129
186
|
"package": "@office-iss/react-native-win32",
|
|
130
|
-
"commit": "
|
|
131
|
-
"comment": "
|
|
187
|
+
"commit": "e265163b8cab921b5643d552775403b45c01bf6f",
|
|
188
|
+
"comment": "integrate rn nightly 0.77.0-nightly-20241001-223e98cc4"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"date": "Thu, 10 Oct 2024 18:14:30 GMT",
|
|
195
|
+
"version": "0.0.0-canary.266",
|
|
196
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.266",
|
|
197
|
+
"comments": {
|
|
198
|
+
"prerelease": [
|
|
199
|
+
{
|
|
200
|
+
"author": "jthysell@microsoft.com",
|
|
201
|
+
"package": "@office-iss/react-native-win32",
|
|
202
|
+
"commit": "61bde52b38ce5f74aa09d68974dcda306023f378",
|
|
203
|
+
"comment": "Update to @react-native-community/cli@15.0.0-alpha.2"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"date": "Mon, 07 Oct 2024 19:54:26 GMT",
|
|
210
|
+
"version": "0.0.0-canary.265",
|
|
211
|
+
"tag": "@office-iss/react-native-win32_v0.0.0-canary.265",
|
|
212
|
+
"comments": {
|
|
213
|
+
"prerelease": [
|
|
214
|
+
{
|
|
215
|
+
"author": "tatianakapos@microsoft.com",
|
|
216
|
+
"package": "@office-iss/react-native-win32",
|
|
217
|
+
"commit": "eb6b345ee2128d56f32c85f1702bb093e0375a1f",
|
|
218
|
+
"comment": "integrate RN nightly 0.77.0-nightly-20240921-1747f57c6"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"author": "beachball",
|
|
222
|
+
"package": "@office-iss/react-native-win32",
|
|
223
|
+
"comment": "Bump @rnw-scripts/eslint-config to v1.2.29",
|
|
224
|
+
"commit": "not available"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"author": "beachball",
|
|
228
|
+
"package": "@office-iss/react-native-win32",
|
|
229
|
+
"comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.33",
|
|
230
|
+
"commit": "not available"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"author": "beachball",
|
|
234
|
+
"package": "@office-iss/react-native-win32",
|
|
235
|
+
"comment": "Bump @rnw-scripts/just-task to v2.3.46",
|
|
236
|
+
"commit": "not available"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"author": "beachball",
|
|
240
|
+
"package": "@office-iss/react-native-win32",
|
|
241
|
+
"comment": "Bump react-native-platform-override to v1.9.48",
|
|
242
|
+
"commit": "not available"
|
|
132
243
|
}
|
|
133
244
|
]
|
|
134
245
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,74 +1,120 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 20 Dec 2024 18:20:31 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.
|
|
7
|
+
## 0.77.0-preview.1
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Fri, 20 Dec 2024 18:20:31 GMT
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Promote 0.77 to preview (email not defined)
|
|
14
14
|
|
|
15
|
-
## 0.
|
|
15
|
+
## 0.0.0-canary.276
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Wed, 18 Dec 2024 06:22:23 GMT
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Changes
|
|
20
20
|
|
|
21
|
-
- integrate
|
|
21
|
+
- integrate RN-Nightly 0.77.0-nightly-20241125-4cffff35e (email not defined)
|
|
22
22
|
|
|
23
|
-
## 0.
|
|
23
|
+
## 0.0.0-canary.275
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Sat, 14 Dec 2024 06:29:12 GMT
|
|
26
26
|
|
|
27
|
-
###
|
|
27
|
+
### Changes
|
|
28
|
+
|
|
29
|
+
- integrate RN Nightly 0.77.0-nightly-20241118-3986eefed (tatianakapos@microsoft.com)
|
|
30
|
+
|
|
31
|
+
## 0.0.0-canary.274
|
|
32
|
+
|
|
33
|
+
Fri, 06 Dec 2024 06:22:27 GMT
|
|
34
|
+
|
|
35
|
+
### Changes
|
|
36
|
+
|
|
37
|
+
- Integrate 10/31 (yajurgrover24@gmail.com)
|
|
38
|
+
|
|
39
|
+
## 0.0.0-canary.273
|
|
40
|
+
|
|
41
|
+
Sat, 23 Nov 2024 06:23:15 GMT
|
|
42
|
+
|
|
43
|
+
### Changes
|
|
44
|
+
|
|
45
|
+
- Integrate 10/20 (yajurgrover24@gmail.com)
|
|
46
|
+
|
|
47
|
+
## 0.0.0-canary.272
|
|
48
|
+
|
|
49
|
+
Fri, 15 Nov 2024 06:22:29 GMT
|
|
50
|
+
|
|
51
|
+
### Changes
|
|
52
|
+
|
|
53
|
+
- test integrate 10/15 (yajurgrover24@gmail.com)
|
|
54
|
+
|
|
55
|
+
## 0.0.0-canary.271
|
|
56
|
+
|
|
57
|
+
Thu, 07 Nov 2024 06:24:18 GMT
|
|
58
|
+
|
|
59
|
+
### Changes
|
|
60
|
+
|
|
61
|
+
- Integrate 10/10 (yajurgrover24@gmail.com)
|
|
62
|
+
|
|
63
|
+
## 0.0.0-canary.270
|
|
64
|
+
|
|
65
|
+
Sat, 02 Nov 2024 05:28:14 GMT
|
|
66
|
+
|
|
67
|
+
### Changes
|
|
28
68
|
|
|
29
|
-
-
|
|
69
|
+
- adds default Modal (tatianakapos@microsoft.com)
|
|
30
70
|
|
|
31
|
-
## 0.
|
|
71
|
+
## 0.0.0-canary.269
|
|
32
72
|
|
|
33
|
-
|
|
73
|
+
Wed, 23 Oct 2024 05:31:16 GMT
|
|
34
74
|
|
|
35
75
|
### Changes
|
|
36
76
|
|
|
37
|
-
-
|
|
77
|
+
- Fix ignore files and update cli timeout (jthysell@microsoft.com)
|
|
38
78
|
|
|
39
|
-
## 0.
|
|
79
|
+
## 0.0.0-canary.268
|
|
40
80
|
|
|
41
|
-
|
|
81
|
+
Sat, 19 Oct 2024 05:29:45 GMT
|
|
42
82
|
|
|
43
83
|
### Changes
|
|
44
84
|
|
|
45
85
|
- Fix repo linting with prettier (jthysell@microsoft.com)
|
|
86
|
+
- Bump @rnw-scripts/eslint-config to v1.2.30
|
|
87
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.34
|
|
88
|
+
- Bump @rnw-scripts/just-task to v2.3.47
|
|
89
|
+
- Bump react-native-platform-override to v1.9.49
|
|
46
90
|
|
|
47
|
-
## 0.
|
|
91
|
+
## 0.0.0-canary.267
|
|
48
92
|
|
|
49
|
-
|
|
93
|
+
Wed, 16 Oct 2024 05:20:54 GMT
|
|
50
94
|
|
|
51
95
|
### Changes
|
|
52
96
|
|
|
53
|
-
- integrate 0.
|
|
97
|
+
- integrate rn nightly 0.77.0-nightly-20241001-223e98cc4 (tatianakapos@microsoft.com)
|
|
54
98
|
|
|
55
|
-
## 0.
|
|
99
|
+
## 0.0.0-canary.266
|
|
56
100
|
|
|
57
|
-
|
|
101
|
+
Thu, 10 Oct 2024 18:14:30 GMT
|
|
58
102
|
|
|
59
103
|
### Changes
|
|
60
104
|
|
|
61
105
|
- Update to @react-native-community/cli@15.0.0-alpha.2 (jthysell@microsoft.com)
|
|
62
|
-
- integrate RN 0.76.0-rc3 (email not defined)
|
|
63
|
-
- integrate 0.76.0-rc.4 (email not defined)
|
|
64
106
|
|
|
65
|
-
## 0.
|
|
107
|
+
## 0.0.0-canary.265
|
|
66
108
|
|
|
67
|
-
Mon,
|
|
109
|
+
Mon, 07 Oct 2024 19:54:26 GMT
|
|
68
110
|
|
|
69
111
|
### Changes
|
|
70
112
|
|
|
71
|
-
-
|
|
113
|
+
- integrate RN nightly 0.77.0-nightly-20240921-1747f57c6 (tatianakapos@microsoft.com)
|
|
114
|
+
- Bump @rnw-scripts/eslint-config to v1.2.29
|
|
115
|
+
- Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.1.33
|
|
116
|
+
- Bump @rnw-scripts/just-task to v2.3.46
|
|
117
|
+
- Bump react-native-platform-override to v1.9.48
|
|
72
118
|
|
|
73
119
|
## 0.0.0-canary.263
|
|
74
120
|
|
|
@@ -22,6 +22,7 @@ export interface ActionSheetIOSOptions {
|
|
|
22
22
|
anchor?: number | undefined;
|
|
23
23
|
tintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
24
24
|
cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
25
|
+
disabledButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
25
26
|
userInterfaceStyle?: 'light' | 'dark' | undefined;
|
|
26
27
|
disabledButtonIndices?: number[] | undefined;
|
|
27
28
|
}
|
|
@@ -49,6 +49,7 @@ const ActionSheetIOS = {
|
|
|
49
49
|
+anchor?: ?number,
|
|
50
50
|
+tintColor?: ColorValue | ProcessedColorValue,
|
|
51
51
|
+cancelButtonTintColor?: ColorValue | ProcessedColorValue,
|
|
52
|
+
+disabledButtonTintColor?: ColorValue | ProcessedColorValue,
|
|
52
53
|
+userInterfaceStyle?: string,
|
|
53
54
|
+disabledButtonIndices?: Array<number>,
|
|
54
55
|
|},
|
|
@@ -64,6 +65,7 @@ const ActionSheetIOS = {
|
|
|
64
65
|
const {
|
|
65
66
|
tintColor,
|
|
66
67
|
cancelButtonTintColor,
|
|
68
|
+
disabledButtonTintColor,
|
|
67
69
|
destructiveButtonIndex,
|
|
68
70
|
...remainingOptions
|
|
69
71
|
} = options;
|
|
@@ -77,6 +79,10 @@ const ActionSheetIOS = {
|
|
|
77
79
|
|
|
78
80
|
const processedTintColor = processColor(tintColor);
|
|
79
81
|
const processedCancelButtonTintColor = processColor(cancelButtonTintColor);
|
|
82
|
+
const processedDisabledButtonTintColor = processColor(
|
|
83
|
+
disabledButtonTintColor,
|
|
84
|
+
);
|
|
85
|
+
|
|
80
86
|
invariant(
|
|
81
87
|
processedTintColor == null || typeof processedTintColor === 'number',
|
|
82
88
|
'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor',
|
|
@@ -86,6 +92,11 @@ const ActionSheetIOS = {
|
|
|
86
92
|
typeof processedCancelButtonTintColor === 'number',
|
|
87
93
|
'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor',
|
|
88
94
|
);
|
|
95
|
+
invariant(
|
|
96
|
+
processedDisabledButtonTintColor == null ||
|
|
97
|
+
typeof processedDisabledButtonTintColor === 'number',
|
|
98
|
+
'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions disabledButtonTintColor',
|
|
99
|
+
);
|
|
89
100
|
RCTActionSheetManager.showActionSheetWithOptions(
|
|
90
101
|
{
|
|
91
102
|
...remainingOptions,
|
|
@@ -93,6 +104,8 @@ const ActionSheetIOS = {
|
|
|
93
104
|
tintColor: processedTintColor,
|
|
94
105
|
// $FlowFixMe[incompatible-call]
|
|
95
106
|
cancelButtonTintColor: processedCancelButtonTintColor,
|
|
107
|
+
// $FlowFixMe[incompatible-call]
|
|
108
|
+
disabledButtonTintColor: processedDisabledButtonTintColor,
|
|
96
109
|
destructiveButtonIndices,
|
|
97
110
|
},
|
|
98
111
|
callback,
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
import type {PlatformConfig} from './AnimatedPlatformConfig';
|
|
14
14
|
|
|
15
|
-
import {findNodeHandle} from '../ReactNative/RendererProxy';
|
|
16
15
|
import NativeAnimatedHelper from '../../src/private/animated/NativeAnimatedHelper';
|
|
16
|
+
import {findNodeHandle} from '../ReactNative/RendererProxy';
|
|
17
17
|
import AnimatedValue from './nodes/AnimatedValue';
|
|
18
18
|
import AnimatedValueXY from './nodes/AnimatedValueXY';
|
|
19
19
|
import invariant from 'invariant';
|
|
@@ -373,7 +373,7 @@ const parallel = function (
|
|
|
373
373
|
const stopTogether = !(config && config.stopTogether === false);
|
|
374
374
|
|
|
375
375
|
const result = {
|
|
376
|
-
start: function (callback?: ?EndCallback) {
|
|
376
|
+
start: function (callback?: ?EndCallback, isLooping?: boolean) {
|
|
377
377
|
if (doneCount === animations.length) {
|
|
378
378
|
callback && callback({finished: true});
|
|
379
379
|
return;
|
|
@@ -397,7 +397,7 @@ const parallel = function (
|
|
|
397
397
|
if (!animation) {
|
|
398
398
|
cb({finished: true});
|
|
399
399
|
} else {
|
|
400
|
-
animation.start(cb);
|
|
400
|
+
animation.start(cb, isLooping);
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
},
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
import type {AnimatedPropsAllowlist} from './nodes/AnimatedProps';
|
|
12
|
+
|
|
11
13
|
import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';
|
|
12
14
|
|
|
13
15
|
/**
|
|
@@ -16,7 +18,7 @@ import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNa
|
|
|
16
18
|
* In general native animated implementation should support any numeric or color property that
|
|
17
19
|
* doesn't need to be updated through the shadow view hierarchy (all non-layout properties).
|
|
18
20
|
*/
|
|
19
|
-
const SUPPORTED_COLOR_STYLES: {[string]:
|
|
21
|
+
const SUPPORTED_COLOR_STYLES: {[string]: true} = {
|
|
20
22
|
backgroundColor: true,
|
|
21
23
|
borderBottomColor: true,
|
|
22
24
|
borderColor: true,
|
|
@@ -29,7 +31,7 @@ const SUPPORTED_COLOR_STYLES: {[string]: boolean} = {
|
|
|
29
31
|
tintColor: true,
|
|
30
32
|
};
|
|
31
33
|
|
|
32
|
-
const SUPPORTED_STYLES: {[string]:
|
|
34
|
+
const SUPPORTED_STYLES: {[string]: true} = {
|
|
33
35
|
...SUPPORTED_COLOR_STYLES,
|
|
34
36
|
borderBottomEndRadius: true,
|
|
35
37
|
borderBottomLeftRadius: true,
|
|
@@ -58,7 +60,7 @@ const SUPPORTED_STYLES: {[string]: boolean} = {
|
|
|
58
60
|
translateY: true,
|
|
59
61
|
};
|
|
60
62
|
|
|
61
|
-
const SUPPORTED_TRANSFORMS: {[string]:
|
|
63
|
+
const SUPPORTED_TRANSFORMS: {[string]: true} = {
|
|
62
64
|
translateX: true,
|
|
63
65
|
translateY: true,
|
|
64
66
|
scale: true,
|
|
@@ -71,10 +73,12 @@ const SUPPORTED_TRANSFORMS: {[string]: boolean} = {
|
|
|
71
73
|
perspective: true,
|
|
72
74
|
skewX: true,
|
|
73
75
|
skewY: true,
|
|
74
|
-
|
|
76
|
+
...(ReactNativeFeatureFlags.shouldUseAnimatedObjectForTransform()
|
|
77
|
+
? {matrix: true}
|
|
78
|
+
: {}),
|
|
75
79
|
};
|
|
76
80
|
|
|
77
|
-
const SUPPORTED_INTERPOLATION_PARAMS: {[string]:
|
|
81
|
+
const SUPPORTED_INTERPOLATION_PARAMS: {[string]: true} = {
|
|
78
82
|
inputRange: true,
|
|
79
83
|
outputRange: true,
|
|
80
84
|
extrapolate: true,
|
|
@@ -82,6 +86,13 @@ const SUPPORTED_INTERPOLATION_PARAMS: {[string]: boolean} = {
|
|
|
82
86
|
extrapolateLeft: true,
|
|
83
87
|
};
|
|
84
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Default allowlist for component props that support native animated values.
|
|
91
|
+
*/
|
|
92
|
+
export default {
|
|
93
|
+
style: SUPPORTED_STYLES,
|
|
94
|
+
} as AnimatedPropsAllowlist;
|
|
95
|
+
|
|
85
96
|
export function allowInterpolationParam(param: string): void {
|
|
86
97
|
SUPPORTED_INTERPOLATION_PARAMS[param] = true;
|
|
87
98
|
}
|
|
@@ -95,17 +106,17 @@ export function allowTransformProp(prop: string): void {
|
|
|
95
106
|
}
|
|
96
107
|
|
|
97
108
|
export function isSupportedColorStyleProp(prop: string): boolean {
|
|
98
|
-
return SUPPORTED_COLOR_STYLES
|
|
109
|
+
return Object.hasOwn(SUPPORTED_COLOR_STYLES, prop);
|
|
99
110
|
}
|
|
100
111
|
|
|
101
112
|
export function isSupportedInterpolationParam(param: string): boolean {
|
|
102
|
-
return SUPPORTED_INTERPOLATION_PARAMS
|
|
113
|
+
return Object.hasOwn(SUPPORTED_INTERPOLATION_PARAMS, param);
|
|
103
114
|
}
|
|
104
115
|
|
|
105
116
|
export function isSupportedStyleProp(prop: string): boolean {
|
|
106
|
-
return SUPPORTED_STYLES
|
|
117
|
+
return Object.hasOwn(SUPPORTED_STYLES, prop);
|
|
107
118
|
}
|
|
108
119
|
|
|
109
120
|
export function isSupportedTransformProp(prop: string): boolean {
|
|
110
|
-
return SUPPORTED_TRANSFORMS
|
|
121
|
+
return Object.hasOwn(SUPPORTED_TRANSFORMS, prop);
|
|
111
122
|
}
|