@office-iss/react-native-win32 0.0.0-canary.259 → 0.0.0-canary.260
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 +16 -1
- package/CHANGELOG.md +12 -4
- package/Libraries/Animated/AnimatedImplementation.js +7 -7
- package/Libraries/Animated/animations/Animation.js +10 -0
- package/Libraries/Animated/animations/TimingAnimation.js +1 -0
- package/Libraries/Animated/components/AnimatedScrollView.js +2 -2
- package/Libraries/Animated/createAnimatedComponent.js +1 -1
- package/Libraries/Animated/useAnimatedProps.js +71 -4
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/URL.js +2 -62
- package/Libraries/Blob/URLSearchParams.js +71 -0
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -1
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +1 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +3 -0
- package/Libraries/Components/ScrollView/ScrollView.js +5 -5
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +3 -3
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +3 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +3 -0
- package/Libraries/Components/TextInput/TextInput.d.ts +32 -2
- package/Libraries/Components/TextInput/TextInput.js +19 -10
- package/Libraries/Components/TextInput/TextInput.win32.js +19 -10
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +11 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +2 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +2 -0
- package/Libraries/Components/View/ViewAccessibility.d.ts +15 -0
- package/Libraries/Components/View/ViewNativeComponent.js +6 -0
- package/Libraries/Components/View/ViewPropTypes.js +14 -0
- package/Libraries/Components/View/ViewPropTypes.win32.js +14 -0
- package/Libraries/Core/InitializeCore.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpErrorHandling.js +7 -1
- package/Libraries/Image/AssetSourceResolver.js +28 -1
- package/Libraries/Image/Image.android.js +9 -14
- package/Libraries/Image/Image.ios.js +11 -22
- package/Libraries/Image/Image.win32.js +10 -21
- package/Libraries/Image/ImageBackground.js +1 -8
- package/Libraries/Image/ImageUtils.js +9 -9
- package/Libraries/Image/ImageViewNativeComponent.js +3 -0
- package/Libraries/Inspector/NetworkOverlay.js +1 -1
- package/Libraries/Lists/FlatList.js +1 -1
- package/Libraries/Lists/SectionList.js +1 -1
- package/Libraries/Lists/SectionListModern.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +30 -4
- package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +4 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +4 -0
- package/Libraries/Network/XMLHttpRequest.js +4 -2
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +1 -1
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +5 -5
- package/Libraries/ReactNative/RendererImplementation.js +24 -2
- package/Libraries/ReactNative/getNativeComponentAttributes.js +8 -0
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.win32.js +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +11 -0
- package/Libraries/StyleSheet/StyleSheetTypes.js +14 -2
- package/Libraries/StyleSheet/processBackgroundImage.js +286 -0
- package/Libraries/Text/Text.js +7 -6
- package/Libraries/Text/Text.win32.js +7 -6
- package/Libraries/Text/TextNativeComponent.js +7 -0
- package/Libraries/Text/TextNativeComponent.win32.js +7 -0
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/flow/jest.js +2 -2
- package/index.js +1 -0
- package/index.win32.js +1 -0
- package/jest/mockModal.js +1 -3
- package/jest/mockScrollView.js +1 -1
- package/jest/renderer.js +2 -2
- package/jest/setup.js +8 -8
- package/overrides.json +12 -12
- package/package.json +13 -13
- package/src/private/{core/components → components}/HScrollViewNativeComponents.js +8 -8
- package/src/private/{core/components → components}/VScrollViewNativeComponents.js +7 -7
- package/src/private/{core/components → components}/useSyncOnScroll.js +2 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +84 -7
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +15 -2
- package/src/private/hooks/DebouncedEffectImplementation.js +148 -0
- package/src/private/hooks/useDebouncedEffect.js +23 -0
- package/{Libraries/Core → src/private/renderer/errorhandling}/ErrorHandlers.js +5 -4
- package/src/private/setup/setUpDOM.js +28 -0
- package/src/private/setup/setUpIntersectionObserver.js +27 -0
- package/src/private/setup/setUpMutationObserver.js +26 -0
- package/src/private/setup/setUpPerformanceObserver.js +64 -0
- package/src/private/specs/modules/NativeDebuggerSessionObserver.js +23 -0
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +6 -4
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserver.js +1 -1
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserverEntry.js +3 -3
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserverManager.js +5 -8
- package/src/private/{specs/modules → webapis/intersectionobserver/specs}/NativeIntersectionObserver.js +2 -2
- package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver/specs}/__mocks__/NativeIntersectionObserver.js +4 -4
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationObserver.js +1 -1
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationObserverManager.js +5 -5
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationRecord.js +4 -6
- package/src/private/{specs/modules → webapis/mutationobserver/specs}/NativeMutationObserver.js +2 -2
- package/{Libraries/MutationObserver → src/private/webapis/mutationobserver/specs}/__mocks__/NativeMutationObserver.js +5 -5
- package/src/private/webapis/performance/{EventCounts.js → EventTiming.js} +65 -3
- package/src/private/webapis/performance/LongTasks.js +39 -0
- package/src/private/webapis/performance/Performance.js +22 -9
- package/src/private/webapis/performance/PerformanceEntry.js +35 -17
- package/src/private/webapis/performance/PerformanceObserver.js +29 -43
- package/src/private/webapis/performance/RawPerformanceEntry.js +19 -1
- package/src/private/webapis/performance/UserTiming.js +17 -12
- package/src/private/webapis/performance/specs/NativePerformanceObserver.js +1 -1
- package/src-win/Libraries/Components/View/ViewAccessibility.d.ts +15 -0
- package/types/experimental.d.ts +10 -2
- package/Libraries/Core/setUpIntersectionObserver.js +0 -16
- package/Libraries/Core/setUpMutationObserver.js +0 -16
- package/Libraries/Core/setUpPerformanceObserver.js +0 -18
- package/Libraries/IntersectionObserver/NativeIntersectionObserver.js +0 -13
- package/Libraries/MutationObserver/NativeMutationObserver.js +0 -13
- package/src/private/core/setUpDOM.js +0 -18
- package/src/private/webapis/performance/PerformanceEventTiming.js +0 -55
- /package/src/private/{core → styles}/composeStyles.js +0 -0
|
@@ -16,6 +16,7 @@ import type {TextProps} from './TextProps';
|
|
|
16
16
|
import {createViewConfig} from '../NativeComponent/ViewConfig';
|
|
17
17
|
import UIManager from '../ReactNative/UIManager';
|
|
18
18
|
import createReactNativeComponentClass from '../Renderer/shims/createReactNativeComponentClass';
|
|
19
|
+
import Platform from '../Utilities/Platform';
|
|
19
20
|
|
|
20
21
|
export type NativeTextProps = $ReadOnly<{
|
|
21
22
|
...TextProps,
|
|
@@ -82,6 +83,12 @@ const textViewConfig = {
|
|
|
82
83
|
textStyle: true,
|
|
83
84
|
tooltip: true,
|
|
84
85
|
// Windows]
|
|
86
|
+
// boxShadow is currently per-component on Android instead of being on BaseViewConfig yet
|
|
87
|
+
...(Platform.OS === 'android' && {
|
|
88
|
+
experimental_boxShadow: {
|
|
89
|
+
process: require('../StyleSheet/processBoxShadow').default,
|
|
90
|
+
},
|
|
91
|
+
}),
|
|
85
92
|
},
|
|
86
93
|
directEventTypes: {
|
|
87
94
|
topTextLayout: {
|
|
@@ -115,7 +115,7 @@ function expectNoConsoleError() {
|
|
|
115
115
|
|
|
116
116
|
async function expectRendersMatchingSnapshot(
|
|
117
117
|
name: string,
|
|
118
|
-
ComponentProvider: () => React.
|
|
118
|
+
ComponentProvider: () => React.MixedElement,
|
|
119
119
|
unmockComponent: () => mixed,
|
|
120
120
|
) {
|
|
121
121
|
let instance;
|
|
@@ -68,7 +68,7 @@ type WebSocketEventDefinitions = {
|
|
|
68
68
|
* See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
|
|
69
69
|
* See https://github.com/websockets/ws
|
|
70
70
|
*/
|
|
71
|
-
class WebSocket extends (EventTarget(...WEBSOCKET_EVENTS):
|
|
71
|
+
class WebSocket extends (EventTarget(...WEBSOCKET_EVENTS): typeof EventTarget) {
|
|
72
72
|
static CONNECTING: number = CONNECTING;
|
|
73
73
|
static OPEN: number = OPEN;
|
|
74
74
|
static CLOSING: number = CLOSING;
|
package/flow/jest.js
CHANGED
|
@@ -251,7 +251,7 @@ type EnzymeMatchersType = {
|
|
|
251
251
|
toContainMatchingElement(selector: string): void,
|
|
252
252
|
toContainMatchingElements(n: number, selector: string): void,
|
|
253
253
|
toContainExactlyOneMatchingElement(selector: string): void,
|
|
254
|
-
toContainReact(element: React
|
|
254
|
+
toContainReact(element: React.MixedElement): void,
|
|
255
255
|
toExist(): void,
|
|
256
256
|
toHaveClassName(className: string): void,
|
|
257
257
|
toHaveHTML(html: string): void,
|
|
@@ -267,7 +267,7 @@ type EnzymeMatchersType = {
|
|
|
267
267
|
toHaveValue(value: any): void,
|
|
268
268
|
toIncludeText(text: string): void,
|
|
269
269
|
toMatchElement(
|
|
270
|
-
element: React
|
|
270
|
+
element: React.MixedElement,
|
|
271
271
|
options?: {|ignoreProps?: boolean, verbose?: boolean|},
|
|
272
272
|
): void,
|
|
273
273
|
toMatchSelector(selector: string): void,
|
package/index.js
CHANGED
|
@@ -60,6 +60,7 @@ import typeof VirtualizedList from './Libraries/Lists/VirtualizedList';
|
|
|
60
60
|
import typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList';
|
|
61
61
|
import typeof LogBox from './Libraries/LogBox/LogBox';
|
|
62
62
|
import typeof Modal from './Libraries/Modal/Modal';
|
|
63
|
+
// $FlowFixMe[invalid-exported-annotation]
|
|
63
64
|
import typeof NativeDialogManagerAndroid from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
|
|
64
65
|
import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
65
66
|
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
package/index.win32.js
CHANGED
|
@@ -60,6 +60,7 @@ import typeof VirtualizedList from './Libraries/Lists/VirtualizedList';
|
|
|
60
60
|
import typeof VirtualizedSectionList from './Libraries/Lists/VirtualizedSectionList';
|
|
61
61
|
import typeof LogBox from './Libraries/LogBox/LogBox';
|
|
62
62
|
import typeof Modal from './Libraries/Modal/Modal';
|
|
63
|
+
// $FlowFixMe[invalid-exported-annotation]
|
|
63
64
|
import typeof NativeDialogManagerAndroid from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
|
|
64
65
|
import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
65
66
|
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
package/jest/mockModal.js
CHANGED
|
@@ -12,13 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
|
-
import typeof Modal from '../Libraries/Modal/Modal';
|
|
16
|
-
|
|
17
15
|
const React = require('react');
|
|
18
16
|
|
|
19
17
|
function mockModal(BaseComponent: $FlowFixMe) {
|
|
20
18
|
class ModalMock extends BaseComponent {
|
|
21
|
-
render(): React.
|
|
19
|
+
render(): React.MixedElement | null {
|
|
22
20
|
if (this.props.visible === false) {
|
|
23
21
|
return null;
|
|
24
22
|
}
|
package/jest/mockScrollView.js
CHANGED
|
@@ -20,7 +20,7 @@ const RCTScrollView: $FlowFixMe = requireNativeComponent('RCTScrollView');
|
|
|
20
20
|
|
|
21
21
|
function mockScrollView(BaseComponent: $FlowFixMe) {
|
|
22
22
|
class ScrollViewMock extends BaseComponent {
|
|
23
|
-
render(): React.
|
|
23
|
+
render(): React.MixedElement {
|
|
24
24
|
return (
|
|
25
25
|
<RCTScrollView {...this.props}>
|
|
26
26
|
{this.props.refreshControl}
|
package/jest/renderer.js
CHANGED
|
@@ -16,7 +16,7 @@ import * as React from 'react';
|
|
|
16
16
|
import TestRenderer from 'react-test-renderer';
|
|
17
17
|
|
|
18
18
|
export async function create(
|
|
19
|
-
Component: React.
|
|
19
|
+
Component: React.MixedElement,
|
|
20
20
|
): Promise<ReactTestRenderer> {
|
|
21
21
|
let component;
|
|
22
22
|
await TestRenderer.act(async () => {
|
|
@@ -33,7 +33,7 @@ export async function unmount(testRenderer: ReactTestRenderer) {
|
|
|
33
33
|
|
|
34
34
|
export async function update(
|
|
35
35
|
testRenderer: ReactTestRenderer,
|
|
36
|
-
element: React.
|
|
36
|
+
element: React.MixedElement,
|
|
37
37
|
) {
|
|
38
38
|
await TestRenderer.act(async () => {
|
|
39
39
|
testRenderer.update(element);
|
package/jest/setup.js
CHANGED
|
@@ -146,17 +146,17 @@ jest
|
|
|
146
146
|
remove: jest.fn(),
|
|
147
147
|
})),
|
|
148
148
|
announceForAccessibility: jest.fn(),
|
|
149
|
-
isAccessibilityServiceEnabled: jest.fn(),
|
|
150
|
-
isBoldTextEnabled: jest.fn(),
|
|
151
|
-
isGrayscaleEnabled: jest.fn(),
|
|
152
|
-
isInvertColorsEnabled: jest.fn(),
|
|
153
|
-
isReduceMotionEnabled: jest.fn(),
|
|
154
|
-
prefersCrossFadeTransitions: jest.fn(),
|
|
155
|
-
isReduceTransparencyEnabled: jest.fn(),
|
|
149
|
+
isAccessibilityServiceEnabled: jest.fn(() => Promise.resolve(false)),
|
|
150
|
+
isBoldTextEnabled: jest.fn(() => Promise.resolve(false)),
|
|
151
|
+
isGrayscaleEnabled: jest.fn(() => Promise.resolve(false)),
|
|
152
|
+
isInvertColorsEnabled: jest.fn(() => Promise.resolve(false)),
|
|
153
|
+
isReduceMotionEnabled: jest.fn(() => Promise.resolve(false)),
|
|
154
|
+
prefersCrossFadeTransitions: jest.fn(() => Promise.resolve(false)),
|
|
155
|
+
isReduceTransparencyEnabled: jest.fn(() => Promise.resolve(false)),
|
|
156
156
|
isScreenReaderEnabled: jest.fn(() => Promise.resolve(false)),
|
|
157
157
|
setAccessibilityFocus: jest.fn(),
|
|
158
158
|
sendAccessibilityEvent: jest.fn(),
|
|
159
|
-
getRecommendedTimeoutMillis: jest.fn(),
|
|
159
|
+
getRecommendedTimeoutMillis: jest.fn(() => Promise.resolve(false)),
|
|
160
160
|
},
|
|
161
161
|
}))
|
|
162
162
|
.mock('../Libraries/Components/Clipboard/Clipboard', () => ({
|
package/overrides.json
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.76.0-nightly-
|
|
10
|
+
"baseVersion": "0.76.0-nightly-20240816-17017d2b8",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "3d94d14740956b3455abfbdff5e043212d04974b"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"type": "derived",
|
|
20
20
|
"file": "src-win/index.win32.js",
|
|
21
21
|
"baseFile": "packages/react-native/index.js",
|
|
22
|
-
"baseHash": "
|
|
22
|
+
"baseHash": "dc1e45b643d33d868da60fa27da2cbda0231b7f3"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"type": "platform",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"type": "derived",
|
|
117
117
|
"file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
|
|
118
118
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
119
|
-
"baseHash": "
|
|
119
|
+
"baseHash": "259941a60002c5a2a4166a39404d099f0472941e"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"type": "patch",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"type": "patch",
|
|
175
175
|
"file": "src-win/Libraries/Components/View/ReactNativeViewAttributes.win32.js",
|
|
176
176
|
"baseFile": "packages/react-native/Libraries/Components/View/ReactNativeViewAttributes.js",
|
|
177
|
-
"baseHash": "
|
|
177
|
+
"baseHash": "4279b8fc936dbb03599892069fb7e3ceeb86b846"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"type": "patch",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"type": "derived",
|
|
187
187
|
"file": "src-win/Libraries/Components/View/ViewAccessibility.d.ts",
|
|
188
188
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts",
|
|
189
|
-
"baseHash": "
|
|
189
|
+
"baseHash": "d97e29f01e57cc2b0de209a03f8584b984cfe190"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"type": "derived",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"type": "patch",
|
|
205
205
|
"file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
206
206
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
207
|
-
"baseHash": "
|
|
207
|
+
"baseHash": "a742b26e4c96fdefb07779e40bc58cd1cc872675",
|
|
208
208
|
"issue": 6240
|
|
209
209
|
},
|
|
210
210
|
{
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"type": "derived",
|
|
246
246
|
"file": "src-win/Libraries/Image/Image.win32.js",
|
|
247
247
|
"baseFile": "packages/react-native/Libraries/Image/Image.ios.js",
|
|
248
|
-
"baseHash": "
|
|
248
|
+
"baseHash": "e5cd104f5060ad354072889937ea92d508a32490",
|
|
249
249
|
"issue": 4320
|
|
250
250
|
},
|
|
251
251
|
{
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
"type": "derived",
|
|
345
345
|
"file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
|
|
346
346
|
"baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
|
|
347
|
-
"baseHash": "
|
|
347
|
+
"baseHash": "91e7e2aacf6c1559247dccad0c581fde64202bf3"
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
"type": "copy",
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
"type": "patch",
|
|
428
428
|
"file": "src-win/Libraries/StyleSheet/StyleSheet.win32.js",
|
|
429
429
|
"baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
|
|
430
|
-
"baseHash": "
|
|
430
|
+
"baseHash": "acf84f21e80cce08afd0a56a2f79690641c7228e"
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
"type": "derived",
|
|
@@ -439,13 +439,13 @@
|
|
|
439
439
|
"type": "derived",
|
|
440
440
|
"file": "src-win/Libraries/Text/Text.win32.js",
|
|
441
441
|
"baseFile": "packages/react-native/Libraries/Text/Text.js",
|
|
442
|
-
"baseHash": "
|
|
442
|
+
"baseHash": "8ad2e56ba09c1b5428d50cfd71972c60502ed2e2"
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
445
|
"type": "derived",
|
|
446
446
|
"file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
|
|
447
447
|
"baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
|
|
448
|
-
"baseHash": "
|
|
448
|
+
"baseHash": "dcb764530f8a6529152d9791597865034e2c36ae",
|
|
449
449
|
"issue": 7074
|
|
450
450
|
},
|
|
451
451
|
{
|
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.260",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
28
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
29
|
-
"@react-native-community/cli": "14.0.0
|
|
30
|
-
"@react-native-community/cli-platform-android": "14.0.0
|
|
31
|
-
"@react-native-community/cli-platform-ios": "14.0.0
|
|
29
|
+
"@react-native-community/cli": "14.0.0",
|
|
30
|
+
"@react-native-community/cli-platform-android": "14.0.0",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "14.0.0",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.76.0-nightly-
|
|
34
|
-
"@react-native/codegen": "0.76.0-nightly-
|
|
35
|
-
"@react-native/community-cli-plugin": "0.76.0-nightly-
|
|
36
|
-
"@react-native/gradle-plugin": "0.76.0-nightly-
|
|
37
|
-
"@react-native/js-polyfills": "0.76.0-nightly-
|
|
38
|
-
"@react-native/normalize-colors": "0.76.0-nightly-
|
|
39
|
-
"@react-native/virtualized-lists": "0.76.0-nightly-
|
|
33
|
+
"@react-native/assets-registry": "0.76.0-nightly-20240816-17017d2b8",
|
|
34
|
+
"@react-native/codegen": "0.76.0-nightly-20240816-17017d2b8",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.76.0-nightly-20240816-17017d2b8",
|
|
36
|
+
"@react-native/gradle-plugin": "0.76.0-nightly-20240816-17017d2b8",
|
|
37
|
+
"@react-native/js-polyfills": "0.76.0-nightly-20240816-17017d2b8",
|
|
38
|
+
"@react-native/normalize-colors": "0.76.0-nightly-20240816-17017d2b8",
|
|
39
|
+
"@react-native/virtualized-lists": "0.76.0-nightly-20240816-17017d2b8",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"anser": "^1.4.9",
|
|
42
42
|
"ansi-regex": "^5.0.0",
|
|
@@ -87,14 +87,14 @@
|
|
|
87
87
|
"just-scripts": "^1.3.3",
|
|
88
88
|
"prettier": "2.8.8",
|
|
89
89
|
"react": "19.0.0-rc-fb9a90fa48-20240614",
|
|
90
|
-
"react-native": "0.76.0-nightly-
|
|
90
|
+
"react-native": "0.76.0-nightly-20240816-17017d2b8",
|
|
91
91
|
"react-native-platform-override": "^1.9.45",
|
|
92
92
|
"typescript": "5.0.4"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"@types/react": "^18.2.6",
|
|
96
96
|
"react": "^19.0.0-rc-fb9a90fa48-20240614",
|
|
97
|
-
"react-native": "0.76.0-nightly-
|
|
97
|
+
"react-native": "0.76.0-nightly-20240816-17017d2b8"
|
|
98
98
|
},
|
|
99
99
|
"beachball": {
|
|
100
100
|
"defaultNpmTag": "canary",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
* @oncall react_native
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type {ScrollViewNativeProps} from '
|
|
13
|
-
import type {ViewProps} from '
|
|
14
|
-
import type {HostComponent} from '
|
|
12
|
+
import type {ScrollViewNativeProps} from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType';
|
|
13
|
+
import type {ViewProps} from '../../../Libraries/Components/View/ViewPropTypes';
|
|
14
|
+
import type {HostComponent} from '../../../Libraries/Renderer/shims/ReactNativeTypes';
|
|
15
15
|
import type {TScrollViewNativeImperativeHandle} from './useSyncOnScroll';
|
|
16
16
|
|
|
17
|
-
import AndroidHorizontalScrollViewNativeComponent from '
|
|
18
|
-
import ScrollContentViewNativeComponent from '
|
|
19
|
-
import ScrollViewNativeComponent from '
|
|
20
|
-
import Platform from '
|
|
21
|
-
import AndroidHorizontalScrollContentViewNativeComponent from '
|
|
17
|
+
import AndroidHorizontalScrollViewNativeComponent from '../../../Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent';
|
|
18
|
+
import ScrollContentViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollContentViewNativeComponent';
|
|
19
|
+
import ScrollViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponent';
|
|
20
|
+
import Platform from '../../../Libraries/Utilities/Platform';
|
|
21
|
+
import AndroidHorizontalScrollContentViewNativeComponent from '../specs/components/AndroidHorizontalScrollContentViewNativeComponent';
|
|
22
22
|
import useSyncOnScroll from './useSyncOnScroll';
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
* @oncall react_native
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type {ScrollViewNativeProps} from '
|
|
13
|
-
import type {ViewProps} from '
|
|
14
|
-
import type {HostComponent} from '
|
|
12
|
+
import type {ScrollViewNativeProps} from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType';
|
|
13
|
+
import type {ViewProps} from '../../../Libraries/Components/View/ViewPropTypes';
|
|
14
|
+
import type {HostComponent} from '../../../Libraries/Renderer/shims/ReactNativeTypes';
|
|
15
15
|
import type {TScrollViewNativeImperativeHandle} from './useSyncOnScroll';
|
|
16
16
|
|
|
17
|
-
import ScrollContentViewNativeComponent from '
|
|
18
|
-
import ScrollViewNativeComponent from '
|
|
19
|
-
import View from '
|
|
20
|
-
import Platform from '
|
|
17
|
+
import ScrollContentViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollContentViewNativeComponent';
|
|
18
|
+
import ScrollViewNativeComponent from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponent';
|
|
19
|
+
import View from '../../../Libraries/Components/View/View';
|
|
20
|
+
import Platform from '../../../Libraries/Utilities/Platform';
|
|
21
21
|
import useSyncOnScroll from './useSyncOnScroll';
|
|
22
22
|
import * as React from 'react';
|
|
23
23
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @oncall react_native
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type {ScrollViewNativeProps} from '
|
|
13
|
-
import type {HostComponent} from '
|
|
12
|
+
import type {ScrollViewNativeProps} from '../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType';
|
|
13
|
+
import type {HostComponent} from '../../../Libraries/Renderer/shims/ReactNativeTypes';
|
|
14
14
|
|
|
15
15
|
import * as React from 'react';
|
|
16
16
|
import {useImperativeHandle, useRef, useState} from 'react';
|
|
@@ -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<<fb7a3dcf7b3e5001e45f808fb4410376>>
|
|
8
8
|
* @flow strict-local
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -31,7 +31,9 @@ export type ReactNativeFeatureFlagsJsOnly = {
|
|
|
31
31
|
animatedShouldUseSingleOp: Getter<boolean>,
|
|
32
32
|
enableAccessToHostTreeInFabric: Getter<boolean>,
|
|
33
33
|
isLayoutAnimationEnabled: Getter<boolean>,
|
|
34
|
+
shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean>,
|
|
34
35
|
shouldUseAnimatedObjectForTransform: Getter<boolean>,
|
|
36
|
+
shouldUseDebouncedEffectsForAnimated: Getter<boolean>,
|
|
35
37
|
shouldUseRemoveClippedSubviewsAsDefaultOnIOS: Getter<boolean>,
|
|
36
38
|
shouldUseSetNativePropsInFabric: Getter<boolean>,
|
|
37
39
|
shouldUseSetNativePropsInNativeAnimationsInFabric: Getter<boolean>,
|
|
@@ -44,19 +46,28 @@ export type ReactNativeFeatureFlagsJsOnlyOverrides = Partial<ReactNativeFeatureF
|
|
|
44
46
|
export type ReactNativeFeatureFlags = {
|
|
45
47
|
...ReactNativeFeatureFlagsJsOnly,
|
|
46
48
|
commonTestFlag: Getter<boolean>,
|
|
47
|
-
allowCollapsableChildren: Getter<boolean>,
|
|
48
49
|
allowRecursiveCommitsWithSynchronousMountOnAndroid: Getter<boolean>,
|
|
49
50
|
batchRenderingUpdatesInEventLoop: Getter<boolean>,
|
|
50
51
|
changeOrderOfMountingInstructionsOnAndroid: Getter<boolean>,
|
|
52
|
+
completeReactInstanceCreationOnBgThreadOnAndroid: Getter<boolean>,
|
|
51
53
|
destroyFabricSurfacesInReactInstanceManager: Getter<boolean>,
|
|
52
54
|
enableAlignItemsBaselineOnFabricIOS: Getter<boolean>,
|
|
55
|
+
enableAndroidMixBlendModeProp: Getter<boolean>,
|
|
56
|
+
enableBackgroundStyleApplicator: Getter<boolean>,
|
|
53
57
|
enableCleanTextInputYogaNode: Getter<boolean>,
|
|
58
|
+
enableEagerRootViewAttachment: Getter<boolean>,
|
|
59
|
+
enableEventEmitterRetentionDuringGesturesOnAndroid: Getter<boolean>,
|
|
60
|
+
enableFabricLogs: Getter<boolean>,
|
|
61
|
+
enableFabricRendererExclusively: Getter<boolean>,
|
|
54
62
|
enableGranularShadowTreeStateReconciliation: Getter<boolean>,
|
|
55
63
|
enableLongTaskAPI: Getter<boolean>,
|
|
56
64
|
enableMicrotasks: Getter<boolean>,
|
|
57
65
|
enablePropsUpdateReconciliationAndroid: Getter<boolean>,
|
|
66
|
+
enableReportEventPaintTime: Getter<boolean>,
|
|
58
67
|
enableSynchronousStateUpdates: Getter<boolean>,
|
|
59
68
|
enableUIConsistency: Getter<boolean>,
|
|
69
|
+
enableViewRecycling: Getter<boolean>,
|
|
70
|
+
excludeYogaFromRawProps: Getter<boolean>,
|
|
60
71
|
fetchImagesInViewPreallocation: Getter<boolean>,
|
|
61
72
|
fixIncorrectScrollViewStateUpdateOnAndroid: Getter<boolean>,
|
|
62
73
|
fixMappingOfEventPrioritiesBetweenFabricAndReact: Getter<boolean>,
|
|
@@ -68,13 +79,17 @@ export type ReactNativeFeatureFlags = {
|
|
|
68
79
|
lazyAnimationCallbacks: Getter<boolean>,
|
|
69
80
|
loadVectorDrawablesOnImages: Getter<boolean>,
|
|
70
81
|
setAndroidLayoutDirection: Getter<boolean>,
|
|
82
|
+
traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
|
|
83
|
+
useFabricInterop: Getter<boolean>,
|
|
71
84
|
useImmediateExecutorInAndroidBridgeless: Getter<boolean>,
|
|
72
85
|
useModernRuntimeScheduler: Getter<boolean>,
|
|
73
86
|
useNativeViewConfigsInBridgelessMode: Getter<boolean>,
|
|
74
87
|
useNewReactImageViewBackgroundDrawing: Getter<boolean>,
|
|
88
|
+
useOptimisedViewPreallocationOnAndroid: Getter<boolean>,
|
|
75
89
|
useRuntimeShadowNodeReferenceUpdate: Getter<boolean>,
|
|
76
90
|
useRuntimeShadowNodeReferenceUpdateOnLayout: Getter<boolean>,
|
|
77
91
|
useStateAlignmentMechanism: Getter<boolean>,
|
|
92
|
+
useTurboModuleInterop: Getter<boolean>,
|
|
78
93
|
}
|
|
79
94
|
|
|
80
95
|
/**
|
|
@@ -102,11 +117,21 @@ export const enableAccessToHostTreeInFabric: Getter<boolean> = createJavaScriptF
|
|
|
102
117
|
*/
|
|
103
118
|
export const isLayoutAnimationEnabled: Getter<boolean> = createJavaScriptFlagGetter('isLayoutAnimationEnabled', true);
|
|
104
119
|
|
|
120
|
+
/**
|
|
121
|
+
* If the animation is within Animated.loop, we do not send state updates to React.
|
|
122
|
+
*/
|
|
123
|
+
export const shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean> = createJavaScriptFlagGetter('shouldSkipStateUpdatesForLoopingAnimations', false);
|
|
124
|
+
|
|
105
125
|
/**
|
|
106
126
|
* Enables use of AnimatedObject for animating transform values.
|
|
107
127
|
*/
|
|
108
128
|
export const shouldUseAnimatedObjectForTransform: Getter<boolean> = createJavaScriptFlagGetter('shouldUseAnimatedObjectForTransform', false);
|
|
109
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Use new `useDebouncedEffects` hook for manging animated props lifecycle.
|
|
132
|
+
*/
|
|
133
|
+
export const shouldUseDebouncedEffectsForAnimated: Getter<boolean> = createJavaScriptFlagGetter('shouldUseDebouncedEffectsForAnimated', false);
|
|
134
|
+
|
|
110
135
|
/**
|
|
111
136
|
* removeClippedSubviews prop will be used as the default in FlatList on iOS to match Android
|
|
112
137
|
*/
|
|
@@ -136,10 +161,6 @@ export const useRefsForTextInputState: Getter<boolean> = createJavaScriptFlagGet
|
|
|
136
161
|
* Common flag for testing. Do NOT modify.
|
|
137
162
|
*/
|
|
138
163
|
export const commonTestFlag: Getter<boolean> = createNativeFlagGetter('commonTestFlag', false);
|
|
139
|
-
/**
|
|
140
|
-
* Enables the differentiator to understand the "collapsableChildren" prop
|
|
141
|
-
*/
|
|
142
|
-
export const allowCollapsableChildren: Getter<boolean> = createNativeFlagGetter('allowCollapsableChildren', true);
|
|
143
164
|
/**
|
|
144
165
|
* Adds support for recursively processing commits that mount synchronously (Android only).
|
|
145
166
|
*/
|
|
@@ -152,6 +173,10 @@ export const batchRenderingUpdatesInEventLoop: Getter<boolean> = createNativeFla
|
|
|
152
173
|
* When enabled, insert of views on Android will be moved from the beginning of the IntBufferBatchMountItem to be after layout updates.
|
|
153
174
|
*/
|
|
154
175
|
export const changeOrderOfMountingInstructionsOnAndroid: Getter<boolean> = createNativeFlagGetter('changeOrderOfMountingInstructionsOnAndroid', false);
|
|
176
|
+
/**
|
|
177
|
+
* Do not wait for a main-thread dispatch to complete init to start executing work on the JS thread on Android
|
|
178
|
+
*/
|
|
179
|
+
export const completeReactInstanceCreationOnBgThreadOnAndroid: Getter<boolean> = createNativeFlagGetter('completeReactInstanceCreationOnBgThreadOnAndroid', false);
|
|
155
180
|
/**
|
|
156
181
|
* When enabled, ReactInstanceManager will clean up Fabric surfaces on destroy().
|
|
157
182
|
*/
|
|
@@ -160,10 +185,34 @@ export const destroyFabricSurfacesInReactInstanceManager: Getter<boolean> = crea
|
|
|
160
185
|
* Kill-switch to turn off support for aling-items:baseline on Fabric iOS.
|
|
161
186
|
*/
|
|
162
187
|
export const enableAlignItemsBaselineOnFabricIOS: Getter<boolean> = createNativeFlagGetter('enableAlignItemsBaselineOnFabricIOS', true);
|
|
188
|
+
/**
|
|
189
|
+
* Enables mix-blend-mode prop on Android.
|
|
190
|
+
*/
|
|
191
|
+
export const enableAndroidMixBlendModeProp: Getter<boolean> = createNativeFlagGetter('enableAndroidMixBlendModeProp', false);
|
|
192
|
+
/**
|
|
193
|
+
* Use BackgroundStyleApplicator in place of other background/border drawing code
|
|
194
|
+
*/
|
|
195
|
+
export const enableBackgroundStyleApplicator: Getter<boolean> = createNativeFlagGetter('enableBackgroundStyleApplicator', true);
|
|
163
196
|
/**
|
|
164
197
|
* Clean yoga node when <TextInput /> does not change.
|
|
165
198
|
*/
|
|
166
199
|
export const enableCleanTextInputYogaNode: Getter<boolean> = createNativeFlagGetter('enableCleanTextInputYogaNode', false);
|
|
200
|
+
/**
|
|
201
|
+
* Feature flag to configure eager attachment of the root view/initialisation of the JS code.
|
|
202
|
+
*/
|
|
203
|
+
export const enableEagerRootViewAttachment: Getter<boolean> = createNativeFlagGetter('enableEagerRootViewAttachment', false);
|
|
204
|
+
/**
|
|
205
|
+
* Enables the retention of EventEmitterWrapper on Android till the touch gesture is over to fix a bug on pressable (#44610)
|
|
206
|
+
*/
|
|
207
|
+
export const enableEventEmitterRetentionDuringGesturesOnAndroid: Getter<boolean> = createNativeFlagGetter('enableEventEmitterRetentionDuringGesturesOnAndroid', false);
|
|
208
|
+
/**
|
|
209
|
+
* This feature flag enables logs for Fabric.
|
|
210
|
+
*/
|
|
211
|
+
export const enableFabricLogs: Getter<boolean> = createNativeFlagGetter('enableFabricLogs', false);
|
|
212
|
+
/**
|
|
213
|
+
* When the app is completely migrated to Fabric, set this flag to true to disable parts of Paper infrastructure that are not needed anymore but consume memory and CPU. Specifically, UIViewOperationQueue and EventDispatcherImpl will no longer work as they will not subscribe to ReactChoreographer for updates.
|
|
214
|
+
*/
|
|
215
|
+
export const enableFabricRendererExclusively: Getter<boolean> = createNativeFlagGetter('enableFabricRendererExclusively', false);
|
|
167
216
|
/**
|
|
168
217
|
* When enabled, the renderer would only fail commits when they propagate state and the last commit that updated state changed before committing.
|
|
169
218
|
*/
|
|
@@ -180,6 +229,10 @@ export const enableMicrotasks: Getter<boolean> = createNativeFlagGetter('enableM
|
|
|
180
229
|
* When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node.
|
|
181
230
|
*/
|
|
182
231
|
export const enablePropsUpdateReconciliationAndroid: Getter<boolean> = createNativeFlagGetter('enablePropsUpdateReconciliationAndroid', false);
|
|
232
|
+
/**
|
|
233
|
+
* Report paint time inside the Event Timing API implementation (PerformanceObserver).
|
|
234
|
+
*/
|
|
235
|
+
export const enableReportEventPaintTime: Getter<boolean> = createNativeFlagGetter('enableReportEventPaintTime', false);
|
|
183
236
|
/**
|
|
184
237
|
* Dispatches state updates synchronously in Fabric (e.g.: updates the scroll position in the shadow tree synchronously from the main thread).
|
|
185
238
|
*/
|
|
@@ -188,6 +241,14 @@ export const enableSynchronousStateUpdates: Getter<boolean> = createNativeFlagGe
|
|
|
188
241
|
* Ensures that JavaScript always has a consistent view of the state of the UI (e.g.: commits done in other threads are not immediately propagated to JS during its execution).
|
|
189
242
|
*/
|
|
190
243
|
export const enableUIConsistency: Getter<boolean> = createNativeFlagGetter('enableUIConsistency', false);
|
|
244
|
+
/**
|
|
245
|
+
* Enables View Recycling. When enabled, individual ViewManagers must still opt-in.
|
|
246
|
+
*/
|
|
247
|
+
export const enableViewRecycling: Getter<boolean> = createNativeFlagGetter('enableViewRecycling', false);
|
|
248
|
+
/**
|
|
249
|
+
* When enabled, rawProps in Props will not include Yoga specific props.
|
|
250
|
+
*/
|
|
251
|
+
export const excludeYogaFromRawProps: Getter<boolean> = createNativeFlagGetter('excludeYogaFromRawProps', false);
|
|
191
252
|
/**
|
|
192
253
|
* Start image fetching during view preallocation instead of waiting for layout pass
|
|
193
254
|
*/
|
|
@@ -231,7 +292,15 @@ export const loadVectorDrawablesOnImages: Getter<boolean> = createNativeFlagGett
|
|
|
231
292
|
/**
|
|
232
293
|
* Propagate layout direction to Android views.
|
|
233
294
|
*/
|
|
234
|
-
export const setAndroidLayoutDirection: Getter<boolean> = createNativeFlagGetter('setAndroidLayoutDirection',
|
|
295
|
+
export const setAndroidLayoutDirection: Getter<boolean> = createNativeFlagGetter('setAndroidLayoutDirection', false);
|
|
296
|
+
/**
|
|
297
|
+
* Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
|
|
298
|
+
*/
|
|
299
|
+
export const traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean> = createNativeFlagGetter('traceTurboModulePromiseRejectionsOnAndroid', false);
|
|
300
|
+
/**
|
|
301
|
+
* 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.
|
|
302
|
+
*/
|
|
303
|
+
export const useFabricInterop: Getter<boolean> = createNativeFlagGetter('useFabricInterop', false);
|
|
235
304
|
/**
|
|
236
305
|
* Invoke callbacks immediately on the ReactInstance rather than going through a background thread for synchronization
|
|
237
306
|
*/
|
|
@@ -248,6 +317,10 @@ export const useNativeViewConfigsInBridgelessMode: Getter<boolean> = createNativ
|
|
|
248
317
|
* Use shared background drawing code for ReactImageView instead of using Fresco to manipulate the bitmap
|
|
249
318
|
*/
|
|
250
319
|
export const useNewReactImageViewBackgroundDrawing: Getter<boolean> = createNativeFlagGetter('useNewReactImageViewBackgroundDrawing', false);
|
|
320
|
+
/**
|
|
321
|
+
* Moves more of the work in view preallocation to the main thread to free up JS thread.
|
|
322
|
+
*/
|
|
323
|
+
export const useOptimisedViewPreallocationOnAndroid: Getter<boolean> = createNativeFlagGetter('useOptimisedViewPreallocationOnAndroid', false);
|
|
251
324
|
/**
|
|
252
325
|
* When enabled, cloning shadow nodes within react native will update the reference held by the current JS fiber tree.
|
|
253
326
|
*/
|
|
@@ -260,6 +333,10 @@ export const useRuntimeShadowNodeReferenceUpdateOnLayout: Getter<boolean> = crea
|
|
|
260
333
|
* When enabled, it uses optimised state reconciliation algorithm.
|
|
261
334
|
*/
|
|
262
335
|
export const useStateAlignmentMechanism: Getter<boolean> = createNativeFlagGetter('useStateAlignmentMechanism', false);
|
|
336
|
+
/**
|
|
337
|
+
* In Bridgeless mode, should legacy NativeModules use the TurboModule system?
|
|
338
|
+
*/
|
|
339
|
+
export const useTurboModuleInterop: Getter<boolean> = createNativeFlagGetter('useTurboModuleInterop', false);
|
|
263
340
|
|
|
264
341
|
/**
|
|
265
342
|
* Overrides the feature flags with the provided methods.
|
|
@@ -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<<9728234e0662758c72ba79b3cffbd4e5>>
|
|
8
8
|
* @flow strict-local
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -24,19 +24,28 @@ import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboMod
|
|
|
24
24
|
|
|
25
25
|
export interface Spec extends TurboModule {
|
|
26
26
|
+commonTestFlag?: () => boolean;
|
|
27
|
-
+allowCollapsableChildren?: () => boolean;
|
|
28
27
|
+allowRecursiveCommitsWithSynchronousMountOnAndroid?: () => boolean;
|
|
29
28
|
+batchRenderingUpdatesInEventLoop?: () => boolean;
|
|
30
29
|
+changeOrderOfMountingInstructionsOnAndroid?: () => boolean;
|
|
30
|
+
+completeReactInstanceCreationOnBgThreadOnAndroid?: () => boolean;
|
|
31
31
|
+destroyFabricSurfacesInReactInstanceManager?: () => boolean;
|
|
32
32
|
+enableAlignItemsBaselineOnFabricIOS?: () => boolean;
|
|
33
|
+
+enableAndroidMixBlendModeProp?: () => boolean;
|
|
34
|
+
+enableBackgroundStyleApplicator?: () => boolean;
|
|
33
35
|
+enableCleanTextInputYogaNode?: () => boolean;
|
|
36
|
+
+enableEagerRootViewAttachment?: () => boolean;
|
|
37
|
+
+enableEventEmitterRetentionDuringGesturesOnAndroid?: () => boolean;
|
|
38
|
+
+enableFabricLogs?: () => boolean;
|
|
39
|
+
+enableFabricRendererExclusively?: () => boolean;
|
|
34
40
|
+enableGranularShadowTreeStateReconciliation?: () => boolean;
|
|
35
41
|
+enableLongTaskAPI?: () => boolean;
|
|
36
42
|
+enableMicrotasks?: () => boolean;
|
|
37
43
|
+enablePropsUpdateReconciliationAndroid?: () => boolean;
|
|
44
|
+
+enableReportEventPaintTime?: () => boolean;
|
|
38
45
|
+enableSynchronousStateUpdates?: () => boolean;
|
|
39
46
|
+enableUIConsistency?: () => boolean;
|
|
47
|
+
+enableViewRecycling?: () => boolean;
|
|
48
|
+
+excludeYogaFromRawProps?: () => boolean;
|
|
40
49
|
+fetchImagesInViewPreallocation?: () => boolean;
|
|
41
50
|
+fixIncorrectScrollViewStateUpdateOnAndroid?: () => boolean;
|
|
42
51
|
+fixMappingOfEventPrioritiesBetweenFabricAndReact?: () => boolean;
|
|
@@ -48,13 +57,17 @@ export interface Spec extends TurboModule {
|
|
|
48
57
|
+lazyAnimationCallbacks?: () => boolean;
|
|
49
58
|
+loadVectorDrawablesOnImages?: () => boolean;
|
|
50
59
|
+setAndroidLayoutDirection?: () => boolean;
|
|
60
|
+
+traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
|
|
61
|
+
+useFabricInterop?: () => boolean;
|
|
51
62
|
+useImmediateExecutorInAndroidBridgeless?: () => boolean;
|
|
52
63
|
+useModernRuntimeScheduler?: () => boolean;
|
|
53
64
|
+useNativeViewConfigsInBridgelessMode?: () => boolean;
|
|
54
65
|
+useNewReactImageViewBackgroundDrawing?: () => boolean;
|
|
66
|
+
+useOptimisedViewPreallocationOnAndroid?: () => boolean;
|
|
55
67
|
+useRuntimeShadowNodeReferenceUpdate?: () => boolean;
|
|
56
68
|
+useRuntimeShadowNodeReferenceUpdateOnLayout?: () => boolean;
|
|
57
69
|
+useStateAlignmentMechanism?: () => boolean;
|
|
70
|
+
+useTurboModuleInterop?: () => boolean;
|
|
58
71
|
}
|
|
59
72
|
|
|
60
73
|
const NativeReactNativeFeatureFlags: ?Spec = TurboModuleRegistry.get<Spec>(
|