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.
- package/.flowconfig +1 -1
- package/Directory.Build.props +3 -2
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +1 -0
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Lists/FlatList.d.ts +2 -1
- package/Libraries/Lists/FlatList.js +2 -2
- package/Libraries/Lists/SectionList.js +4 -0
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +24 -31
- package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +1 -0
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +1 -0
- package/Libraries/ReactNative/AppRegistry.js +65 -52
- package/Libraries/Renderer/shims/ReactFabric.js +4 -4
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -20
- package/Libraries/Utilities/createPerformanceLogger.js +0 -4
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper_emptyimpl.cpp +46 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionRootView_emptyimpl.cpp +125 -0
- package/Microsoft.ReactNative/Fabric/Composition/CompositionUIService_emptyimpl.cpp +18 -0
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +3 -2
- package/Microsoft.ReactNative/Views/ViewPanel.cpp +20 -189
- package/Microsoft.ReactNative/Views/ViewPanel.h +0 -22
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +17 -148
- package/Microsoft.ReactNative/Views/cppwinrt/ViewPanel.idl +1 -7
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/PropertySheets/NuGet.Cpp.props +3 -2
- package/ReactCommon/ReactCommon.vcxproj +2 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/ParagraphLayoutManager.cpp +95 -0
- package/ReactCommon/Yoga.cpp +29 -21
- package/Shared/Shared.vcxitems +25 -10
- package/package.json +12 -12
package/.flowconfig
CHANGED
package/Directory.Build.props
CHANGED
|
@@ -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
|
-
|
|
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>
|
|
@@ -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?:
|
|
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
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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%',
|
|
@@ -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?:
|
|
40
|
+
run?: Runnable,
|
|
40
41
|
section?: boolean,
|
|
41
42
|
...
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
type AppParameters = {
|
|
45
|
+
initialProps: $ReadOnly<{[string]: mixed, ...}>,
|
|
46
|
+
rootTag: RootTag,
|
|
47
|
+
fabric?: boolean,
|
|
48
|
+
concurrentRoot?: boolean,
|
|
47
49
|
};
|
|
48
|
-
export type
|
|
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:
|
|
56
|
+
sections: $ReadOnlyArray<string>,
|
|
51
57
|
runnables: Runnables,
|
|
52
58
|
...
|
|
53
59
|
};
|
|
54
60
|
export type WrapperComponentProvider = (
|
|
55
|
-
appParameters:
|
|
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
|
-
|
|
114
|
-
runnables[appKey] = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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:
|
|
145
|
-
runnables[appKey] =
|
|
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():
|
|
157
|
+
getAppKeys(): $ReadOnlyArray<string> {
|
|
154
158
|
return Object.keys(runnables);
|
|
155
159
|
},
|
|
156
160
|
|
|
157
|
-
getSectionKeys():
|
|
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:
|
|
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]
|
|
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]
|
|
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:
|
|
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]
|
|
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]
|
|
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
|
-
|
|
342
|
-
|
|
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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<<
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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<<
|
|
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
|