@office-iss/react-native-win32 0.0.0-canary.262 → 0.0.0-canary.263
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/.eslintrc.js +11 -0
- package/.flowconfig +1 -1
- package/CHANGELOG.json +40 -1
- package/CHANGELOG.md +17 -5
- package/Libraries/Animated/AnimatedEvent.js +1 -1
- package/Libraries/Animated/NativeAnimatedAllowlist.js +111 -0
- package/Libraries/Animated/animations/Animation.js +1 -1
- package/Libraries/Animated/animations/DecayAnimation.js +1 -1
- package/Libraries/Animated/animations/SpringAnimation.js +1 -1
- package/Libraries/Animated/animations/TimingAnimation.js +1 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +1 -0
- package/Libraries/Animated/createAnimatedComponent.js +9 -8
- package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +3 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +42 -33
- package/Libraries/Animated/nodes/AnimatedObject.js +54 -45
- package/Libraries/Animated/nodes/AnimatedProps.js +75 -40
- package/Libraries/Animated/nodes/AnimatedStyle.js +103 -59
- package/Libraries/Animated/nodes/AnimatedTracking.js +1 -1
- package/Libraries/Animated/nodes/AnimatedTransform.js +102 -67
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/Animated/nodes/AnimatedWithChildren.js +21 -22
- package/Libraries/Animated/useAnimatedProps.js +18 -15
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/Image.win32.js +1 -3
- package/Libraries/Inspector/Inspector.js +3 -2
- package/Libraries/Inspector/Inspector.win32.js +3 -2
- package/Libraries/Inspector/InspectorPanel.js +16 -10
- package/Libraries/LogBox/LogBoxNotificationContainer.js +3 -2
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -12
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -12
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +17 -15
- package/Libraries/Text/TextNativeComponent.win32.js +0 -1
- package/Libraries/vendor/emitter/EventEmitter.js +5 -5
- package/overrides.json +11 -11
- package/package.json +19 -18
- package/src/private/animated/NativeAnimatedHelper.js +438 -0
- package/src/private/animated/NativeAnimatedHelper.win32.js +440 -0
- package/src/private/animated/NativeAnimatedValidation.js +64 -0
- package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +27 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +1 -7
- package/Libraries/Animated/NativeAnimatedHelper.js +0 -615
- package/Libraries/Animated/NativeAnimatedHelper.win32.js +0 -617
- package/src/private/hooks/DebouncedEffectImplementation.js +0 -148
- package/src/private/hooks/useDebouncedEffect.js +0 -23
|
@@ -12,26 +12,29 @@
|
|
|
12
12
|
|
|
13
13
|
import type {PlatformConfig} from '../AnimatedPlatformConfig';
|
|
14
14
|
|
|
15
|
-
import NativeAnimatedHelper from '
|
|
15
|
+
import NativeAnimatedHelper from '../../../src/private/animated/NativeAnimatedHelper';
|
|
16
16
|
import AnimatedNode from './AnimatedNode';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const {connectAnimatedNodes, disconnectAnimatedNodes} =
|
|
19
|
+
NativeAnimatedHelper.API;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this._children = [];
|
|
24
|
-
}
|
|
21
|
+
export default class AnimatedWithChildren extends AnimatedNode {
|
|
22
|
+
_children: Array<AnimatedNode> = [];
|
|
25
23
|
|
|
26
24
|
__makeNative(platformConfig: ?PlatformConfig) {
|
|
27
25
|
if (!this.__isNative) {
|
|
28
26
|
this.__isNative = true;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
|
|
28
|
+
const children = this._children;
|
|
29
|
+
let length = children.length;
|
|
30
|
+
if (length > 0) {
|
|
31
|
+
const nativeTag = this.__getNativeTag();
|
|
32
|
+
|
|
33
|
+
for (let ii = 0; ii < length; ii++) {
|
|
34
|
+
const child = children[ii];
|
|
35
|
+
child.__makeNative(platformConfig);
|
|
36
|
+
connectAnimatedNodes(nativeTag, child.__getNativeTag());
|
|
37
|
+
}
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
super.__makeNative(platformConfig);
|
|
@@ -45,10 +48,7 @@ export default class AnimatedWithChildren extends AnimatedNode {
|
|
|
45
48
|
if (this.__isNative) {
|
|
46
49
|
// Only accept "native" animated nodes as children
|
|
47
50
|
child.__makeNative(this.__getPlatformConfig());
|
|
48
|
-
|
|
49
|
-
this.__getNativeTag(),
|
|
50
|
-
child.__getNativeTag(),
|
|
51
|
-
);
|
|
51
|
+
connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -59,10 +59,7 @@ export default class AnimatedWithChildren extends AnimatedNode {
|
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
if (this.__isNative && child.__isNative) {
|
|
62
|
-
|
|
63
|
-
this.__getNativeTag(),
|
|
64
|
-
child.__getNativeTag(),
|
|
65
|
-
);
|
|
62
|
+
disconnectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());
|
|
66
63
|
}
|
|
67
64
|
this._children.splice(index, 1);
|
|
68
65
|
if (this._children.length === 0) {
|
|
@@ -77,7 +74,9 @@ export default class AnimatedWithChildren extends AnimatedNode {
|
|
|
77
74
|
__callListeners(value: number): void {
|
|
78
75
|
super.__callListeners(value);
|
|
79
76
|
if (!this.__isNative) {
|
|
80
|
-
|
|
77
|
+
const children = this._children;
|
|
78
|
+
for (let ii = 0, length = children.length; ii < length; ii++) {
|
|
79
|
+
const child = children[ii];
|
|
81
80
|
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
|
|
82
81
|
if (child.__getValue) {
|
|
83
82
|
child.__callListeners(child.__getValue());
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
import type {EventSubscription} from '../EventEmitter/NativeEventEmitter';
|
|
14
14
|
|
|
15
15
|
import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';
|
|
16
|
-
import useDebouncedEffect from '../../src/private/hooks/useDebouncedEffect';
|
|
17
16
|
import {isPublicInstance as isFabricPublicInstance} from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils';
|
|
18
17
|
import useRefEffect from '../Utilities/useRefEffect';
|
|
19
18
|
import {AnimatedEvent} from './AnimatedEvent';
|
|
20
|
-
import NativeAnimatedHelper from '
|
|
19
|
+
import NativeAnimatedHelper from '../../src/private/animated/NativeAnimatedHelper';
|
|
21
20
|
import AnimatedNode from './nodes/AnimatedNode';
|
|
22
21
|
import AnimatedProps from './nodes/AnimatedProps';
|
|
23
22
|
import AnimatedValue from './nodes/AnimatedValue';
|
|
@@ -247,16 +246,15 @@ function addAnimatedValuesListenersToProps(
|
|
|
247
246
|
function useAnimatedPropsLifecycle_layoutEffects(node: AnimatedProps): void {
|
|
248
247
|
const prevNodeRef = useRef<?AnimatedProps>(null);
|
|
249
248
|
const isUnmountingRef = useRef<boolean>(false);
|
|
250
|
-
const userDrivenAnimationEndedListener = useRef<?EventSubscription>(null);
|
|
251
249
|
|
|
252
250
|
useEffect(() => {
|
|
253
251
|
// It is ok for multiple components to call `flushQueue` because it noops
|
|
254
252
|
// if the queue is empty. When multiple animated components are mounted at
|
|
255
253
|
// the same time. Only first component flushes the queue and the others will noop.
|
|
256
254
|
NativeAnimatedHelper.API.flushQueue();
|
|
257
|
-
|
|
255
|
+
let drivenAnimationEndedListener: ?EventSubscription = null;
|
|
258
256
|
if (node.__isNative) {
|
|
259
|
-
|
|
257
|
+
drivenAnimationEndedListener =
|
|
260
258
|
NativeAnimatedHelper.nativeEventEmitter.addListener(
|
|
261
259
|
'onUserDrivenAnimationEnded',
|
|
262
260
|
data => {
|
|
@@ -266,10 +264,7 @@ function useAnimatedPropsLifecycle_layoutEffects(node: AnimatedProps): void {
|
|
|
266
264
|
}
|
|
267
265
|
|
|
268
266
|
return () => {
|
|
269
|
-
|
|
270
|
-
userDrivenAnimationEndedListener.current?.remove();
|
|
271
|
-
userDrivenAnimationEndedListener.current = null;
|
|
272
|
-
}
|
|
267
|
+
drivenAnimationEndedListener?.remove();
|
|
273
268
|
};
|
|
274
269
|
});
|
|
275
270
|
|
|
@@ -327,13 +322,19 @@ function useAnimatedPropsLifecycle_passiveEffects(node: AnimatedProps): void {
|
|
|
327
322
|
};
|
|
328
323
|
}, []);
|
|
329
324
|
|
|
330
|
-
|
|
331
|
-
ReactNativeFeatureFlags.shouldUseDebouncedEffectsForAnimated()
|
|
332
|
-
? useDebouncedEffect
|
|
333
|
-
: useEffect;
|
|
334
|
-
|
|
335
|
-
useEffectImpl(() => {
|
|
325
|
+
useEffect(() => {
|
|
336
326
|
node.__attach();
|
|
327
|
+
let drivenAnimationEndedListener: ?EventSubscription = null;
|
|
328
|
+
|
|
329
|
+
if (node.__isNative) {
|
|
330
|
+
drivenAnimationEndedListener =
|
|
331
|
+
NativeAnimatedHelper.nativeEventEmitter.addListener(
|
|
332
|
+
'onUserDrivenAnimationEnded',
|
|
333
|
+
data => {
|
|
334
|
+
node.update();
|
|
335
|
+
},
|
|
336
|
+
);
|
|
337
|
+
}
|
|
337
338
|
if (prevNodeRef.current != null) {
|
|
338
339
|
const prevNode = prevNodeRef.current;
|
|
339
340
|
// TODO: Stop restoring default values (unless `reset` is called).
|
|
@@ -348,6 +349,8 @@ function useAnimatedPropsLifecycle_passiveEffects(node: AnimatedProps): void {
|
|
|
348
349
|
} else {
|
|
349
350
|
prevNodeRef.current = node;
|
|
350
351
|
}
|
|
352
|
+
|
|
353
|
+
drivenAnimationEndedListener?.remove();
|
|
351
354
|
};
|
|
352
355
|
}, [node]);
|
|
353
356
|
}
|
|
@@ -13,9 +13,7 @@ import type {AbstractImageIOS, ImageIOS} from './ImageTypes.flow';
|
|
|
13
13
|
import TextAncestor from '../Text/TextAncestor'; // [Windows]
|
|
14
14
|
import invariant from 'invariant'; // [Windows]
|
|
15
15
|
|
|
16
|
-
import type {
|
|
17
|
-
|
|
18
|
-
import type {ImageStyle, ImageStyleProp} from '../StyleSheet/StyleSheet';
|
|
16
|
+
import type {ImageStyleProp} from '../StyleSheet/StyleSheet';
|
|
19
17
|
import NativeImageLoaderWin32 from './NativeImageLoaderWin32'; // [Win32] Replace iOS
|
|
20
18
|
|
|
21
19
|
import {createRootTag} from '../ReactNative/RootTag';
|
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
} from '../Renderer/shims/ReactNativeTypes';
|
|
18
18
|
import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
|
|
19
19
|
import type {ReactDevToolsAgent} from '../Types/ReactDevToolsTypes';
|
|
20
|
+
import SafeAreaView from '../../src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE';
|
|
20
21
|
|
|
21
22
|
const View = require('../Components/View/View');
|
|
22
23
|
const PressabilityDebug = require('../Pressability/PressabilityDebug');
|
|
@@ -164,7 +165,7 @@ function Inspector({
|
|
|
164
165
|
/>
|
|
165
166
|
)}
|
|
166
167
|
|
|
167
|
-
<
|
|
168
|
+
<SafeAreaView style={[styles.panelContainer, panelContainerStyle]}>
|
|
168
169
|
<InspectorPanel
|
|
169
170
|
devtoolsIsOpen={!!reactDevToolsAgent}
|
|
170
171
|
inspecting={selectedTab === 'elements-inspector'}
|
|
@@ -180,7 +181,7 @@ function Inspector({
|
|
|
180
181
|
networking={selectedTab === 'network-profiling'}
|
|
181
182
|
setNetworking={setNetworking}
|
|
182
183
|
/>
|
|
183
|
-
</
|
|
184
|
+
</SafeAreaView>
|
|
184
185
|
</View>
|
|
185
186
|
);
|
|
186
187
|
}
|
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
} from '../Renderer/shims/ReactNativeTypes';
|
|
18
18
|
import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
|
|
19
19
|
import type {ReactDevToolsAgent} from '../Types/ReactDevToolsTypes';
|
|
20
|
+
import SafeAreaView from '../../src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE';
|
|
20
21
|
|
|
21
22
|
const PressabilityDebug = require('../Pressability/PressabilityDebug');
|
|
22
23
|
const ReactNative = require('../Renderer/shims/ReactNative');
|
|
@@ -170,7 +171,7 @@ function Inspector({
|
|
|
170
171
|
/>
|
|
171
172
|
)}
|
|
172
173
|
|
|
173
|
-
<
|
|
174
|
+
<SafeAreaView style={[styles.panelContainer, panelContainerStyle]}>
|
|
174
175
|
<InspectorPanel
|
|
175
176
|
devtoolsIsOpen={!!reactDevToolsAgent}
|
|
176
177
|
inspecting={selectedTab === 'elements-inspector'}
|
|
@@ -186,7 +187,7 @@ function Inspector({
|
|
|
186
187
|
networking={selectedTab === 'network-profiling'}
|
|
187
188
|
setNetworking={setNetworking}
|
|
188
189
|
/>
|
|
189
|
-
</
|
|
190
|
+
</SafeAreaView>
|
|
190
191
|
</View>
|
|
191
192
|
);
|
|
192
193
|
}
|
|
@@ -80,16 +80,22 @@ class InspectorPanel extends React.Component<Props> {
|
|
|
80
80
|
pressed={this.props.inspecting}
|
|
81
81
|
onClick={this.props.setInspecting}
|
|
82
82
|
/>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
{global.RN$Bridgeless === true ? null : (
|
|
84
|
+
// These Inspector Panel sub-features are removed under the New Arch.
|
|
85
|
+
// See https://github.com/react-native-community/discussions-and-proposals/pull/777
|
|
86
|
+
<>
|
|
87
|
+
<InspectorPanelButton
|
|
88
|
+
title={'Perf'}
|
|
89
|
+
pressed={this.props.perfing}
|
|
90
|
+
onClick={this.props.setPerfing}
|
|
91
|
+
/>
|
|
92
|
+
<InspectorPanelButton
|
|
93
|
+
title={'Network'}
|
|
94
|
+
pressed={this.props.networking}
|
|
95
|
+
onClick={this.props.setNetworking}
|
|
96
|
+
/>
|
|
97
|
+
</>
|
|
98
|
+
)}
|
|
93
99
|
<InspectorPanelButton
|
|
94
100
|
title={'Touchables'}
|
|
95
101
|
pressed={this.props.touchTargeting}
|
|
@@ -14,6 +14,7 @@ import * as LogBoxData from './Data/LogBoxData';
|
|
|
14
14
|
import LogBoxLog from './Data/LogBoxLog';
|
|
15
15
|
import LogBoxLogNotification from './UI/LogBoxNotification';
|
|
16
16
|
import * as React from 'react';
|
|
17
|
+
import SafeAreaView from '../../src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE';
|
|
17
18
|
|
|
18
19
|
type Props = $ReadOnly<{|
|
|
19
20
|
logs: $ReadOnlyArray<LogBoxLog>,
|
|
@@ -58,7 +59,7 @@ export function _LogBoxNotificationContainer(props: Props): React.Node {
|
|
|
58
59
|
log => log.level === 'error' || log.level === 'fatal',
|
|
59
60
|
);
|
|
60
61
|
return (
|
|
61
|
-
<
|
|
62
|
+
<SafeAreaView style={styles.list}>
|
|
62
63
|
{warnings.length > 0 && (
|
|
63
64
|
<View style={styles.toast}>
|
|
64
65
|
<LogBoxLogNotification
|
|
@@ -81,7 +82,7 @@ export function _LogBoxNotificationContainer(props: Props): React.Node {
|
|
|
81
82
|
/>
|
|
82
83
|
</View>
|
|
83
84
|
)}
|
|
84
|
-
</
|
|
85
|
+
</SafeAreaView>
|
|
85
86
|
);
|
|
86
87
|
}
|
|
87
88
|
|
|
@@ -28,18 +28,7 @@ type Props = $ReadOnly<{
|
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
const LogBoxInspectorHeaderSafeArea: React.AbstractComponent<ViewProps> =
|
|
31
|
-
Platform.OS === 'android'
|
|
32
|
-
? function LogBoxInspectorHeaderSafeArea(props) {
|
|
33
|
-
// NOTE: Inline the import of `StatusBar` so that initializing this module
|
|
34
|
-
// does not require initializing a TurboModule (and main thread one, too).
|
|
35
|
-
const {currentHeight} = require('../../Components/StatusBar/StatusBar');
|
|
36
|
-
const style = StyleSheet.compose(
|
|
37
|
-
{paddingTop: currentHeight},
|
|
38
|
-
props.style,
|
|
39
|
-
);
|
|
40
|
-
return <View {...props} style={style} />;
|
|
41
|
-
}
|
|
42
|
-
: SafeAreaView;
|
|
31
|
+
Platform.OS === 'android' ? View : SafeAreaView;
|
|
43
32
|
|
|
44
33
|
export default function LogBoxInspectorHeader(props: Props): React.Node {
|
|
45
34
|
if (props.level === 'syntax') {
|
|
@@ -30,18 +30,7 @@ type Props = $ReadOnly<{
|
|
|
30
30
|
}>;
|
|
31
31
|
|
|
32
32
|
const LogBoxInspectorHeaderSafeArea: React.AbstractComponent<ViewProps> =
|
|
33
|
-
Platform.OS === 'android'
|
|
34
|
-
? function LogBoxInspectorHeaderSafeArea(props) {
|
|
35
|
-
// NOTE: Inline the import of `StatusBar` so that initializing this module
|
|
36
|
-
// does not require initializing a TurboModule (and main thread one, too).
|
|
37
|
-
const {currentHeight} = require('../../Components/StatusBar/StatusBar');
|
|
38
|
-
const style = StyleSheet.compose(
|
|
39
|
-
{paddingTop: currentHeight},
|
|
40
|
-
props.style,
|
|
41
|
-
);
|
|
42
|
-
return <View {...props} style={style} />;
|
|
43
|
-
}
|
|
44
|
-
: SafeAreaView;
|
|
33
|
+
Platform.OS === 'android' ? View : SafeAreaView;
|
|
45
34
|
|
|
46
35
|
export default function LogBoxInspectorHeader(props: Props): React.Node {
|
|
47
36
|
if (props.level === 'syntax') {
|
|
@@ -182,21 +182,23 @@ type MaximumOneOf<T, K extends keyof T = keyof T> = K extends keyof T
|
|
|
182
182
|
|
|
183
183
|
export interface TransformsStyle {
|
|
184
184
|
transform?:
|
|
185
|
-
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
185
|
+
| Readonly<
|
|
186
|
+
MaximumOneOf<
|
|
187
|
+
PerspectiveTransform &
|
|
188
|
+
RotateTransform &
|
|
189
|
+
RotateXTransform &
|
|
190
|
+
RotateYTransform &
|
|
191
|
+
RotateZTransform &
|
|
192
|
+
ScaleTransform &
|
|
193
|
+
ScaleXTransform &
|
|
194
|
+
ScaleYTransform &
|
|
195
|
+
TranslateXTransform &
|
|
196
|
+
TranslateYTransform &
|
|
197
|
+
SkewXTransform &
|
|
198
|
+
SkewYTransform &
|
|
199
|
+
MatrixTransform
|
|
200
|
+
>[]
|
|
201
|
+
>
|
|
200
202
|
| string
|
|
201
203
|
| undefined;
|
|
202
204
|
transformOrigin?: Array<string | number> | string | undefined;
|
|
@@ -16,7 +16,6 @@ import type {TextProps} from './TextProps';
|
|
|
16
16
|
import {createViewConfig} from '../NativeComponent/ViewConfig';
|
|
17
17
|
import UIManager from '../ReactNative/UIManager';
|
|
18
18
|
import createReactNativeComponentClass from '../Renderer/shims/createReactNativeComponentClass';
|
|
19
|
-
import Platform from '../Utilities/Platform';
|
|
20
19
|
|
|
21
20
|
export type NativeTextProps = $ReadOnly<{
|
|
22
21
|
...TextProps,
|
|
@@ -35,11 +35,9 @@ interface Registration<TArgs> {
|
|
|
35
35
|
+remove: () => void;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<TArgs>(TArgs) => Set<Registration<TArgs>>,
|
|
42
|
-
>;
|
|
38
|
+
type Registry<TEventToArgsMap: {...}> = {
|
|
39
|
+
[K in keyof TEventToArgsMap]: Set<Registration<TEventToArgsMap[K]>>,
|
|
40
|
+
};
|
|
43
41
|
|
|
44
42
|
/**
|
|
45
43
|
* EventEmitter manages listeners and publishes events to them.
|
|
@@ -64,6 +62,7 @@ type Registry<TEventToArgsMap: {...}> = $ObjMap<
|
|
|
64
62
|
export default class EventEmitter<TEventToArgsMap: {...}>
|
|
65
63
|
implements IEventEmitter<TEventToArgsMap>
|
|
66
64
|
{
|
|
65
|
+
// $FlowFixMe[incompatible-type]
|
|
67
66
|
#registry: Registry<TEventToArgsMap> = {};
|
|
68
67
|
|
|
69
68
|
/**
|
|
@@ -126,6 +125,7 @@ export default class EventEmitter<TEventToArgsMap: {...}>
|
|
|
126
125
|
eventType?: ?TEvent,
|
|
127
126
|
): void {
|
|
128
127
|
if (eventType == null) {
|
|
128
|
+
// $FlowFixMe[incompatible-type]
|
|
129
129
|
this.#registry = {};
|
|
130
130
|
} else {
|
|
131
131
|
delete this.#registry[eventType];
|
package/overrides.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.76.0-nightly-
|
|
10
|
+
"baseVersion": "0.76.0-nightly-20240909-143f1ad29",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "cc375839a102263f435205df68b79d3d74c4f20a"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"type": "derived",
|
|
@@ -31,13 +31,6 @@
|
|
|
31
31
|
"baseFile": "packages/react-native/Libraries/Alert/Alert.js",
|
|
32
32
|
"baseHash": "173b99e6ae120f14176cf3425877728787d3feed"
|
|
33
33
|
},
|
|
34
|
-
{
|
|
35
|
-
"type": "derived",
|
|
36
|
-
"file": "src-win/Libraries/Animated/NativeAnimatedHelper.win32.js",
|
|
37
|
-
"baseFile": "packages/react-native/Libraries/Animated/NativeAnimatedHelper.js",
|
|
38
|
-
"baseHash": "2cefe6e59aa26f98158be3f35452f9a49d8395c4",
|
|
39
|
-
"issue": 11041
|
|
40
|
-
},
|
|
41
34
|
{
|
|
42
35
|
"type": "derived",
|
|
43
36
|
"file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts",
|
|
@@ -299,7 +292,7 @@
|
|
|
299
292
|
"type": "patch",
|
|
300
293
|
"file": "src-win/Libraries/Inspector/Inspector.win32.js",
|
|
301
294
|
"baseFile": "packages/react-native/Libraries/Inspector/Inspector.js",
|
|
302
|
-
"baseHash": "
|
|
295
|
+
"baseHash": "ac4d1824877906651f2d82ab7910dda3ecb2bd80"
|
|
303
296
|
},
|
|
304
297
|
{
|
|
305
298
|
"type": "patch",
|
|
@@ -317,7 +310,7 @@
|
|
|
317
310
|
"type": "patch",
|
|
318
311
|
"file": "src-win/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js",
|
|
319
312
|
"baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorHeader.js",
|
|
320
|
-
"baseHash": "
|
|
313
|
+
"baseHash": "9e394821ea51994288aa4626d0fdff7aae1aa0a1",
|
|
321
314
|
"issue": 7952
|
|
322
315
|
},
|
|
323
316
|
{
|
|
@@ -512,6 +505,13 @@
|
|
|
512
505
|
"baseFile": "packages/react-native/Libraries/Utilities/useMergeRefs.js",
|
|
513
506
|
"baseHash": "1f1ca637132e6e0fe1549ba520d98508269ca2bd"
|
|
514
507
|
},
|
|
508
|
+
{
|
|
509
|
+
"type": "patch",
|
|
510
|
+
"file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
|
|
511
|
+
"baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
|
|
512
|
+
"baseHash": "c91921c31ad267817d7a38859005149473ca6da5",
|
|
513
|
+
"issue": 11041
|
|
514
|
+
},
|
|
515
515
|
{
|
|
516
516
|
"type": "derived",
|
|
517
517
|
"file": "src-win/src/private/specs/modules/NativeAccessibilityInfoWin32.js",
|
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.263",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,19 +30,20 @@
|
|
|
30
30
|
"@react-native-community/cli-platform-android": "14.0.0",
|
|
31
31
|
"@react-native-community/cli-platform-ios": "14.0.0",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.76.0-nightly-
|
|
34
|
-
"@react-native/codegen": "0.76.0-nightly-
|
|
35
|
-
"@react-native/community-cli-plugin": "0.76.0-nightly-
|
|
36
|
-
"@react-native/gradle-plugin": "0.76.0-nightly-
|
|
37
|
-
"@react-native/js-polyfills": "0.76.0-nightly-
|
|
38
|
-
"@react-native/normalize-colors": "0.76.0-nightly-
|
|
39
|
-
"@react-native/virtualized-lists": "0.76.0-nightly-
|
|
33
|
+
"@react-native/assets-registry": "0.76.0-nightly-20240909-143f1ad29",
|
|
34
|
+
"@react-native/codegen": "0.76.0-nightly-20240909-143f1ad29",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.76.0-nightly-20240909-143f1ad29",
|
|
36
|
+
"@react-native/gradle-plugin": "0.76.0-nightly-20240909-143f1ad29",
|
|
37
|
+
"@react-native/js-polyfills": "0.76.0-nightly-20240909-143f1ad29",
|
|
38
|
+
"@react-native/normalize-colors": "0.76.0-nightly-20240909-143f1ad29",
|
|
39
|
+
"@react-native/virtualized-lists": "0.76.0-nightly-20240909-143f1ad29",
|
|
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
|
"base64-js": "^1.5.1",
|
|
45
45
|
"chalk": "^4.0.0",
|
|
46
|
+
"commander": "^12.0.0",
|
|
46
47
|
"event-target-shim": "^5.0.1",
|
|
47
48
|
"flow-enums-runtime": "^0.0.6",
|
|
48
49
|
"glob": "^7.1.1",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"metro-source-map": "^0.80.10",
|
|
55
56
|
"mkdirp": "^0.5.1",
|
|
56
57
|
"nullthrows": "^1.1.1",
|
|
57
|
-
"pretty-format": "^
|
|
58
|
+
"pretty-format": "^29.7.0",
|
|
58
59
|
"promise": "^8.3.0",
|
|
59
60
|
"react-clone-referenced-element": "^1.0.1",
|
|
60
61
|
"react-devtools-core": "^5.3.1",
|
|
@@ -69,32 +70,32 @@
|
|
|
69
70
|
"yargs": "^17.6.2"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
72
|
-
"@babel/core": "^7.
|
|
73
|
-
"@babel/eslint-parser": "^7.
|
|
73
|
+
"@babel/core": "^7.25.2",
|
|
74
|
+
"@babel/eslint-parser": "^7.25.1",
|
|
74
75
|
"@react-native/metro-config": "0.76.0-nightly-20240701-9f6cb21ed",
|
|
75
76
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
76
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
77
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
78
|
-
"@rnw-scripts/just-task": "2.3.
|
|
77
|
+
"@rnw-scripts/eslint-config": "1.2.27",
|
|
78
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.31",
|
|
79
|
+
"@rnw-scripts/just-task": "2.3.44",
|
|
79
80
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
80
81
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
81
82
|
"@types/node": "^18.0.0",
|
|
82
83
|
"@types/prop-types": "15.7.1",
|
|
83
84
|
"@types/react": "^18.2.6",
|
|
84
85
|
"eslint": "^8.19.0",
|
|
85
|
-
"flow-bin": "^0.245.
|
|
86
|
+
"flow-bin": "^0.245.2",
|
|
86
87
|
"jscodeshift": "^0.14.0",
|
|
87
88
|
"just-scripts": "^1.3.3",
|
|
88
89
|
"prettier": "2.8.8",
|
|
89
90
|
"react": "19.0.0-rc-fb9a90fa48-20240614",
|
|
90
|
-
"react-native": "0.76.0-nightly-
|
|
91
|
-
"react-native-platform-override": "^1.9.
|
|
91
|
+
"react-native": "0.76.0-nightly-20240909-143f1ad29",
|
|
92
|
+
"react-native-platform-override": "^1.9.46",
|
|
92
93
|
"typescript": "5.0.4"
|
|
93
94
|
},
|
|
94
95
|
"peerDependencies": {
|
|
95
96
|
"@types/react": "^18.2.6",
|
|
96
97
|
"react": "^19.0.0-rc-fb9a90fa48-20240614",
|
|
97
|
-
"react-native": "0.76.0-nightly-
|
|
98
|
+
"react-native": "0.76.0-nightly-20240909-143f1ad29"
|
|
98
99
|
},
|
|
99
100
|
"beachball": {
|
|
100
101
|
"defaultNpmTag": "canary",
|