react-native-windows 0.69.5 → 0.70.0-preview.2
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 +5 -1
- package/Chakra/ChakraHelpers.cpp +1 -1
- package/Chakra/ChakraPlatform.cpp +1 -1
- package/Chakra/ChakraValue.cpp +6 -3
- package/Chakra/ChakraValue.h +1 -1
- package/Directory.Build.props +7 -7
- package/Folly/Folly.vcxproj +20 -13
- package/Folly/cgmanifest.json +14 -0
- package/Libraries/Alert/Alert.js +18 -4
- package/Libraries/Alert/Alert.windows.js +4 -0
- package/Libraries/Alert/NativeAlertManager.js +1 -0
- package/Libraries/Animated/Animated.js +2 -2
- package/Libraries/Animated/AnimatedEvent.js +7 -4
- package/Libraries/Animated/AnimatedImplementation.js +17 -3
- package/Libraries/Animated/AnimatedMock.js +7 -2
- package/Libraries/Animated/NativeAnimatedHelper.js +220 -95
- package/Libraries/Animated/NativeAnimatedModule.js +3 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +3 -0
- package/Libraries/Animated/animations/SpringAnimation.js +3 -3
- package/Libraries/Animated/animations/TimingAnimation.js +3 -3
- package/Libraries/Animated/createAnimatedComponent.js +8 -1
- package/Libraries/Animated/nodes/AnimatedAddition.js +3 -1
- package/Libraries/Animated/nodes/AnimatedColor.js +50 -29
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +3 -1
- package/Libraries/Animated/nodes/AnimatedDivision.js +3 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +22 -21
- package/Libraries/Animated/nodes/AnimatedModulo.js +3 -1
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +3 -2
- package/Libraries/Animated/nodes/AnimatedProps.js +20 -12
- package/Libraries/Animated/nodes/AnimatedStyle.js +19 -16
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +3 -1
- package/Libraries/Animated/nodes/AnimatedTransform.js +5 -5
- package/Libraries/Animated/nodes/AnimatedValue.js +14 -5
- package/Libraries/Animated/nodes/AnimatedValueXY.js +28 -1
- package/Libraries/Animated/useAnimatedProps.js +1 -0
- package/Libraries/AppState/AppState.js +0 -32
- package/Libraries/AppTheme/AppTheme.js +14 -8
- package/Libraries/AppTheme/AppThemeTypes.d.ts +0 -3
- package/Libraries/BatchedBridge/MessageQueue.js +21 -15
- package/Libraries/BatchedBridge/NativeModules.js +3 -4
- package/Libraries/Blob/FileReader.js +0 -6
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +0 -20
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +0 -20
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -0
- package/Libraries/Components/Keyboard/Keyboard.js +0 -11
- package/Libraries/Components/Pressable/Pressable.js +2 -0
- package/Libraries/Components/Pressable/Pressable.windows.js +2 -0
- package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +1 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -30
- package/Libraries/Components/SafeAreaView/SafeAreaView.windows.js +4 -30
- package/Libraries/Components/ScrollView/ScrollView.js +13 -11
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -3
- package/Libraries/Components/StatusBar/StatusBar.js +10 -7
- package/Libraries/Components/TextInput/InputAccessoryView.js +14 -13
- package/Libraries/Components/TextInput/TextInput.js +12 -2
- package/Libraries/Components/TextInput/TextInput.windows.js +12 -2
- package/Libraries/Components/Touchable/PooledClass.js +16 -4
- package/Libraries/Components/Touchable/Touchable.js +50 -1
- package/Libraries/Components/Touchable/Touchable.windows.js +972 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -2
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +0 -7
- package/Libraries/Components/View/ViewPropTypes.js +3 -8
- package/Libraries/Components/View/ViewPropTypes.windows.js +3 -8
- package/Libraries/Core/ExceptionsManager.js +2 -0
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/Timers/JSTimers.js +2 -2
- package/Libraries/Core/polyfillPromise.js +0 -32
- package/Libraries/Core/setUpBatchedBridge.js +5 -1
- package/Libraries/Core/setUpPerformance.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +0 -13
- package/Libraries/Image/AssetSourceResolver.js +2 -2
- package/Libraries/Image/Image.android.js +5 -3
- package/Libraries/Image/Image.ios.js +6 -3
- package/Libraries/Image/Image.windows.js +6 -3
- package/Libraries/Image/ImageSource.js +7 -5
- package/Libraries/Inspector/ElementBox.js +2 -2
- package/Libraries/Inspector/NetworkOverlay.js +13 -8
- package/Libraries/Interaction/PanResponder.js +16 -14
- package/Libraries/Linking/Linking.js +0 -11
- package/Libraries/Lists/FlatList.js +3 -2
- package/Libraries/Lists/SectionList.js +2 -0
- package/Libraries/Lists/ViewabilityHelper.js +7 -3
- package/Libraries/Lists/VirtualizeUtils.js +33 -20
- package/Libraries/Lists/VirtualizedList.js +93 -47
- package/Libraries/Lists/VirtualizedListContext.js +1 -0
- package/Libraries/Lists/VirtualizedSectionList.js +14 -9
- package/Libraries/Lists/__tests__/VirtualizeUtils-test.js +19 -18
- package/Libraries/Lists/__tests__/VirtualizedList-test.js +10 -6
- package/Libraries/LogBox/Data/LogBoxData.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
- package/Libraries/LogBox/LogBox.js +3 -1
- package/Libraries/LogBox/UI/AnsiHighlight.js +2 -0
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +3 -0
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +0 -3
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +8 -3
- package/Libraries/NativeComponent/BaseViewConfig.android.js +9 -18
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +26 -12
- package/Libraries/NativeComponent/BaseViewConfig.windows.js +26 -12
- package/Libraries/Network/XMLHttpRequest.js +9 -11
- package/Libraries/Performance/PureComponentDebug.js +1 -0
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +9 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +16 -0
- package/Libraries/Pressability/Pressability.js +26 -16
- package/Libraries/Pressability/Pressability.windows.js +30 -17
- package/Libraries/Promise.js +0 -1
- package/Libraries/ReactNative/AppRegistry.js +16 -13
- package/Libraries/ReactNative/BridgelessUIManager.js +2 -0
- package/Libraries/ReactNative/PaperUIManager.js +9 -9
- package/Libraries/ReactNative/PaperUIManager.windows.js +7 -8
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +12 -0
- package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +68 -0
- package/Libraries/ReactNative/getNativeComponentAttributes.js +6 -7
- package/Libraries/ReactNative/renderApplication.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +4443 -3615
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +1496 -1170
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1694 -1356
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +4439 -3588
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1583 -1249
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1719 -1372
- package/Libraries/Storage/AsyncStorage.js +7 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +8 -0
- package/Libraries/StyleSheet/flattenStyle.js +1 -1
- package/Libraries/StyleSheet/processTransform.js +2 -0
- package/Libraries/StyleSheet/processTransform.windows.js +2 -0
- package/Libraries/StyleSheet/splitLayoutProps.js +2 -0
- package/Libraries/Text/Text.js +15 -7
- package/Libraries/Text/Text.windows.js +14 -7
- package/Libraries/Types/CoreEventTypes.js +137 -11
- package/Libraries/Types/CoreEventTypes.windows.js +147 -22
- package/Libraries/Utilities/Dimensions.js +0 -13
- package/Libraries/Utilities/HMRClient.js +3 -3
- package/Libraries/Utilities/Platform.ios.js +0 -7
- package/Libraries/Utilities/ReactNativeTestTools.js +3 -1
- package/Libraries/Utilities/codegenNativeCommands.js +11 -2
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -0
- package/Libraries/Utilities/stringifySafe.js +3 -1
- package/Libraries/Utilities/truncate.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +2 -2
- package/Libraries/Vibration/Vibration.js +1 -1
- package/Libraries/WebSocket/WebSocket.js +1 -0
- package/Libraries/vendor/emitter/EventEmitter.js +105 -12
- package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +73 -117
- package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +24 -12
- package/Microsoft.ReactNative/CoreApp.cpp +303 -0
- package/Microsoft.ReactNative/CoreAppPage.cpp +21 -0
- package/Microsoft.ReactNative/CoreAppPage.h +15 -0
- package/Microsoft.ReactNative/CoreAppPage.idl +12 -0
- package/Microsoft.ReactNative/CoreAppPage.xaml +14 -0
- package/Microsoft.ReactNative/Fabric/ActivityIndicatorComponentView.cpp +1 -2
- package/Microsoft.ReactNative/Fabric/ActivityIndicatorComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/ComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/ImageComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/ImageComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/ParagraphComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/ParagraphComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/ScrollViewComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/ScrollViewComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/SliderComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/SliderComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/SwitchComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/SwitchComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/TextComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/TextComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/ViewComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/ViewComponentView.h +1 -1
- package/Microsoft.ReactNative/GlyphViewManager.cpp +1 -0
- package/Microsoft.ReactNative/IReactDispatcher.cpp +18 -0
- package/Microsoft.ReactNative/IReactDispatcher.h +18 -3
- package/Microsoft.ReactNative/IReactDispatcher.idl +15 -0
- package/Microsoft.ReactNative/IReactNotificationService.cpp +197 -70
- package/Microsoft.ReactNative/IReactNotificationService.h +11 -30
- package/Microsoft.ReactNative/IReactPropertyBag.cpp +9 -0
- package/Microsoft.ReactNative/IReactPropertyBag.h +3 -0
- package/Microsoft.ReactNative/IReactPropertyBag.idl +3 -0
- package/Microsoft.ReactNative/JsiApi.cpp +41 -1
- package/Microsoft.ReactNative/JsiApi.h +3 -0
- package/Microsoft.ReactNative/JsiApi.idl +19 -1
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +18 -2
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +7 -7
- package/Microsoft.ReactNative/Modules/AccessibilityInfoModule.h +1 -1
- package/Microsoft.ReactNative/Modules/AlertModule.cpp +15 -12
- package/Microsoft.ReactNative/Modules/AlertModule.h +1 -1
- package/Microsoft.ReactNative/Modules/AppStateModule.cpp +45 -9
- package/Microsoft.ReactNative/Modules/AppStateModule.h +9 -3
- package/Microsoft.ReactNative/Modules/AppThemeModuleUwp.h +1 -1
- package/Microsoft.ReactNative/Modules/ClipboardModule.h +1 -1
- package/Microsoft.ReactNative/Modules/DevSettingsModule.h +1 -1
- package/Microsoft.ReactNative/Modules/DeviceInfoModule.h +1 -1
- package/Microsoft.ReactNative/Modules/I18nManagerModule.h +1 -1
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.h +1 -1
- package/Microsoft.ReactNative/Modules/LinkingManagerModule.h +1 -1
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +1 -1
- package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +66 -39
- package/Microsoft.ReactNative/Modules/PaperUIManagerModule.cpp +41 -11
- package/Microsoft.ReactNative/Modules/PaperUIManagerModule.h +1 -1
- package/Microsoft.ReactNative/QuirkSettings.cpp +22 -0
- package/Microsoft.ReactNative/QuirkSettings.h +10 -0
- package/Microsoft.ReactNative/QuirkSettings.idl +7 -0
- package/Microsoft.ReactNative/ReactApplication.cpp +44 -0
- package/Microsoft.ReactNative/ReactApplication.h +40 -5
- package/Microsoft.ReactNative/ReactHost/JSCallInvokerScheduler.cpp +5 -2
- package/Microsoft.ReactNative/ReactHost/JSCallInvokerScheduler.h +1 -0
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +23 -4
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
- package/Microsoft.ReactNative/ReactPointerEventArgs.cpp +12 -2
- package/Microsoft.ReactNative/Utils/BatchingEventEmitter.cpp +1 -0
- package/Microsoft.ReactNative/Utils/Helpers.cpp +1 -1
- package/Microsoft.ReactNative/Utils/Helpers.h +1 -1
- package/Microsoft.ReactNative/Utils/PropertyUtils.h +1 -1
- package/Microsoft.ReactNative/Utils/TransformableText.h +1 -1
- package/Microsoft.ReactNative/Utils/ValueUtils.cpp +0 -1
- package/Microsoft.ReactNative/Views/DynamicAutomationPeer.cpp +9 -7
- package/Microsoft.ReactNative/Views/DynamicAutomationProperties.cpp +3 -3
- package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +13 -1
- package/Microsoft.ReactNative/Views/FrameworkElementTransferProperties.cpp +1 -1
- package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +63 -13
- package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +1 -1
- package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +5 -6
- package/Microsoft.ReactNative/Views/Image/ReactImage.h +4 -4
- package/Microsoft.ReactNative/Views/Text/TextTransformParentVisitor.h +1 -1
- package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +21 -2
- package/Microsoft.ReactNative/Views/TextViewManager.cpp +6 -3
- package/Microsoft.ReactNative/Views/TouchEventHandler.cpp +1 -1
- package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +7 -1
- package/Microsoft.ReactNative/Views/ViewPanel.cpp +4 -0
- package/Microsoft.ReactNative/Views/ViewViewManager.cpp +8 -3
- package/Microsoft.ReactNative/Views/cppwinrt/DynamicAutomationPeer.idl +2 -0
- package/Microsoft.ReactNative/microsoft.reactnative.def +4 -1
- package/Microsoft.ReactNative.Cxx/AppModelHelpers.h +17 -0
- package/Microsoft.ReactNative.Cxx/CoreApp.h +60 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.cpp +65 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +13 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiValueHelpers.cpp +53 -0
- package/Microsoft.ReactNative.Cxx/JSI/JsiValueHelpers.h +32 -0
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +14 -2
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +3 -0
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +7 -0
- package/Microsoft.ReactNative.Managed/packages.lock.json +1 -24
- package/Mso/dispatchQueue/dispatchQueue.h +12 -4
- package/Mso/src/dispatchQueue/looperScheduler.cpp +36 -9
- package/Mso/src/dispatchQueue/queueService.cpp +2 -2
- package/Mso/src/dispatchQueue/queueService.h +2 -2
- package/Mso/src/memoryApi/memoryApi.cpp +3 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/JSEngine.props +1 -1
- package/PropertySheets/Release.props +6 -0
- package/ReactCommon/ReactCommon.vcxproj +11 -21
- package/ReactCommon/ReactCommon.vcxproj.filters +64 -46
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.h +145 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +344 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/BaseTextProps.cpp +313 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/ViewProps.cpp +455 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/ConcreteComponentDescriptor.h +216 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/PropsMacros.h +91 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/graphics/RectangleEdges.h +100 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/CompactValue.h +3 -1
- package/Scripts/Microsoft.ReactNative.nuspec +6 -0
- package/Scripts/Microsoft.ReactNative.targets +7 -0
- package/Shared/DevSettings.h +4 -0
- package/Shared/JSI/ChakraRuntime.cpp +11 -2
- package/Shared/JSI/ChakraRuntime.h +2 -0
- package/Shared/Modules/BlobModule.cpp +4 -4
- package/Shared/Modules/BlobModule.h +1 -1
- package/Shared/Modules/FileReaderModule.cpp +3 -2
- package/Shared/Modules/IBlobPersistor.h +1 -1
- package/Shared/Networking/IHttpResource.h +1 -0
- package/Shared/Networking/OriginPolicyHttpFilter.cpp +16 -10
- package/Shared/Networking/WinRTHttpResource.cpp +34 -2
- package/Shared/OInstance.cpp +14 -6
- package/Shared/Threading/BatchingQueueThread.cpp +23 -12
- package/Shared/Utils.cpp +2 -5
- package/codegen/NativeAlertManagerSpec.g.h +2 -0
- package/codegen/NativeAnimatedModuleSpec.g.h +6 -0
- package/codegen/NativeAnimatedTurboModuleSpec.g.h +6 -0
- package/codegen/react/components/rnwcore/Props.cpp +2 -2
- package/codegen/react/components/rnwcore/Props.h +1 -1
- package/fmt/cgmanifest.json +14 -0
- package/fmt/fmt.vcxproj +25 -11
- package/jest/assetFileTransformer.js +3 -2
- package/jest/setup.js +4 -0
- package/package.json +27 -28
- package/rntypes/index.d.ts +0 -1
- package/template/cs-app-WinAppSDK/proj/{NuGet.Config → NuGet_Config} +0 -0
- package/template/metro.devMode.config.js +49 -2
- package/template/shared-app/proj/{NuGet.Config → NuGet_Config} +0 -0
- package/template/shared-lib/proj/{NuGet.Config → NuGet_Config} +0 -0
- package/Libraries/vendor/emitter/EventSubscription.js +0 -19
- package/Libraries/vendor/emitter/_EmitterSubscription.js +0 -62
- package/Libraries/vendor/emitter/_EventEmitter.js +0 -184
- package/Libraries/vendor/emitter/_EventSubscription.js +0 -45
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +0 -108
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +0 -87
- package/Scripts/copyRNLibraries.js +0 -99
- package/jest/preprocessor.js +0 -40
- package/jest/preprocessor_DO_NOT_USE.js +0 -122
package/.flowconfig
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<PROJECT_ROOT>/Libraries/Components/SafeAreaView/SafeAreaView.js
|
|
16
16
|
<PROJECT_ROOT>/Libraries/Components/TextInput/TextInput.js
|
|
17
17
|
<PROJECT_ROOT>/Libraries/Components/TextInput/TextInputState.js
|
|
18
|
+
<PROJECT_ROOT>/Libraries/Components/Touchable/Touchable.js
|
|
18
19
|
<PROJECT_ROOT>/Libraries/Components/Touchable/TouchableBounce.js
|
|
19
20
|
<PROJECT_ROOT>/Libraries/Components/Touchable/TouchableHighlight.js
|
|
20
21
|
<PROJECT_ROOT>/Libraries/Components/Touchable/TouchableOpacity.js
|
|
@@ -76,6 +77,7 @@ flow/
|
|
|
76
77
|
emoji=true
|
|
77
78
|
|
|
78
79
|
exact_by_default=true
|
|
80
|
+
exact_empty_objects=true
|
|
79
81
|
|
|
80
82
|
format.bracket_spacing=false
|
|
81
83
|
|
|
@@ -98,6 +100,8 @@ suppress_type=$FlowFixMeProps
|
|
|
98
100
|
suppress_type=$FlowFixMeState
|
|
99
101
|
suppress_type=$FlowFixMeEmpty
|
|
100
102
|
|
|
103
|
+
experimental.env_mode=ssa
|
|
104
|
+
|
|
101
105
|
[lints]
|
|
102
106
|
sketchy-null-number=warn
|
|
103
107
|
sketchy-null-mixed=warn
|
|
@@ -118,4 +122,4 @@ untyped-import
|
|
|
118
122
|
untyped-type-import
|
|
119
123
|
|
|
120
124
|
[version]
|
|
121
|
-
^0.
|
|
125
|
+
^0.182.0
|
package/Chakra/ChakraHelpers.cpp
CHANGED
|
@@ -27,7 +27,7 @@ JsValueRef __stdcall nowHookJNF(
|
|
|
27
27
|
void * /*callbackState*/) {
|
|
28
28
|
assert(argumentCount == 1);
|
|
29
29
|
double now = nowHook != nullptr ? nowHook() : 0;
|
|
30
|
-
JsValueRef value;
|
|
30
|
+
JsValueRef value = nullptr;
|
|
31
31
|
CHAKRA_ASSERTDO(JsDoubleToNumber(now, &value));
|
|
32
32
|
return value;
|
|
33
33
|
}
|
package/Chakra/ChakraValue.cpp
CHANGED
|
@@ -245,9 +245,12 @@ std::unordered_map<std::string, std::string> ChakraObject::toJSONMap() const {
|
|
|
245
245
|
/* static */
|
|
246
246
|
ChakraObject ChakraObject::create() {
|
|
247
247
|
JsValueRef value;
|
|
248
|
-
JsCreateObject(&value)
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
if (JsCreateObject(&value) == JsNoError) {
|
|
249
|
+
return ChakraObject(value);
|
|
250
|
+
} else {
|
|
251
|
+
assert(false && "JsCreateObject() failed.");
|
|
252
|
+
std::terminate();
|
|
253
|
+
}
|
|
251
254
|
}
|
|
252
255
|
|
|
253
256
|
} // namespace react
|
package/Chakra/ChakraValue.h
CHANGED
package/Directory.Build.props
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
The PR (windows-vs-pr.yml) and CI (publish.yml() turn it back on.
|
|
16
16
|
-->
|
|
17
17
|
<EnableSourceLink Condition="'$(EnableSourceLink)' == ''">false</EnableSourceLink>
|
|
18
|
-
<!-- When bumping the Folly version, be sure to bump the git hash of that version's commit too. -->
|
|
19
|
-
<FollyVersion>2021.
|
|
20
|
-
<FollyCommitHash>
|
|
21
|
-
<!-- When bumping the fmt version, be sure to bump the git hash of that version's commit too. -->
|
|
22
|
-
<FmtVersion>
|
|
23
|
-
<FmtCommitHash>
|
|
18
|
+
<!-- When bumping the Folly version, be sure to bump the git hash of that version's commit and build Folly.vcxproj (to update its cgmanifest.json) too. -->
|
|
19
|
+
<FollyVersion>2021.07.22.00</FollyVersion>
|
|
20
|
+
<FollyCommitHash>4baba28200d7446c870e96f3cdbeb492f54625d0</FollyCommitHash>
|
|
21
|
+
<!-- When bumping the fmt version, be sure to bump the git hash of that version's commit and build fmt.vcxproj (to update its cgmanifest.json) too. -->
|
|
22
|
+
<FmtVersion>8.0.0</FmtVersion>
|
|
23
|
+
<FmtCommitHash>9e8b86fd2d9806672cc73133d21780dd182bfd24</FmtCommitHash>
|
|
24
24
|
</PropertyGroup>
|
|
25
25
|
|
|
26
26
|
<PropertyGroup Label="Configuration">
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
<RestoreUseStaticGraphEvaluation Condition="'$(BuildingInsideVisualStudio)' == 'true'">true</RestoreUseStaticGraphEvaluation>
|
|
71
71
|
</PropertyGroup>
|
|
72
72
|
|
|
73
|
-
</Project>
|
|
73
|
+
</Project>
|
package/Folly/Folly.vcxproj
CHANGED
|
@@ -267,23 +267,28 @@
|
|
|
267
267
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
268
268
|
<ImportGroup Label="ExtensionTargets">
|
|
269
269
|
</ImportGroup>
|
|
270
|
-
<
|
|
271
|
-
<
|
|
272
|
-
|
|
273
|
-
</
|
|
274
|
-
|
|
275
|
-
|
|
270
|
+
<PropertyGroup>
|
|
271
|
+
<FollyZipDir>$(FollyDir)..\.follyzip</FollyZipDir>
|
|
272
|
+
<FollyZipFile>$(FollyZipDir)\folly-$(FollyVersion).zip</FollyZipFile>
|
|
273
|
+
<CGManifestFile>$(MSBuildThisFileDirectory)cgmanifest.json</CGManifestFile>
|
|
274
|
+
</PropertyGroup>
|
|
275
|
+
<Target Name="DownloadFolly" BeforeTargets="PrepareForBuild" Inputs="$(FollyZipFile)" Outputs="$(FollyZipFile)">
|
|
276
|
+
<Message Importance="High" Text="Downloading folly..." />
|
|
277
|
+
<DownloadFile
|
|
276
278
|
SourceUrl="https://github.com/facebook/folly/archive/v$(FollyVersion).zip"
|
|
277
|
-
DestinationFileName="
|
|
279
|
+
DestinationFileName="$(FollyZipFile)"
|
|
278
280
|
DestinationFolder="$(FollyZipDir)"
|
|
279
281
|
Retries="10"/>
|
|
280
282
|
</Target>
|
|
281
283
|
<Target Name="UnzipFolly" BeforeTargets="PrepareForBuild" DependsOnTargets="DownloadFolly">
|
|
282
|
-
<Message Importance="High" Text="Unzipping folly to $([MSBuild]::NormalizePath($(FollyDir)..))."
|
|
283
|
-
<Unzip
|
|
284
|
+
<Message Condition="!Exists('$(FollyDir)folly\dynamic.h')" Importance="High" Text="Unzipping folly to $([MSBuild]::NormalizePath($(FollyDir)..))." />
|
|
285
|
+
<Unzip
|
|
286
|
+
Condition="!Exists('$(FollyDir)folly\dynamic.h')"
|
|
287
|
+
SourceFiles="$(FollyZipFile)"
|
|
288
|
+
DestinationFolder="$([MSBuild]::NormalizePath($(FollyDir)..))"
|
|
289
|
+
OverwriteReadOnlyFiles="true" />
|
|
284
290
|
</Target>
|
|
285
|
-
<Target Name="WriteCGManifest" BeforeTargets="PrepareForBuild" DependsOnTargets="
|
|
286
|
-
<Message Importance="High" Text="Generating $([MSBuild]::NormalizePath($(FollyDir)..))\cgmanifest.json." Condition="!Exists('$([MSBuild]::NormalizePath($(FollyDir)..))\cgmanifest.json')" />
|
|
291
|
+
<Target Name="WriteCGManifest" BeforeTargets="PrepareForBuild" DependsOnTargets="DownloadFolly" Inputs="$(FollyZipFile)" Outputs="$(CGManifestFile)">
|
|
287
292
|
<PropertyGroup>
|
|
288
293
|
<CGManifestText>{
|
|
289
294
|
"Registrations": [
|
|
@@ -300,8 +305,9 @@
|
|
|
300
305
|
]
|
|
301
306
|
}</CGManifestText>
|
|
302
307
|
</PropertyGroup>
|
|
308
|
+
<Message Importance="High" Text="Generating $(CGManifestFile)." />
|
|
303
309
|
<WriteLinesToFile
|
|
304
|
-
File="$(
|
|
310
|
+
File="$(CGManifestFile)"
|
|
305
311
|
Overwrite="true"
|
|
306
312
|
Lines="$(CGManifestText)" />
|
|
307
313
|
</Target>
|
|
@@ -313,7 +319,8 @@
|
|
|
313
319
|
</ItemGroup>
|
|
314
320
|
<Target Name="Deploy" />
|
|
315
321
|
<!-- Reenable this task if we need to temporarily replace any folly files for fixes, while we wait for PRs to land in folly -->
|
|
316
|
-
<Target Name="ApplyFollyTemporaryPatch" BeforeTargets="PrepareForBuild" DependsOnTargets="UnzipFolly">
|
|
322
|
+
<Target Name="ApplyFollyTemporaryPatch" BeforeTargets="PrepareForBuild" DependsOnTargets="UnzipFolly" Inputs="@(TemporaryFollyPatchFiles)" Outputs="@(TemporaryFollyPatchFiles->'$(FollyDir)folly\%(RecursiveDir)%(Filename)%(Extension)')">
|
|
323
|
+
<Message Importance="High" Text="Applying temporary patches to folly." />
|
|
317
324
|
<Copy DestinationFiles="@(TemporaryFollyPatchFiles->'$(FollyDir)folly\%(RecursiveDir)%(Filename)%(Extension)')" SourceFiles="@(TemporaryFollyPatchFiles)" />
|
|
318
325
|
</Target>
|
|
319
326
|
<ItemGroup>
|
package/Libraries/Alert/Alert.js
CHANGED
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
* @flow
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import Platform from '../Utilities/Platform';
|
|
12
11
|
import type {DialogOptions} from '../NativeModules/specs/NativeDialogManagerAndroid';
|
|
12
|
+
|
|
13
|
+
import Platform from '../Utilities/Platform';
|
|
13
14
|
import RCTAlertManager from './RCTAlertManager';
|
|
14
15
|
|
|
15
16
|
export type AlertType =
|
|
@@ -27,6 +28,7 @@ export type Buttons = Array<{
|
|
|
27
28
|
|
|
28
29
|
type Options = {
|
|
29
30
|
cancelable?: ?boolean,
|
|
31
|
+
userInterfaceStyle?: 'unspecified' | 'light' | 'dark',
|
|
30
32
|
onDismiss?: ?() => void,
|
|
31
33
|
...
|
|
32
34
|
};
|
|
@@ -44,7 +46,15 @@ class Alert {
|
|
|
44
46
|
options?: Options,
|
|
45
47
|
): void {
|
|
46
48
|
if (Platform.OS === 'ios') {
|
|
47
|
-
Alert.prompt(
|
|
49
|
+
Alert.prompt(
|
|
50
|
+
title,
|
|
51
|
+
message,
|
|
52
|
+
buttons,
|
|
53
|
+
'default',
|
|
54
|
+
undefined,
|
|
55
|
+
undefined,
|
|
56
|
+
options,
|
|
57
|
+
);
|
|
48
58
|
} else if (Platform.OS === 'android') {
|
|
49
59
|
const NativeDialogManagerAndroid =
|
|
50
60
|
require('../NativeModules/specs/NativeDialogManagerAndroid').default;
|
|
@@ -82,6 +92,8 @@ class Alert {
|
|
|
82
92
|
config.buttonPositive = buttonPositive.text || defaultPositiveText;
|
|
83
93
|
}
|
|
84
94
|
|
|
95
|
+
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by
|
|
96
|
+
* Flow's LTI update could not be added via codemod */
|
|
85
97
|
const onAction = (action, buttonKey) => {
|
|
86
98
|
if (action === constants.buttonClicked) {
|
|
87
99
|
if (buttonKey === constants.buttonNeutral) {
|
|
@@ -95,7 +107,7 @@ class Alert {
|
|
|
95
107
|
options && options.onDismiss && options.onDismiss();
|
|
96
108
|
}
|
|
97
109
|
};
|
|
98
|
-
const onError = errorMessage => console.warn(errorMessage);
|
|
110
|
+
const onError = (errorMessage: string) => console.warn(errorMessage);
|
|
99
111
|
NativeDialogManagerAndroid.showAlert(config, onError, onAction);
|
|
100
112
|
}
|
|
101
113
|
}
|
|
@@ -107,6 +119,7 @@ class Alert {
|
|
|
107
119
|
type?: ?AlertType = 'plain-text',
|
|
108
120
|
defaultValue?: string,
|
|
109
121
|
keyboardType?: string,
|
|
122
|
+
options?: Options,
|
|
110
123
|
): void {
|
|
111
124
|
if (Platform.OS === 'ios') {
|
|
112
125
|
let callbacks = [];
|
|
@@ -124,7 +137,7 @@ class Alert {
|
|
|
124
137
|
destructiveButtonKey = String(index);
|
|
125
138
|
}
|
|
126
139
|
if (btn.text || index < (callbackOrButtons || []).length - 1) {
|
|
127
|
-
const btnDef = {};
|
|
140
|
+
const btnDef: {[number]: string} = {};
|
|
128
141
|
btnDef[index] = btn.text || '';
|
|
129
142
|
buttons.push(btnDef);
|
|
130
143
|
}
|
|
@@ -141,6 +154,7 @@ class Alert {
|
|
|
141
154
|
cancelButtonKey,
|
|
142
155
|
destructiveButtonKey,
|
|
143
156
|
keyboardType,
|
|
157
|
+
userInterfaceStyle: options?.userInterfaceStyle || undefined,
|
|
144
158
|
},
|
|
145
159
|
(id, value) => {
|
|
146
160
|
const cb = callbacks[id];
|
|
@@ -24,6 +24,7 @@ export type Buttons = Array<{
|
|
|
24
24
|
|
|
25
25
|
type Options = {
|
|
26
26
|
cancelable?: ?boolean,
|
|
27
|
+
userInterfaceStyle?: 'unspecified' | 'light' | 'dark',
|
|
27
28
|
onDismiss?: ?() => void,
|
|
28
29
|
...
|
|
29
30
|
};
|
|
@@ -88,6 +89,8 @@ class Alert {
|
|
|
88
89
|
config.buttonPositive = buttonPositive.text || defaultPositiveText;
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by
|
|
93
|
+
* Flow's LTI update could not be added via codemod */
|
|
91
94
|
const onAction = (action, buttonKey) => {
|
|
92
95
|
if (action === constants.buttonClicked) {
|
|
93
96
|
if (buttonKey === constants.buttonNeutral) {
|
|
@@ -112,6 +115,7 @@ class Alert {
|
|
|
112
115
|
type?: ?AlertType = 'plain-text',
|
|
113
116
|
defaultValue?: string,
|
|
114
117
|
keyboardType?: string,
|
|
118
|
+
options?: Options,
|
|
115
119
|
): void {
|
|
116
120
|
throw new Error(
|
|
117
121
|
'Alert.prompt not currently implemented in react-native-windows',
|
|
@@ -16,8 +16,8 @@ import typeof AnimatedSectionList from './components/AnimatedSectionList';
|
|
|
16
16
|
import typeof AnimatedText from './components/AnimatedText';
|
|
17
17
|
import typeof AnimatedView from './components/AnimatedView';
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import * as AnimatedMock from './AnimatedMock';
|
|
20
|
+
import * as AnimatedImplementation from './AnimatedImplementation';
|
|
21
21
|
|
|
22
22
|
const Animated = ((Platform.isTesting
|
|
23
23
|
? AnimatedMock
|
|
@@ -41,7 +41,7 @@ function attachNativeEvent(
|
|
|
41
41
|
// key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x'].
|
|
42
42
|
const eventMappings = [];
|
|
43
43
|
|
|
44
|
-
const traverse = (value, path) => {
|
|
44
|
+
const traverse = (value: mixed, path: Array<string>) => {
|
|
45
45
|
if (value instanceof AnimatedValue) {
|
|
46
46
|
value.__makeNative(platformConfig);
|
|
47
47
|
|
|
@@ -94,8 +94,8 @@ function attachNativeEvent(
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
function validateMapping(argMapping
|
|
98
|
-
const validate = (recMapping, recEvt, key) => {
|
|
97
|
+
function validateMapping(argMapping: $ReadOnlyArray<?Mapping>, args: any) {
|
|
98
|
+
const validate = (recMapping: ?Mapping, recEvt: any, key: string) => {
|
|
99
99
|
if (recMapping instanceof AnimatedValue) {
|
|
100
100
|
invariant(
|
|
101
101
|
typeof recEvt === 'number',
|
|
@@ -223,7 +223,10 @@ class AnimatedEvent {
|
|
|
223
223
|
validatedMapping = true;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
const traverse = (
|
|
226
|
+
const traverse = (
|
|
227
|
+
recMapping: ?(Mapping | AnimatedValue),
|
|
228
|
+
recEvt: any,
|
|
229
|
+
) => {
|
|
227
230
|
if (recMapping instanceof AnimatedValue) {
|
|
228
231
|
if (typeof recEvt === 'number') {
|
|
229
232
|
recMapping.setValue(recEvt);
|
|
@@ -94,7 +94,7 @@ const _combineCallbacks = function (
|
|
|
94
94
|
config: $ReadOnly<{...AnimationConfig, ...}>,
|
|
95
95
|
) {
|
|
96
96
|
if (callback && config.onComplete) {
|
|
97
|
-
return (...args) => {
|
|
97
|
+
return (...args: Array<EndResult>) => {
|
|
98
98
|
config.onComplete && config.onComplete(...args);
|
|
99
99
|
callback && callback(...args);
|
|
100
100
|
};
|
|
@@ -308,7 +308,7 @@ const sequence = function (
|
|
|
308
308
|
let current = 0;
|
|
309
309
|
return {
|
|
310
310
|
start: function (callback?: ?EndCallback) {
|
|
311
|
-
const onComplete = function (result) {
|
|
311
|
+
const onComplete = function (result: EndResult) {
|
|
312
312
|
if (!result.finished) {
|
|
313
313
|
callback && callback(result);
|
|
314
314
|
return;
|
|
@@ -380,7 +380,7 @@ const parallel = function (
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
animations.forEach((animation, idx) => {
|
|
383
|
-
const cb = function (endResult) {
|
|
383
|
+
const cb = function (endResult: EndResult | {finished: boolean}) {
|
|
384
384
|
hasEnded[idx] = true;
|
|
385
385
|
doneCount++;
|
|
386
386
|
if (doneCount === animations.length) {
|
|
@@ -460,6 +460,7 @@ type LoopAnimationConfig = {
|
|
|
460
460
|
|
|
461
461
|
const loop = function (
|
|
462
462
|
animation: CompositeAnimation,
|
|
463
|
+
// $FlowFixMe[prop-missing]
|
|
463
464
|
{iterations = -1, resetBeforeIteration = true}: LoopAnimationConfig = {},
|
|
464
465
|
): CompositeAnimation {
|
|
465
466
|
let isFinished = false;
|
|
@@ -551,6 +552,19 @@ const event = function (
|
|
|
551
552
|
}
|
|
552
553
|
};
|
|
553
554
|
|
|
555
|
+
// All types of animated nodes that represent scalar numbers and can be interpolated (etc)
|
|
556
|
+
type AnimatedNumeric =
|
|
557
|
+
| AnimatedAddition
|
|
558
|
+
| AnimatedDiffClamp
|
|
559
|
+
| AnimatedDivision
|
|
560
|
+
| AnimatedInterpolation<number>
|
|
561
|
+
| AnimatedModulo
|
|
562
|
+
| AnimatedMultiplication
|
|
563
|
+
| AnimatedSubtraction
|
|
564
|
+
| AnimatedValue;
|
|
565
|
+
|
|
566
|
+
export type {AnimatedNumeric as Numeric};
|
|
567
|
+
|
|
554
568
|
/**
|
|
555
569
|
* The `Animated` library is designed to make animations fluid, powerful, and
|
|
556
570
|
* easy to build and maintain. `Animated` focuses on declarative relationships
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
+
import type {EndResult} from './animations/Animation';
|
|
14
|
+
|
|
13
15
|
const {AnimatedEvent, attachNativeEvent} = require('./AnimatedEvent');
|
|
14
16
|
const AnimatedImplementation = require('./AnimatedImplementation');
|
|
15
17
|
const AnimatedInterpolation = require('./nodes/AnimatedInterpolation');
|
|
@@ -23,7 +25,7 @@ import type {EndCallback} from './animations/Animation';
|
|
|
23
25
|
import type {TimingAnimationConfig} from './animations/TimingAnimation';
|
|
24
26
|
import type {DecayAnimationConfig} from './animations/DecayAnimation';
|
|
25
27
|
import type {SpringAnimationConfig} from './animations/SpringAnimation';
|
|
26
|
-
|
|
28
|
+
import type {Numeric as AnimatedNumeric} from './AnimatedImplementation';
|
|
27
29
|
import AnimatedColor from './nodes/AnimatedColor';
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -43,7 +45,7 @@ function mockAnimationStart(
|
|
|
43
45
|
const guardedCallback =
|
|
44
46
|
callback == null
|
|
45
47
|
? callback
|
|
46
|
-
: (...args) => {
|
|
48
|
+
: (...args: Array<EndResult>) => {
|
|
47
49
|
if (inAnimationCallback) {
|
|
48
50
|
console.warn(
|
|
49
51
|
'Ignoring recursive animation callback when running mock animations',
|
|
@@ -158,11 +160,14 @@ type LoopAnimationConfig = {
|
|
|
158
160
|
|
|
159
161
|
const loop = function (
|
|
160
162
|
animation: CompositeAnimation,
|
|
163
|
+
// $FlowFixMe[prop-missing]
|
|
161
164
|
{iterations = -1}: LoopAnimationConfig = {},
|
|
162
165
|
): CompositeAnimation {
|
|
163
166
|
return emptyAnimation;
|
|
164
167
|
};
|
|
165
168
|
|
|
169
|
+
export type {AnimatedNumeric as Numeric};
|
|
170
|
+
|
|
166
171
|
module.exports = {
|
|
167
172
|
Value: AnimatedValue,
|
|
168
173
|
ValueXY: AnimatedValueXY,
|