@office-iss/react-native-win32 0.0.0-canary.278 → 0.0.0-canary.279
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 -2
- package/CHANGELOG.json +40 -1
- package/CHANGELOG.md +16 -4
- package/Libraries/Animated/animations/Animation.js +10 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +1 -1
- package/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +21 -0
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +59 -0
- package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +29 -0
- package/Libraries/Components/View/ViewPropTypes.d.ts +0 -7
- package/Libraries/Components/View/ViewPropTypes.js +0 -9
- package/Libraries/Components/View/ViewPropTypes.win32.js +0 -9
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -16
- package/Libraries/EventEmitter/RCTEventEmitter.js +2 -6
- package/Libraries/Lists/FlatList.d.ts +1 -1
- package/Libraries/Modal/Modal.js +2 -0
- package/Libraries/NativeComponent/BaseViewConfig.android.js +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +0 -2
- package/Libraries/Network/RCTNetworking.android.js +24 -16
- package/Libraries/Network/RCTNetworking.ios.js +1 -46
- package/Libraries/Network/RCTNetworking.win32.js +1 -46
- package/Libraries/Network/RCTNetworkingEventDefinitions.flow.js +57 -0
- package/Libraries/PersonaCoin/PersonaCoin.js +1 -0
- package/Libraries/PersonaCoin/PersonaCoin.js.map +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +15828 -26461
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3907 -2560
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +4399 -2878
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16102 -26908
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +4034 -2695
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4535 -3045
- package/Libraries/Renderer/shims/ReactNativeTypes.js +5 -6
- package/Libraries/StyleSheet/processTransform.js +6 -0
- package/index.js +5 -0
- package/index.win32.js +5 -0
- package/overrides.json +7 -7
- package/package.json +19 -19
- package/src/private/animated/NativeAnimatedValidation.js +1 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -6
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -1
- package/src-win/Libraries/Components/View/ViewPropTypes.d.ts +0 -7
- package/src-win/Libraries/PersonaCoin/PersonaCoin.tsx +1 -0
- package/types/index.d.ts +1 -0
- package/Libraries/HeapCapture/HeapCapture.js +0 -29
- package/Libraries/HeapCapture/NativeJSCHeapCapture.js +0 -13
- package/Libraries/Performance/NativeJSCSamplingProfiler.js +0 -13
- package/Libraries/Performance/SamplingProfiler.js +0 -39
- package/src/private/specs/modules/NativeJSCSamplingProfiler.js +0 -19
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noformat
|
|
8
8
|
* @nolint
|
|
9
9
|
* @flow strict
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<c6ea057ee85cbc116a083e3a306b2b88>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type {ElementRef, ElementType, MixedElement} from 'react';
|
|
@@ -133,9 +133,10 @@ declare const ensureNativeMethodsAreSynced: NativeMethods;
|
|
|
133
133
|
(ensureNativeMethodsAreSynced: INativeMethods);
|
|
134
134
|
|
|
135
135
|
export type HostInstance = NativeMethods;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
export type HostComponent<Config: {...}> = component(
|
|
137
|
+
ref: React$RefSetter<HostInstance>,
|
|
138
|
+
...Config
|
|
139
|
+
);
|
|
139
140
|
|
|
140
141
|
type InspectorDataProps = $ReadOnly<{
|
|
141
142
|
[propName: string]: string,
|
|
@@ -206,9 +207,7 @@ export type ReactNativeType = {
|
|
|
206
207
|
componentOrHandle: ?(ElementRef<TElementType> | number),
|
|
207
208
|
): ?number,
|
|
208
209
|
isChildPublicInstance(
|
|
209
|
-
// eslint-disable-next-line no-undef
|
|
210
210
|
parent: PublicInstance | HostComponent<empty>,
|
|
211
|
-
// eslint-disable-next-line no-undef
|
|
212
211
|
child: PublicInstance | HostComponent<empty>,
|
|
213
212
|
): boolean,
|
|
214
213
|
dispatchCommand(
|
|
@@ -148,6 +148,12 @@ function _validateTransforms(transform: Array<Object>): void {
|
|
|
148
148
|
);
|
|
149
149
|
const key = keys[0];
|
|
150
150
|
const value = transformation[key];
|
|
151
|
+
if (key === 'matrix' && transform.length > 1) {
|
|
152
|
+
console.error(
|
|
153
|
+
'When using a matrix transform, you must specify exactly one transform object. Passed transform: ' +
|
|
154
|
+
stringifySafe(transform),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
151
157
|
_validateTransform(key, value, transformation);
|
|
152
158
|
});
|
|
153
159
|
}
|
package/index.js
CHANGED
|
@@ -28,6 +28,7 @@ import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
|
|
|
28
28
|
import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
29
29
|
import typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';
|
|
30
30
|
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
31
|
+
import typeof LayoutConformance from './Libraries/Components/LayoutConformance/LayoutConformance';
|
|
31
32
|
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
|
|
32
33
|
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
33
34
|
import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';
|
|
@@ -136,6 +137,10 @@ module.exports = {
|
|
|
136
137
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
137
138
|
.default;
|
|
138
139
|
},
|
|
140
|
+
get experimental_LayoutConformance(): LayoutConformance {
|
|
141
|
+
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
142
|
+
.default;
|
|
143
|
+
},
|
|
139
144
|
get KeyboardAvoidingView(): KeyboardAvoidingView {
|
|
140
145
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
141
146
|
.default;
|
package/index.win32.js
CHANGED
|
@@ -29,6 +29,7 @@ import typeof Clipboard from './Libraries/Components/Clipboard/Clipboard';
|
|
|
29
29
|
import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
30
30
|
import typeof Keyboard from './Libraries/Components/Keyboard/Keyboard';
|
|
31
31
|
import typeof KeyboardAvoidingView from './Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
32
|
+
import typeof LayoutConformance from './Libraries/Components/LayoutConformance/LayoutConformance';
|
|
32
33
|
import typeof Pressable from './Libraries/Components/Pressable/Pressable';
|
|
33
34
|
import typeof ProgressBarAndroid from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
34
35
|
import typeof RefreshControl from './Libraries/Components/RefreshControl/RefreshControl';
|
|
@@ -136,6 +137,10 @@ module.exports = {
|
|
|
136
137
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
137
138
|
.default;
|
|
138
139
|
},
|
|
140
|
+
get experimental_LayoutConformance(): LayoutConformance {
|
|
141
|
+
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
142
|
+
.default;
|
|
143
|
+
},
|
|
139
144
|
get KeyboardAvoidingView(): KeyboardAvoidingView {
|
|
140
145
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
141
146
|
.default;
|
package/overrides.json
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.78.0-nightly-
|
|
10
|
+
"baseVersion": "0.78.0-nightly-20241221-66342d3cc",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "5b40175690b07272a61410d4fc6437a82248e8cc"
|
|
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": "326e132bab39f949872e2de8f3e3120936ef7d5c"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"type": "platform",
|
|
@@ -191,13 +191,13 @@
|
|
|
191
191
|
"type": "derived",
|
|
192
192
|
"file": "src-win/Libraries/Components/View/ViewPropTypes.d.ts",
|
|
193
193
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts",
|
|
194
|
-
"baseHash": "
|
|
194
|
+
"baseHash": "8e33800dfdd3b50e26c3331abb8b4682c091602f"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"type": "patch",
|
|
198
198
|
"file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
199
199
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
200
|
-
"baseHash": "
|
|
200
|
+
"baseHash": "bf6dc1a18a8c069cd8f21d187c81177e3b6d5c1f",
|
|
201
201
|
"issue": 6240
|
|
202
202
|
},
|
|
203
203
|
{
|
|
@@ -331,13 +331,13 @@
|
|
|
331
331
|
"type": "derived",
|
|
332
332
|
"file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
|
|
333
333
|
"baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
|
|
334
|
-
"baseHash": "
|
|
334
|
+
"baseHash": "4f959b8e2f98c7d6de44e06be8bc41bf58adbe31"
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
"type": "copy",
|
|
338
338
|
"file": "src-win/Libraries/Network/RCTNetworking.win32.js",
|
|
339
339
|
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
|
|
340
|
-
"baseHash": "
|
|
340
|
+
"baseHash": "9f1622d938405344bc27a2cf61a1c26773518a88",
|
|
341
341
|
"issue": 4318
|
|
342
342
|
},
|
|
343
343
|
{
|
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.279",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"@react-native-community/cli-platform-android": "15.0.0-alpha.2",
|
|
31
31
|
"@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.78.0-nightly-
|
|
34
|
-
"@react-native/codegen": "0.78.0-nightly-
|
|
35
|
-
"@react-native/community-cli-plugin": "0.78.0-nightly-
|
|
36
|
-
"@react-native/gradle-plugin": "0.78.0-nightly-
|
|
37
|
-
"@react-native/js-polyfills": "0.78.0-nightly-
|
|
38
|
-
"@react-native/normalize-colors": "0.78.0-nightly-
|
|
39
|
-
"@react-native/virtualized-lists": "0.78.0-nightly-
|
|
33
|
+
"@react-native/assets-registry": "0.78.0-nightly-20241221-66342d3cc",
|
|
34
|
+
"@react-native/codegen": "0.78.0-nightly-20241221-66342d3cc",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.78.0-nightly-20241221-66342d3cc",
|
|
36
|
+
"@react-native/gradle-plugin": "0.78.0-nightly-20241221-66342d3cc",
|
|
37
|
+
"@react-native/js-polyfills": "0.78.0-nightly-20241221-66342d3cc",
|
|
38
|
+
"@react-native/normalize-colors": "0.78.0-nightly-20241221-66342d3cc",
|
|
39
|
+
"@react-native/virtualized-lists": "0.78.0-nightly-20241221-66342d3cc",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"anser": "^1.4.9",
|
|
42
42
|
"ansi-regex": "^5.0.0",
|
|
@@ -75,28 +75,28 @@
|
|
|
75
75
|
"@babel/eslint-parser": "^7.25.1",
|
|
76
76
|
"@react-native/metro-config": "0.77.0-nightly-20241001-223e98cc4",
|
|
77
77
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
78
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
79
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
80
|
-
"@rnw-scripts/just-task": "2.3.
|
|
78
|
+
"@rnw-scripts/eslint-config": "1.2.31",
|
|
79
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.35",
|
|
80
|
+
"@rnw-scripts/just-task": "2.3.48",
|
|
81
81
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
82
82
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
83
83
|
"@types/node": "^18.0.0",
|
|
84
84
|
"@types/prop-types": "15.7.1",
|
|
85
|
-
"@types/react": "^
|
|
85
|
+
"@types/react": "^19.0.0",
|
|
86
86
|
"eslint": "^8.19.0",
|
|
87
|
-
"flow-bin": "^0.
|
|
87
|
+
"flow-bin": "^0.257.1",
|
|
88
88
|
"jscodeshift": "^0.14.0",
|
|
89
89
|
"just-scripts": "^1.3.3",
|
|
90
90
|
"prettier": "2.8.8",
|
|
91
|
-
"react": "
|
|
92
|
-
"react-native": "0.78.0-nightly-
|
|
93
|
-
"react-native-platform-override": "^1.9.
|
|
91
|
+
"react": "19.0.0",
|
|
92
|
+
"react-native": "0.78.0-nightly-20241221-66342d3cc",
|
|
93
|
+
"react-native-platform-override": "^1.9.50",
|
|
94
94
|
"typescript": "5.0.4"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@types/react": "^
|
|
98
|
-
"react": "^
|
|
99
|
-
"react-native": "0.78.0-nightly-
|
|
97
|
+
"@types/react": "^19.0.0",
|
|
98
|
+
"react": "^19.0.0",
|
|
99
|
+
"react-native": "0.78.0-nightly-20241221-66342d3cc"
|
|
100
100
|
},
|
|
101
101
|
"beachball": {
|
|
102
102
|
"defaultNpmTag": "canary",
|
|
@@ -20,7 +20,7 @@ export function validateInterpolation<OutputT: number | string>(
|
|
|
20
20
|
config: InterpolationConfigType<OutputT>,
|
|
21
21
|
): void {
|
|
22
22
|
for (const key in config) {
|
|
23
|
-
if (!isSupportedInterpolationParam(key)) {
|
|
23
|
+
if (key !== 'debugID' && !isSupportedInterpolationParam(key)) {
|
|
24
24
|
console.error(
|
|
25
25
|
`Interpolation property '${key}' is not supported by native animated module`,
|
|
26
26
|
);
|
|
@@ -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<<a35c5b22c0f20cb50ceaf56a856c9c8f>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
setOverrides,
|
|
27
27
|
} from './ReactNativeFeatureFlagsBase';
|
|
28
28
|
|
|
29
|
-
export type ReactNativeFeatureFlagsJsOnly = {
|
|
29
|
+
export type ReactNativeFeatureFlagsJsOnly = $ReadOnly<{
|
|
30
30
|
jsOnlyTestFlag: Getter<boolean>,
|
|
31
31
|
animatedShouldDebounceQueueFlush: Getter<boolean>,
|
|
32
32
|
animatedShouldUseSingleOp: Getter<boolean>,
|
|
@@ -44,17 +44,18 @@ export type ReactNativeFeatureFlagsJsOnly = {
|
|
|
44
44
|
shouldUseSetNativePropsInFabric: Getter<boolean>,
|
|
45
45
|
useInsertionEffectsForAnimations: Getter<boolean>,
|
|
46
46
|
useRefsForTextInputState: Getter<boolean>,
|
|
47
|
-
}
|
|
47
|
+
}>;
|
|
48
48
|
|
|
49
49
|
export type ReactNativeFeatureFlagsJsOnlyOverrides = OverridesFor<ReactNativeFeatureFlagsJsOnly>;
|
|
50
50
|
|
|
51
|
-
export type ReactNativeFeatureFlags = {
|
|
51
|
+
export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
52
52
|
...ReactNativeFeatureFlagsJsOnly,
|
|
53
53
|
commonTestFlag: Getter<boolean>,
|
|
54
54
|
commonTestFlagWithoutNativeImplementation: Getter<boolean>,
|
|
55
55
|
completeReactInstanceCreationOnBgThreadOnAndroid: Getter<boolean>,
|
|
56
56
|
disableEventLoopOnBridgeless: Getter<boolean>,
|
|
57
57
|
disableMountItemReorderingAndroid: Getter<boolean>,
|
|
58
|
+
enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean>,
|
|
58
59
|
enableAlignItemsBaselineOnFabricIOS: Getter<boolean>,
|
|
59
60
|
enableAndroidLineHeightCentering: Getter<boolean>,
|
|
60
61
|
enableBridgelessArchitecture: Getter<boolean>,
|
|
@@ -94,10 +95,11 @@ export type ReactNativeFeatureFlags = {
|
|
|
94
95
|
useNativeViewConfigsInBridgelessMode: Getter<boolean>,
|
|
95
96
|
useOptimisedViewPreallocationOnAndroid: Getter<boolean>,
|
|
96
97
|
useOptimizedEventBatchingOnAndroid: Getter<boolean>,
|
|
98
|
+
useRawPropsJsiValue: Getter<boolean>,
|
|
97
99
|
useRuntimeShadowNodeReferenceUpdate: Getter<boolean>,
|
|
98
100
|
useTurboModuleInterop: Getter<boolean>,
|
|
99
101
|
useTurboModules: Getter<boolean>,
|
|
100
|
-
}
|
|
102
|
+
}>;
|
|
101
103
|
|
|
102
104
|
/**
|
|
103
105
|
* JS-only flag for testing. Do NOT modify.
|
|
@@ -157,7 +159,7 @@ export const isLayoutAnimationEnabled: Getter<boolean> = createJavaScriptFlagGet
|
|
|
157
159
|
/**
|
|
158
160
|
* If the animation is within Animated.loop, we do not send state updates to React.
|
|
159
161
|
*/
|
|
160
|
-
export const shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean> = createJavaScriptFlagGetter('shouldSkipStateUpdatesForLoopingAnimations',
|
|
162
|
+
export const shouldSkipStateUpdatesForLoopingAnimations: Getter<boolean> = createJavaScriptFlagGetter('shouldSkipStateUpdatesForLoopingAnimations', true);
|
|
161
163
|
|
|
162
164
|
/**
|
|
163
165
|
* Enables use of AnimatedObject for animating transform values.
|
|
@@ -204,6 +206,10 @@ export const disableEventLoopOnBridgeless: Getter<boolean> = createNativeFlagGet
|
|
|
204
206
|
* Prevent FabricMountingManager from reordering mountitems, which may lead to invalid state on the UI thread
|
|
205
207
|
*/
|
|
206
208
|
export const disableMountItemReorderingAndroid: Getter<boolean> = createNativeFlagGetter('disableMountItemReorderingAndroid', false);
|
|
209
|
+
/**
|
|
210
|
+
* When enabled, Andoid will accumulate updates in rawProps to reduce the number of mounting instructions for cascading rerenders.
|
|
211
|
+
*/
|
|
212
|
+
export const enableAccumulatedUpdatesInRawPropsAndroid: Getter<boolean> = createNativeFlagGetter('enableAccumulatedUpdatesInRawPropsAndroid', false);
|
|
207
213
|
/**
|
|
208
214
|
* Kill-switch to turn off support for aling-items:baseline on Fabric iOS.
|
|
209
215
|
*/
|
|
@@ -360,6 +366,10 @@ export const useOptimisedViewPreallocationOnAndroid: Getter<boolean> = createNat
|
|
|
360
366
|
* Uses an optimized mechanism for event batching on Android that does not need to wait for a Choreographer frame callback.
|
|
361
367
|
*/
|
|
362
368
|
export const useOptimizedEventBatchingOnAndroid: Getter<boolean> = createNativeFlagGetter('useOptimizedEventBatchingOnAndroid', false);
|
|
369
|
+
/**
|
|
370
|
+
* Instead of using folly::dynamic as internal representation in RawProps and RawValue, use jsi::Value
|
|
371
|
+
*/
|
|
372
|
+
export const useRawPropsJsiValue: Getter<boolean> = createNativeFlagGetter('useRawPropsJsiValue', false);
|
|
363
373
|
/**
|
|
364
374
|
* When enabled, cloning shadow nodes within react native will update the reference held by the current JS fiber tree.
|
|
365
375
|
*/
|
|
@@ -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<<386958552a092ac75840bf3202fb0341>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -28,6 +28,7 @@ export interface Spec extends TurboModule {
|
|
|
28
28
|
+completeReactInstanceCreationOnBgThreadOnAndroid?: () => boolean;
|
|
29
29
|
+disableEventLoopOnBridgeless?: () => boolean;
|
|
30
30
|
+disableMountItemReorderingAndroid?: () => boolean;
|
|
31
|
+
+enableAccumulatedUpdatesInRawPropsAndroid?: () => boolean;
|
|
31
32
|
+enableAlignItemsBaselineOnFabricIOS?: () => boolean;
|
|
32
33
|
+enableAndroidLineHeightCentering?: () => boolean;
|
|
33
34
|
+enableBridgelessArchitecture?: () => boolean;
|
|
@@ -67,6 +68,7 @@ export interface Spec extends TurboModule {
|
|
|
67
68
|
+useNativeViewConfigsInBridgelessMode?: () => boolean;
|
|
68
69
|
+useOptimisedViewPreallocationOnAndroid?: () => boolean;
|
|
69
70
|
+useOptimizedEventBatchingOnAndroid?: () => boolean;
|
|
71
|
+
+useRawPropsJsiValue?: () => boolean;
|
|
70
72
|
+useRuntimeShadowNodeReferenceUpdate?: () => boolean;
|
|
71
73
|
+useTurboModuleInterop?: () => boolean;
|
|
72
74
|
+useTurboModules?: () => boolean;
|
|
@@ -343,13 +343,6 @@ export interface ViewProps
|
|
|
343
343
|
* Used to reference react managed views from native code.
|
|
344
344
|
*/
|
|
345
345
|
nativeID?: string | undefined;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Contols whether this view, and its transitive children, are laid in a way
|
|
349
|
-
* consistent with web browsers ('strict'), or consistent with existing
|
|
350
|
-
* React Native code which may rely on incorrect behavior ('classic').
|
|
351
|
-
*/
|
|
352
|
-
experimental_layoutConformance?: 'strict' | 'classic' | undefined;
|
|
353
346
|
}
|
|
354
347
|
|
|
355
348
|
// For backwards compat.... // Win32
|
|
@@ -8,5 +8,6 @@ import { PersonaCoinDefaultProps } from './PersonaCoinPropTypes';
|
|
|
8
8
|
const RCTPersonaCoin = requireNativeComponent('RCTPersonaCoin');
|
|
9
9
|
|
|
10
10
|
export const PersonaCoin: React.FunctionComponent<IPersonaCoinProps> = (props: IPersonaCoinProps) => <RCTPersonaCoin {...props} />;
|
|
11
|
+
// @ts-ignore
|
|
11
12
|
PersonaCoin.defaultProps = PersonaCoinDefaultProps;
|
|
12
13
|
PersonaCoin.displayName = 'PersonaCoin';
|
package/types/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export * from '../Libraries/Components/Clipboard/Clipboard';
|
|
|
84
84
|
export * from '../Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
85
85
|
export * from '../Libraries/Components/Keyboard/Keyboard';
|
|
86
86
|
export * from '../Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
87
|
+
export * from '../Libraries/Components/LayoutConformance/LayoutConformance';
|
|
87
88
|
export * from '../Libraries/Components/Pressable/Pressable';
|
|
88
89
|
export * from '../Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
89
90
|
export * from '../Libraries/Components/RefreshControl/RefreshControl';
|
|
@@ -1,29 +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
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import NativeJSCHeapCapture from './NativeJSCHeapCapture';
|
|
12
|
-
|
|
13
|
-
const HeapCapture = {
|
|
14
|
-
captureHeap: function (path: string) {
|
|
15
|
-
let error = null;
|
|
16
|
-
try {
|
|
17
|
-
global.nativeCaptureHeap(path);
|
|
18
|
-
console.log('HeapCapture.captureHeap succeeded: ' + path);
|
|
19
|
-
} catch (e) {
|
|
20
|
-
console.log('HeapCapture.captureHeap error: ' + e.toString());
|
|
21
|
-
error = e.toString();
|
|
22
|
-
}
|
|
23
|
-
if (NativeJSCHeapCapture) {
|
|
24
|
-
NativeJSCHeapCapture.captureComplete(path, error);
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
module.exports = HeapCapture;
|
|
@@ -1,13 +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
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from '../../src/private/specs/modules/NativeJSCHeapCapture';
|
|
12
|
-
import NativeJSCHeapCapture from '../../src/private/specs/modules/NativeJSCHeapCapture';
|
|
13
|
-
export default NativeJSCHeapCapture;
|
|
@@ -1,13 +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
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from '../../src/private/specs/modules/NativeJSCSamplingProfiler';
|
|
12
|
-
import NativeJSCSamplingProfiler from '../../src/private/specs/modules/NativeJSCSamplingProfiler';
|
|
13
|
-
export default NativeJSCSamplingProfiler;
|
|
@@ -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
|
-
* @format
|
|
8
|
-
* @flow strict
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
const SamplingProfiler = {
|
|
14
|
-
poke: function (token: number): void {
|
|
15
|
-
let error = null;
|
|
16
|
-
let result = null;
|
|
17
|
-
try {
|
|
18
|
-
result = global.pokeSamplingProfiler();
|
|
19
|
-
if (result === null) {
|
|
20
|
-
console.log('The JSC Sampling Profiler has started');
|
|
21
|
-
} else {
|
|
22
|
-
console.log('The JSC Sampling Profiler has stopped');
|
|
23
|
-
}
|
|
24
|
-
} catch (e) {
|
|
25
|
-
console.log(
|
|
26
|
-
'Error occurred when restarting Sampling Profiler: ' + e.toString(),
|
|
27
|
-
);
|
|
28
|
-
error = e.toString();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const NativeJSCSamplingProfiler =
|
|
32
|
-
require('./NativeJSCSamplingProfiler').default;
|
|
33
|
-
if (NativeJSCSamplingProfiler) {
|
|
34
|
-
NativeJSCSamplingProfiler.operationComplete(token, result, error);
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
module.exports = SamplingProfiler;
|
|
@@ -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
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';
|
|
12
|
-
|
|
13
|
-
import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';
|
|
14
|
-
|
|
15
|
-
export interface Spec extends TurboModule {
|
|
16
|
-
+operationComplete: (token: number, result: ?string, error: ?string) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default (TurboModuleRegistry.get<Spec>('JSCSamplingProfiler'): ?Spec);
|