@office-iss/react-native-win32 0.0.0-canary.283 → 0.0.0-canary.284
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 +1 -1
- package/CHANGELOG.json +40 -1
- package/CHANGELOG.md +20 -8
- package/IntegrationTests/AccessibilityManagerTest.js +17 -12
- package/IntegrationTests/AppEventsTest.js +47 -32
- package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +10 -14
- package/IntegrationTests/ImageCachePolicyTest.js +64 -81
- package/IntegrationTests/ImageSnapshotTest.js +17 -20
- package/IntegrationTests/IntegrationTestHarnessTest.js +34 -52
- package/IntegrationTests/IntegrationTestsApp.js +11 -6
- package/IntegrationTests/LayoutEventsTest.js +1 -1
- package/IntegrationTests/LoggingTestModule.js +2 -1
- package/IntegrationTests/PromiseTest.js +51 -43
- package/IntegrationTests/SimpleSnapshotTest.js +19 -24
- package/IntegrationTests/SyncMethodTest.js +9 -13
- package/IntegrationTests/TimersTest.js +3 -3
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +3 -3
- package/Libraries/Alert/Alert.js +1 -1
- package/Libraries/Alert/Alert.win32.js +1 -1
- package/Libraries/Alert/RCTAlertManager.android.js +1 -1
- package/Libraries/Alert/RCTAlertManager.ios.js +1 -1
- package/Libraries/Animated/AnimatedMock.js +1 -1
- package/Libraries/Animated/AnimatedWeb.js +27 -9
- package/Libraries/Animated/nodes/AnimatedValue.js +35 -13
- package/Libraries/Animated/useAnimatedProps.js +47 -85
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/BatchedBridge/BatchedBridge.js +4 -2
- package/Libraries/BatchedBridge/MessageQueue.js +2 -2
- package/Libraries/BatchedBridge/NativeModules.js +4 -3
- package/Libraries/Blob/Blob.js +4 -4
- package/Libraries/Blob/BlobManager.js +3 -2
- package/Libraries/Blob/BlobRegistry.js +3 -9
- package/Libraries/Blob/File.js +3 -2
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/BugReporting/BugReporting.js +2 -2
- package/Libraries/BugReporting/dumpReactTree.js +2 -2
- package/Libraries/BugReporting/getReactData.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.win32.js +1 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +5 -5
- package/Libraries/Components/Button.js +2 -2
- package/Libraries/Components/Button.win32.js +2 -2
- package/Libraries/Components/Clipboard/Clipboard.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +7 -7
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -2
- package/Libraries/Components/Keyboard/Keyboard.js +9 -9
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +4 -4
- package/Libraries/Components/Pressable/Pressable.js +4 -4
- package/Libraries/Components/Pressable/Pressable.win32.js +4 -4
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +9 -9
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +10 -11
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
- package/Libraries/Components/RefreshControl/RefreshControl.js +9 -9
- package/Libraries/Components/ScrollView/ScrollView.js +32 -26
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +2 -2
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -2
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
- package/Libraries/Components/ScrollView/processDecelerationRate.js +1 -1
- package/Libraries/Components/Sound/SoundManager.js +1 -1
- package/Libraries/Components/StaticRenderer.js +4 -4
- package/Libraries/Components/StatusBar/StatusBar.js +33 -18
- package/Libraries/Components/Switch/Switch.js +6 -6
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +31 -31
- package/Libraries/Components/TextInput/InputAccessoryView.js +2 -2
- package/Libraries/Components/TextInput/TextInput.flow.js +35 -35
- package/Libraries/Components/TextInput/TextInput.js +35 -35
- package/Libraries/Components/TextInput/TextInput.win32.js +35 -35
- package/Libraries/Components/TextInput/TextInputNativeCommands.js +1 -1
- package/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +68 -6
- package/Libraries/Components/Touchable/TouchableBounce.js +5 -5
- package/Libraries/Components/Touchable/TouchableHighlight.js +11 -11
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +14 -14
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +6 -6
- package/Libraries/Components/Touchable/TouchableOpacity.js +6 -6
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
- package/Libraries/Components/UnimplementedViews/UnimplementedView.js +9 -1
- package/Libraries/Components/View/ViewAccessibility.js +2 -2
- package/Libraries/Components/View/ViewAccessibility.win32.js +2 -2
- package/Libraries/Components/View/ViewPropTypes.js +22 -22
- package/Libraries/Components/View/ViewPropTypes.win32.js +22 -22
- package/Libraries/Core/RawEventEmitter.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +3 -5
- package/Libraries/Core/Timers/JSTimers.js +3 -3
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/registerCallableModule.js +1 -1
- package/Libraries/Core/setUpAlert.js +1 -1
- package/Libraries/Core/setUpDeveloperTools.js +0 -2
- package/Libraries/Core/setUpErrorHandling.js +6 -1
- package/Libraries/Core/setUpReactDevTools.js +1 -1
- package/Libraries/Core/setUpTimers.js +35 -56
- package/Libraries/Core/setUpXHR.js +5 -5
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/Events/CustomEvent.js +2 -2
- package/Libraries/Image/AssetRegistry.js +6 -1
- package/Libraries/Image/AssetSourceResolver.js +2 -2
- package/Libraries/Image/ImageProps.js +17 -17
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/ElementProperties.js +4 -3
- package/Libraries/Inspector/Inspector.js +1 -1
- package/Libraries/Inspector/Inspector.win32.js +1 -1
- package/Libraries/Inspector/InspectorOverlay.js +4 -3
- package/Libraries/Inspector/InspectorOverlay.win32.js +3 -3
- package/Libraries/Inspector/InspectorPanel.js +6 -6
- package/Libraries/Inspector/NetworkOverlay.js +6 -5
- package/Libraries/Inspector/PerformanceOverlay.js +2 -1
- package/Libraries/Inspector/resolveBoxStyle.js +2 -2
- package/Libraries/Interaction/InteractionManager.js +3 -2
- package/Libraries/Interaction/PanResponder.js +6 -6
- package/Libraries/Interaction/TouchHistoryMath.js +26 -0
- package/Libraries/JSInspector/NetworkAgent.js +2 -1
- package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
- package/Libraries/Linking/Linking.js +0 -1
- package/Libraries/Lists/FlatList.js +9 -10
- package/Libraries/Lists/SectionList.js +7 -9
- package/Libraries/Lists/SectionListModern.js +6 -6
- package/Libraries/LogBox/Data/LogBoxData.js +14 -14
- package/Libraries/LogBox/Data/LogBoxLog.js +51 -29
- package/Libraries/LogBox/Data/parseLogBoxLog.js +10 -10
- package/Libraries/LogBox/LogBox.js +13 -1
- package/Libraries/LogBox/LogBoxInspectorContainer.js +3 -3
- package/Libraries/LogBox/LogBoxNotificationContainer.js +3 -3
- package/Libraries/LogBox/UI/LogBoxButton.js +4 -4
- package/Libraries/LogBox/UI/LogBoxInspectorBody.js +8 -2
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +50 -31
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +50 -31
- package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSection.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +2 -2
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +2 -2
- package/Libraries/Modal/Modal.js +7 -7
- package/Libraries/Network/XMLHttpRequest.js +1 -1
- package/Libraries/Network/convertRequestBody.js +3 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -4
- package/Libraries/Pressability/Pressability.js +10 -10
- package/Libraries/Pressability/Pressability.win32.js +10 -10
- package/Libraries/Pressability/PressabilityDebug.js +2 -2
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +2 -2
- package/Libraries/Promise.js +2 -2
- package/Libraries/ReactNative/AppContainer.js +2 -2
- package/Libraries/ReactNative/BridgelessUIManager.js +3 -8
- package/Libraries/ReactNative/I18nManager.js +3 -2
- package/Libraries/ReactNative/PaperUIManager.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.win32.js +1 -1
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +2 -2
- package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +2 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +3 -2
- package/Libraries/StyleSheet/Rect.js +2 -2
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.win32.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/private/_TransformStyle.js +18 -18
- package/Libraries/StyleSheet/processBackgroundImage.js +138 -136
- package/Libraries/Text/TextAncestor.js +1 -2
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Types/CodegenTypes.js +2 -1
- package/Libraries/Types/CoreEventTypes.js +40 -40
- package/Libraries/Types/CoreEventTypes.win32.js +40 -40
- package/Libraries/UTFSequence.js +2 -2
- package/Libraries/Utilities/BackHandler.android.js +2 -2
- package/Libraries/Utilities/BackHandler.ios.js +2 -2
- package/Libraries/Utilities/BackHandler.win32.js +2 -2
- package/Libraries/Utilities/HMRClient.js +2 -2
- package/Libraries/Utilities/Platform.android.js +4 -4
- package/Libraries/Utilities/Platform.flow.js +8 -8
- package/Libraries/Utilities/Platform.flow.win32.js +8 -8
- package/Libraries/Utilities/Platform.ios.js +4 -4
- package/Libraries/Utilities/Platform.win32.js +2 -2
- package/Libraries/Utilities/ReactNativeTestTools.js +3 -2
- package/Libraries/Utilities/codegenNativeCommands.js +2 -2
- package/Libraries/Utilities/codegenNativeComponent.js +2 -2
- package/Libraries/Utilities/differ/deepDiffer.js +3 -3
- package/Libraries/Utilities/stringifySafe.js +2 -2
- package/Libraries/Vibration/Vibration.js +1 -1
- package/Libraries/WebSocket/WebSocketEvent.js +1 -1
- package/Libraries/YellowBox/YellowBoxDeprecated.js +4 -3
- package/Libraries/vendor/core/ErrorUtils.js +1 -1
- package/flow/jest.js +14 -14
- package/index.js +16 -13
- package/index.win32.js +16 -13
- package/jest/setup.js +214 -197
- package/overrides.json +26 -26
- package/package.json +16 -16
- package/src/private/featureflags/ReactNativeFeatureFlags.js +11 -30
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -2
- package/src/private/specs/components/ActivityIndicatorViewNativeComponent.js +2 -2
- package/src/private/specs/components/AndroidDrawerLayoutNativeComponent.js +6 -6
- package/src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent.js +2 -2
- package/src/private/specs/components/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
- package/src/private/specs/components/AndroidSwitchNativeComponent.js +4 -4
- package/src/private/specs/components/DebuggingOverlayNativeComponent.js +2 -2
- package/src/private/specs/components/ProgressBarAndroidNativeComponent.js +2 -2
- package/src/private/specs/components/PullToRefreshViewNativeComponent.js +2 -2
- package/src/private/specs/components/RCTInputAccessoryViewNativeComponent.js +2 -2
- package/src/private/specs/components/RCTModalHostViewNativeComponent.js +4 -4
- package/src/private/specs/components/RCTSafeAreaViewNativeComponent.js +2 -2
- package/src/private/specs/components/SwitchNativeComponent.js +4 -4
- package/src/private/specs/components/UnimplementedNativeViewNativeComponent.js +2 -2
- package/src/private/specs/modules/NativeAccessibilityManager.js +2 -2
- package/src/private/specs/modules/NativeActionSheetManager.js +7 -7
- package/src/private/specs/modules/NativeAlertManager.js +2 -2
- package/src/private/specs/modules/NativeAnimatedModule.js +2 -2
- package/src/private/specs/modules/NativeAnimatedTurboModule.js +2 -2
- package/src/private/specs/modules/NativeAppState.js +3 -3
- package/src/private/specs/modules/NativeBlobModule.js +1 -1
- package/src/private/specs/modules/NativeClipboard.js +1 -1
- package/src/private/specs/modules/NativeDeviceInfo.js +8 -8
- package/src/private/specs/modules/NativeDialogManagerAndroid.js +4 -4
- package/src/private/specs/modules/NativeExceptionsManager.js +2 -2
- package/src/private/specs/modules/NativeFantom.js +6 -0
- package/src/private/specs/modules/NativeFrameRateLogger.js +1 -1
- package/src/private/specs/modules/NativeI18nManager.js +2 -2
- package/src/private/specs/modules/NativeImageEditor.js +9 -9
- package/src/private/specs/modules/NativeImageLoaderAndroid.js +1 -1
- package/src/private/specs/modules/NativeImageLoaderIOS.js +1 -1
- package/src/private/specs/modules/NativeImageLoaderWin32.js +1 -1
- package/src/private/specs/modules/NativeImageStoreAndroid.js +1 -1
- package/src/private/specs/modules/NativeImageStoreIOS.js +3 -3
- package/src/private/specs/modules/NativeNetworkingIOS.js +2 -2
- package/src/private/specs/modules/NativePlatformConstantsAndroid.js +4 -4
- package/src/private/specs/modules/NativePlatformConstantsIOS.js +4 -4
- package/src/private/specs/modules/NativePlatformConstantsWin.js +5 -10
- package/src/private/specs/modules/NativePushNotificationManagerIOS.js +7 -7
- package/src/private/specs/modules/NativeSampleTurboModule.js +2 -2
- package/src/private/specs/modules/NativeSettingsManager.js +2 -2
- package/src/private/specs/modules/NativeShareModule.js +3 -3
- package/src/private/specs/modules/NativeSourceCode.js +2 -2
- package/src/private/specs/modules/NativeStatusBarManagerAndroid.js +4 -4
- package/src/private/specs/modules/NativeStatusBarManagerIOS.js +6 -6
- package/src/private/specs/modules/NativeToastAndroid.js +2 -2
- package/src/private/specs/modules/NativeVibration.js +1 -1
- package/src/private/specs/modules/NativeWebSocketModule.js +1 -1
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +2 -2
- package/src/private/webapis/intersectionobserver/{IntersectionObserverManager.js → internals/IntersectionObserverManager.js} +9 -9
- package/src/private/webapis/mutationobserver/MutationObserver.js +2 -2
- package/src/private/webapis/mutationobserver/{MutationObserverManager.js → internals/MutationObserverManager.js} +8 -8
- package/src/private/webapis/performance/EventTiming.js +1 -1
- package/src/private/webapis/performance/Performance.js +3 -3
- package/src/private/webapis/performance/PerformanceObserver.js +2 -2
- package/src/private/webapis/performance/{RawPerformanceEntry.js → internals/RawPerformanceEntry.js} +6 -6
- package/src/private/webapis/performance/{Utilities.js → internals/Utilities.js} +1 -1
- package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.284",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@react-native-community/cli-platform-android": "15.0.0-alpha.2",
|
|
31
31
|
"@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
|
|
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.79.0-nightly-20250123-d1028885e",
|
|
34
|
+
"@react-native/codegen": "0.79.0-nightly-20250123-d1028885e",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.79.0-nightly-20250123-d1028885e",
|
|
36
|
+
"@react-native/gradle-plugin": "0.79.0-nightly-20250123-d1028885e",
|
|
37
|
+
"@react-native/js-polyfills": "0.79.0-nightly-20250123-d1028885e",
|
|
38
|
+
"@react-native/normalize-colors": "0.79.0-nightly-20250123-d1028885e",
|
|
39
|
+
"@react-native/virtualized-lists": "0.79.0-nightly-20250123-d1028885e",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"anser": "^1.4.9",
|
|
42
42
|
"ansi-regex": "^5.0.0",
|
|
@@ -73,30 +73,30 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/core": "^7.25.2",
|
|
75
75
|
"@babel/eslint-parser": "^7.25.1",
|
|
76
|
-
"@react-native/metro-config": "0.
|
|
76
|
+
"@react-native/metro-config": "0.79.0-nightly-20250123-d1028885e",
|
|
77
77
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
78
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
79
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
80
|
-
"@rnw-scripts/just-task": "2.3.
|
|
78
|
+
"@rnw-scripts/eslint-config": "1.2.34",
|
|
79
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.38",
|
|
80
|
+
"@rnw-scripts/just-task": "2.3.51",
|
|
81
81
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
82
82
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
83
83
|
"@types/node": "^18.0.0",
|
|
84
84
|
"@types/prop-types": "15.7.1",
|
|
85
85
|
"@types/react": "^19.0.0",
|
|
86
86
|
"eslint": "^8.19.0",
|
|
87
|
-
"flow-bin": "^0.
|
|
87
|
+
"flow-bin": "^0.259.1",
|
|
88
88
|
"jscodeshift": "^0.14.0",
|
|
89
89
|
"just-scripts": "^1.3.3",
|
|
90
90
|
"prettier": "2.8.8",
|
|
91
91
|
"react": "19.0.0",
|
|
92
|
-
"react-native": "0.
|
|
93
|
-
"react-native-platform-override": "^1.9.
|
|
92
|
+
"react-native": "0.79.0-nightly-20250123-d1028885e",
|
|
93
|
+
"react-native-platform-override": "^1.9.53",
|
|
94
94
|
"typescript": "5.0.4"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"@types/react": "^19.0.0",
|
|
98
98
|
"react": "^19.0.0",
|
|
99
|
-
"react-native": "0.
|
|
99
|
+
"react-native": "0.79.0-nightly-20250123-d1028885e"
|
|
100
100
|
},
|
|
101
101
|
"beachball": {
|
|
102
102
|
"defaultNpmTag": "canary",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<811a054f0ada56d8cc1ed21c6930fc52>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -31,18 +31,14 @@ export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
|
|
|
31
31
|
animatedShouldDebounceQueueFlush: Getter<boolean>,
|
|
32
32
|
animatedShouldUseSingleOp: Getter<boolean>,
|
|
33
33
|
disableInteractionManager: Getter<boolean>,
|
|
34
|
-
disableInteractionManagerInBatchinator: Getter<boolean>,
|
|
35
34
|
enableAccessToHostTreeInFabric: Getter<boolean>,
|
|
36
|
-
enableAnimatedAllowlist: Getter<boolean>,
|
|
37
35
|
enableAnimatedClearImmediateFix: Getter<boolean>,
|
|
38
|
-
enableAnimatedPropsMemo: Getter<boolean>,
|
|
39
36
|
fixVirtualizeListCollapseWindowSize: Getter<boolean>,
|
|
40
37
|
isLayoutAnimationEnabled: Getter<boolean>,
|
|
41
38
|
shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean>,
|
|
42
39
|
shouldUseAnimatedObjectForTransform: Getter<boolean>,
|
|
43
40
|
shouldUseRemoveClippedSubviewsAsDefaultOnIOS: Getter<boolean>,
|
|
44
41
|
shouldUseSetNativePropsInFabric: Getter<boolean>,
|
|
45
|
-
useInsertionEffectsForAnimations: Getter<boolean>,
|
|
46
42
|
useRefsForTextInputState: Getter<boolean>,
|
|
47
43
|
}>;
|
|
48
44
|
|
|
@@ -53,7 +49,6 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
53
49
|
commonTestFlag: Getter<boolean>,
|
|
54
50
|
commonTestFlagWithoutNativeImplementation: Getter<boolean>,
|
|
55
51
|
completeReactInstanceCreationOnBgThreadOnAndroid: Getter<boolean>,
|
|
56
|
-
disableEventLoopOnBridgeless: Getter<boolean>,
|
|
57
52
|
disableMountItemReorderingAndroid: Getter<boolean>,
|
|
58
53
|
enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean>,
|
|
59
54
|
enableBridgelessArchitecture: Getter<boolean>,
|
|
@@ -67,6 +62,7 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
67
62
|
enableGranularShadowTreeStateReconciliation: Getter<boolean>,
|
|
68
63
|
enableIOSViewClipToPaddingBox: Getter<boolean>,
|
|
69
64
|
enableImagePrefetchingAndroid: Getter<boolean>,
|
|
65
|
+
enableJSRuntimeGCOnMemoryPressureOnIOS: Getter<boolean>,
|
|
70
66
|
enableLayoutAnimationsOnAndroid: Getter<boolean>,
|
|
71
67
|
enableLayoutAnimationsOnIOS: Getter<boolean>,
|
|
72
68
|
enableLongTaskAPI: Getter<boolean>,
|
|
@@ -87,6 +83,7 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
87
83
|
loadVectorDrawablesOnImages: Getter<boolean>,
|
|
88
84
|
traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
|
|
89
85
|
useAlwaysAvailableJSErrorHandling: Getter<boolean>,
|
|
86
|
+
useEditTextStockAndroidFocusBehavior: Getter<boolean>,
|
|
90
87
|
useFabricInterop: Getter<boolean>,
|
|
91
88
|
useImmediateExecutorInAndroidBridgeless: Getter<boolean>,
|
|
92
89
|
useNativeViewConfigsInBridgelessMode: Getter<boolean>,
|
|
@@ -118,31 +115,16 @@ export const animatedShouldUseSingleOp: Getter<boolean> = createJavaScriptFlagGe
|
|
|
118
115
|
*/
|
|
119
116
|
export const disableInteractionManager: Getter<boolean> = createJavaScriptFlagGetter('disableInteractionManager', false);
|
|
120
117
|
|
|
121
|
-
/**
|
|
122
|
-
* Skips InteractionManager in `Batchinator` and invokes callbacks synchronously.
|
|
123
|
-
*/
|
|
124
|
-
export const disableInteractionManagerInBatchinator: Getter<boolean> = createJavaScriptFlagGetter('disableInteractionManagerInBatchinator', false);
|
|
125
|
-
|
|
126
118
|
/**
|
|
127
119
|
* Enables access to the host tree in Fabric using DOM-compatible APIs.
|
|
128
120
|
*/
|
|
129
121
|
export const enableAccessToHostTreeInFabric: Getter<boolean> = createJavaScriptFlagGetter('enableAccessToHostTreeInFabric', false);
|
|
130
122
|
|
|
131
|
-
/**
|
|
132
|
-
* Enables Animated to skip non-allowlisted props and styles.
|
|
133
|
-
*/
|
|
134
|
-
export const enableAnimatedAllowlist: Getter<boolean> = createJavaScriptFlagGetter('enableAnimatedAllowlist', true);
|
|
135
|
-
|
|
136
123
|
/**
|
|
137
124
|
* Enables an experimental to use the proper clearIntermediate instead of calling the wrong clearTimeout and canceling another timer.
|
|
138
125
|
*/
|
|
139
126
|
export const enableAnimatedClearImmediateFix: Getter<boolean> = createJavaScriptFlagGetter('enableAnimatedClearImmediateFix', true);
|
|
140
127
|
|
|
141
|
-
/**
|
|
142
|
-
* Enables Animated to analyze props to minimize invalidating `AnimatedProps`.
|
|
143
|
-
*/
|
|
144
|
-
export const enableAnimatedPropsMemo: Getter<boolean> = createJavaScriptFlagGetter('enableAnimatedPropsMemo', true);
|
|
145
|
-
|
|
146
128
|
/**
|
|
147
129
|
* Fixing an edge case where the current window size is not properly calculated with fast scrolling. Window size collapsed to 1 element even if windowSize more than the current amount of elements
|
|
148
130
|
*/
|
|
@@ -173,11 +155,6 @@ export const shouldUseRemoveClippedSubviewsAsDefaultOnIOS: Getter<boolean> = cre
|
|
|
173
155
|
*/
|
|
174
156
|
export const shouldUseSetNativePropsInFabric: Getter<boolean> = createJavaScriptFlagGetter('shouldUseSetNativePropsInFabric', true);
|
|
175
157
|
|
|
176
|
-
/**
|
|
177
|
-
* Changes construction of the animation graph to `useInsertionEffect` instead of `useLayoutEffect`.
|
|
178
|
-
*/
|
|
179
|
-
export const useInsertionEffectsForAnimations: Getter<boolean> = createJavaScriptFlagGetter('useInsertionEffectsForAnimations', true);
|
|
180
|
-
|
|
181
158
|
/**
|
|
182
159
|
* Enable a variant of TextInput that moves some state to refs to avoid unnecessary re-renders
|
|
183
160
|
*/
|
|
@@ -195,10 +172,6 @@ export const commonTestFlagWithoutNativeImplementation: Getter<boolean> = create
|
|
|
195
172
|
* Do not wait for a main-thread dispatch to complete init to start executing work on the JS thread on Android
|
|
196
173
|
*/
|
|
197
174
|
export const completeReactInstanceCreationOnBgThreadOnAndroid: Getter<boolean> = createNativeFlagGetter('completeReactInstanceCreationOnBgThreadOnAndroid', true);
|
|
198
|
-
/**
|
|
199
|
-
* The bridgeless architecture enables the event loop by default. This feature flag allows us to force disabling it in specific instances.
|
|
200
|
-
*/
|
|
201
|
-
export const disableEventLoopOnBridgeless: Getter<boolean> = createNativeFlagGetter('disableEventLoopOnBridgeless', false);
|
|
202
175
|
/**
|
|
203
176
|
* Prevent FabricMountingManager from reordering mountitems, which may lead to invalid state on the UI thread
|
|
204
177
|
*/
|
|
@@ -251,6 +224,10 @@ export const enableIOSViewClipToPaddingBox: Getter<boolean> = createNativeFlagGe
|
|
|
251
224
|
* When enabled, Andoid will build and initiate image prefetch requests on ImageShadowNode::layout
|
|
252
225
|
*/
|
|
253
226
|
export const enableImagePrefetchingAndroid: Getter<boolean> = createNativeFlagGetter('enableImagePrefetchingAndroid', false);
|
|
227
|
+
/**
|
|
228
|
+
* Trigger JS runtime GC on memory pressure event on iOS
|
|
229
|
+
*/
|
|
230
|
+
export const enableJSRuntimeGCOnMemoryPressureOnIOS: Getter<boolean> = createNativeFlagGetter('enableJSRuntimeGCOnMemoryPressureOnIOS', false);
|
|
254
231
|
/**
|
|
255
232
|
* When enabled, LayoutAnimations API will animate state changes on Android.
|
|
256
233
|
*/
|
|
@@ -331,6 +308,10 @@ export const traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean> = creat
|
|
|
331
308
|
* In Bridgeless mode, use the always available javascript error reporting pipeline.
|
|
332
309
|
*/
|
|
333
310
|
export const useAlwaysAvailableJSErrorHandling: Getter<boolean> = createNativeFlagGetter('useAlwaysAvailableJSErrorHandling', false);
|
|
311
|
+
/**
|
|
312
|
+
* If true, focusing in ReactEditText will mainly use stock Android requestFocus() behavior. If false it will use legacy custom focus behavior.
|
|
313
|
+
*/
|
|
314
|
+
export const useEditTextStockAndroidFocusBehavior: Getter<boolean> = createNativeFlagGetter('useEditTextStockAndroidFocusBehavior', true);
|
|
334
315
|
/**
|
|
335
316
|
* Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.
|
|
336
317
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<bcb501bc8f71f02c82a58b898e73d9a0>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -26,7 +26,6 @@ export interface Spec extends TurboModule {
|
|
|
26
26
|
+commonTestFlag?: () => boolean;
|
|
27
27
|
+commonTestFlagWithoutNativeImplementation?: () => boolean;
|
|
28
28
|
+completeReactInstanceCreationOnBgThreadOnAndroid?: () => boolean;
|
|
29
|
-
+disableEventLoopOnBridgeless?: () => boolean;
|
|
30
29
|
+disableMountItemReorderingAndroid?: () => boolean;
|
|
31
30
|
+enableAccumulatedUpdatesInRawPropsAndroid?: () => boolean;
|
|
32
31
|
+enableBridgelessArchitecture?: () => boolean;
|
|
@@ -40,6 +39,7 @@ export interface Spec extends TurboModule {
|
|
|
40
39
|
+enableGranularShadowTreeStateReconciliation?: () => boolean;
|
|
41
40
|
+enableIOSViewClipToPaddingBox?: () => boolean;
|
|
42
41
|
+enableImagePrefetchingAndroid?: () => boolean;
|
|
42
|
+
+enableJSRuntimeGCOnMemoryPressureOnIOS?: () => boolean;
|
|
43
43
|
+enableLayoutAnimationsOnAndroid?: () => boolean;
|
|
44
44
|
+enableLayoutAnimationsOnIOS?: () => boolean;
|
|
45
45
|
+enableLongTaskAPI?: () => boolean;
|
|
@@ -60,6 +60,7 @@ export interface Spec extends TurboModule {
|
|
|
60
60
|
+loadVectorDrawablesOnImages?: () => boolean;
|
|
61
61
|
+traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
|
|
62
62
|
+useAlwaysAvailableJSErrorHandling?: () => boolean;
|
|
63
|
+
+useEditTextStockAndroidFocusBehavior?: () => boolean;
|
|
63
64
|
+useFabricInterop?: () => boolean;
|
|
64
65
|
+useImmediateExecutorInAndroidBridgeless?: () => boolean;
|
|
65
66
|
+useNativeViewConfigsInBridgelessMode?: () => boolean;
|
|
@@ -15,7 +15,7 @@ import type {WithDefault} from '../../../../Libraries/Types/CodegenTypes';
|
|
|
15
15
|
|
|
16
16
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
17
17
|
|
|
18
|
-
type NativeProps = $ReadOnly<{
|
|
18
|
+
type NativeProps = $ReadOnly<{
|
|
19
19
|
...ViewProps,
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -46,7 +46,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
46
46
|
* See https://reactnative.dev/docs/activityindicator#size
|
|
47
47
|
*/
|
|
48
48
|
size?: WithDefault<'small' | 'large', 'small'>,
|
|
49
|
-
|
|
49
|
+
}>;
|
|
50
50
|
|
|
51
51
|
export default (codegenNativeComponent<NativeProps>('ActivityIndicatorView', {
|
|
52
52
|
paperComponentName: 'RCTActivityIndicatorView',
|
|
@@ -22,15 +22,15 @@ import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNative
|
|
|
22
22
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
|
|
25
|
-
type DrawerStateEvent = $ReadOnly<{
|
|
25
|
+
type DrawerStateEvent = $ReadOnly<{
|
|
26
26
|
drawerState: Int32,
|
|
27
|
-
|
|
27
|
+
}>;
|
|
28
28
|
|
|
29
|
-
type DrawerSlideEvent = $ReadOnly<{
|
|
29
|
+
type DrawerSlideEvent = $ReadOnly<{
|
|
30
30
|
offset: Float,
|
|
31
|
-
|
|
31
|
+
}>;
|
|
32
32
|
|
|
33
|
-
type NativeProps = $ReadOnly<{
|
|
33
|
+
type NativeProps = $ReadOnly<{
|
|
34
34
|
...ViewProps,
|
|
35
35
|
/**
|
|
36
36
|
* Determines whether the keyboard gets dismissed in response to a drag.
|
|
@@ -106,7 +106,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
106
106
|
* effect on API 21+.
|
|
107
107
|
*/
|
|
108
108
|
statusBarBackgroundColor?: ?ColorValue,
|
|
109
|
-
|
|
109
|
+
}>;
|
|
110
110
|
|
|
111
111
|
type NativeType = HostComponent<NativeProps>;
|
|
112
112
|
|
|
@@ -13,11 +13,11 @@ import type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNati
|
|
|
13
13
|
|
|
14
14
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
15
15
|
|
|
16
|
-
type NativeProps = $ReadOnly<{
|
|
16
|
+
type NativeProps = $ReadOnly<{
|
|
17
17
|
...ViewProps,
|
|
18
18
|
|
|
19
19
|
removeClippedSubviews?: ?boolean,
|
|
20
|
-
|
|
20
|
+
}>;
|
|
21
21
|
|
|
22
22
|
type NativeType = HostComponent<NativeProps>;
|
|
23
23
|
|
|
@@ -21,7 +21,7 @@ import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNative
|
|
|
21
21
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
22
22
|
import * as React from 'react';
|
|
23
23
|
|
|
24
|
-
type NativeProps = $ReadOnly<{
|
|
24
|
+
type NativeProps = $ReadOnly<{
|
|
25
25
|
...ViewProps,
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -54,7 +54,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
54
54
|
* Whether the view should be indicating an active refresh.
|
|
55
55
|
*/
|
|
56
56
|
refreshing: boolean,
|
|
57
|
-
|
|
57
|
+
}>;
|
|
58
58
|
|
|
59
59
|
type NativeType = HostComponent<NativeProps>;
|
|
60
60
|
|
|
@@ -21,12 +21,12 @@ import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNative
|
|
|
21
21
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
22
22
|
import * as React from 'react';
|
|
23
23
|
|
|
24
|
-
type SwitchChangeEvent = $ReadOnly<{
|
|
24
|
+
type SwitchChangeEvent = $ReadOnly<{
|
|
25
25
|
value: boolean,
|
|
26
26
|
target: Int32,
|
|
27
|
-
|
|
27
|
+
}>;
|
|
28
28
|
|
|
29
|
-
type NativeProps = $ReadOnly<{
|
|
29
|
+
type NativeProps = $ReadOnly<{
|
|
30
30
|
...ViewProps,
|
|
31
31
|
|
|
32
32
|
// Props
|
|
@@ -42,7 +42,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
42
42
|
|
|
43
43
|
// Events
|
|
44
44
|
onChange?: BubblingEventHandler<SwitchChangeEvent>,
|
|
45
|
-
|
|
45
|
+
}>;
|
|
46
46
|
|
|
47
47
|
type NativeType = HostComponent<NativeProps>;
|
|
48
48
|
|
|
@@ -16,9 +16,9 @@ import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNative
|
|
|
16
16
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
17
17
|
import * as React from 'react';
|
|
18
18
|
|
|
19
|
-
type NativeProps = $ReadOnly<{
|
|
19
|
+
type NativeProps = $ReadOnly<{
|
|
20
20
|
...ViewProps,
|
|
21
|
-
|
|
21
|
+
}>;
|
|
22
22
|
export type DebuggingOverlayNativeComponentType = HostComponent<NativeProps>;
|
|
23
23
|
|
|
24
24
|
export type TraceUpdate = {
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
|
|
19
19
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
20
20
|
|
|
21
|
-
type NativeProps = $ReadOnly<{
|
|
21
|
+
type NativeProps = $ReadOnly<{
|
|
22
22
|
...ViewProps,
|
|
23
23
|
|
|
24
24
|
//Props
|
|
@@ -29,7 +29,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
29
29
|
animating?: WithDefault<boolean, true>,
|
|
30
30
|
color?: ?ColorValue,
|
|
31
31
|
testID?: WithDefault<string, ''>,
|
|
32
|
-
|
|
32
|
+
}>;
|
|
33
33
|
|
|
34
34
|
export default (codegenNativeComponent<NativeProps>('AndroidProgressBar', {
|
|
35
35
|
interfaceOnly: true,
|
|
@@ -21,7 +21,7 @@ import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNative
|
|
|
21
21
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
22
22
|
import * as React from 'react';
|
|
23
23
|
|
|
24
|
-
type NativeProps = $ReadOnly<{
|
|
24
|
+
type NativeProps = $ReadOnly<{
|
|
25
25
|
...ViewProps,
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -50,7 +50,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
50
50
|
* Whether the view should be indicating an active refresh.
|
|
51
51
|
*/
|
|
52
52
|
refreshing: boolean,
|
|
53
|
-
|
|
53
|
+
}>;
|
|
54
54
|
|
|
55
55
|
type ComponentType = HostComponent<NativeProps>;
|
|
56
56
|
|
|
@@ -14,10 +14,10 @@ import type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';
|
|
|
14
14
|
|
|
15
15
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
16
16
|
|
|
17
|
-
type NativeProps = $ReadOnly<{
|
|
17
|
+
type NativeProps = $ReadOnly<{
|
|
18
18
|
...ViewProps,
|
|
19
19
|
backgroundColor?: ?ColorValue,
|
|
20
|
-
|
|
20
|
+
}>;
|
|
21
21
|
|
|
22
22
|
export default (codegenNativeComponent<NativeProps>('InputAccessory', {
|
|
23
23
|
interfaceOnly: true,
|
|
@@ -18,11 +18,11 @@ import type {
|
|
|
18
18
|
|
|
19
19
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
20
20
|
|
|
21
|
-
type OrientationChangeEvent = $ReadOnly<{
|
|
21
|
+
type OrientationChangeEvent = $ReadOnly<{
|
|
22
22
|
orientation: 'portrait' | 'landscape',
|
|
23
|
-
|
|
23
|
+
}>;
|
|
24
24
|
|
|
25
|
-
type NativeProps = $ReadOnly<{
|
|
25
|
+
type NativeProps = $ReadOnly<{
|
|
26
26
|
...ViewProps,
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -139,7 +139,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
139
139
|
* The `identifier` is the unique number for identifying Modal components.
|
|
140
140
|
*/
|
|
141
141
|
identifier?: WithDefault<Int32, 0>,
|
|
142
|
-
|
|
142
|
+
}>;
|
|
143
143
|
|
|
144
144
|
export default (codegenNativeComponent<NativeProps>('ModalHostView', {
|
|
145
145
|
interfaceOnly: true,
|
|
@@ -13,11 +13,11 @@ import type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNati
|
|
|
13
13
|
|
|
14
14
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
15
15
|
|
|
16
|
-
type NativeProps = $ReadOnly<{
|
|
16
|
+
type NativeProps = $ReadOnly<{
|
|
17
17
|
...ViewProps,
|
|
18
18
|
|
|
19
19
|
// No props
|
|
20
|
-
|
|
20
|
+
}>;
|
|
21
21
|
|
|
22
22
|
export default (codegenNativeComponent<NativeProps>('SafeAreaView', {
|
|
23
23
|
paperComponentName: 'RCTSafeAreaView',
|
|
@@ -21,12 +21,12 @@ import codegenNativeCommands from '../../../../Libraries/Utilities/codegenNative
|
|
|
21
21
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
22
22
|
import * as React from 'react';
|
|
23
23
|
|
|
24
|
-
type SwitchChangeEvent = $ReadOnly<{
|
|
24
|
+
type SwitchChangeEvent = $ReadOnly<{
|
|
25
25
|
value: boolean,
|
|
26
26
|
target: Int32,
|
|
27
|
-
|
|
27
|
+
}>;
|
|
28
28
|
|
|
29
|
-
type NativeProps = $ReadOnly<{
|
|
29
|
+
type NativeProps = $ReadOnly<{
|
|
30
30
|
...ViewProps,
|
|
31
31
|
|
|
32
32
|
// Props
|
|
@@ -43,7 +43,7 @@ type NativeProps = $ReadOnly<{|
|
|
|
43
43
|
|
|
44
44
|
// Events
|
|
45
45
|
onChange?: ?BubblingEventHandler<SwitchChangeEvent>,
|
|
46
|
-
|
|
46
|
+
}>;
|
|
47
47
|
|
|
48
48
|
type ComponentType = HostComponent<NativeProps>;
|
|
49
49
|
|
|
@@ -14,10 +14,10 @@ import type {WithDefault} from '../../../../Libraries/Types/CodegenTypes';
|
|
|
14
14
|
|
|
15
15
|
import codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';
|
|
16
16
|
|
|
17
|
-
type NativeProps = $ReadOnly<{
|
|
17
|
+
type NativeProps = $ReadOnly<{
|
|
18
18
|
...ViewProps,
|
|
19
19
|
name?: WithDefault<string, ''>,
|
|
20
|
-
|
|
20
|
+
}>;
|
|
21
21
|
|
|
22
22
|
// NOTE: This component is not implemented in paper
|
|
23
23
|
// Do not require this file in paper builds
|
|
@@ -45,7 +45,7 @@ export interface Spec extends TurboModule {
|
|
|
45
45
|
onSuccess: (isScreenReaderEnabled: boolean) => void,
|
|
46
46
|
onError: (error: Object) => void,
|
|
47
47
|
) => void;
|
|
48
|
-
+setAccessibilityContentSizeMultipliers: (JSMultipliers: {
|
|
48
|
+
+setAccessibilityContentSizeMultipliers: (JSMultipliers: {
|
|
49
49
|
+extraSmall?: ?number,
|
|
50
50
|
+small?: ?number,
|
|
51
51
|
+medium?: ?number,
|
|
@@ -58,7 +58,7 @@ export interface Spec extends TurboModule {
|
|
|
58
58
|
+accessibilityExtraLarge?: ?number,
|
|
59
59
|
+accessibilityExtraExtraLarge?: ?number,
|
|
60
60
|
+accessibilityExtraExtraExtraLarge?: ?number,
|
|
61
|
-
|
|
61
|
+
}) => void;
|
|
62
62
|
+setAccessibilityFocus: (reactTag: number) => void;
|
|
63
63
|
+announceForAccessibility: (announcement: string) => void;
|
|
64
64
|
+announceForAccessibilityWithOptions?: (
|
|
@@ -13,9 +13,9 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {};
|
|
17
17
|
+showActionSheetWithOptions: (
|
|
18
|
-
options: {
|
|
18
|
+
options: {
|
|
19
19
|
+title?: ?string,
|
|
20
20
|
+message?: ?string,
|
|
21
21
|
+options: ?Array<string>,
|
|
@@ -27,11 +27,11 @@ export interface Spec extends TurboModule {
|
|
|
27
27
|
+disabledButtonTintColor?: ?number,
|
|
28
28
|
+userInterfaceStyle?: ?string,
|
|
29
29
|
+disabledButtonIndices?: Array<number>,
|
|
30
|
-
|
|
30
|
+
},
|
|
31
31
|
callback: (buttonIndex: number) => void,
|
|
32
32
|
) => void;
|
|
33
33
|
+showShareActionSheetWithOptions: (
|
|
34
|
-
options: {
|
|
34
|
+
options: {
|
|
35
35
|
+message?: ?string,
|
|
36
36
|
+url?: ?string,
|
|
37
37
|
+subject?: ?string,
|
|
@@ -41,13 +41,13 @@ export interface Spec extends TurboModule {
|
|
|
41
41
|
+disabledButtonTintColor?: ?number,
|
|
42
42
|
+excludedActivityTypes?: ?Array<string>,
|
|
43
43
|
+userInterfaceStyle?: ?string,
|
|
44
|
-
|
|
45
|
-
failureCallback: (error: {
|
|
44
|
+
},
|
|
45
|
+
failureCallback: (error: {
|
|
46
46
|
+domain: string,
|
|
47
47
|
+code: string,
|
|
48
48
|
+userInfo?: ?Object,
|
|
49
49
|
+message: string,
|
|
50
|
-
|
|
50
|
+
}) => void,
|
|
51
51
|
successCallback: (completed: boolean, activityType: ?string) => void,
|
|
52
52
|
) => void;
|
|
53
53
|
+dismissActionSheet?: () => void;
|
|
@@ -12,7 +12,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type Args = {
|
|
15
|
+
export type Args = {
|
|
16
16
|
title?: string,
|
|
17
17
|
message?: string,
|
|
18
18
|
buttons?: Array<Object>, // TODO(T67565166): have a better type
|
|
@@ -23,7 +23,7 @@ export type Args = {|
|
|
|
23
23
|
preferredButtonKey?: string,
|
|
24
24
|
keyboardType?: string,
|
|
25
25
|
userInterfaceStyle?: string,
|
|
26
|
-
|
|
26
|
+
};
|
|
27
27
|
|
|
28
28
|
export interface Spec extends TurboModule {
|
|
29
29
|
+alertWithArgs: (
|
|
@@ -17,10 +17,10 @@ type EndResult = {finished: boolean, value?: number, ...};
|
|
|
17
17
|
type EndCallback = (result: EndResult) => void;
|
|
18
18
|
type SaveValueCallback = (value: number) => void;
|
|
19
19
|
|
|
20
|
-
export type EventMapping = {
|
|
20
|
+
export type EventMapping = {
|
|
21
21
|
nativeEventPath: Array<string>,
|
|
22
22
|
animatedValueTag: ?number,
|
|
23
|
-
|
|
23
|
+
};
|
|
24
24
|
|
|
25
25
|
// The config has different keys depending on the type of the Node
|
|
26
26
|
// TODO(T54896888): Make these types strict
|
|
@@ -17,10 +17,10 @@ type EndResult = {finished: boolean, value?: number, ...};
|
|
|
17
17
|
type EndCallback = (result: EndResult) => void;
|
|
18
18
|
type SaveValueCallback = (value: number) => void;
|
|
19
19
|
|
|
20
|
-
export type EventMapping = {
|
|
20
|
+
export type EventMapping = {
|
|
21
21
|
nativeEventPath: Array<string>,
|
|
22
22
|
animatedValueTag: ?number,
|
|
23
|
-
|
|
23
|
+
};
|
|
24
24
|
|
|
25
25
|
// The config has different keys depending on the type of the Node
|
|
26
26
|
// TODO(T54896888): Make these types strict
|
|
@@ -12,11 +12,11 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type AppStateConstants = {
|
|
15
|
+
export type AppStateConstants = {
|
|
16
16
|
initialAppState: string,
|
|
17
|
-
|
|
17
|
+
};
|
|
18
18
|
|
|
19
|
-
export type AppState = {
|
|
19
|
+
export type AppState = {app_state: string};
|
|
20
20
|
|
|
21
21
|
export interface Spec extends TurboModule {
|
|
22
22
|
+getConstants: () => AppStateConstants;
|
|
@@ -12,7 +12,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
12
12
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
|
-
export type Constants = {
|
|
15
|
+
export type Constants = {BLOB_URI_SCHEME: ?string, BLOB_URI_HOST: ?string};
|
|
16
16
|
|
|
17
17
|
export interface Spec extends TurboModule {
|
|
18
18
|
+getConstants: () => Constants;
|
|
@@ -13,7 +13,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
|
13
13
|
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
14
|
|
|
15
15
|
export interface Spec extends TurboModule {
|
|
16
|
-
+getConstants: () => {
|
|
16
|
+
+getConstants: () => {};
|
|
17
17
|
+getString: () => Promise<string>;
|
|
18
18
|
+setString: (content: string) => void;
|
|
19
19
|
}
|