@office-iss/react-native-win32 0.0.0-canary.293 → 0.0.0-canary.294

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.
Files changed (47) hide show
  1. package/.flowconfig +8 -1
  2. package/CHANGELOG.json +31 -1
  3. package/CHANGELOG.md +14 -6
  4. package/IntegrationTests/ImageCachePolicyTest.js +1 -1
  5. package/IntegrationTests/LayoutEventsTest.js +1 -4
  6. package/Libraries/Animated/AnimatedExports.js.flow +126 -0
  7. package/Libraries/Animated/AnimatedImplementation.js +0 -121
  8. package/Libraries/Animated/animations/Animation.js +8 -4
  9. package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
  10. package/Libraries/Animated/nodes/AnimatedValue.js +8 -4
  11. package/Libraries/BatchedBridge/NativeModules.js +2 -0
  12. package/Libraries/Blob/BlobManager.js +1 -0
  13. package/Libraries/Components/ScrollView/ScrollView.d.ts +1 -1
  14. package/Libraries/Components/ScrollView/ScrollView.js +1 -0
  15. package/Libraries/Components/TextInput/TextInput.js +1 -0
  16. package/Libraries/Components/View/ViewAccessibility.js +16 -0
  17. package/Libraries/Core/ReactNativeVersion.js +1 -1
  18. package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -0
  19. package/Libraries/NativeComponent/BaseViewConfig.ios.js +1 -0
  20. package/Libraries/ReactNative/FabricUIManager.js +10 -0
  21. package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -0
  22. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +51 -0
  23. package/Libraries/Renderer/shims/ReactFabric.js +1 -3
  24. package/Libraries/Renderer/shims/ReactFeatureFlags.js +1 -3
  25. package/Libraries/Renderer/shims/ReactNative.js +1 -3
  26. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +1 -3
  27. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +1 -3
  28. package/Libraries/Settings/Settings.ios.js +1 -0
  29. package/overrides.json +6 -6
  30. package/package.json +16 -16
  31. package/src/private/featureflags/ReactNativeFeatureFlags.js +31 -6
  32. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +7 -2
  33. package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +1 -1
  34. package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +1 -1
  35. package/src/private/webapis/performance/PerformanceEntry.js +6 -1
  36. package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -0
  37. package/src/private/webapis/performance/specs/NativePerformance.js +10 -1
  38. package/types/index.d.ts +0 -1
  39. package/Libraries/NewAppScreen/components/Colors.js +0 -19
  40. package/Libraries/NewAppScreen/components/DebugInstructions.js +0 -39
  41. package/Libraries/NewAppScreen/components/Header.js +0 -75
  42. package/Libraries/NewAppScreen/components/HermesBadge.js +0 -51
  43. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +0 -146
  44. package/Libraries/NewAppScreen/components/ReloadInstructions.js +0 -37
  45. package/Libraries/NewAppScreen/components/logo.png +0 -0
  46. package/Libraries/NewAppScreen/index.js +0 -25
  47. package/types/modules/LaunchScreen.d.ts +0 -26
