react-native 0.88.0-rc.2 → 0.88.0-rc.4
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/Libraries/Animated/components/AnimatedScrollView.js +2 -2
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -5
- package/Libraries/Components/Button.js +4 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
- package/Libraries/Components/Pressable/Pressable.js +4 -2
- package/Libraries/Components/TextInput/InputAccessoryView.js +8 -6
- package/Libraries/Components/TextInput/TextInput.js +5 -5
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +85 -84
- package/Libraries/Components/View/ViewAccessibility.js +8 -4
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/ImageProps.js +38 -18
- package/Libraries/Modal/Modal.js +4 -2
- package/Libraries/StyleSheet/StyleSheet.js +3 -9
- package/Libraries/StyleSheet/StyleSheet.js.flow +3 -9
- package/Libraries/StyleSheet/StyleSheetTypes.js +12 -9
- package/Libraries/StyleSheet/splitLayoutProps.js +6 -6
- package/Libraries/Text/Text.js +6 -6
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +16 -2
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/gradle/libs.versions.toml +1 -1
- package/package.json +8 -8
- package/scripts/spm/generate-spm-autolinking.js +20 -9
- package/scripts/spm/generate-spm-xcodeproj.js +3 -1
- package/sdks/hermes-engine/version.properties +1 -1
- package/src/react-private-interface.js +4 -0
- package/src/react-private-interface.js.flow +1 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +7 -6
- package/types_generated/Libraries/Components/Button.d.ts +30 -29
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +8 -7
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +5 -4
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +7 -6
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +26 -25
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +23 -22
- package/types_generated/Libraries/Image/ImageProps.d.ts +39 -36
- package/types_generated/Libraries/Modal/Modal.d.ts +4 -3
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +5 -8
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +10 -10
- package/types_generated/src/private/featureflags/ReactNativeFeatureFlags.d.ts +646 -0
- package/types_generated/src/private/featureflags/ReactNativeFeatureFlagsBase.d.ts +24 -0
- package/types_generated/src/private/featureflags/specs/NativeReactNativeFeatureFlags.d.ts +117 -0
- package/types_generated/src/react-private-interface.d.ts +2 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated SignedSource<<3f726257f68b8a5e94033b55e216f5f1>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/src/private/featureflags/ReactNativeFeatureFlagsBase.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { ReactNativeFeatureFlagsJsOnly, ReactNativeFeatureFlagsJsOnlyOverrides } from "./ReactNativeFeatureFlags";
|
|
14
|
+
import NativeReactNativeFeatureFlags from "./specs/NativeReactNativeFeatureFlags";
|
|
15
|
+
export type Getter<T> = () => T;
|
|
16
|
+
export type OverridesFor<T extends {
|
|
17
|
+
readonly [$$Key$$: string]: () => unknown;
|
|
18
|
+
}> = Partial<{ [key in keyof T]: Getter<null | undefined | ReturnType<T[key]>> }>;
|
|
19
|
+
export declare function createJavaScriptFlagGetter<K extends keyof ReactNativeFeatureFlagsJsOnly>(configName: K, defaultValue: ReturnType<ReactNativeFeatureFlagsJsOnly[K]>): Getter<ReturnType<ReactNativeFeatureFlagsJsOnly[K]>>;
|
|
20
|
+
type NativeFeatureFlags = NonNullable<typeof NativeReactNativeFeatureFlags>;
|
|
21
|
+
export declare function createNativeFlagGetter<K extends keyof NativeFeatureFlags>(configName: K, defaultValue: ReturnType<NonNullable<NativeFeatureFlags[K]>>, skipUnavailableNativeModuleError?: boolean): Getter<ReturnType<NonNullable<NativeFeatureFlags[K]>>>;
|
|
22
|
+
export declare function getOverrides(): null | undefined | ReactNativeFeatureFlagsJsOnlyOverrides;
|
|
23
|
+
export declare function setOverrides(newOverrides: ReactNativeFeatureFlagsJsOnlyOverrides): void;
|
|
24
|
+
export declare function dangerouslyResetForTesting(): void;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated SignedSource<<77332752cda558f1020473f04f9bcbb5>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* IMPORTANT: Do NOT modify this file directly.
|
|
15
|
+
*
|
|
16
|
+
* To change the definition of the flags, edit
|
|
17
|
+
* packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js.
|
|
18
|
+
*
|
|
19
|
+
* To regenerate this code, run the following script from the repo root:
|
|
20
|
+
* yarn featureflags --update
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import type { TurboModule } from "../../../../Libraries/TurboModule/RCTExport";
|
|
24
|
+
export interface Spec extends TurboModule {
|
|
25
|
+
readonly commonTestFlag?: (() => boolean) | undefined;
|
|
26
|
+
readonly commonTestFlagWithoutNativeImplementation?: (() => boolean) | undefined;
|
|
27
|
+
readonly cdpInteractionMetricsEnabled?: (() => boolean) | undefined;
|
|
28
|
+
readonly cxxNativeAnimatedEnabled?: (() => boolean) | undefined;
|
|
29
|
+
readonly defaultTextToOverflowHidden?: (() => boolean) | undefined;
|
|
30
|
+
readonly disableEarlyViewCommandExecution?: (() => boolean) | undefined;
|
|
31
|
+
readonly disableImageViewPreallocationAndroid?: (() => boolean) | undefined;
|
|
32
|
+
readonly disableMountItemReorderingAndroid?: (() => boolean) | undefined;
|
|
33
|
+
readonly disableSubviewClippingAndroid?: (() => boolean) | undefined;
|
|
34
|
+
readonly disableTextLayoutManagerCacheAndroid?: (() => boolean) | undefined;
|
|
35
|
+
readonly disableViewPreallocationAndroid?: (() => boolean) | undefined;
|
|
36
|
+
readonly enableAccessibilityOrder?: (() => boolean) | undefined;
|
|
37
|
+
readonly enableAccumulatedUpdatesInRawPropsAndroid?: (() => boolean) | undefined;
|
|
38
|
+
readonly enableAndroidTextMeasurementOptimizations?: (() => boolean) | undefined;
|
|
39
|
+
readonly enableBridgelessArchitecture?: (() => boolean) | undefined;
|
|
40
|
+
readonly enableBufferedCallInvoker?: (() => boolean) | undefined;
|
|
41
|
+
readonly enableCppPropsIteratorSetter?: (() => boolean) | undefined;
|
|
42
|
+
readonly enableCustomFocusSearchOnClippedElementsAndroid?: (() => boolean) | undefined;
|
|
43
|
+
readonly enableDestroyShadowTreeRevisionAsync?: (() => boolean) | undefined;
|
|
44
|
+
readonly enableDoubleMeasurementFixAndroid?: (() => boolean) | undefined;
|
|
45
|
+
readonly enableEagerRootViewAttachment?: (() => boolean) | undefined;
|
|
46
|
+
readonly enableExclusivePropsUpdateAndroid?: (() => boolean) | undefined;
|
|
47
|
+
readonly enableFabricCommitBranching?: (() => boolean) | undefined;
|
|
48
|
+
readonly enableFabricLogs?: (() => boolean) | undefined;
|
|
49
|
+
readonly enableFlexboxAutoMinSizeInStrictMode?: (() => boolean) | undefined;
|
|
50
|
+
readonly enableFontScaleChangesUpdatingLayout?: (() => boolean) | undefined;
|
|
51
|
+
readonly enableIOSCompressedTextFrameAdjustment?: (() => boolean) | undefined;
|
|
52
|
+
readonly enableIOSTextBaselineOffsetPerLine?: (() => boolean) | undefined;
|
|
53
|
+
readonly enableIOSViewClipToPaddingBox?: (() => boolean) | undefined;
|
|
54
|
+
readonly enableImagePrefetchingAndroid?: (() => boolean) | undefined;
|
|
55
|
+
readonly enableImageTransparentTintColor?: (() => boolean) | undefined;
|
|
56
|
+
readonly enableImmediateUpdateModeForContentOffsetChanges?: (() => boolean) | undefined;
|
|
57
|
+
readonly enableImperativeEvents?: (() => boolean) | undefined;
|
|
58
|
+
readonly enableImperativeFocus?: (() => boolean) | undefined;
|
|
59
|
+
readonly enableInteropViewManagerClassLookUpOptimizationIOS?: (() => boolean) | undefined;
|
|
60
|
+
readonly enableIntersectionObserverByDefault?: (() => boolean) | undefined;
|
|
61
|
+
readonly enableKeyEvents?: (() => boolean) | undefined;
|
|
62
|
+
readonly enableLayoutAnimationsOnAndroid?: (() => boolean) | undefined;
|
|
63
|
+
readonly enableLayoutAnimationsOnIOS?: (() => boolean) | undefined;
|
|
64
|
+
readonly enableModuleArgumentNSNullConversionIOS?: (() => boolean) | undefined;
|
|
65
|
+
readonly enableMountingCoordinatorPullModelAndroid?: (() => boolean) | undefined;
|
|
66
|
+
readonly enableMutationObserverByDefault?: (() => boolean) | undefined;
|
|
67
|
+
readonly enableNativeCSSParsing?: (() => boolean) | undefined;
|
|
68
|
+
readonly enablePreparedTextLayout?: (() => boolean) | undefined;
|
|
69
|
+
readonly enablePropsUpdateReconciliationAndroid?: (() => boolean) | undefined;
|
|
70
|
+
readonly enableResizeObserverByDefault?: (() => boolean) | undefined;
|
|
71
|
+
readonly enableSwiftUIBasedFilters?: (() => boolean) | undefined;
|
|
72
|
+
readonly enableViewCulling?: (() => boolean) | undefined;
|
|
73
|
+
readonly enableViewRecycling?: (() => boolean) | undefined;
|
|
74
|
+
readonly enableViewRecyclingForImage?: (() => boolean) | undefined;
|
|
75
|
+
readonly enableViewRecyclingForScrollView?: (() => boolean) | undefined;
|
|
76
|
+
readonly enableViewRecyclingForText?: (() => boolean) | undefined;
|
|
77
|
+
readonly enableViewRecyclingForView?: (() => boolean) | undefined;
|
|
78
|
+
readonly enableVirtualViewContainerStateExperimental?: (() => boolean) | undefined;
|
|
79
|
+
readonly fixDifferentiatorParentTagForUnflattenCase?: (() => boolean) | undefined;
|
|
80
|
+
readonly fixMappingOfEventPrioritiesBetweenFabricAndReact?: (() => boolean) | undefined;
|
|
81
|
+
readonly fixYogaFlexBasisFitContentInMainAxis?: (() => boolean) | undefined;
|
|
82
|
+
readonly fuseboxAssertSingleHostState?: (() => boolean) | undefined;
|
|
83
|
+
readonly fuseboxEnabledRelease?: (() => boolean) | undefined;
|
|
84
|
+
readonly fuseboxFrameRecordingEnabled?: (() => boolean) | undefined;
|
|
85
|
+
readonly fuseboxScreenshotCaptureEnabled?: (() => boolean) | undefined;
|
|
86
|
+
readonly fuseboxWebSocketEventsEnabled?: (() => boolean) | undefined;
|
|
87
|
+
readonly optimizedAnimatedPropUpdates?: (() => boolean) | undefined;
|
|
88
|
+
readonly overrideBySynchronousMountPropsAtMountingAndroid?: (() => boolean) | undefined;
|
|
89
|
+
readonly perfIssuesEnabled?: (() => boolean) | undefined;
|
|
90
|
+
readonly perfMonitorV2Enabled?: (() => boolean) | undefined;
|
|
91
|
+
readonly preparedTextCacheSize?: (() => number) | undefined;
|
|
92
|
+
readonly preventShadowTreeCommitExhaustion?: (() => boolean) | undefined;
|
|
93
|
+
readonly redBoxV2Android?: (() => boolean) | undefined;
|
|
94
|
+
readonly redBoxV2IOS?: (() => boolean) | undefined;
|
|
95
|
+
readonly shouldPressibilityUseW3CPointerEventsForHover?: (() => boolean) | undefined;
|
|
96
|
+
readonly shouldTriggerResponderTransferOnScrollAndroid?: (() => boolean) | undefined;
|
|
97
|
+
readonly skipActivityIdentityAssertionOnHostPause?: (() => boolean) | undefined;
|
|
98
|
+
readonly syncAndroidClipBoundsWithOverflow?: (() => boolean) | undefined;
|
|
99
|
+
readonly traceTurboModulePromiseRejectionsOnAndroid?: (() => boolean) | undefined;
|
|
100
|
+
readonly updateRuntimeShadowNodeReferencesOnCommit?: (() => boolean) | undefined;
|
|
101
|
+
readonly updateRuntimeShadowNodeReferencesOnCommitThread?: (() => boolean) | undefined;
|
|
102
|
+
readonly useAlwaysAvailableJSErrorHandling?: (() => boolean) | undefined;
|
|
103
|
+
readonly useFabricInterop?: (() => boolean) | undefined;
|
|
104
|
+
readonly useNativeViewConfigsInBridgelessMode?: (() => boolean) | undefined;
|
|
105
|
+
readonly useNestedScrollViewAndroid?: (() => boolean) | undefined;
|
|
106
|
+
readonly useSharedAnimatedBackend?: (() => boolean) | undefined;
|
|
107
|
+
readonly useTraitHiddenOnAndroid?: (() => boolean) | undefined;
|
|
108
|
+
readonly useTurboModuleInterop?: (() => boolean) | undefined;
|
|
109
|
+
readonly viewCullingOutsetRatio?: (() => number) | undefined;
|
|
110
|
+
readonly viewTransitionEnabled?: (() => boolean) | undefined;
|
|
111
|
+
readonly viewTransitionUseHardwareBitmapAndroid?: (() => boolean) | undefined;
|
|
112
|
+
readonly virtualViewPrerenderRatio?: (() => number) | undefined;
|
|
113
|
+
}
|
|
114
|
+
declare const NativeReactNativeFeatureFlags: null | undefined | Spec;
|
|
115
|
+
declare const $$NativeReactNativeFeatureFlags: typeof NativeReactNativeFeatureFlags;
|
|
116
|
+
declare type $$NativeReactNativeFeatureFlags = typeof $$NativeReactNativeFeatureFlags;
|
|
117
|
+
export default $$NativeReactNativeFeatureFlags;
|
|
@@ -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<<da47aab453fb7e939bb4d522892273eb>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/src/react-private-interface.js.flow
|
|
@@ -19,6 +19,7 @@ export { default as BatchedBridge } from "../Libraries/BatchedBridge/BatchedBrid
|
|
|
19
19
|
export { default as ExceptionsManager } from "../Libraries/Core/ExceptionsManager";
|
|
20
20
|
export { default as Platform } from "../Libraries/Utilities/Platform";
|
|
21
21
|
export { default as RCTEventEmitter } from "../Libraries/EventEmitter/RCTEventEmitter";
|
|
22
|
+
export * as ReactNativeFeatureFlags from "./private/featureflags/ReactNativeFeatureFlags";
|
|
22
23
|
export * as ReactNativeViewConfigRegistry from "../Libraries/Renderer/shims/ReactNativeViewConfigRegistry";
|
|
23
24
|
export { default as TextInputState } from "../Libraries/Components/TextInput/TextInputState";
|
|
24
25
|
export { default as UIManager } from "../Libraries/ReactNative/UIManager";
|