@office-iss/react-native-win32 0.0.0-canary.287 → 0.0.0-canary.289
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 +6 -2
- package/CHANGELOG.json +63 -1
- package/CHANGELOG.md +24 -4
- package/Libraries/Alert/Alert.d.ts +4 -1
- package/Libraries/Alert/Alert.js +3 -0
- package/Libraries/{Modal/ModalInjection.js → Alert/RCTAlertManager.js.flow} +7 -4
- package/Libraries/Animated/Animated.js +8 -37
- package/Libraries/Animated/Animated.js.flow +15 -0
- package/Libraries/Animated/AnimatedExports.js +47 -0
- package/Libraries/Animated/AnimatedExports.js.flow +48 -0
- package/Libraries/Animated/Easing.js +13 -15
- package/Libraries/Animated/createAnimatedComponent.js +24 -12
- package/Libraries/Animated/nodes/AnimatedNode.js +2 -1
- package/Libraries/Animated/nodes/AnimatedProps.js +18 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +6 -2
- package/Libraries/Animated/useAnimatedValue.js +1 -3
- package/Libraries/Blob/URL.js +23 -10
- package/Libraries/Blob/URLSearchParams.js.flow +23 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +1 -1
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js.flow +20 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -8
- package/Libraries/Components/Button.js +2 -2
- package/Libraries/Components/Button.win32.js +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +14 -100
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +64 -4
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +138 -0
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +6 -4
- package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +1 -1
- package/Libraries/Components/Pressable/Pressable.js +18 -63
- package/Libraries/Components/Pressable/Pressable.win32.js +19 -65
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +2 -2
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +4 -46
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +10 -4
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +54 -0
- package/Libraries/Components/RefreshControl/RefreshControl.js +10 -7
- package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +1 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -4
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +2 -4
- package/Libraries/Components/ScrollView/ScrollView.js +43 -59
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +2 -4
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +6 -7
- package/Libraries/Components/StatusBar/StatusBar.js +33 -22
- package/Libraries/Components/Switch/Switch.js +70 -41
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -4
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +2 -4
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +2 -4
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +2 -1
- package/Libraries/Components/TextInput/Tests/TextInputTest.js.map +1 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +6 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +45 -14
- package/Libraries/Components/TextInput/TextInput.js +121 -136
- package/Libraries/Components/TextInput/TextInput.win32.js +122 -137
- package/Libraries/Components/TextInput/TextInputState.js +2 -18
- package/Libraries/Components/TextInput/TextInputState.win32.js +2 -18
- package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +1 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +2 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/Touchable.js +7 -7
- package/Libraries/Components/Touchable/Touchable.win32.js +7 -7
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
- package/Libraries/Components/Touchable/TouchableHighlight.js +35 -14
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +95 -47
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +248 -43
- package/Libraries/Components/Touchable/TouchableOpacity.js +52 -10
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +112 -59
- package/Libraries/Components/View/View.js +1 -1
- package/Libraries/Components/View/View.win32.js +1 -1
- package/Libraries/Components/View/ViewNativeComponent.js +2 -4
- package/Libraries/Components/View/ViewPropTypes.js +15 -12
- package/Libraries/Components/View/ViewPropTypes.win32.js +74 -71
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/setUpReactDevTools.js +2 -0
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +10 -7
- package/Libraries/Image/Image.android.js +1 -1
- package/Libraries/Image/Image.js.flow +27 -0
- package/Libraries/Image/ImageBackground.js +1 -1
- package/Libraries/Image/ImageProps.js +97 -30
- package/Libraries/Image/ImageTypes.flow.js +16 -6
- package/Libraries/Image/ImageViewNativeComponent.js +3 -5
- package/Libraries/Image/Tests/ImageWin32Test.d.ts +2 -1
- package/Libraries/Image/Tests/ImageWin32Test.js.map +1 -1
- package/Libraries/Image/TextInlineImageNativeComponent.js +2 -4
- package/Libraries/Interaction/InteractionManager.js +9 -1
- package/Libraries/Interaction/PanResponder.js +11 -11
- package/Libraries/Interaction/TaskQueue.js +3 -2
- package/Libraries/Lists/FlatList.js +8 -7
- package/Libraries/LogBox/LogBox.js +1 -1
- package/Libraries/Modal/Modal.js +30 -4
- package/Libraries/NativeComponent/BaseViewConfig.js.flow +14 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +1 -1
- package/Libraries/Network/RCTNetworking.js.flow +44 -0
- package/Libraries/Network/XMLHttpRequest_new.js +3 -0
- package/Libraries/Network/XMLHttpRequest_old.js +3 -0
- package/Libraries/Pressability/HoverState.js +1 -0
- package/Libraries/Pressability/HoverState.win32.js +1 -0
- package/Libraries/Pressability/Pressability.js +2 -2
- package/Libraries/Pressability/Pressability.win32.js +3 -3
- package/Libraries/ReactNative/AppRegistry.flow.js +49 -0
- package/Libraries/ReactNative/AppRegistry.js +2 -322
- package/Libraries/ReactNative/AppRegistry.js.flow +23 -0
- package/Libraries/ReactNative/AppRegistryImpl.js +316 -0
- package/Libraries/ReactNative/FabricUIManager.js +5 -3
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +7 -5
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -4
- package/Libraries/ReactNative/RendererImplementation.js +3 -5
- package/Libraries/ReactNative/requireNativeComponent.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +12 -0
- package/Libraries/Renderer/shims/ReactNativeTypes.js +39 -91
- package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +22 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +6 -0
- package/Libraries/StyleSheet/StyleSheet.js +5 -197
- package/Libraries/StyleSheet/StyleSheet.js.flow +166 -0
- package/Libraries/StyleSheet/{StyleSheet.win32.js → StyleSheetExports.js} +2 -151
- package/Libraries/StyleSheet/StyleSheetExports.js.flow +110 -0
- package/Libraries/StyleSheet/StyleSheetTypes.js +42 -18
- package/Libraries/Text/Text.d.ts +1 -1
- package/Libraries/Text/Text.js +3 -1
- package/Libraries/Text/Text.win32.js +3 -1
- package/Libraries/Text/TextNativeComponent.js +1 -1
- package/Libraries/Text/TextNativeComponent.win32.js +1 -1
- package/Libraries/Text/TextProps.js +124 -84
- package/Libraries/Text/TextProps.win32.js +124 -84
- package/Libraries/Types/CodegenTypesNamespace.d.ts +45 -0
- package/Libraries/Types/CodegenTypesNamespace.js +14 -0
- package/Libraries/Types/CoreEventTypes.js +1 -1
- package/Libraries/Types/CoreEventTypes.win32.js +1 -1
- package/Libraries/Types/ReactDevToolsTypes.js +4 -8
- package/Libraries/Utilities/BackHandler.js.flow +25 -0
- package/Libraries/Utilities/DevSettings.js +14 -0
- package/Libraries/Utilities/Dimensions.js +5 -0
- package/Libraries/Utilities/Dimensions.win32.js +5 -0
- package/{flow/Position.js → Libraries/Utilities/Platform.js.flow} +3 -6
- package/Libraries/Utilities/PlatformTypes.js +97 -7
- package/Libraries/Utilities/codegenNativeCommands.d.ts +18 -0
- package/Libraries/Utilities/codegenNativeComponent.d.ts +26 -0
- package/Libraries/Utilities/codegenNativeComponent.js +1 -1
- package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +2 -4
- package/Libraries/vendor/emitter/EventEmitter.js +6 -2
- package/flow/global.js +1 -0
- package/flow/jest.js +4 -2
- package/index.js +47 -43
- package/index.win32.js +63 -59
- package/overrides.json +27 -35
- package/package.json +18 -18
- package/src/private/animated/NativeAnimatedHelper.js +18 -7
- package/src/private/animated/NativeAnimatedHelper.win32.js +18 -7
- package/src/private/animated/createAnimatedPropsHook.js +34 -15
- package/src/private/components/HScrollViewNativeComponents.js +1 -1
- package/src/private/components/VScrollViewNativeComponents.js +1 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +24 -36
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +9 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -4
- package/src/private/inspector/getInspectorDataForViewAtPoint.js +2 -4
- package/src/private/setup/setUpDOM.js +36 -1
- package/src/private/specs_DEPRECATED/components/ActivityIndicatorViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/AndroidDrawerLayoutNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/AndroidSwipeRefreshLayoutNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/DebuggingOverlayNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/RCTModalHostViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +1 -1
- package/src/private/types/HostComponent.js +16 -0
- package/src/private/types/HostInstance.js +50 -0
- package/src/private/webapis/dom/nodes/ReactNativeDocument.js +1 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +40 -32
- package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +1 -1
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +1 -1
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +6 -19
- package/src/private/webapis/dom/nodes/internals/NodeInternals.js +6 -0
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +4 -4
- package/src/private/webapis/mutationobserver/MutationObserver.js +9 -9
- package/src/private/webapis/performance/PerformanceObserver.js +6 -6
- package/src/types/globals.d.ts +628 -0
- package/src/types/third_party/event-target-shim.d.ts +392 -0
- package/src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx +7 -7
- package/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +3 -3
- package/src-win/Libraries/Image/Tests/ImageWin32Test.tsx +1 -1
- package/src-win/Libraries/Text/Text.d.ts +1 -1
- package/types/index.d.ts +5 -52
- package/types/modules/globals.d.ts +0 -599
package/index.win32.js
CHANGED
|
@@ -24,6 +24,8 @@ import typeof useAnimatedValue from './Libraries/Animated/useAnimatedValue';
|
|
|
24
24
|
import typeof AppState from './Libraries/AppState/AppState';
|
|
25
25
|
import typeof FocusManager from './Libraries/Utilities/FocusManager';
|
|
26
26
|
import typeof NativeModules from './Libraries/BatchedBridge/NativeModules';
|
|
27
|
+
import typeof codegenNativeCommands from './Libraries/Utilities/codegenNativeCommands';
|
|
28
|
+
import typeof codegenNativeComponent from './Libraries/Utilities/codegenNativeComponent';
|
|
27
29
|
// Components
|
|
28
30
|
import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
|
|
29
31
|
import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
|
|
@@ -70,15 +72,13 @@ import typeof Networking from './Libraries/Network/RCTNetworking';
|
|
|
70
72
|
import typeof * as Systrace from './Libraries/Performance/Systrace';
|
|
71
73
|
import typeof PermissionsAndroid from './Libraries/PermissionsAndroid/PermissionsAndroid';
|
|
72
74
|
import typeof PushNotificationIOS from './Libraries/PushNotificationIOS/PushNotificationIOS';
|
|
73
|
-
import typeof AppRegistry from './Libraries/ReactNative/AppRegistry';
|
|
75
|
+
import typeof {AppRegistry} from './Libraries/ReactNative/AppRegistry';
|
|
74
76
|
import typeof I18nManager from './Libraries/ReactNative/I18nManager';
|
|
75
77
|
import typeof {RootTagContext} from './Libraries/ReactNative/RootTag';
|
|
76
78
|
import typeof UIManager from './Libraries/ReactNative/UIManager';
|
|
77
79
|
import typeof ReactNative from './Libraries/Renderer/shims/ReactNative';
|
|
78
|
-
import type {
|
|
79
|
-
|
|
80
|
-
HostInstance,
|
|
81
|
-
} from './Libraries/Renderer/shims/ReactNativeTypes';
|
|
80
|
+
import type {HostComponent} from './src/private/types/HostComponent';
|
|
81
|
+
import type {HostInstance} from './src/private/types/HostInstance';
|
|
82
82
|
import typeof Settings from './Libraries/Settings/Settings';
|
|
83
83
|
import typeof Share from './Libraries/Share/Share';
|
|
84
84
|
import typeof {PlatformColor} from './Libraries/StyleSheet/PlatformColorValueTypes';
|
|
@@ -110,14 +110,6 @@ const invariant = require('invariant');
|
|
|
110
110
|
import typeof {ColorGradientWin32} from './Libraries/StyleSheet/PlatformColorValueTypesWin32';
|
|
111
111
|
|
|
112
112
|
module.exports = {
|
|
113
|
-
// Components
|
|
114
|
-
get AccessibilityInfo(): AccessibilityInfo {
|
|
115
|
-
return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
|
|
116
|
-
.default;
|
|
117
|
-
},
|
|
118
|
-
get registerCallableModule(): registerCallableModule {
|
|
119
|
-
return require('./Libraries/Core/registerCallableModule').default;
|
|
120
|
-
},
|
|
121
113
|
// #region Components
|
|
122
114
|
get ActivityIndicator(): ActivityIndicator {
|
|
123
115
|
return require('./Libraries/Components/ActivityIndicator/ActivityIndicator')
|
|
@@ -144,14 +136,14 @@ module.exports = {
|
|
|
144
136
|
return require('./Libraries/Components/TextInput/InputAccessoryView')
|
|
145
137
|
.default;
|
|
146
138
|
},
|
|
147
|
-
get experimental_LayoutConformance(): LayoutConformance {
|
|
148
|
-
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
149
|
-
.default;
|
|
150
|
-
},
|
|
151
139
|
get KeyboardAvoidingView(): KeyboardAvoidingView {
|
|
152
140
|
return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
|
|
153
141
|
.default;
|
|
154
142
|
},
|
|
143
|
+
get experimental_LayoutConformance(): LayoutConformance {
|
|
144
|
+
return require('./Libraries/Components/LayoutConformance/LayoutConformance')
|
|
145
|
+
.default;
|
|
146
|
+
},
|
|
155
147
|
get Modal(): Modal {
|
|
156
148
|
return require('./Libraries/Modal/Modal').default;
|
|
157
149
|
},
|
|
@@ -223,8 +215,12 @@ module.exports = {
|
|
|
223
215
|
get VirtualizedSectionList(): VirtualizedSectionList {
|
|
224
216
|
return require('./Libraries/Lists/VirtualizedSectionList').default;
|
|
225
217
|
},
|
|
226
|
-
|
|
227
|
-
// APIs
|
|
218
|
+
// #endregion
|
|
219
|
+
// #region APIs
|
|
220
|
+
get AccessibilityInfo(): AccessibilityInfo {
|
|
221
|
+
return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
|
|
222
|
+
.default;
|
|
223
|
+
},
|
|
228
224
|
get ActionSheetIOS(): ActionSheetIOS {
|
|
229
225
|
return require('./Libraries/ActionSheetIOS/ActionSheetIOS').default;
|
|
230
226
|
},
|
|
@@ -234,6 +230,7 @@ module.exports = {
|
|
|
234
230
|
// Include any types exported in the Animated module together with its default export, so
|
|
235
231
|
// you can references types such as Animated.Numeric
|
|
236
232
|
get Animated(): {...$Diff<AnimatedModule, {default: any}>, ...Animated} {
|
|
233
|
+
// $FlowFixMe[incompatible-variance]: Ignoring variance issue with Color property
|
|
237
234
|
// $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types
|
|
238
235
|
return require('./Libraries/Animated/Animated').default;
|
|
239
236
|
},
|
|
@@ -241,7 +238,7 @@ module.exports = {
|
|
|
241
238
|
return require('./Libraries/Utilities/Appearance');
|
|
242
239
|
},
|
|
243
240
|
get AppRegistry(): AppRegistry {
|
|
244
|
-
return require('./Libraries/ReactNative/AppRegistry').
|
|
241
|
+
return require('./Libraries/ReactNative/AppRegistry').AppRegistry;
|
|
245
242
|
},
|
|
246
243
|
get AppState(): AppState {
|
|
247
244
|
return require('./Libraries/AppState/AppState').default;
|
|
@@ -258,6 +255,15 @@ module.exports = {
|
|
|
258
255
|
);
|
|
259
256
|
return require('./Libraries/Components/Clipboard/Clipboard').default;
|
|
260
257
|
},
|
|
258
|
+
get codegenNativeCommands(): codegenNativeCommands<any> {
|
|
259
|
+
return require('./Libraries/Utilities/codegenNativeCommands').default;
|
|
260
|
+
},
|
|
261
|
+
get codegenNativeComponent(): codegenNativeComponent<any> {
|
|
262
|
+
return require('./Libraries/Utilities/codegenNativeComponent').default;
|
|
263
|
+
},
|
|
264
|
+
get DeviceEventEmitter(): RCTDeviceEventEmitter {
|
|
265
|
+
return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
|
|
266
|
+
},
|
|
261
267
|
get DeviceInfo(): DeviceInfo {
|
|
262
268
|
return require('./Libraries/Utilities/DeviceInfo').default;
|
|
263
269
|
},
|
|
@@ -270,6 +276,10 @@ module.exports = {
|
|
|
270
276
|
get Dimensions(): Dimensions {
|
|
271
277
|
return require('./Libraries/Utilities/Dimensions').default;
|
|
272
278
|
},
|
|
279
|
+
get DynamicColorIOS(): DynamicColorIOS {
|
|
280
|
+
return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
|
|
281
|
+
.DynamicColorIOS;
|
|
282
|
+
},
|
|
273
283
|
get Easing(): Easing {
|
|
274
284
|
return require('./Libraries/Animated/Easing').default;
|
|
275
285
|
},
|
|
@@ -297,6 +307,9 @@ module.exports = {
|
|
|
297
307
|
get LogBox(): LogBox {
|
|
298
308
|
return require('./Libraries/LogBox/LogBox').default;
|
|
299
309
|
},
|
|
310
|
+
get NativeAppEventEmitter(): RCTNativeAppEventEmitter {
|
|
311
|
+
return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
|
|
312
|
+
},
|
|
300
313
|
get NativeDialogManagerAndroid(): NativeDialogManagerAndroid {
|
|
301
314
|
return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')
|
|
302
315
|
.default;
|
|
@@ -304,6 +317,9 @@ module.exports = {
|
|
|
304
317
|
get NativeEventEmitter(): NativeEventEmitter {
|
|
305
318
|
return require('./Libraries/EventEmitter/NativeEventEmitter').default;
|
|
306
319
|
},
|
|
320
|
+
get NativeModules(): NativeModules {
|
|
321
|
+
return require('./Libraries/BatchedBridge/NativeModules').default;
|
|
322
|
+
},
|
|
307
323
|
get Networking(): Networking {
|
|
308
324
|
return require('./Libraries/Network/RCTNetworking').default;
|
|
309
325
|
},
|
|
@@ -316,6 +332,13 @@ module.exports = {
|
|
|
316
332
|
get PixelRatio(): PixelRatio {
|
|
317
333
|
return require('./Libraries/Utilities/PixelRatio').default;
|
|
318
334
|
},
|
|
335
|
+
get Platform(): Platform {
|
|
336
|
+
return require('./Libraries/Utilities/Platform').default;
|
|
337
|
+
},
|
|
338
|
+
get PlatformColor(): PlatformColor {
|
|
339
|
+
return require('./Libraries/StyleSheet/PlatformColorValueTypes')
|
|
340
|
+
.PlatformColor;
|
|
341
|
+
},
|
|
319
342
|
get PushNotificationIOS(): PushNotificationIOS {
|
|
320
343
|
warnOnce(
|
|
321
344
|
'pushNotificationIOS-moved',
|
|
@@ -327,6 +350,20 @@ module.exports = {
|
|
|
327
350
|
.default;
|
|
328
351
|
},
|
|
329
352
|
// $FlowFixMe[value-as-type]
|
|
353
|
+
get processColor(): processColor {
|
|
354
|
+
return require('./Libraries/StyleSheet/processColor').default;
|
|
355
|
+
},
|
|
356
|
+
get registerCallableModule(): registerCallableModule {
|
|
357
|
+
return require('./Libraries/Core/registerCallableModule').default;
|
|
358
|
+
},
|
|
359
|
+
get requireNativeComponent(): <T: {...}>(
|
|
360
|
+
uiViewClassName: string,
|
|
361
|
+
) => HostComponent<T> {
|
|
362
|
+
return require('./Libraries/ReactNative/requireNativeComponent').default;
|
|
363
|
+
},
|
|
364
|
+
get RootTagContext(): RootTagContext {
|
|
365
|
+
return require('./Libraries/ReactNative/RootTag').RootTagContext;
|
|
366
|
+
},
|
|
330
367
|
get Settings(): Settings {
|
|
331
368
|
return require('./Libraries/Settings/Settings').default;
|
|
332
369
|
},
|
|
@@ -356,6 +393,12 @@ module.exports = {
|
|
|
356
393
|
return require('./Libraries/ReactNative/RendererProxy')
|
|
357
394
|
.unstable_batchedUpdates;
|
|
358
395
|
},
|
|
396
|
+
get unstable_enableLogBox(): () => void {
|
|
397
|
+
return () =>
|
|
398
|
+
console.warn(
|
|
399
|
+
'LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.',
|
|
400
|
+
);
|
|
401
|
+
},
|
|
359
402
|
get useAnimatedValue(): useAnimatedValue {
|
|
360
403
|
return require('./Libraries/Animated/useAnimatedValue').default;
|
|
361
404
|
},
|
|
@@ -371,45 +414,6 @@ module.exports = {
|
|
|
371
414
|
get Vibration(): Vibration {
|
|
372
415
|
return require('./Libraries/Vibration/Vibration').default;
|
|
373
416
|
},
|
|
374
|
-
|
|
375
|
-
// Plugins
|
|
376
|
-
get DeviceEventEmitter(): RCTDeviceEventEmitter {
|
|
377
|
-
return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
|
|
378
|
-
},
|
|
379
|
-
get DynamicColorIOS(): DynamicColorIOS {
|
|
380
|
-
return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
|
|
381
|
-
.DynamicColorIOS;
|
|
382
|
-
},
|
|
383
|
-
get NativeAppEventEmitter(): RCTNativeAppEventEmitter {
|
|
384
|
-
return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
|
|
385
|
-
},
|
|
386
|
-
get NativeModules(): NativeModules {
|
|
387
|
-
return require('./Libraries/BatchedBridge/NativeModules').default;
|
|
388
|
-
},
|
|
389
|
-
get Platform(): Platform {
|
|
390
|
-
return require('./Libraries/Utilities/Platform').default;
|
|
391
|
-
},
|
|
392
|
-
get PlatformColor(): PlatformColor {
|
|
393
|
-
return require('./Libraries/StyleSheet/PlatformColorValueTypes')
|
|
394
|
-
.PlatformColor;
|
|
395
|
-
},
|
|
396
|
-
get processColor(): processColor {
|
|
397
|
-
return require('./Libraries/StyleSheet/processColor').default;
|
|
398
|
-
},
|
|
399
|
-
get requireNativeComponent(): <T: {...}>(
|
|
400
|
-
uiViewClassName: string,
|
|
401
|
-
) => HostComponent<T> {
|
|
402
|
-
return require('./Libraries/ReactNative/requireNativeComponent').default;
|
|
403
|
-
},
|
|
404
|
-
get RootTagContext(): RootTagContext {
|
|
405
|
-
return require('./Libraries/ReactNative/RootTag').RootTagContext;
|
|
406
|
-
},
|
|
407
|
-
get unstable_enableLogBox(): () => void {
|
|
408
|
-
return () =>
|
|
409
|
-
console.warn(
|
|
410
|
-
'LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.',
|
|
411
|
-
);
|
|
412
|
-
},
|
|
413
417
|
// Win32 Types (Typescript components exported as flow any)
|
|
414
418
|
get ColorGradientWin32(): ColorGradientWin32 {
|
|
415
419
|
return require('./Libraries/StyleSheet/PlatformColorValueTypesWin32')
|
package/overrides.json
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src-win/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.
|
|
10
|
+
"baseVersion": "0.80.0-nightly-20250317-fc7385c1e",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
14
14
|
"file": ".flowconfig",
|
|
15
15
|
"baseFile": ".flowconfig",
|
|
16
|
-
"baseHash": "
|
|
16
|
+
"baseHash": "b8b53bf5315c0b91d0f69c3fe9274797a55b993f"
|
|
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": "7a10369d15e8b09ef772d8f229cbfc712d074cbf"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"type": "platform",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"type": "patch",
|
|
30
30
|
"file": "src-win/Libraries/Alert/Alert.win32.js",
|
|
31
31
|
"baseFile": "packages/react-native/Libraries/Alert/Alert.js",
|
|
32
|
-
"baseHash": "
|
|
32
|
+
"baseHash": "bd8f474e454f2b703ca7fb55cb022f24046bc0f8"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"type": "derived",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"type": "derived",
|
|
42
42
|
"file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
|
|
43
43
|
"baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
|
|
44
|
-
"baseHash": "
|
|
44
|
+
"baseHash": "fa025a1dabfb8c73f72cab48393ef1720273690d"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"type": "copy",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"type": "derived",
|
|
61
61
|
"file": "src-win/Libraries/Components/Button.win32.js",
|
|
62
62
|
"baseFile": "packages/react-native/Libraries/Components/Button.js",
|
|
63
|
-
"baseHash": "
|
|
63
|
+
"baseHash": "c61bda5775588b9dd85622f691b89e6b3e3a9fc8"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"type": "platform",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"file": "src-win/Libraries/Components/Button/ButtonWin32.tsx"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"type": "
|
|
74
|
+
"type": "copy",
|
|
75
75
|
"file": "src-win/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
76
76
|
"baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
|
|
77
|
-
"baseHash": "
|
|
77
|
+
"baseHash": "8909ad50924f46afa7cabb15cf9cf4ade7021a90",
|
|
78
78
|
"issue": 14290
|
|
79
79
|
},
|
|
80
80
|
{
|
|
@@ -85,21 +85,20 @@
|
|
|
85
85
|
"type": "patch",
|
|
86
86
|
"file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
|
|
87
87
|
"baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
|
|
88
|
-
"baseHash": "
|
|
88
|
+
"baseHash": "d213d6885bf028350b8f4c79bdcb847289317d86",
|
|
89
89
|
"issue": 6240
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"type": "patch",
|
|
93
93
|
"file": "src-win/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
94
94
|
"baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
|
|
95
|
-
"baseHash": "
|
|
96
|
-
"issue": 0
|
|
95
|
+
"baseHash": "454f8b04bd6203c70b48aa6ec26e1c05dee42124"
|
|
97
96
|
},
|
|
98
97
|
{
|
|
99
98
|
"type": "copy",
|
|
100
99
|
"file": "src-win/Libraries/Components/SafeAreaView/SafeAreaView.win32.js",
|
|
101
100
|
"baseFile": "packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js",
|
|
102
|
-
"baseHash": "
|
|
101
|
+
"baseHash": "e4f9975b0a2ff7c67327dd0c4a580edfd98412c1"
|
|
103
102
|
},
|
|
104
103
|
{
|
|
105
104
|
"type": "platform",
|
|
@@ -109,13 +108,13 @@
|
|
|
109
108
|
"type": "derived",
|
|
110
109
|
"file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
|
|
111
110
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
|
|
112
|
-
"baseHash": "
|
|
111
|
+
"baseHash": "f762096a46203b6bae385806087b7b7cb5744f16"
|
|
113
112
|
},
|
|
114
113
|
{
|
|
115
114
|
"type": "patch",
|
|
116
115
|
"file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
|
|
117
116
|
"baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
|
|
118
|
-
"baseHash": "
|
|
117
|
+
"baseHash": "5603046411826837d1f8003f2d6784221bdef674"
|
|
119
118
|
},
|
|
120
119
|
{
|
|
121
120
|
"type": "platform",
|
|
@@ -136,8 +135,7 @@
|
|
|
136
135
|
"type": "patch",
|
|
137
136
|
"file": "src-win/Libraries/Components/Touchable/Touchable.win32.js",
|
|
138
137
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/Touchable.js",
|
|
139
|
-
"baseHash": "
|
|
140
|
-
"issue": 0
|
|
138
|
+
"baseHash": "5e13ce3ef1cfeb38a1a9695c3013617527c21175"
|
|
141
139
|
},
|
|
142
140
|
{
|
|
143
141
|
"type": "derived",
|
|
@@ -149,7 +147,7 @@
|
|
|
149
147
|
"type": "derived",
|
|
150
148
|
"file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
|
|
151
149
|
"baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
|
|
152
|
-
"baseHash": "
|
|
150
|
+
"baseHash": "c64be122b6011941423d60bc1aa03f5dab8fd7b1"
|
|
153
151
|
},
|
|
154
152
|
{
|
|
155
153
|
"type": "platform",
|
|
@@ -173,7 +171,7 @@
|
|
|
173
171
|
"type": "patch",
|
|
174
172
|
"file": "src-win/Libraries/Components/View/View.win32.js",
|
|
175
173
|
"baseFile": "packages/react-native/Libraries/Components/View/View.js",
|
|
176
|
-
"baseHash": "
|
|
174
|
+
"baseHash": "5721d3baf49a611a12939b03840ef73b6974db26"
|
|
177
175
|
},
|
|
178
176
|
{
|
|
179
177
|
"type": "derived",
|
|
@@ -197,7 +195,7 @@
|
|
|
197
195
|
"type": "patch",
|
|
198
196
|
"file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
|
|
199
197
|
"baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
|
|
200
|
-
"baseHash": "
|
|
198
|
+
"baseHash": "dbab30f1cad27a647149a61e1d63f7b81e6aed2e",
|
|
201
199
|
"issue": 6240
|
|
202
200
|
},
|
|
203
201
|
{
|
|
@@ -348,14 +346,14 @@
|
|
|
348
346
|
"type": "patch",
|
|
349
347
|
"file": "src-win/Libraries/Pressability/HoverState.win32.js",
|
|
350
348
|
"baseFile": "packages/react-native/Libraries/Pressability/HoverState.js",
|
|
351
|
-
"baseHash": "
|
|
349
|
+
"baseHash": "b3f46661c71f0196a239a059635dcebe8c7c7928",
|
|
352
350
|
"issue": 6240
|
|
353
351
|
},
|
|
354
352
|
{
|
|
355
353
|
"type": "patch",
|
|
356
354
|
"file": "src-win/Libraries/Pressability/Pressability.win32.js",
|
|
357
355
|
"baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
|
|
358
|
-
"baseHash": "
|
|
356
|
+
"baseHash": "97027444d74f5a2f03a966753c23f86145f3fc0b",
|
|
359
357
|
"issue": 6240
|
|
360
358
|
},
|
|
361
359
|
{
|
|
@@ -398,42 +396,36 @@
|
|
|
398
396
|
"type": "platform",
|
|
399
397
|
"file": "src-win/Libraries/StyleSheet/PlatformColorValueTypesWin32.js"
|
|
400
398
|
},
|
|
401
|
-
{
|
|
402
|
-
"type": "patch",
|
|
403
|
-
"file": "src-win/Libraries/StyleSheet/StyleSheet.win32.js",
|
|
404
|
-
"baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
|
|
405
|
-
"baseHash": "6c83ae0478119480b693eeab590fa4ba5af98084"
|
|
406
|
-
},
|
|
407
399
|
{
|
|
408
400
|
"type": "derived",
|
|
409
401
|
"file": "src-win/Libraries/Text/Text.d.ts",
|
|
410
402
|
"baseFile": "packages/react-native/Libraries/Text/Text.d.ts",
|
|
411
|
-
"baseHash": "
|
|
403
|
+
"baseHash": "26bf1ec0ad4cae2049298d3ec95b387fa2fe854b"
|
|
412
404
|
},
|
|
413
405
|
{
|
|
414
406
|
"type": "derived",
|
|
415
407
|
"file": "src-win/Libraries/Text/Text.win32.js",
|
|
416
408
|
"baseFile": "packages/react-native/Libraries/Text/Text.js",
|
|
417
|
-
"baseHash": "
|
|
409
|
+
"baseHash": "3e4c3fe47759433ac3604a33fef65c7578556b29"
|
|
418
410
|
},
|
|
419
411
|
{
|
|
420
412
|
"type": "derived",
|
|
421
413
|
"file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
|
|
422
414
|
"baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
|
|
423
|
-
"baseHash": "
|
|
415
|
+
"baseHash": "aad3be91ad4e326d5da431a57f9461b7420700e1",
|
|
424
416
|
"issue": 7074
|
|
425
417
|
},
|
|
426
418
|
{
|
|
427
419
|
"type": "derived",
|
|
428
420
|
"file": "src-win/Libraries/Text/TextProps.win32.js",
|
|
429
421
|
"baseFile": "packages/react-native/Libraries/Text/TextProps.js",
|
|
430
|
-
"baseHash": "
|
|
422
|
+
"baseHash": "fadd5d092aa22ca59d2c33b0ac0191fe90f4f123"
|
|
431
423
|
},
|
|
432
424
|
{
|
|
433
425
|
"type": "patch",
|
|
434
426
|
"file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
|
|
435
427
|
"baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
|
|
436
|
-
"baseHash": "
|
|
428
|
+
"baseHash": "038c14d702490acd25dab824b1b10f5db42eece8",
|
|
437
429
|
"issue": 6240
|
|
438
430
|
},
|
|
439
431
|
{
|
|
@@ -453,7 +445,7 @@
|
|
|
453
445
|
"type": "derived",
|
|
454
446
|
"file": "src-win/Libraries/Utilities/Dimensions.win32.js",
|
|
455
447
|
"baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
|
|
456
|
-
"baseHash": "
|
|
448
|
+
"baseHash": "1c9f7f698bba91e98afb5cc8ec3511a30343f3bd"
|
|
457
449
|
},
|
|
458
450
|
{
|
|
459
451
|
"type": "platform",
|
|
@@ -479,7 +471,7 @@
|
|
|
479
471
|
"type": "patch",
|
|
480
472
|
"file": "src-win/Libraries/Utilities/PlatformTypes.js",
|
|
481
473
|
"baseFile": "packages/react-native/Libraries/Utilities/PlatformTypes.js",
|
|
482
|
-
"baseHash": "
|
|
474
|
+
"baseHash": "95e01d9774ac3afdcdacdc049e9c647dbec3055d",
|
|
483
475
|
"issue": 14686
|
|
484
476
|
},
|
|
485
477
|
{
|
|
@@ -492,7 +484,7 @@
|
|
|
492
484
|
"type": "patch",
|
|
493
485
|
"file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
|
|
494
486
|
"baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
|
|
495
|
-
"baseHash": "
|
|
487
|
+
"baseHash": "c511868b72abd4e0e7d0b07e0453ea56687ffddb",
|
|
496
488
|
"issue": 11041
|
|
497
489
|
},
|
|
498
490
|
{
|
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.289",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
28
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
29
|
-
"@react-native-community/cli": "
|
|
30
|
-
"@react-native-community/cli-platform-android": "
|
|
31
|
-
"@react-native-community/cli-platform-ios": "
|
|
29
|
+
"@react-native-community/cli": "17.0.0",
|
|
30
|
+
"@react-native-community/cli-platform-android": "17.0.0",
|
|
31
|
+
"@react-native-community/cli-platform-ios": "17.0.0",
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
|
-
"@react-native/assets-registry": "0.
|
|
34
|
-
"@react-native/codegen": "0.
|
|
35
|
-
"@react-native/community-cli-plugin": "0.
|
|
36
|
-
"@react-native/gradle-plugin": "0.
|
|
37
|
-
"@react-native/js-polyfills": "0.
|
|
38
|
-
"@react-native/normalize-colors": "0.
|
|
39
|
-
"@react-native/virtualized-lists": "0.
|
|
33
|
+
"@react-native/assets-registry": "0.80.0-nightly-20250317-fc7385c1e",
|
|
34
|
+
"@react-native/codegen": "0.80.0-nightly-20250317-fc7385c1e",
|
|
35
|
+
"@react-native/community-cli-plugin": "0.80.0-nightly-20250317-fc7385c1e",
|
|
36
|
+
"@react-native/gradle-plugin": "0.80.0-nightly-20250317-fc7385c1e",
|
|
37
|
+
"@react-native/js-polyfills": "0.80.0-nightly-20250317-fc7385c1e",
|
|
38
|
+
"@react-native/normalize-colors": "0.80.0-nightly-20250317-fc7385c1e",
|
|
39
|
+
"@react-native/virtualized-lists": "0.80.0-nightly-20250317-fc7385c1e",
|
|
40
40
|
"abort-controller": "^3.0.0",
|
|
41
41
|
"anser": "^1.4.9",
|
|
42
42
|
"ansi-regex": "^5.0.0",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@babel/core": "^7.25.2",
|
|
74
74
|
"@babel/eslint-parser": "^7.25.1",
|
|
75
|
-
"@react-native/metro-config": "0.
|
|
75
|
+
"@react-native/metro-config": "0.80.0-nightly-20250317-fc7385c1e",
|
|
76
76
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
77
|
-
"@rnw-scripts/eslint-config": "1.2.
|
|
78
|
-
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.
|
|
79
|
-
"@rnw-scripts/just-task": "2.3.
|
|
77
|
+
"@rnw-scripts/eslint-config": "1.2.36",
|
|
78
|
+
"@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
|
|
79
|
+
"@rnw-scripts/just-task": "2.3.53",
|
|
80
80
|
"@rnw-scripts/metro-dev-config": "0.0.0",
|
|
81
81
|
"@rnx-kit/jest-preset": "^0.1.17",
|
|
82
82
|
"@types/node": "^18.0.0",
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
"just-scripts": "^1.3.3",
|
|
89
89
|
"prettier": "2.8.8",
|
|
90
90
|
"react": "19.0.0",
|
|
91
|
-
"react-native": "0.
|
|
92
|
-
"react-native-platform-override": "^1.9.
|
|
91
|
+
"react-native": "0.80.0-nightly-20250317-fc7385c1e",
|
|
92
|
+
"react-native-platform-override": "^1.9.55",
|
|
93
93
|
"typescript": "5.0.4"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@types/react": "^19.0.0",
|
|
97
97
|
"react": "^19.0.0",
|
|
98
|
-
"react-native": "0.
|
|
98
|
+
"react-native": "0.80.0-nightly-20250317-fc7385c1e"
|
|
99
99
|
},
|
|
100
100
|
"beachball": {
|
|
101
101
|
"defaultNpmTag": "canary",
|
|
@@ -57,6 +57,8 @@ const eventListenerAnimationFinishedCallbacks: {
|
|
|
57
57
|
let globalEventEmitterGetValueListener: ?EventSubscription = null;
|
|
58
58
|
let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
|
|
59
59
|
|
|
60
|
+
const shouldSignalBatch = ReactNativeFeatureFlags.animatedShouldSignalBatch();
|
|
61
|
+
|
|
60
62
|
function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
61
63
|
const methodNames = [
|
|
62
64
|
'createAnimatedNode', // 1
|
|
@@ -106,6 +108,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
|
106
108
|
if (queueOperations || queue.length !== 0) {
|
|
107
109
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
108
110
|
queue.push(() => method(...args));
|
|
111
|
+
} else if (shouldSignalBatch) {
|
|
112
|
+
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
113
|
+
queue.push(() => method(...args));
|
|
114
|
+
clearImmediate(flushQueueImmediate);
|
|
115
|
+
flushQueueImmediate = setImmediate(API.flushQueue);
|
|
109
116
|
} else {
|
|
110
117
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
111
118
|
method(...args);
|
|
@@ -138,21 +145,25 @@ const API = {
|
|
|
138
145
|
}) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
|
|
139
146
|
|
|
140
147
|
setWaitingForIdentifier(id: string): void {
|
|
148
|
+
if (shouldSignalBatch) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
141
152
|
waitingForQueuedOperations.add(id);
|
|
142
153
|
queueOperations = true;
|
|
143
154
|
if (
|
|
144
155
|
ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
|
|
145
156
|
flushQueueImmediate
|
|
146
157
|
) {
|
|
147
|
-
|
|
148
|
-
clearImmediate(flushQueueImmediate);
|
|
149
|
-
} else {
|
|
150
|
-
clearTimeout(flushQueueImmediate);
|
|
151
|
-
}
|
|
158
|
+
clearImmediate(flushQueueImmediate);
|
|
152
159
|
}
|
|
153
160
|
},
|
|
154
161
|
|
|
155
162
|
unsetWaitingForIdentifier(id: string): void {
|
|
163
|
+
if (shouldSignalBatch) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
156
167
|
waitingForQueuedOperations.delete(id);
|
|
157
168
|
|
|
158
169
|
if (waitingForQueuedOperations.size === 0) {
|
|
@@ -206,7 +217,7 @@ const API = {
|
|
|
206
217
|
return;
|
|
207
218
|
}
|
|
208
219
|
|
|
209
|
-
if (Platform.OS === 'android') {
|
|
220
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
210
221
|
NativeAnimatedModule?.startOperationBatch?.();
|
|
211
222
|
}
|
|
212
223
|
|
|
@@ -215,7 +226,7 @@ const API = {
|
|
|
215
226
|
}
|
|
216
227
|
queue.length = 0;
|
|
217
228
|
|
|
218
|
-
if (Platform.OS === 'android') {
|
|
229
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
219
230
|
NativeAnimatedModule?.finishOperationBatch?.();
|
|
220
231
|
}
|
|
221
232
|
}) as () => void,
|
|
@@ -57,6 +57,8 @@ const eventListenerAnimationFinishedCallbacks: {
|
|
|
57
57
|
let globalEventEmitterGetValueListener: ?EventSubscription = null;
|
|
58
58
|
let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
|
|
59
59
|
|
|
60
|
+
const shouldSignalBatch = ReactNativeFeatureFlags.animatedShouldSignalBatch();
|
|
61
|
+
|
|
60
62
|
function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
61
63
|
const methodNames = [
|
|
62
64
|
'createAnimatedNode', // 1
|
|
@@ -106,6 +108,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
|
|
|
106
108
|
if (queueOperations || queue.length !== 0) {
|
|
107
109
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
108
110
|
queue.push(() => method(...args));
|
|
111
|
+
} else if (shouldSignalBatch) {
|
|
112
|
+
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
113
|
+
queue.push(() => method(...args));
|
|
114
|
+
clearImmediate(flushQueueImmediate);
|
|
115
|
+
flushQueueImmediate = setImmediate(API.flushQueue);
|
|
109
116
|
} else {
|
|
110
117
|
// $FlowExpectedError[incompatible-call] - Dynamism.
|
|
111
118
|
method(...args);
|
|
@@ -138,21 +145,25 @@ const API = {
|
|
|
138
145
|
}) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
|
|
139
146
|
|
|
140
147
|
setWaitingForIdentifier(id: string): void {
|
|
148
|
+
if (shouldSignalBatch) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
141
152
|
waitingForQueuedOperations.add(id);
|
|
142
153
|
queueOperations = true;
|
|
143
154
|
if (
|
|
144
155
|
ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
|
|
145
156
|
flushQueueImmediate
|
|
146
157
|
) {
|
|
147
|
-
|
|
148
|
-
clearImmediate(flushQueueImmediate);
|
|
149
|
-
} else {
|
|
150
|
-
clearTimeout(flushQueueImmediate);
|
|
151
|
-
}
|
|
158
|
+
clearImmediate(flushQueueImmediate);
|
|
152
159
|
}
|
|
153
160
|
},
|
|
154
161
|
|
|
155
162
|
unsetWaitingForIdentifier(id: string): void {
|
|
163
|
+
if (shouldSignalBatch) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
156
167
|
waitingForQueuedOperations.delete(id);
|
|
157
168
|
|
|
158
169
|
if (waitingForQueuedOperations.size === 0) {
|
|
@@ -209,7 +220,7 @@ const API = {
|
|
|
209
220
|
return;
|
|
210
221
|
}
|
|
211
222
|
|
|
212
|
-
if (Platform.OS === 'android') {
|
|
223
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
213
224
|
NativeAnimatedModule?.startOperationBatch?.();
|
|
214
225
|
}
|
|
215
226
|
|
|
@@ -218,7 +229,7 @@ const API = {
|
|
|
218
229
|
}
|
|
219
230
|
queue.length = 0;
|
|
220
231
|
|
|
221
|
-
if (Platform.OS === 'android') {
|
|
232
|
+
if (Platform.OS === 'android' || shouldSignalBatch) {
|
|
222
233
|
NativeAnimatedModule?.finishOperationBatch?.();
|
|
223
234
|
}
|
|
224
235
|
}) as () => void,
|