@@ -0,0 +1,51 @@
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
+ * @format
8
+ * @flow strict-local
9
+ */
10
+
11
+ import typeof {createPublicTextInstance} from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance';
12
+
13
+ export type {
14
+ HostInstance as PublicInstance,
15
+
16
+ // These types are only necessary for Paper
17
+ NativeMethods as LegacyPublicInstance,
18
+ MeasureOnSuccessCallback,
19
+ MeasureInWindowOnSuccessCallback,
20
+ MeasureLayoutOnSuccessCallback,
21
+ } from '../../src/private/types/HostInstance';
22
+
23
+ export type {PublicRootInstance} from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance';
24
+ export type PublicTextInstance = ReturnType<createPublicTextInstance>;
25
+
26
+ export {default as BatchedBridge} from '../BatchedBridge/BatchedBridge';
27
+ export {default as ExceptionsManager} from '../Core/ExceptionsManager';
28
+ export {default as Platform} from '../Utilities/Platform';
29
+ export {default as RCTEventEmitter} from '../EventEmitter/RCTEventEmitter';
30
+ export * as ReactNativeViewConfigRegistry from '../Renderer/shims/ReactNativeViewConfigRegistry';
31
+ export {default as TextInputState} from '../Components/TextInput/TextInputState';
32
+ export {default as UIManager} from '../ReactNative/UIManager';
33
+ export {default as deepDiffer} from '../Utilities/differ/deepDiffer';
34
+ export {default as deepFreezeAndThrowOnMutationInDev} from '../Utilities/deepFreezeAndThrowOnMutationInDev';
35
+ export {default as flattenStyle} from '../StyleSheet/flattenStyle';
36
+ export {default as ReactFiberErrorDialog} from '../Core/ReactFiberErrorDialog';
37
+ export {default as legacySendAccessibilityEvent} from '../Components/AccessibilityInfo/legacySendAccessibilityEvent';
38
+ export {default as RawEventEmitter} from '../Core/RawEventEmitter';
39
+ export {default as CustomEvent} from '../../src/private/webapis/dom/events/CustomEvent';
40
+ export {
41
+ create as createAttributePayload,
42
+ diff as diffAttributePayloads,
43
+ } from '../ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload';
44
+ export {
45
+ createPublicRootInstance,
46
+ createPublicInstance,
47
+ createPublicTextInstance,
48
+ getNativeTagFromPublicInstance,
49
+ getNodeFromPublicInstance,
50
+ getInternalInstanceHandleFromPublicInstance,
51
+ } from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance';
@@ -7,9 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow
10
- * @generated SignedSource<<16b364e89f43b8a47832b0dfb98af11e>>
11
- *
12
- * This file was sync'd from the facebook/react repository.
10
+ * @generated SignedSource<<cf323fc5ca893bab5669c7d321660412>>
13
11
  */
14
12
 
15
13
  'use strict';
@@ -7,9 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict-local
10
- * @generated SignedSource<<1dd9e9c3f20e37ae14e485fc6ee3d9e9>>
11
- *
12
- * This file was sync'd from the facebook/react repository.
10
+ * @generated SignedSource<<908f5fb85384725318e261f40e49d9a6>>
13
11
  */
14
12
 
15
13
  'use strict';
@@ -7,9 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow
10
- * @generated SignedSource<<e2c46705ed927302dbe9332dafba459d>>
11
- *
12
- * This file was sync'd from the facebook/react repository.
10
+ * @generated SignedSource<<8f46fdc9267fcc4fdc9e76842fe24066>>
13
11
  */
14
12
  'use strict';
15
13
 
@@ -7,9 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict-local
10
- * @generated SignedSource<<e8dce0e82b831c91465d04b49fb48ab2>>
11
- *
12
- * This file was sync'd from the facebook/react repository.
10
+ * @generated SignedSource<<83073425aa3f71ced2c8c51f25a25938>>
13
11
  */
14
12
 
15
13
  'use strict';
@@ -7,9 +7,7 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict-local
10
- * @generated SignedSource<<556d1487de0b9e4a09cbc67dd130a884>>
11
- *
12
- * This file was sync'd from the facebook/react repository.
10
+ * @generated SignedSource<<52163887de05f1cff05388145cf85b3b>>
13
11
  */
14
12
 
15
13
  'use strict';
@@ -29,6 +29,7 @@ const Settings = {
29
29
 
30
30
  set(settings: Object) {
31
31
  // $FlowFixMe[object-this-reference]
32
+ // $FlowFixMe[unsafe-object-assign]
32
33
  this._settings = Object.assign(this._settings, settings);
33
34
  NativeSettingsManager.setValues(settings);
34
35
  },
package/overrides.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.80.0-nightly-20250428-9efcdc091",
10
+ "baseVersion": "0.80.0-nightly-20250506-3ac16dd6a",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "d274ca7bb384b334c5b2ee0827726e7a3d6c98c9"
16
+ "baseHash": "70ed729d5f52c241530e8459cc40263d4e9fa9c0"
17
17
  },
18
18
  {
19
19
  "type": "derived",
@@ -114,7 +114,7 @@
114
114
  "type": "derived",
115
115
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
116
116
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
117
- "baseHash": "4b3128471dd0d362e9828df8937f708d53694e12"
117
+ "baseHash": "9965c0079652083ab549bc2799eb9528b56a1b2d"
118
118
  },
119
119
  {
120
120
  "type": "patch",
@@ -183,13 +183,13 @@
183
183
  "type": "derived",
184
184
  "file": "src-win/Libraries/Components/View/ViewAccessibility.d.ts",
185
185
  "baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts",
186
- "baseHash": "d97e29f01e57cc2b0de209a03f8584b984cfe190"
186
+ "baseHash": "1e4e3a89397960e8f08b86be62496473829c0ac3"
187
187
  },
