react-native-windows 0.0.0-canary.658 → 0.0.0-canary.660

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 (32) hide show
  1. package/.flowconfig +1 -1
  2. package/Directory.Build.props +3 -2
  3. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
  4. package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +1 -0
  5. package/Libraries/Core/ReactNativeVersion.js +2 -2
  6. package/Libraries/Lists/FlatList.d.ts +2 -1
  7. package/Libraries/Lists/FlatList.js +2 -2
  8. package/Libraries/Lists/SectionList.js +4 -0
  9. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +24 -31
  10. package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -0
  11. package/Libraries/NativeComponent/BaseViewConfig.ios.js +1 -0
  12. package/Libraries/NativeComponent/BaseViewConfig.windows.js +1 -0
  13. package/Libraries/ReactNative/AppRegistry.js +65 -52
  14. package/Libraries/Renderer/shims/ReactFabric.js +4 -4
  15. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -1
  16. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -20
  17. package/Libraries/Utilities/createPerformanceLogger.js +0 -4
  18. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper_emptyimpl.cpp +46 -0
  19. package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView_emptyimpl.cpp +125 -0
  20. package/Microsoft.ReactNative/Fabric/Composition/CompositionUIService_emptyimpl.cpp +18 -0
  21. package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +3 -2
  22. package/Microsoft.ReactNative/Views/ViewPanel.cpp +20 -189
  23. package/Microsoft.ReactNative/Views/ViewPanel.h +0 -22
  24. package/Microsoft.ReactNative/Views/ViewViewManager.cpp +17 -148
  25. package/Microsoft.ReactNative/Views/cppwinrt/ViewPanel.idl +1 -7
  26. package/PropertySheets/Generated/PackageVersion.g.props +2 -2
  27. package/PropertySheets/NuGet.Cpp.props +3 -2
  28. package/ReactCommon/ReactCommon.vcxproj +2 -0
  29. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/ParagraphLayoutManager.cpp +95 -0
  30. package/ReactCommon/Yoga.cpp +29 -21
  31. package/Shared/Shared.vcxitems +25 -10
  32. package/package.json +12 -12
package/.flowconfig CHANGED
@@ -131,4 +131,4 @@ untyped-import
131
131
  untyped-type-import
132
132
 
133
133
  [version]
134
- ^0.205.1
134
+ ^0.206.0
@@ -66,8 +66,9 @@
66
66
  </PropertyGroup>
67
67
 
68
68
  <PropertyGroup Label="NuGet" Condition="'$(MSBuildProjectExtension)' == '.vcxproj'">
69
- <!--See https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#restore-target-->
70
- <RestoreUseStaticGraphEvaluation Condition="'$(BuildingInsideVisualStudio)' == 'true' AND '$(DisableRestoreUseStaticGraphEvaluation)' != 'true'">true</RestoreUseStaticGraphEvaluation>
69
+ <!-- See https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#restore-target -->
70
+ <!-- RestoreUseStaticGraphEvaluation broke in VS 17.6, see https://github.com/microsoft/react-native-windows/issues/11670 -->
71
+ <RestoreUseStaticGraphEvaluation Condition="'$(BuildingInsideVisualStudio)' == 'true' AND $([MSBuild]::VersionLessThan('$(MSBuildVersion)', '17.6')) AND '$(DisableRestoreUseStaticGraphEvaluation)' != 'true'">true</RestoreUseStaticGraphEvaluation>
71
72
  </PropertyGroup>
72
73
 
73
74
  </Project>
@@ -35,6 +35,7 @@ const UIView = {
35
35
  collapsable: true,
36
36
  needsOffscreenAlphaCompositing: true,
37
37
  style: ReactNativeStyleAttributes,
38
+ role: true,
38
39
  };
39
40
 