188
188
  {
189
189
  "type": "derived",
190
190
  "file": "src-win/Libraries/Components/View/ViewAccessibility.win32.js",
191
191
  "baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.js",
192
- "baseHash": "c30dab3926869e84edafebd485e78637d69ccd61"
192
+ "baseHash": "04981261b2ed61b31bfbb396478bb6b103d99253"
193
193
  },
194
194
  {
195
195
  "type": "derived",
@@ -329,7 +329,7 @@
329
329
  "type": "derived",
330
330
  "file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
331
331
  "baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
332
- "baseHash": "3ba8fe1a60d744e057e856bc43e2df28f4fd7f66"
332
+ "baseHash": "b520e2bdb2be31bdb6ad7e3769dbe69168870c8c"
333
333
  },
334
334
  {
335
335
  "type": "copy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.293",
3
+ "version": "0.0.0-canary.294",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,19 +30,19 @@
30
30
  "@react-native-community/cli-platform-android": "17.0.0",
31
31
  "@react-native-community/cli-platform-ios": "17.0.0",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.80.0-nightly-20250428-9efcdc091",
34
- "@react-native/codegen": "0.80.0-nightly-20250428-9efcdc091",
35
- "@react-native/community-cli-plugin": "0.80.0-nightly-20250428-9efcdc091",
36
- "@react-native/gradle-plugin": "0.80.0-nightly-20250428-9efcdc091",
37
- "@react-native/js-polyfills": "0.80.0-nightly-20250428-9efcdc091",
38
- "@react-native/normalize-colors": "0.80.0-nightly-20250428-9efcdc091",
39
- "@react-native/virtualized-lists": "0.80.0-nightly-20250428-9efcdc091",
33
+ "@react-native/assets-registry": "0.80.0-nightly-20250506-3ac16dd6a",
34
+ "@react-native/codegen": "0.80.0-nightly-20250506-3ac16dd6a",
35
+ "@react-native/community-cli-plugin": "0.80.0-nightly-20250506-3ac16dd6a",
36
+ "@react-native/gradle-plugin": "0.80.0-nightly-20250506-3ac16dd6a",
37
+ "@react-native/js-polyfills": "0.80.0-nightly-20250506-3ac16dd6a",
38
+ "@react-native/normalize-colors": "0.80.0-nightly-20250506-3ac16dd6a",
39
+ "@react-native/virtualized-lists": "0.80.0-nightly-20250506-3ac16dd6a",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
43
43
  "art": "^0.10.0",
44
44
  "babel-jest": "^29.7.0",
45
- "babel-plugin-syntax-hermes-parser": "0.25.1",
45
+ "babel-plugin-syntax-hermes-parser": "0.28.1",
46
46
  "base64-js": "^1.5.1",
47
47
  "chalk": "^4.0.0",
48
48
  "commander": "^12.0.0",
@@ -52,8 +52,8 @@
52
52
  "invariant": "^2.2.4",
53
53
  "jest-environment-node": "^29.7.0",
54
54
  "memoize-one": "^5.0.0",
55
- "metro-runtime": "^0.82.0",
56
- "metro-source-map": "^0.82.0",
55
+ "metro-runtime": "^0.82.2",
56
+ "metro-source-map": "^0.82.2",
57
57
  "mkdirp": "^0.5.1",
58
58
  "nullthrows": "^1.1.1",
59
59
  "pretty-format": "^29.7.0",
@@ -62,7 +62,7 @@
62
62
  "react-devtools-core": "^6.1.1",
63
63
  "react-refresh": "^0.14.0",
64
64
  "regenerator-runtime": "^0.13.2",
65
- "scheduler": "0.25.0",
65
+ "scheduler": "0.26.0",
66
66
  "semver": "^7.1.3",
67
67
  "stacktrace-parser": "^0.1.10",
68
68
  "whatwg-fetch": "^3.0.0",
@@ -72,7 +72,7 @@
72
72
  "devDependencies": {
73
73
  "@babel/core": "^7.25.2",
74
74
  "@babel/eslint-parser": "^7.25.1",
75
- "@react-native/metro-config": "0.80.0-nightly-20250428-9efcdc091",
75
+ "@react-native/metro-config": "0.80.0-nightly-20250506-3ac16dd6a",
76
76
  "@rnw-scripts/babel-react-native-config": "0.0.0",
77
77
  "@rnw-scripts/eslint-config": "1.2.36",
78
78
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
@@ -88,14 +88,14 @@
88
88
  "just-scripts": "^1.3.3",
89
89
  "prettier": "2.8.8",
90
90
  "react": "19.1.0",
91
- "react-native": "0.80.0-nightly-20250428-9efcdc091",
91
+ "react-native": "0.80.0-nightly-20250506-3ac16dd6a",
92
92
  "react-native-platform-override": "^1.9.56",
93
93
  "typescript": "5.0.4"
94
94
  },
95
95
  "peerDependencies": {
96
- "@types/react": "^19.0.0",
96
+ "@types/react": "^19.1.0",
97
97
  "react": "^19.1.0",
98
- "react-native": "0.80.0-nightly-20250428-9efcdc091"
98
+ "react-native": "0.80.0-nightly-20250506-3ac16dd6a"
99
99
  },
100
100
  "beachball": {
101
101
  "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<<074f41df4d09a9053b71cf4255b144a5>>
7
+ * @generated SignedSource<<6667fc8e4fdd2db0b54c908155b110cf>>
8
8
  * @flow strict
9
9
  */
10
10
 
@@ -56,6 +56,8 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
56
56
  enableBridgelessArchitecture: Getter<boolean>,
57
57
  enableCppPropsIteratorSetter: Getter<boolean>,
58
58
  enableCustomFocusSearchOnClippedElementsAndroid: Getter<boolean>,
59
+ enableDestroyShadowTreeRevisionAsync: Getter<boolean>,
60
+ enableDoubleMeasurementFixAndroid: Getter<boolean>,
59
61
  enableEagerRootViewAttachment: Getter<boolean>,
60
62
  enableFabricLogs: Getter<boolean>,
61
63
  enableFabricRenderer: Getter<boolean>,
@@ -67,8 +69,11 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
67
69
  enableLayoutAnimationsOnIOS: Getter<boolean>,
68
70
  enableMainQueueModulesOnIOS: Getter<boolean>,
69
71
  enableNativeCSSParsing: Getter<boolean>,
72
+ enableNetworkEventReporting: Getter<boolean>,
70
73
  enableNewBackgroundAndBorderDrawables: Getter<boolean>,
74
+ enablePreparedTextLayout: Getter<boolean>,
71
75
  enablePropsUpdateReconciliationAndroid: Getter<boolean>,
76
+ enableResourceTimingAPI: Getter<boolean>,
72
77
  enableSynchronousStateUpdates: Getter<boolean>,
73
78
  enableViewCulling: Getter<boolean>,
74
79
  enableViewRecycling: Getter<boolean>,
@@ -77,10 +82,10 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
77
82
  fixMappingOfEventPrioritiesBetweenFabricAndReact: Getter<boolean>,
78
83
  fuseboxEnabledRelease: Getter<boolean>,
79
84
  fuseboxNetworkInspectionEnabled: Getter<boolean>,
85
+ incorporateMaxLinesDuringAndroidLayout: Getter<boolean>,
80
86
  traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
81
87
  updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean>,
82
88
  useAlwaysAvailableJSErrorHandling: Getter<boolean>,
83
- useEditTextStockAndroidFocusBehavior: Getter<boolean>,
84
89
  useFabricInterop: Getter<boolean>,
85
90
  useNativeViewConfigsInBridgelessMode: Getter<boolean>,
86
91
  useOptimizedEventBatchingOnAndroid: Getter<boolean>,
@@ -194,6 +199,14 @@ export const enableCppPropsIteratorSetter: Getter<boolean> = createNativeFlagGet
194
199
  * This enables the fabric implementation of focus search so that we can focus clipped elements
195
200
  */
196
201
  export const enableCustomFocusSearchOnClippedElementsAndroid: Getter<boolean> = createNativeFlagGetter('enableCustomFocusSearchOnClippedElementsAndroid', true);
202
+ /**
203
+ * Enables destructor calls for ShadowTreeRevision in the background to reduce UI thread work.
204
+ */
205
+ export const enableDestroyShadowTreeRevisionAsync: Getter<boolean> = createNativeFlagGetter('enableDestroyShadowTreeRevisionAsync', false);
206
+ /**
207
+ * When enabled a subset of components will avoid double measurement on Android.
208
+ */
209
+ export const enableDoubleMeasurementFixAndroid: Getter<boolean> = createNativeFlagGetter('enableDoubleMeasurementFixAndroid', false);
197
210
  /**
198
211
  * Feature flag to configure eager attachment of the root view/initialisation of the JS code.
199
212
  */
@@ -238,14 +251,26 @@ export const enableMainQueueModulesOnIOS: Getter<boolean> = createNativeFlagGett
238
251
  * Parse CSS strings using the Fabric CSS parser instead of ViewConfig processing
239
252
  */
240
253
  export const enableNativeCSSParsing: Getter<boolean> = createNativeFlagGetter('enableNativeCSSParsing', false);
254
+ /**
255
+ * Enable network event reporting hooks in each native platform through `NetworkReporter`. This flag should be combined with `enableResourceTimingAPI` and `fuseboxNetworkInspectionEnabled` to enable end-to-end reporting behaviour via the Web Performance API and CDP debugging respectively.
256
+ */
257
+ export const enableNetworkEventReporting: Getter<boolean> = createNativeFlagGetter('enableNetworkEventReporting', false);
241
258
  /**
242
259
  * Use BackgroundDrawable and BorderDrawable instead of CSSBackgroundDrawable
243
260
  */
244
261
  export const enableNewBackgroundAndBorderDrawables: Getter<boolean> = createNativeFlagGetter('enableNewBackgroundAndBorderDrawables', true);
262
+ /**
263
+ * Enables caching text layout artifacts for later reuse
264
+ */
265
+ export const enablePreparedTextLayout: Getter<boolean> = createNativeFlagGetter('enablePreparedTextLayout', false);
245
266
  /**
246
267
  * When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node.
247
268
  */
248
269
  export const enablePropsUpdateReconciliationAndroid: Getter<boolean> = createNativeFlagGetter('enablePropsUpdateReconciliationAndroid', false);
270
+ /**
271
+ * Enables the reporting of network resource timings through `PerformanceObserver`.
272
+ */
273
+ export const enableResourceTimingAPI: Getter<boolean> = createNativeFlagGetter('enableResourceTimingAPI', false);
249
274
  /**
250
275
  * Dispatches state updates synchronously in Fabric (e.g.: updates the scroll position in the shadow tree synchronously from the main thread).
251
276
  */
@@ -278,6 +303,10 @@ export const fuseboxEnabledRelease: Getter<boolean> = createNativeFlagGetter('fu
278
303
  * Enable network inspection support in the React Native DevTools CDP backend. Requires `enableBridgelessArchitecture`. This flag is global and should not be changed across React Host lifetimes.
279
304
  */
280
305
  export const fuseboxNetworkInspectionEnabled: Getter<boolean> = createNativeFlagGetter('fuseboxNetworkInspectionEnabled', false);
306
+ /**
307
+ * Set maxLines and ellipsization during Android layout creation
308
+ */
309
+ export const incorporateMaxLinesDuringAndroidLayout: Getter<boolean> = createNativeFlagGetter('incorporateMaxLinesDuringAndroidLayout', true);
281
310
  /**
282
311
  * Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
283
312
  */
@@ -290,10 +319,6 @@ export const updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean> = create
290
319
  * In Bridgeless mode, use the always available javascript error reporting pipeline.
291
320
  */
292
321
  export const useAlwaysAvailableJSErrorHandling: Getter<boolean> = createNativeFlagGetter('useAlwaysAvailableJSErrorHandling', false);
293
- /**
294
- * If true, focusing in ReactEditText will mainly use stock Android requestFocus() behavior. If false it will use legacy custom focus behavior.
295
- */
296
- export const useEditTextStockAndroidFocusBehavior: Getter<boolean> = createNativeFlagGetter('useEditTextStockAndroidFocusBehavior', true);
297
322
  /**
298
323
  * 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.
299
324
  */
@@ -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<<e0337d40c3467e2e65e4c2bd27519f9a>>
7
+ * @generated SignedSource<<4bf477efaec82ad8e9e4b1bc17705fd2>>
8
8
  * @flow strict
9
9
  */
10
10
 
@@ -34,6 +34,8 @@ export interface Spec extends TurboModule {
34
34
  +enableBridgelessArchitecture?: () => boolean;
35
35
  +enableCppPropsIteratorSetter?: () => boolean;
36
36
  +enableCustomFocusSearchOnClippedElementsAndroid?: () => boolean;
37
+ +enableDestroyShadowTreeRevisionAsync?: () => boolean;
38
+ +enableDoubleMeasurementFixAndroid?: () => boolean;
37
39
  +enableEagerRootViewAttachment?: () => boolean;
38
40
  +enableFabricLogs?: () => boolean;
39
41
  +enableFabricRenderer?: () => boolean;
@@ -45,8 +47,11 @@ export interface Spec extends TurboModule {
45
47
  +enableLayoutAnimationsOnIOS?: () => boolean;
46
48
  +enableMainQueueModulesOnIOS?: () => boolean;
47
49
  +enableNativeCSSParsing?: () => boolean;
50
+ +enableNetworkEventReporting?: () => boolean;
48
51
  +enableNewBackgroundAndBorderDrawables?: () => boolean;
52
+ +enablePreparedTextLayout?: () => boolean;
49
53
  +enablePropsUpdateReconciliationAndroid?: () => boolean;
54
+ +enableResourceTimingAPI?: () => boolean;
50
55
  +enableSynchronousStateUpdates?: () => boolean;
51
56
  +enableViewCulling?: () => boolean;
52
57
  +enableViewRecycling?: () => boolean;
@@ -55,10 +60,10 @@ export interface Spec extends TurboModule {
55
60
  +fixMappingOfEventPrioritiesBetweenFabricAndReact?: () => boolean;
56
61
  +fuseboxEnabledRelease?: () => boolean;
57
62
  +fuseboxNetworkInspectionEnabled?: () => boolean;
63
+ +incorporateMaxLinesDuringAndroidLayout?: () => boolean;
58
64
  +traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
59
65
  +updateRuntimeShadowNodeReferencesOnCommit?: () => boolean;
60
66
  +useAlwaysAvailableJSErrorHandling?: () => boolean;
61
- +useEditTextStockAndroidFocusBehavior?: () => boolean;
62
67
  +useFabricInterop?: () => boolean;
63
68
  +useNativeViewConfigsInBridgelessMode?: () => boolean;
64
69
  +useOptimizedEventBatchingOnAndroid?: () => boolean;
@@ -13,7 +13,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
13
13
  import shouldUseTurboAnimatedModule from '../../../../Libraries/Animated/shouldUseTurboAnimatedModule';
14
14
  import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
15
15
 
16
- type EndResult = {finished: boolean, value?: number, ...};
16
+ type EndResult = {finished: boolean, value?: number, offset?: number, ...};
17
17
  type EndCallback = (result: EndResult) => void;
18
18
  type SaveValueCallback = (value: number) => void;
19
19
 
@@ -13,7 +13,7 @@ import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
13
13
  import shouldUseTurboAnimatedModule from '../../../../Libraries/Animated/shouldUseTurboAnimatedModule';
14
14
  import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
15
15
 
16
- type EndResult = {finished: boolean, value?: number, ...};
16
+ type EndResult = {finished: boolean, value?: number, offset?: number, ...};
17
17
  type EndCallback = (result: EndResult) => void;
18
18
  type SaveValueCallback = (value: number) => void;
19
19
 
@@ -11,7 +11,12 @@
11
11
  // flowlint unsafe-getters-setters:off
12
12
 
13
13
  export type DOMHighResTimeStamp = number;
14
- export type PerformanceEntryType = 'mark' | 'measure' | 'event' | 'longtask';
14
+ export type PerformanceEntryType =
15
+ | 'mark'
16
+ | 'measure'
17
+ | 'event'
18
+ | 'longtask'
19
+ | 'resource';
15
20
 
16
21
  export type PerformanceEntryJSON = {
17
22
  name: string,
@@ -24,6 +24,7 @@ export const RawPerformanceEntryTypeValues = {
24
24
  MEASURE: 2,
25
25
  EVENT: 3,
26
26
  LONGTASK: 4,
27
+ RESOURCE: 5,
27
28
  };
28
29
 
29
30
  export function rawToPerformanceEntry(
@@ -95,6 +96,8 @@ export function performanceEntryTypeToRaw(
95
96
  return RawPerformanceEntryTypeValues.EVENT;
96
97
  case 'longtask':
97
98
  return RawPerformanceEntryTypeValues.LONGTASK;
99
+ case 'resource':
100
+ return RawPerformanceEntryTypeValues.RESOURCE;
98
101
  default:
99
102
  // Verify exhaustive check with Flow
100
103
  (type: empty);
@@ -24,10 +24,19 @@ export type RawPerformanceEntry = {
24
24
  startTime: number,
25
25
  duration: number,
26
26
 
27
- // For "event" entries only:
27
+ // For PerformanceEventTiming only
28
28
  processingStart?: number,
29
29
  processingEnd?: number,
30
30
  interactionId?: number,
31
+
32
+ // For PerformanceResourceTiming only
33
+ fetchStart?: number,
34
+ requestStart?: number,
35
+ connectStart?: number,
36
+ connectEnd?: number,
37
+ responseStart?: number,
38
+ responseEnd?: number,
39
+ responseStatus?: number,
31
40
  };
32
41
 
33
42
  export type OpaqueNativeObserverHandle = mixed;
package/types/index.d.ts CHANGED
@@ -69,7 +69,6 @@
69
69
  /// <reference path="modules/Codegen.d.ts" />
70
70
  /// <reference path="modules/Devtools.d.ts" />
71
71
  /// <reference types="../src/types/globals.d.ts" />
72
- /// <reference path="modules/LaunchScreen.d.ts" />
73
72
 
74
73
  export * from '../Libraries/ActionSheetIOS/ActionSheetIOS';
75
74
  export * from '../Libraries/Alert/Alert';
@@ -1,19 +0,0 @@
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
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- export default {
12
- primary: '#1292B4',
13
- white: '#FFF',
14
- lighter: '#F3F3F3',
15
- light: '#DAE1E7',
16
- dark: '#444',
17
- darker: '#222',
18
- black: '#000',
19
- };
@@ -1,39 +0,0 @@
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
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import StyleSheet from '../../StyleSheet/StyleSheet';
12
- import Text from '../../Text/Text';
13
- import Platform from '../../Utilities/Platform';
14
- import * as React from 'react';
15
-
16
- const styles = StyleSheet.create({
17
- highlight: {
18
- fontWeight: '700',
19
- },
20
- });
21
-
22
- const DebugInstructions: () => React.Node = Platform.select({
23
- ios: () => (
24
- <Text>
25
- Press <Text style={styles.highlight}>Cmd + D</Text> in the simulator or{' '}
26
- <Text style={styles.highlight}>Shake</Text> your device to open the Dev
27
- Menu.
28
- </Text>
29
- ),
30
- default: () => (
31
- <Text>
32
- Press <Text style={styles.highlight}>Cmd or Ctrl + M</Text> or{' '}
33
- <Text style={styles.highlight}>Shake</Text> your device to open the Dev
34
- Menu.
35
- </Text>
36
- ),
37
- });
38
-
39
- export default DebugInstructions;
@@ -1,75 +0,0 @@
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
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import ImageBackground from '../../Image/ImageBackground';
12
- import StyleSheet from '../../StyleSheet/StyleSheet';
13
- import Text from '../../Text/Text';
14
- import useColorScheme from '../../Utilities/useColorScheme';
15
- import Colors from './Colors';
16
- import HermesBadge from './HermesBadge';
17
- import * as React from 'react';
18
-
19
- const Header = (): React.Node => {
20
- const isDarkMode = useColorScheme() === 'dark';
21
- return (
22
- <ImageBackground
23
- accessibilityRole="image"
24
- testID="new-app-screen-header"
25
- source={require('./logo.png')}
26
- style={[
27
- styles.background,
28
- {
29
- backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
30
- },
31
- ]}
32
- imageStyle={styles.logo}>
33
- <HermesBadge />
34
- <Text
35
- style={[
36
- styles.text,
37
- {
38
- color: isDarkMode ? Colors.white : Colors.black,
39
- },
40
- ]}>
41
- Welcome to
42
- {'\n'}
43
- React Native
44
- </Text>
45
- </ImageBackground>
46
- );
47
- };
48
-
49
- const styles = StyleSheet.create({
50
- background: {
51
- paddingBottom: 40,
52
- paddingTop: 96,
53
- paddingHorizontal: 32,
54
- },
55
- logo: {
56
- opacity: 0.2,
57
- overflow: 'visible',
58
- resizeMode: 'cover',
59
- /*
60
- * These negative margins allow the image to be offset similarly across screen sizes and component sizes.
61
- *
62
- * The source logo.png image is 512x512px, so as such, these margins attempt to be relative to the
63
- * source image's size.
64
- */
65
- marginLeft: -128,
66
- marginBottom: -192,
67
- },
68
- text: {
69
- fontSize: 40,
70
- fontWeight: '700',
71
- textAlign: 'center',
72
- },
73
- });
74
-
75
- export default Header;