40
41
  const RCTView = {
@@ -35,6 +35,7 @@ const UIView = {
35
35
  collapsable: true,
36
36
  needsOffscreenAlphaCompositing: true,
37
37
  style: ReactNativeStyleAttributes,
38
+ role: true,
38
39
  // [Windows
39
40
  onMouseEnter: true,
40
41
  onMouseLeave: true,
@@ -11,7 +11,7 @@
11
11
 
12
12
  exports.version = {
13
13
  major: 0,
14
- minor: 0,
14
+ minor: 73,
15
15
  patch: 0,
16
- prerelease: '20230505-2109-9b69263a1',
16
+ prerelease: 'nightly-20230519-de1e9f5d1',
17
17
  };
@@ -12,6 +12,7 @@ import type {
12
12
  ListRenderItem,
13
13
  ViewToken,
14
14
  VirtualizedListProps,
15
+ ViewabilityConfig,
15
16
  } from '@react-native/virtualized-lists';
16
17
  import type {ScrollViewComponent} from '../Components/ScrollView/ScrollView';
17
18
  import type {StyleProp} from '../StyleSheet/StyleSheet';
@@ -144,7 +145,7 @@ export interface FlatListProps<ItemT> extends VirtualizedListProps<ItemT> {
144
145
  /**
145
146
  * See `ViewabilityHelper` for flow type and further documentation.
146
147
  */
147
- viewabilityConfig?: any | undefined;
148
+ viewabilityConfig?: ViewabilityConfig | undefined;
148
149
 
149
150
  /**
150
151
  * Note: may have bugs (missing content) in some circumstances - use at your own risk.
@@ -36,7 +36,7 @@ type RequiredProps<ItemT> = {|
36
36
  * An array (or array-like list) of items to render. Other data types can be
37
37
  * used by targeting VirtualizedList directly.
38
38
  */
39
- data: ?$ArrayLike<ItemT>,
39
+ data: ?$ReadOnly<$ArrayLike<ItemT>>,
40
40
  |};
41
41
  type OptionalProps<ItemT> = {|
42
42
  /**
@@ -91,7 +91,7 @@ type OptionalProps<ItemT> = {|
91
91
  * specify `ItemSeparatorComponent`.
92
92
  */
93
93
  getItemLayout?: (
94
- data: ?$ArrayLike<ItemT>,
94
+ data: ?$ReadOnly<$ArrayLike<ItemT>>,
95
95
  index: number,
96
96
  ) => {
97
97
  length: number,
@@ -244,6 +244,10 @@ export default class SectionList<
244
244
  const stickySectionHeadersEnabled =
245
245
  _stickySectionHeadersEnabled ?? Platform.OS === 'ios';
246
246
  return (
247
+ /* $FlowFixMe[incompatible-type] Error revealed after improved builtin
248
+ * React utility types */
249
+ /* $FlowFixMe[incompatible-type] Error revealed after improved builtin
250
+ * React utility types */
247
251
  <VirtualizedSectionList
248
252
  {...restProps}
249
253
  stickySectionHeadersEnabled={stickySectionHeadersEnabled}
@@ -10,10 +10,10 @@
10
10
 
11
11
  import type {LogLevel} from '../Data/LogBoxLog';
12
12
 
13
+ import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
13
14
  import View from '../../Components/View/View';
14
15
  import StyleSheet from '../../StyleSheet/StyleSheet';
15
16
  import Text from '../../Text/Text';
16
- import DeviceInfo from '../../Utilities/DeviceInfo';
17
17
  import LogBoxButton from './LogBoxButton';
18
18
  import * as LogBoxStyle from './LogBoxStyle';
19
19
  import * as React from 'react';
@@ -52,39 +52,21 @@ type ButtonProps = $ReadOnly<{|
52
52
 
53
53
  function FooterButton(props: ButtonProps): React.Node {
54
54
  return (
55
- <LogBoxButton
56
- backgroundColor={{
57
- default: 'transparent',
58
- pressed: LogBoxStyle.getBackgroundDarkColor(),
59
- }}
60
- onPress={props.onPress}
61
- style={buttonStyles.safeArea}>
62
- <View style={buttonStyles.content}>
63
- <Text style={buttonStyles.label}>{props.text}</Text>
64
- </View>
65
- </LogBoxButton>
55
+ <SafeAreaView style={styles.button}>
56
+ <LogBoxButton
57
+ backgroundColor={{
58
+ default: 'transparent',
59
+ pressed: LogBoxStyle.getBackgroundDarkColor(),
60
+ }}
61
+ onPress={props.onPress}>
62
+ <View style={styles.buttonContent}>
63
+ <Text style={styles.buttonLabel}>{props.text}</Text>
64
+ </View>
65
+ </LogBoxButton>
66
+ </SafeAreaView>
66
67
  );
67
68
  }
68
69
 
69
- const buttonStyles = StyleSheet.create({
70
- safeArea: {
71
- flex: 1,
72
- // $FlowFixMe[sketchy-null-bool]
73
- paddingBottom: DeviceInfo.getConstants().isIPhoneX_deprecated ? 30 : 0,
74
- },
75
- content: {
76
- alignItems: 'center',
77
- height: 48,
78
- justifyContent: 'center',
79
- },
80
- label: {
81
- color: LogBoxStyle.getTextColor(1),
82
- fontSize: 14,
83
- includeFontPadding: false,
84
- lineHeight: 20,
85
- },
86
- });
87
-
88
70
  const styles = StyleSheet.create({
89
71
  root: {
90
72
  backgroundColor: LogBoxStyle.getBackgroundColor(1),
@@ -97,6 +79,17 @@ const styles = StyleSheet.create({
97
79
  button: {
98
80
  flex: 1,
99
81
  },
82
+ buttonContent: {
83
+ alignItems: 'center',
84
+ height: 48,
85
+ justifyContent: 'center',
86
+ },
87
+ buttonLabel: {
88
+ color: LogBoxStyle.getTextColor(1),
89
+ fontSize: 14,
90
+ includeFontPadding: false,
91
+ lineHeight: 20,
92
+ },
100
93
  syntaxErrorText: {
101
94
  textAlign: 'center',
102
95
  width: '100%',
@@ -179,6 +179,7 @@ const validAttributesForNonEventProps = {
179
179
  accessibilityActions: true,
180
180
  accessibilityValue: true,
181
181
  importantForAccessibility: true,
182
+ role: true,
182
183
  rotation: true,
183
184
  scaleX: true,
184
185
  scaleY: true,
@@ -198,6 +198,7 @@ const validAttributesForNonEventProps = {
198
198
  nativeID: true,
199
199
  pointerEvents: true,
200
200
  removeClippedSubviews: true,
201
+ role: true,
201
202
  borderRadius: true,
202
203
  borderColor: {process: require('../StyleSheet/processColor').default},
203
204
  borderCurve: true,
@@ -224,6 +224,7 @@ const validAttributesForNonEventProps = {
224
224
  nativeID: true,
225
225
  pointerEvents: true,
226
226
  removeClippedSubviews: true,
227
+ role: true,
227
228
  borderRadius: true,
228
229
  borderColor: {process: require('../StyleSheet/processColor').default},
229
230
  borderCurve: true,
@@ -10,6 +10,7 @@
10
10
 
11
11
  import type {RootTag} from '../Types/RootTagTypes';
12
12
  import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
13
+ import type {DisplayModeType} from './DisplayMode';
13
14
 
14
15
  import BatchedBridge from '../BatchedBridge/BatchedBridge';
15
16
  import BugReporting from '../BugReporting/BugReporting';
@@ -36,23 +37,28 @@ export type ComponentProviderInstrumentationHook = (
36
37
  export type AppConfig = {
37
38
  appKey: string,
38
39
  component?: ComponentProvider,
39
- run?: Function,
40
+ run?: Runnable,
40
41
  section?: boolean,
41
42
  ...
42
43
  };
43
- export type Runnable = {
44
- component?: ComponentProvider,
45
- run: Function,
46
- ...
44
+ type AppParameters = {
45
+ initialProps: $ReadOnly<{[string]: mixed, ...}>,
46
+ rootTag: RootTag,
47
+ fabric?: boolean,
48
+ concurrentRoot?: boolean,
47
49
  };
48
- export type Runnables = {[appKey: string]: Runnable, ...};
50
+ export type Runnable = (
51
+ appParameters: AppParameters,
52
+ displayMode: DisplayModeType,
53
+ ) => void;
54
+ export type Runnables = {[appKey: string]: Runnable};
49
55
  export type Registry = {
50
- sections: Array<string>,
56
+ sections: $ReadOnlyArray<string>,
51
57
  runnables: Runnables,
52
58
  ...
53
59
  };
54
60
  export type WrapperComponentProvider = (
55
- appParameters: any,
61
+ appParameters: Object,
56
62
  ) => React$ComponentType<any>;
57
63
 
58
64
  const runnables: Runnables = {};
@@ -110,30 +116,28 @@ const AppRegistry = {
110
116
  componentProvider: ComponentProvider,
111
117
  section?: boolean,
112
118
  ): string {
113
- let scopedPerformanceLogger = createPerformanceLogger();
114
- runnables[appKey] = {
115
- componentProvider,
116
- run: (appParameters, displayMode) => {
117
- const concurrentRootEnabled =
118
- appParameters.initialProps?.concurrentRoot ||
119
- appParameters.concurrentRoot;
120
- renderApplication(
121
- componentProviderInstrumentationHook(
122
- componentProvider,
123
- scopedPerformanceLogger,
124
- ),
125
- appParameters.initialProps,
126
- appParameters.rootTag,
127
- wrapperComponentProvider && wrapperComponentProvider(appParameters),
128
- appParameters.fabric,
129
- showArchitectureIndicator,
119
+ const scopedPerformanceLogger = createPerformanceLogger();
120
+ runnables[appKey] = (appParameters, displayMode) => {
121
+ const concurrentRootEnabled = Boolean(
122
+ appParameters.initialProps?.concurrentRoot ||
123
+ appParameters.concurrentRoot,
124
+ );
125
+ renderApplication(
126
+ componentProviderInstrumentationHook(
127
+ componentProvider,
130
128
  scopedPerformanceLogger,
131
- appKey === 'LogBox',
132
- appKey,
133
- coerceDisplayMode(displayMode),
134
- concurrentRootEnabled,
135
- );
136
- },
129
+ ),
130
+ appParameters.initialProps,
131
+ appParameters.rootTag,
132
+ wrapperComponentProvider && wrapperComponentProvider(appParameters),
133
+ appParameters.fabric,
134
+ showArchitectureIndicator,
135
+ scopedPerformanceLogger,
136
+ appKey === 'LogBox', // is logbox
137
+ appKey,
138
+ displayMode,
139
+ concurrentRootEnabled,
140
+ );
137
141
  };
138
142
  if (section) {
139
143
  sections[appKey] = runnables[appKey];
@@ -141,8 +145,8 @@ const AppRegistry = {
141
145
  return appKey;
142
146
  },
143
147
 
144
- registerRunnable(appKey: string, run: Function): string {
145
- runnables[appKey] = {run};
148
+ registerRunnable(appKey: string, run: Runnable): string {
149
+ runnables[appKey] = run;
146
150
  return appKey;
147
151
  },
148
152
 
@@ -150,11 +154,11 @@ const AppRegistry = {
150
154
  AppRegistry.registerComponent(appKey, component, true);
151
155
  },
152
156
 
153
- getAppKeys(): Array<string> {
157
+ getAppKeys(): $ReadOnlyArray<string> {
154
158
  return Object.keys(runnables);
155
159
  },
156
160
 
157
- getSectionKeys(): Array<string> {
161
+ getSectionKeys(): $ReadOnlyArray<string> {
158
162
  return Object.keys(sections);
159
163
  },
160
164
 
@@ -188,7 +192,7 @@ const AppRegistry = {
188
192
  */
189
193
  runApplication(
190
194
  appKey: string,
191
- appParameters: any,
195
+ appParameters: AppParameters,
192
196
  displayMode?: number,
193
197
  ): void {
194
198
  if (appKey !== 'LogBox') {
@@ -203,7 +207,7 @@ const AppRegistry = {
203
207
  );
204
208
  }
205
209
  invariant(
206
- runnables[appKey] && runnables[appKey].run,
210
+ runnables[appKey],
207
211
  `"${appKey}" has not been registered. This can happen if:\n` +
208
212
  '* Metro (the local dev server) is run from the wrong folder. ' +
209
213
  'Check if Metro is running, stop it and restart it in the current project.\n' +
@@ -211,7 +215,7 @@ const AppRegistry = {
211
215
  );
212
216
 
213
217
  SceneTracker.setActiveScene({name: appKey});
214
- runnables[appKey].run(appParameters, displayMode);
218
+ runnables[appKey](appParameters, coerceDisplayMode(displayMode));
215
219
  },
216
220
 
217
221
  /**
@@ -219,7 +223,7 @@ const AppRegistry = {
219
223
  */
220
224
  setSurfaceProps(
221
225
  appKey: string,
222
- appParameters: any,
226
+ appParameters: Object,
223
227
  displayMode?: number,
224
228
  ): void {
225
229
  if (appKey !== 'LogBox') {
@@ -235,14 +239,14 @@ const AppRegistry = {
235
239
  );
236
240
  }
237
241
  invariant(
238
- runnables[appKey] && runnables[appKey].run,
242
+ runnables[appKey],
239
243
  `"${appKey}" has not been registered. This can happen if:\n` +
240
244
  '* Metro (the local dev server) is run from the wrong folder. ' +
241
245
  'Check if Metro is running, stop it and restart it in the current project.\n' +
242
246
  "* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.",
243
247
  );
244
248
 
245
- runnables[appKey].run(appParameters, displayMode);
249
+ runnables[appKey](appParameters, coerceDisplayMode(displayMode));
246
250
  },
247
251
 
248
252
  /**
@@ -338,18 +342,27 @@ const AppRegistry = {
338
342
  },
339
343
  };
340
344
 
341
- if (!(global.RN$Bridgeless === true)) {
342
- BatchedBridge.registerCallableModule('AppRegistry', AppRegistry);
345
+ // Register LogBox as a default surface
346
+ AppRegistry.registerComponent('LogBox', () => {
347
+ if (__DEV__ && typeof jest === 'undefined') {
348
+ return require('../LogBox/LogBoxInspectorContainer').default;
349
+ } else {
350
+ return function NoOp() {
351
+ return null;
352
+ };
353
+ }
354
+ });
343
355
 
344
- AppRegistry.registerComponent('LogBox', () => {
345
- if (__DEV__) {
346
- return require('../LogBox/LogBoxInspectorContainer').default;
347
- } else {
348
- return function NoOp() {
349
- return null;
350
- };
351
- }
352
- });
356
+ global.RN$AppRegistry = AppRegistry;
357
+
358
+ // Backwards compat with SurfaceRegistry, remove me later
359
+ global.RN$SurfaceRegistry = {
360
+ renderSurface: AppRegistry.runApplication,
361
+ setSurfaceProps: AppRegistry.setSurfaceProps,
362
+ };
363
+
364
+ if (global.RN$Bridgeless !== true) {
365
+ BatchedBridge.registerCallableModule('AppRegistry', AppRegistry);
353
366
  }
354
367
 
355
368
  module.exports = AppRegistry;
@@ -7,7 +7,7 @@
7
7
  * @noformat
8
8
  * @flow
9
9
  * @nolint
10
- * @generated SignedSource<<cece19ddbec9f287c995721f49c68977>>
10
+ * @generated SignedSource<<c1cc197c110e3a49a5e8f6bd5d32b23f>>
11
11
  */
12
12
 
13
13
  'use strict';
@@ -24,9 +24,9 @@ if (__DEV__) {
24
24
  ReactFabric = require('../implementations/ReactFabric-prod');
25
25
  }
26
26
 
27
- if (global.RN$Bridgeless) {
28
- global.RN$stopSurface = ReactFabric.stopSurface;
29
- } else {
27
+ global.RN$stopSurface = ReactFabric.stopSurface;
28
+
29
+ if (global.RN$Bridgeless !== true) {
30
30
  BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
31
31
  }
32
32
 
@@ -7,7 +7,7 @@
7
7
  * @noformat
8
8
  * @flow strict-local
9
9
  * @nolint
10
- * @generated SignedSource<<ce82e8957367bee7d11379ab88e3f7c5>>
10
+ * @generated SignedSource<<1b39316520f5af25f0a141d7d78b0809>>
11
11
  */
12
12
 
13
13
  'use strict';
@@ -108,6 +108,7 @@ exports.get = function (name: string): ViewConfig {
108
108
  'View config getter callback for component `%s` must be a function (received `%s`).%s',
109
109
  name,
110
110
  callback === null ? 'null' : typeof callback,
111
+ // $FlowFixMe[recursive-definition]
111
112
  typeof name[0] === 'string' && /[a-z]/.test(name[0])
112
113
  ? ' Make sure to start component names with a capital letter.'
113
114
  : '',
@@ -18,7 +18,7 @@ type FlexAlignType =
18
18
  | 'stretch'
19
19
  | 'baseline';
20
20
 
21
- type DimensionValue =
21
+ export type DimensionValue =
22
22
  | number
23
23
  | 'auto'
24
24
  | `${number}%`
@@ -69,13 +69,6 @@ export interface FlexStyle {
69
69
  flexShrink?: number | undefined;
70
70
  flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | undefined;
71
71
  height?: DimensionValue | undefined;
72
- inset?: DimensionValue | undefined;
73
- insetBlock?: DimensionValue | undefined;
74
- insetBlockEnd?: DimensionValue | undefined;
75
- insetBlockStart?: DimensionValue | undefined;
76
- insetInline?: DimensionValue | undefined;
77
- insetInlineEnd?: DimensionValue | undefined;
78
- insetInlineStart?: DimensionValue | undefined;
79
72
  justifyContent?:
80
73
  | 'flex-start'
81
74
  | 'flex-end'
@@ -86,15 +79,9 @@ export interface FlexStyle {
86
79
  | undefined;
87
80
  left?: DimensionValue | undefined;
88
81
  margin?: DimensionValue | undefined;
89
- marginBlock?: DimensionValue | undefined;
90
- marginBlockEnd?: DimensionValue | undefined;
91
- marginBlockStart?: DimensionValue | undefined;
92
82
  marginBottom?: DimensionValue | undefined;
93
83
  marginEnd?: DimensionValue | undefined;
94
84
  marginHorizontal?: DimensionValue | undefined;
95
- marginInline?: DimensionValue | undefined;
96
- marginInlineEnd?: DimensionValue | undefined;
97
- marginInlineStart?: DimensionValue | undefined;
98
85
  marginLeft?: DimensionValue | undefined;
99
86
  marginRight?: DimensionValue | undefined;
100
87
  marginStart?: DimensionValue | undefined;
@@ -107,14 +94,8 @@ export interface FlexStyle {
107
94
  overflow?: 'visible' | 'hidden' | 'scroll' | undefined;
108
95
  padding?: DimensionValue | undefined;
109
96
  paddingBottom?: DimensionValue | undefined;
110
- paddingBlock?: DimensionValue | undefined;
111
- paddingBlockEnd?: DimensionValue | undefined;
112
- paddingBlockStart?: DimensionValue | undefined;
113
97
  paddingEnd?: DimensionValue | undefined;
114
98
  paddingHorizontal?: DimensionValue | undefined;
115
- paddingInline?: DimensionValue | undefined;
116
- paddingInlineEnd?: DimensionValue | undefined;
117
- paddingInlineStart?: DimensionValue | undefined;
118
99
  paddingLeft?: DimensionValue | undefined;
119
100
  paddingRight?: DimensionValue | undefined;
120
101
  paddingStart?: DimensionValue | undefined;
@@ -16,7 +16,6 @@ import type {
16
16
  } from './IPerformanceLogger';
17
17
 
18
18
  import * as Systrace from '../Performance/Systrace';
19
- import Performance from '../WebPerformance/Performance';
20
19
  import infoLog from './infoLog';
21
20
 
22
21
  const _cookies: {[key: string]: number, ...} = {};
@@ -27,9 +26,6 @@ const PRINT_TO_CONSOLE: false = false; // Type as false to prevent accidentally
27
26
  // used to separate these internally from other marks/measures
28
27
  const WEB_PERFORMANCE_PREFIX = 'global_perf_';
29
28
 
30
- // TODO: Remove once T143070419 is done
31
- const performance = new Performance();
32
-
33
29
  export const getCurrentTimestamp: () => number =
34
30
  global.nativeQPLTimestamp ?? global.performance.now.bind(global.performance);
35
31
 
@@ -0,0 +1,46 @@
1
+
2
+ #include "pch.h"
3
+ #include "CompositionContextHelper.h"
4
+ #if __has_include("Composition.CompositionContextHelper.g.cpp")
5
+ #include "Composition.CompositionContextHelper.g.cpp"
6
+ #endif
7
+
8
+ #include <Composition.ActivityVisual.g.h>
9
+ #include <Composition.ScrollPositionChangedArgs.g.h>
10
+ #include <Composition.ScrollVisual.g.h>
11
+ #include <Composition.SpriteVisual.g.h>
12
+ #include <Composition.SurfaceBrush.g.h>
13
+
14
+ namespace winrt::Microsoft::ReactNative::Composition::implementation {
15
+
16
+ ICompositionContext CompositionContextHelper::CreateContext(
17
+ winrt::Windows::UI::Composition::Compositor const &) noexcept {
18
+ return nullptr;
19
+ }
20
+
21
+ IVisual CompositionContextHelper::CreateVisual(winrt::Windows::UI::Composition::Visual const &) noexcept {
22
+ return nullptr;
23
+ }
24
+
25
+ winrt::Windows::UI::Composition::Compositor CompositionContextHelper::InnerCompositor(ICompositionContext) noexcept {
26
+ return nullptr;
27
+ }
28
+
29
+ winrt::Windows::UI::Composition::Visual CompositionContextHelper::InnerVisual(IVisual) noexcept {
30
+ return nullptr;
31
+ }
32
+
33
+ winrt::Windows::UI::Composition::DropShadow CompositionContextHelper::InnerDropShadow(IDropShadow) noexcept {
34
+ return nullptr;
35
+ }
36
+
37
+ winrt::Windows::UI::Composition::CompositionBrush CompositionContextHelper::InnerBrush(IBrush) noexcept {
38
+ return nullptr;
39
+ }
40
+
41
+ winrt::Windows::UI::Composition::ICompositionSurface CompositionContextHelper::InnerSurface(
42
+ ICompositionDrawingSurface) noexcept {
43
+ return nullptr;
44
+ }
45
+
46
+ } // namespace winrt::Microsoft::ReactNative::Composition::implementation