react-native-windows 0.68.1 → 0.69.0-preview.1

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.
Files changed (392) hide show
  1. package/.flowconfig +1 -3
  2. package/Chakra/ChakraHelpers.cpp +0 -1
  3. package/Directory.Build.props +3 -0
  4. package/Directory.Build.targets +1 -1
  5. package/Folly/TEMP_UntilFollyUpdate/dynamic-inl.h +1411 -0
  6. package/Folly/TEMP_UntilFollyUpdate/lang/ToAscii.cpp +336 -0
  7. package/Folly/TEMP_UntilFollyUpdate/lang/ToAscii.h +182 -0
  8. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +7 -0
  9. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -0
  10. package/Libraries/Alert/Alert.windows.js +2 -2
  11. package/Libraries/Animated/AnimatedImplementation.js +1 -1
  12. package/Libraries/Animated/NativeAnimatedHelper.js +55 -9
  13. package/Libraries/Animated/NativeAnimatedModule.js +1 -0
  14. package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -0
  15. package/Libraries/Animated/animations/TimingAnimation.js +6 -11
  16. package/Libraries/Animated/createAnimatedComponent.js +2 -2
  17. package/Libraries/Animated/nodes/AnimatedColor.js +95 -29
  18. package/Libraries/Animated/nodes/AnimatedInterpolation.js +19 -22
  19. package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
  20. package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
  21. package/Libraries/AppState/AppState.js +1 -1
  22. package/Libraries/Blob/URL.js +7 -1
  23. package/Libraries/Components/Button.js +3 -0
  24. package/Libraries/Components/Button.windows.js +4 -0
  25. package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +5 -0
  26. package/Libraries/Components/Pressable/Pressable.js +3 -3
  27. package/Libraries/Components/Pressable/Pressable.windows.js +3 -3
  28. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +47 -38
  29. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +15 -7
  30. package/Libraries/Components/ScrollView/ScrollView.js +1 -1
  31. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +16 -3
  32. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +3 -1
  33. package/Libraries/Components/Slider/Slider.js +0 -2
  34. package/Libraries/Components/Slider/SliderNativeComponent.js +0 -1
  35. package/Libraries/Components/StatusBar/StatusBar.js +6 -1
  36. package/Libraries/Components/Switch/Switch.js +11 -1
  37. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +114 -109
  38. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +17 -9
  39. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +13 -5
  40. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +10 -0
  41. package/Libraries/Components/TextInput/TextInput.js +1 -8
  42. package/Libraries/Components/TextInput/TextInput.windows.js +4 -9
  43. package/Libraries/Components/TextInput/TextInputState.js +10 -2
  44. package/Libraries/Components/TextInput/TextInputState.windows.js +10 -3
  45. package/Libraries/Components/TextInput/WindowsTextInputNativeComponent.js +1 -1
  46. package/Libraries/Components/Touchable/TouchableBounce.js +1 -0
  47. package/Libraries/Components/Touchable/TouchableHighlight.js +1 -0
  48. package/Libraries/Components/Touchable/TouchableHighlight.windows.js +6 -5
  49. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -0
  50. package/Libraries/Components/Touchable/TouchableOpacity.js +7 -1
  51. package/Libraries/Components/Touchable/TouchableOpacity.windows.js +11 -5
  52. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -0
  53. package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +2 -0
  54. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
  55. package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +1 -0
  56. package/Libraries/Components/View/View.windows.js +33 -1
  57. package/Libraries/Components/View/ViewNativeComponent.js +68 -8
  58. package/Libraries/Components/View/ViewPropTypes.js +36 -4
  59. package/Libraries/Components/View/ViewPropTypes.windows.js +36 -4
  60. package/Libraries/Core/Devtools/parseHermesStack.js +1 -1
  61. package/Libraries/Core/ExceptionsManager.js +1 -1
  62. package/Libraries/Core/RawEventEmitter.js +38 -0
  63. package/Libraries/Core/ReactNativeVersion.js +2 -2
  64. package/Libraries/Core/polyfillPromise.js +32 -0
  65. package/Libraries/Core/setUpReactDevTools.js +3 -2
  66. package/Libraries/EventEmitter/NativeEventEmitter.js +3 -3
  67. package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
  68. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -3
  69. package/Libraries/Events/CustomEvent.js +32 -0
  70. package/Libraries/Events/EventPolyfill.js +239 -0
  71. package/Libraries/Image/Image.android.js +0 -6
  72. package/Libraries/Image/Image.ios.js +0 -6
  73. package/Libraries/Image/Image.windows.js +2 -8
  74. package/Libraries/Image/ImageViewNativeComponent.js +18 -3
  75. package/Libraries/Image/TextInlineImageNativeComponent.js +23 -15
  76. package/Libraries/Inspector/Inspector.js +2 -4
  77. package/Libraries/Interaction/BridgeSpyStallHandler.js +4 -3
  78. package/Libraries/Interaction/InteractionManager.js +1 -12
  79. package/Libraries/Interaction/TaskQueue.js +5 -4
  80. package/Libraries/LayoutAnimation/LayoutAnimation.js +13 -0
  81. package/Libraries/Linking/Linking.js +1 -1
  82. package/Libraries/Lists/FlatList.js +27 -6
  83. package/Libraries/Lists/VirtualizedList.js +71 -55
  84. package/Libraries/Lists/VirtualizedListContext.js +7 -3
  85. package/Libraries/Lists/VirtualizedSectionList.js +2 -2
  86. package/Libraries/Lists/__tests__/{FillRateHelper-test.windows.js → FillRateHelper-test.js} +2 -2
  87. package/Libraries/Lists/__tests__/{FlatList-test.windows.js → FlatList-test.js} +2 -2
  88. package/Libraries/Lists/__tests__/{SectionList-test.windows.js → SectionList-test.js} +14 -14
  89. package/Libraries/Lists/__tests__/{VirtualizeUtils-test.windows.js → VirtualizeUtils-test.js} +3 -3
  90. package/Libraries/Lists/__tests__/{VirtualizedList-test.windows.js → VirtualizedList-test.js} +91 -42
  91. package/Libraries/Lists/__tests__/{VirtualizedSectionList-test.windows.js → VirtualizedSectionList-test.js} +13 -13
  92. package/Libraries/LogBox/Data/LogBoxData.js +2 -2
  93. package/Libraries/LogBox/Data/LogBoxLog.js +1 -1
  94. package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
  95. package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
  96. package/Libraries/LogBox/LogBox.js +2 -21
  97. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -0
  98. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +2 -1
  99. package/Libraries/NativeComponent/BaseViewConfig.android.js +295 -0
  100. package/Libraries/NativeComponent/BaseViewConfig.ios.js +333 -0
  101. package/Libraries/NativeComponent/BaseViewConfig.windows.js +334 -0
  102. package/Libraries/NativeComponent/NativeComponentRegistry.js +0 -2
  103. package/Libraries/NativeComponent/PlatformBaseViewConfig.js +24 -0
  104. package/Libraries/NativeComponent/StaticViewConfigValidator.js +7 -42
  105. package/Libraries/NativeComponent/ViewConfig.js +4 -4
  106. package/Libraries/NativeComponent/ViewConfigIgnore.js +54 -0
  107. package/Libraries/Network/FormData.js +7 -1
  108. package/Libraries/Pressability/Pressability.js +115 -46
  109. package/Libraries/Pressability/Pressability.windows.js +190 -74
  110. package/Libraries/Pressability/PressabilityDebug.js +5 -9
  111. package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
  112. package/Libraries/ReactNative/AppContainer.js +1 -1
  113. package/Libraries/ReactNative/{DummyUIManager.js → BridgelessUIManager.js} +62 -40
  114. package/Libraries/ReactNative/PaperUIManager.windows.js +5 -5
  115. package/Libraries/ReactNative/ReactNativeFeatureFlags.js +39 -0
  116. package/Libraries/ReactNative/UIManager.js +2 -3
  117. package/Libraries/ReactNative/renderApplication.js +4 -0
  118. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +8 -0
  119. package/Libraries/Renderer/implementations/ReactFabric-dev.js +5908 -4906
  120. package/Libraries/Renderer/implementations/ReactFabric-prod.js +2100 -1918
  121. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2567 -2352
  122. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5610 -4844
  123. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1710 -1556
  124. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1830 -1639
  125. package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -1
  126. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -1
  127. package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
  128. package/Libraries/StyleSheet/StyleSheetTypes.js +59 -66
  129. package/Libraries/StyleSheet/normalizeColor.js +1 -1
  130. package/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.js +15 -0
  131. package/Libraries/StyleSheet/private/_TransformStyle.js +53 -0
  132. package/Libraries/StyleSheet/processTransform.windows.js +272 -0
  133. package/Libraries/Text/Text.js +13 -7
  134. package/Libraries/Text/Text.windows.js +16 -7
  135. package/Libraries/Text/TextNativeComponent.js +2 -0
  136. package/Libraries/Text/TextProps.js +10 -0
  137. package/Libraries/Types/CoreEventTypes.js +13 -1
  138. package/Libraries/Types/CoreEventTypes.windows.js +26 -1
  139. package/Libraries/Utilities/Appearance.js +0 -8
  140. package/Libraries/Utilities/HMRClient.js +1 -1
  141. package/Libraries/Utilities/ReactNativeTestTools.js +1 -0
  142. package/Libraries/Utilities/codegenNativeComponent.js +17 -6
  143. package/Libraries/Utilities/stringifySafe.js +4 -1
  144. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +3 -3
  145. package/Libraries/WebSocket/WebSocket.js +1 -1
  146. package/Libraries/vendor/emitter/_EmitterSubscription.js +1 -1
  147. package/Libraries/vendor/emitter/_EventEmitter.js +1 -1
  148. package/Libraries/vendor/emitter/_EventSubscription.js +1 -1
  149. package/Microsoft.ReactNative/Base/CoreNativeModules.cpp +1 -4
  150. package/Microsoft.ReactNative/DynamicReader.cpp +3 -3
  151. package/Microsoft.ReactNative/Fabric/ComponentView.h +1 -0
  152. package/Microsoft.ReactNative/Fabric/ComponentViewRegistry.cpp +36 -2
  153. package/Microsoft.ReactNative/Fabric/ComponentViewRegistry.h +1 -0
  154. package/Microsoft.ReactNative/Fabric/DWriteHelpers.cpp +19 -0
  155. package/Microsoft.ReactNative/Fabric/DWriteHelpers.h +13 -0
  156. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +65 -19
  157. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -0
  158. package/Microsoft.ReactNative/Fabric/ParagraphComponentView.cpp +36 -10
  159. package/Microsoft.ReactNative/Fabric/ScrollViewComponentView.cpp +2 -0
  160. package/Microsoft.ReactNative/Fabric/SliderComponentView.cpp +107 -0
  161. package/Microsoft.ReactNative/Fabric/SliderComponentView.h +51 -0
  162. package/Microsoft.ReactNative/Fabric/SwitchComponentView.cpp +109 -0
  163. package/Microsoft.ReactNative/Fabric/SwitchComponentView.h +52 -0
  164. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentDescriptor.h +197 -0
  165. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentView.cpp +308 -0
  166. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputComponentView.h +52 -0
  167. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputEventEmitter.cpp +31 -0
  168. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputEventEmitter.h +33 -0
  169. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputProps.cpp +81 -0
  170. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputProps.h +132 -0
  171. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputShadowNode.cpp +193 -0
  172. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputShadowNode.h +85 -0
  173. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputState.cpp +76 -0
  174. package/Microsoft.ReactNative/Fabric/TextInput/WindowsTextInputState.h +99 -0
  175. package/Microsoft.ReactNative/Fabric/ViewComponentView.cpp +35 -3
  176. package/Microsoft.ReactNative/Fabric/ViewComponentView.h +1 -0
  177. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/EventEmitters.h +5 -0
  178. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/rncore/Props.h +5 -0
  179. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/slider/SliderMeasurementsManager.cpp +46 -0
  180. package/Microsoft.ReactNative/Fabric/platform/react/renderer/components/slider/SliderMeasurementsManager.h +30 -0
  181. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/Color.cpp +2 -0
  182. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/conversions.h +1 -9
  183. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.h +3 -1
  184. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +119 -57
  185. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +18 -1
  186. package/Microsoft.ReactNative/IViewManager.idl +3 -3
  187. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +13 -107
  188. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +2 -2
  189. package/Microsoft.ReactNative/Modules/AppStateModule.cpp +2 -0
  190. package/Microsoft.ReactNative/Modules/AppStateModule.h +2 -0
  191. package/Microsoft.ReactNative/Modules/CreateModules.cpp +3 -3
  192. package/Microsoft.ReactNative/Modules/NativeUIManager.cpp +7 -5
  193. package/Microsoft.ReactNative/Modules/TimingModule.cpp +2 -2
  194. package/Microsoft.ReactNative/Modules/TimingModule.h +2 -2
  195. package/Microsoft.ReactNative/ReactHost/{ReactContext.cpp → MsoReactContext.cpp} +1 -1
  196. package/Microsoft.ReactNative/ReactHost/{ReactContext.h → MsoReactContext.h} +0 -0
  197. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +15 -2
  198. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
  199. package/Microsoft.ReactNative/ReactHost/ReactNativeHeaders.h +1 -1
  200. package/Microsoft.ReactNative/ReactInstanceSettings.idl +12 -2
  201. package/Microsoft.ReactNative/ReactPackageBuilder.cpp +1 -1
  202. package/Microsoft.ReactNative/ReactRootView.cpp +2 -1
  203. package/Microsoft.ReactNative/RedBox.cpp +3 -2
  204. package/Microsoft.ReactNative/TurboModulesProvider.cpp +3 -2
  205. package/Microsoft.ReactNative/TurboModulesProvider.h +4 -1
  206. package/Microsoft.ReactNative/Utils/LocalBundleReader.cpp +41 -0
  207. package/Microsoft.ReactNative/Utils/ValueUtils.cpp +3 -2
  208. package/Microsoft.ReactNative/Views/ControlViewManager.cpp +32 -0
  209. package/Microsoft.ReactNative/Views/ControlViewManager.h +11 -0
  210. package/Microsoft.ReactNative/Views/DevMenu.cpp +2 -2
  211. package/Microsoft.ReactNative/Views/FrameworkElementTransferProperties.cpp +13 -2
  212. package/Microsoft.ReactNative/Views/FrameworkElementViewManager.cpp +149 -22
  213. package/Microsoft.ReactNative/Views/Image/ImageViewManager.cpp +1 -1
  214. package/Microsoft.ReactNative/Views/Image/Microsoft.UI.Composition.Effects_Impl.h +5 -11
  215. package/Microsoft.ReactNative/Views/Image/ReactImage.cpp +2 -1
  216. package/Microsoft.ReactNative/Views/SliderViewManager.cpp +12 -4
  217. package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +1 -1
  218. package/Microsoft.ReactNative/Views/TextViewManager.cpp +2 -2
  219. package/Microsoft.ReactNative/Views/TouchEventHandler.cpp +163 -37
  220. package/Microsoft.ReactNative/Views/TouchEventHandler.h +11 -4
  221. package/Microsoft.ReactNative/Views/ViewPanel.cpp +3 -23
  222. package/Microsoft.ReactNative/Views/ViewPanel.h +2 -3
  223. package/Microsoft.ReactNative/Views/ViewViewManager.cpp +21 -0
  224. package/Microsoft.ReactNative/XamlUIService.cpp +1 -1
  225. package/Microsoft.ReactNative/XamlView.h +8 -3
  226. package/Microsoft.ReactNative.Cxx/CppWinRTIncludes.h +3 -5
  227. package/Microsoft.ReactNative.Cxx/DesktopWindowBridge.h +1 -1
  228. package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.cpp +11 -2
  229. package/Microsoft.ReactNative.Cxx/JSI/JsiAbiApi.h +1 -0
  230. package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +19 -14
  231. package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.h +4 -0
  232. package/Microsoft.ReactNative.Cxx/JSValueReader.h +2 -2
  233. package/Microsoft.ReactNative.Cxx/JSValueWriter.h +5 -5
  234. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +5 -1
  235. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +2 -3
  236. package/Microsoft.ReactNative.Cxx/NativeModules.h +3 -3
  237. package/Microsoft.ReactNative.Cxx/ReactContext.h +3 -3
  238. package/Microsoft.ReactNative.Cxx/ReactNonAbiValue.h +3 -3
  239. package/Microsoft.ReactNative.Cxx/XamlUtils.h +44 -5
  240. package/Microsoft.ReactNative.Managed/Microsoft.ReactNative.Managed.csproj +0 -6
  241. package/Mso/activeObject/activeObject.h +2 -2
  242. package/Mso/compilerAdapters/cppMacros.h +3 -5
  243. package/Mso/errorCode/errorProvider.h +2 -2
  244. package/Mso/errorCode/maybe.h +4 -4
  245. package/Mso/functional/functor.h +6 -6
  246. package/Mso/functional/functorRef.h +2 -2
  247. package/Mso/future/details/executor.h +2 -2
  248. package/Mso/future/details/futureFuncInl.h +4 -4
  249. package/Mso/future/details/ifuture.h +3 -3
  250. package/Mso/future/details/maybeInvoker.h +6 -6
  251. package/Mso/future/details/promiseGroupInl.h +4 -4
  252. package/Mso/future/details/promiseInl.h +4 -4
  253. package/Mso/future/details/resultTraits.h +4 -4
  254. package/Mso/future/details/whenAllInl.h +1 -1
  255. package/Mso/future/future.h +13 -13
  256. package/Mso/guid/msoGuidDetails.h +1 -1
  257. package/Mso/memoryApi/memoryApi.h +13 -7
  258. package/Mso/motifCpp/gTestAdapter.h +1 -1
  259. package/Mso/motifCpp/testInfo.h +7 -9
  260. package/Mso/object/make.h +8 -8
  261. package/Mso/object/objectRefCount.h +3 -5
  262. package/Mso/object/objectWithWeakRef.h +10 -14
  263. package/Mso/object/queryCast.h +4 -4
  264. package/Mso/object/refCountedObject.h +4 -4
  265. package/Mso/object/unknownObject.h +7 -7
  266. package/Mso/platformAdapters/windowsFirst.h +1 -1
  267. package/Mso/smartPtr/cntPtr.h +8 -8
  268. package/Mso/src/dispatchQueue/threadPoolScheduler_win.cpp +96 -4
  269. package/Mso/src/dispatchQueue/uiScheduler_winrt.cpp +2 -2
  270. package/Mso/src/future/futureImpl.h +1 -1
  271. package/Mso/src/memoryApi/memoryApi.cpp +4 -4
  272. package/PropertySheets/CppAppConsumeCSharpModule.props +3 -0
  273. package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.CSharpApp.props +26 -0
  274. package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.Common.props +12 -0
  275. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  276. package/PropertySheets/JSEngine.props +1 -1
  277. package/PropertySheets/React.Cpp.props +13 -0
  278. package/PropertySheets/WinUI.props +3 -6
  279. package/ReactCommon/ReactCommon.vcxproj +2 -4
  280. package/ReactCommon/ReactCommon.vcxproj.filters +4 -1
  281. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/JSCRuntime.cpp +1480 -0
  282. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/decorator.h +753 -0
  283. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/jsi.h +1331 -0
  284. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +1431 -0
  285. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/CallbackWrapper.h +103 -0
  286. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +87 -0
  287. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +61 -0
  288. package/ReactCommon/Yoga.cpp +1 -1
  289. package/Scripts/{Microsoft.ReactNative.ProjectReunion.nuspec → Microsoft.ReactNative.WindowsAppSDK.nuspec} +7 -9
  290. package/Scripts/OfficeReact.Win32.nuspec +1 -3
  291. package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +2 -1
  292. package/Scripts/copyRNLibraries.js +8 -8
  293. package/Scripts/just.js +1 -1
  294. package/Scripts/rnw-dependencies.ps1 +41 -10
  295. package/Scripts/run-desktop-integration-tests.js +6 -6
  296. package/Shared/AbiSafe.h +3 -3
  297. package/Shared/BaseScriptStoreImpl.cpp +1 -1
  298. package/Shared/CppRuntimeOptions.h +50 -0
  299. package/Shared/CreateModules.h +4 -0
  300. package/Shared/DevSupportManager.cpp +34 -33
  301. package/Shared/DevSupportManager.h +1 -2
  302. package/Shared/HermesRuntimeHolder.cpp +23 -14
  303. package/Shared/HermesRuntimeHolder.h +8 -2
  304. package/Shared/IDevSupportManager.h +1 -2
  305. package/Shared/InspectorPackagerConnection.cpp +7 -5
  306. package/Shared/InspectorPackagerConnection.h +2 -2
  307. package/Shared/JSI/ChakraApi.cpp +0 -1
  308. package/Shared/JSI/ChakraRuntime.cpp +1 -2
  309. package/Shared/JSI/NapiJsiV8RuntimeHolder.h +1 -1
  310. package/Shared/JSI/RuntimeHolder.h +2 -0
  311. package/Shared/Modules/HttpModule.cpp +198 -0
  312. package/Shared/Modules/HttpModule.h +53 -0
  313. package/Shared/Modules/WebSocketModule.cpp +5 -1
  314. package/Shared/Modules/WebSocketModule.h +8 -5
  315. package/Shared/Networking/IHttpResource.h +53 -0
  316. package/Shared/{IWebSocketResource.h → Networking/IWebSocketResource.h} +3 -3
  317. package/Shared/Networking/OriginPolicy.h +15 -0
  318. package/Shared/Networking/OriginPolicyHttpFilter.cpp +746 -0
  319. package/Shared/Networking/OriginPolicyHttpFilter.h +112 -0
  320. package/Shared/Networking/WinRTHttpResource.cpp +347 -0
  321. package/Shared/Networking/WinRTHttpResource.h +67 -0
  322. package/Shared/Networking/WinRTTypes.h +30 -0
  323. package/Shared/{WinRTWebSocketResource.cpp → Networking/WinRTWebSocketResource.cpp} +31 -22
  324. package/Shared/{WinRTWebSocketResource.h → Networking/WinRTWebSocketResource.h} +3 -3
  325. package/Shared/OInstance.cpp +37 -11
  326. package/Shared/RuntimeOptions.cpp +93 -15
  327. package/Shared/RuntimeOptions.h +22 -9
  328. package/Shared/Shared.vcxitems +126 -5
  329. package/Shared/Shared.vcxitems.filters +55 -15
  330. package/Shared/Threading/BatchingQueueThread.cpp +1 -1
  331. package/Shared/Utils/WinRTConversions.cpp +22 -0
  332. package/Shared/Utils/WinRTConversions.h +15 -0
  333. package/Shared/tracing/fbsystrace.h +2 -2
  334. package/codegen/NativeActionSheetManagerSpec.g.h +6 -0
  335. package/codegen/NativeAnimatedModuleSpec.g.h +43 -37
  336. package/codegen/NativeAnimatedTurboModuleSpec.g.h +43 -37
  337. package/codegen/NativePushNotificationManagerIOSSpec.g.h +2 -0
  338. package/codegen/react/components/rnwcore/ComponentDescriptors.h +0 -1
  339. package/codegen/react/components/rnwcore/EventEmitters.cpp +133 -0
  340. package/codegen/react/components/rnwcore/EventEmitters.h +0 -18
  341. package/codegen/react/components/rnwcore/Props.cpp +0 -13
  342. package/codegen/react/components/rnwcore/Props.h +0 -16
  343. package/codegen/react/components/rnwcore/ShadowNodes.cpp +0 -1
  344. package/codegen/react/components/rnwcore/ShadowNodes.h +0 -10
  345. package/include/Shared/cdebug.h +9 -9
  346. package/index.js +30 -25
  347. package/index.windows.js +30 -25
  348. package/jest/preprocessor.js +24 -107
  349. package/jest/preprocessor_DO_NOT_USE.js +122 -0
  350. package/metro.config.js +3 -70
  351. package/package.json +29 -28
  352. package/react-native.config.js +40 -6
  353. package/rntypes/index.d.ts +19 -7
  354. package/stubs/glog/logging.h +1 -1
  355. package/template/cpp-app/src/App.h +0 -4
  356. package/template/cs-app/src/App.xaml.cs +0 -5
  357. package/template/cs-app/src/MainPage.xaml.cs +1 -10
  358. package/template/cs-app-WinAppSDK/MyApp/App.xaml +16 -0
  359. package/template/cs-app-WinAppSDK/MyApp/App.xaml.cs +70 -0
  360. package/template/cs-app-WinAppSDK/MyApp/MainWindow.xaml +14 -0
  361. package/template/cs-app-WinAppSDK/MyApp/MainWindow.xaml.cs +38 -0
  362. package/template/cs-app-WinAppSDK/MyApp/Package.appxmanifest +48 -0
  363. package/template/cs-app-WinAppSDK/MyApp/Properties/PublishProfiles/win10-arm64.pubxml +19 -0
  364. package/template/cs-app-WinAppSDK/MyApp/Properties/PublishProfiles/win10-x64.pubxml +19 -0
  365. package/template/cs-app-WinAppSDK/MyApp/Properties/PublishProfiles/win10-x86.pubxml +19 -0
  366. package/template/cs-app-WinAppSDK/MyApp/Properties/launchSettings.json +10 -0
  367. package/template/cs-app-WinAppSDK/MyApp/app.manifest +15 -0
  368. package/template/cs-app-WinAppSDK/proj/ExperimentalFeatures.props +23 -0
  369. package/template/cs-app-WinAppSDK/proj/MyApp.csproj +49 -0
  370. package/template/cs-app-WinAppSDK/proj/MyApp.sln +43 -0
  371. package/template/cs-app-WinAppSDK/proj/NuGet.Config +17 -0
  372. package/template/metro.devMode.config.js +2 -51
  373. package/typings-index.js +5 -1
  374. package/typings-index.js.map +1 -1
  375. package/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +0 -44
  376. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +0 -45
  377. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +0 -123
  378. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.windows.js +0 -45
  379. package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -360
  380. package/Libraries/Components/View/ReactNativeViewViewConfig.windows.js +0 -390
  381. package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
  382. package/Libraries/ReactNative/UIManagerInjection.js +0 -15
  383. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +0 -24527
  384. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +0 -8309
  385. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +0 -8961
  386. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +0 -24948
  387. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +0 -8400
  388. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +0 -9049
  389. package/PropertySheets/CppEnablePackageReferences.props +0 -13
  390. package/Shared/IHttpResource.h +0 -34
  391. package/Shared/cdebug.cpp +0 -6
  392. package/include/Shared/ViewManager.h +0 -34
@@ -19,6 +19,7 @@
19
19
  </CppWinRTNamespaceMergeDepth>
20
20
  <CppWinRTLibs>true</CppWinRTLibs>
21
21
  <BuildMSRNCxxReactCommon>false</BuildMSRNCxxReactCommon>
22
+ <DesktopCompatible Condition="'$(UseWinUI3)'=='true'">true</DesktopCompatible>
22
23
  </PropertyGroup>
23
24
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
24
25
  <Import Project="$(ReactNativeWindowsDir)PropertySheets\React.Cpp.props" />
@@ -283,7 +284,7 @@
283
284
  <ClInclude Include="ReactHost\MoveOnCopy.h" />
284
285
  <ClInclude Include="ReactHost\MsoUtils.h" />
285
286
  <ClInclude Include="ReactHost\React.h" />
286
- <ClInclude Include="ReactHost\ReactContext.h" />
287
+ <ClInclude Include="ReactHost\MsoReactContext.h" />
287
288
  <ClInclude Include="ReactHost\ReactErrorProvider.h" />
288
289
  <ClInclude Include="ReactHost\ReactHost.h" />
289
290
  <ClInclude Include="ReactHost\ReactInstanceWin.h" />
@@ -406,115 +407,20 @@
406
407
  </ClInclude>
407
408
  </ItemGroup>
408
409
  <ItemGroup Condition="'$(UseFabric)' == 'true'">
409
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\config\ReactNativeConfig.cpp" />
410
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedString.cpp" />
411
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\AttributedStringBox.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
412
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\ParagraphAttributes.cpp" />
413
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\attributedstring\TextAttributes.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
414
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\ComponentDescriptorProviderRegistry.cpp" />
415
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\ComponentDescriptorRegistry.cpp" />
416
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\componentregistry\componentNameByReactViewName.cpp" />
417
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageEventEmitter.cpp" />
418
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageProps.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
419
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageShadowNode.cpp" />
420
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\image\ImageState.cpp" />
421
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\root\RootProps.cpp" />
422
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\root\RootShadowNode.cpp" />
423
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewEventEmitter.cpp" DisableSpecificWarnings="4305;%(DisableSpecificWarnings)" />
424
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewProps.cpp" DisableSpecificWarnings="4018;4305;4715;%(DisableSpecificWarnings)" />
425
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewShadowNode.cpp" DisableSpecificWarnings="4305;%(DisableSpecificWarnings)" />
426
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\scrollview\ScrollViewState.cpp" />
427
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextProps.cpp" />
428
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\BaseTextProps.cpp" />
429
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\BaseTextShadowNode.cpp" />
430
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphEventEmitter.cpp" />
431
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphProps.cpp" />
432
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphShadowNode.cpp" DisableSpecificWarnings="4018;4305;%(DisableSpecificWarnings)" />
433
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextProps.cpp" />
434
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextShadowNode.cpp" />
435
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextShadowNode.cpp" />
436
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\iostextinput\TextInputProps.cpp" />
437
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\iostextinput\TextInputShadowNode.cpp" />
438
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\AccessibilityProps.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
439
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\TouchEventEmitter.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
440
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewEventEmitter.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
441
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewProps.cpp" DisableSpecificWarnings="4459;4715;%(DisableSpecificWarnings)" />
442
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\ViewShadowNode.cpp" />
443
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\YogaLayoutableShadowNode.cpp" DisableSpecificWarnings="4701;4715;%(DisableSpecificWarnings)" />
444
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\YogaStylableProps.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
445
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\BatchedEventQueue.cpp" />
446
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ComponentDescriptor.cpp" />
447
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventBeat.cpp" />
448
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventDispatcher.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
449
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventEmitter.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
450
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventTarget.cpp" />
451
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventQueue.cpp" />
452
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\EventQueueProcessor.cpp" />
453
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutableShadowNode.cpp" />
454
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutConstraints.cpp" />
455
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\LayoutMetrics.cpp" />
456
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\Props.cpp" />
457
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawEvent.cpp" />
458
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawProps.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
459
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawPropsKey.cpp" />
460
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawPropsKeyMap.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
461
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\RawPropsParser.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
462
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\Sealable.cpp" />
463
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNode.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
464
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFamily.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
465
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFamilyFragment.cpp" />
466
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeFragment.cpp" />
467
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\ShadowNodeTraits.cpp" />
468
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\State.cpp" />
469
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\UnbatchedEventQueue.cpp" />
470
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertible.cpp" />
471
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertibleItem.cpp" />
472
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\Transform.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
473
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\leakchecker\LeakChecker.cpp" />
474
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\leakchecker\WeakFamilyRegistry.cpp" />
475
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\Differentiator.cpp" DisableSpecificWarnings="4018;4389;%(DisableSpecificWarnings)" />
476
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\MountingCoordinator.cpp" DisableSpecificWarnings="4459;%(DisableSpecificWarnings)" />
477
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\MountingTransaction.cpp" />
478
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowTree.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
479
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowTreeRegistry.cpp" />
480
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowView.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
481
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\ShadowViewMutation.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
482
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\Stubs.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
483
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\StubView.cpp" />
484
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\StubViewTree.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)" />
485
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\TelemetryController.cpp" DisableSpecificWarnings="4267;%(DisableSpecificWarnings)" />
486
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeScheduler.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
487
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\RuntimeSchedulerBinding.cpp" />
488
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\runtimescheduler\Task.cpp" />
489
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\Scheduler.cpp" />
490
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\SurfaceHandler.cpp" />
491
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\scheduler\SurfaceManager.cpp" />
492
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\telemetry\SurfaceTelemetry.cpp" />
493
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\telemetry\TransactionTelemetry.cpp" />
494
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\templateprocessor\UITemplateProcessor.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
495
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\textlayoutmanager\TextMeasureCache.cpp" />
496
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\bindingUtils.cpp" />
497
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\SurfaceRegistryBinding.cpp" DisableSpecificWarnings="4715;%(DisableSpecificWarnings)" />
498
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManager.cpp" />
499
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\uimanager\UIManagerBinding.cpp" DisableSpecificWarnings="4389;4715;%(DisableSpecificWarnings)" />
500
- <ClCompile Include="$(ReactNativeWindowsDir)codegen\react\components\rnwcore\Props.cpp" DisableSpecificWarnings="4018;%(DisableSpecificWarnings)">
501
- <ObjectFileName>$(IntDir)\codegenRnwCoreProps.obj</ObjectFileName>
502
- </ClCompile>
503
- <ClCompile Include="$(ReactNativeWindowsDir)codegen\react\components\rnwcore\ShadowNodes.cpp" />
504
410
  <ClCompile Include="Fabric\ActivityIndicatorComponentView.cpp" />
505
- <ClCompile Include="Fabric\ComponentViewRegistry.cpp" />
506
- <ClCompile Include="Fabric\FabricUIManagerModule.cpp" />
507
411
  <ClCompile Include="Fabric\ImageComponentView.cpp" />
508
- <ClCompile Include="Fabric\ImageManager.cpp" />
509
- <ClCompile Include="Fabric\ImageRequest.cpp" />
510
412
  <ClCompile Include="Fabric\ParagraphComponentView.cpp" />
511
- <ClCompile Include="Fabric\platform\react\renderer\textlayoutmanager\TextLayoutManager.cpp" />
512
- <ClCompile Include="Fabric\platform\react\renderer\graphics\Color.cpp" />
513
- <ClCompile Include="Fabric\ReactNativeConfigProperties.cpp" />
413
+ <ClCompile Include="Fabric\platform\react\renderer\components\slider\SliderMeasurementsManager.cpp" />
514
414
  <ClCompile Include="Fabric\ScrollViewComponentView.cpp" />
415
+ <ClCompile Include="Fabric\SliderComponentView.cpp" />
416
+ <ClCompile Include="Fabric\SwitchComponentView.cpp" />
417
+ <ClCompile Include="Fabric\TextInput\WindowsTextInputComponentView.cpp" />
418
+ <ClCompile Include="Fabric\TextInput\WindowsTextInputEventEmitter.cpp" />
419
+ <ClCompile Include="Fabric\TextInput\WindowsTextInputProps.cpp" />
420
+ <ClCompile Include="Fabric\TextInput\WindowsTextInputShadowNode.cpp" />
421
+ <ClCompile Include="Fabric\TextInput\WindowsTextInputState.cpp" DisableSpecificWarnings="4244;%(DisableSpecificWarnings)" />
515
422
  <ClCompile Include="Fabric\TextComponentView.cpp" />
516
423
  <ClCompile Include="Fabric\ViewComponentView.cpp" />
517
- <ClCompile Include="SchedulerSettings.cpp" />
518
424
  </ItemGroup>
519
425
  <ItemGroup>
520
426
  <ClCompile Include="ABICxxModule.cpp" />
@@ -591,7 +497,6 @@
591
497
  <ClCompile Include="Modules\LinkingManagerModule.cpp" />
592
498
  <ClCompile Include="Modules\LogBoxModule.cpp" />
593
499
  <ClCompile Include="Modules\NativeUIManager.cpp" />
594
- <ClCompile Include="Modules\ReactRootViewTagGenerator.cpp" />
595
500
  <ClCompile Include="Modules\TimingModule.cpp" />
596
501
  <ClCompile Include="Modules\PaperUIManagerModule.cpp" />
597
502
  <ClCompile Include="NativeModulesProvider.cpp" />
@@ -618,7 +523,7 @@
618
523
  <ClCompile Include="ReactHost\JSBundle_Win32.cpp" />
619
524
  <ClCompile Include="ReactHost\JSCallInvokerScheduler.cpp" />
620
525
  <ClCompile Include="ReactHost\MsoUtils.cpp" />
621
- <ClCompile Include="ReactHost\ReactContext.cpp" />
526
+ <ClCompile Include="ReactHost\MsoReactContext.cpp" />
622
527
  <ClCompile Include="ReactHost\ReactErrorProvider.cpp" />
623
528
  <ClCompile Include="ReactHost\ReactHost.cpp" />
624
529
  <ClCompile Include="ReactHost\ReactInstanceWin.cpp" />
@@ -821,6 +726,7 @@
821
726
  <PackageReference Include="Microsoft.Windows.CppWinRT" Version="$(CppWinRTVersion)" />
822
727
  <PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
823
728
  <PackageReference Include="$(WinUIPackageName)" Version="$(WinUIPackageVersion)" />
729
+ <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.194" />
824
730
  </ItemGroup>
825
731
  <Choose>
826
732
  <When Condition="'$(EnableSourceLink)' == 'true'">
@@ -866,4 +772,4 @@
866
772
  </ClCompile>
867
773
  </ItemGroup>
868
774
  </Target>
869
- </Project>
775
+ </Project>
@@ -28,7 +28,7 @@
28
28
  <ClCompile Include="ReactHost\MsoUtils.cpp">
29
29
  <Filter>ReactHost</Filter>
30
30
  </ClCompile>
31
- <ClCompile Include="ReactHost\ReactContext.cpp">
31
+ <ClCompile Include="ReactHost\MsoReactContext.cpp">
32
32
  <Filter>ReactHost</Filter>
33
33
  </ClCompile>
34
34
  <ClCompile Include="ReactHost\ReactErrorProvider.cpp">
@@ -379,7 +379,7 @@
379
379
  <ClInclude Include="ReactHost\React_Win.h">
380
380
  <Filter>ReactHost</Filter>
381
381
  </ClInclude>
382
- <ClInclude Include="ReactHost\ReactContext.h">
382
+ <ClInclude Include="ReactHost\MsoReactContext.h">
383
383
  <Filter>ReactHost</Filter>
384
384
  </ClInclude>
385
385
  <ClInclude Include="ReactHost\ReactErrorProvider.h">
@@ -20,6 +20,7 @@ void AppState::Initialize(winrt::Microsoft::ReactNative::ReactContext const &rea
20
20
  auto currentApp = xaml::TryGetCurrentApplication();
21
21
 
22
22
  if (!IsWinUI3Island() && currentApp != nullptr) {
23
+ #ifndef USE_WINUI3
23
24
  m_enteredBackgroundRevoker = currentApp.EnteredBackground(
24
25
  winrt::auto_revoke,
25
26
  [weakThis = weak_from_this()](
@@ -39,6 +40,7 @@ void AppState::Initialize(winrt::Microsoft::ReactNative::ReactContext const &rea
39
40
  strongThis->SetActive(true);
40
41
  }
41
42
  });
43
+ #endif
42
44
  } else {
43
45
  assert(IsXamlIsland());
44
46
  }
@@ -41,8 +41,10 @@ struct AppState : public std::enable_shared_from_this<AppState> {
41
41
  std::atomic<bool> m_active;
42
42
  char const *m_lastState{nullptr};
43
43
  React::ReactContext m_context;
44
+ #ifndef USE_WINUI3
44
45
  xaml::Application::EnteredBackground_revoker m_enteredBackgroundRevoker;
45
46
  xaml::Application::LeavingBackground_revoker m_leavingBackgroundRevoker;
47
+ #endif
46
48
  };
47
49
 
48
50
  } // namespace Microsoft::ReactNative
@@ -2,10 +2,10 @@
2
2
  // Licensed under the MIT License.
3
3
 
4
4
  #include <CreateModules.h>
5
+ #include <Networking/WinRTWebSocketResource.h>
5
6
  #include <QuirkSettings.h>
6
7
  #include <React.h>
7
8
  #include <ReactPropertyBag.h>
8
- #include <WinRTWebSocketResource.h>
9
9
 
10
10
  // React Native
11
11
  #include <cxxreact/CxxModule.h>
@@ -17,11 +17,11 @@ using winrt::Microsoft::ReactNative::ReactPropertyBag;
17
17
  using winrt::Microsoft::ReactNative::ReactPropertyId;
18
18
  using winrt::Microsoft::ReactNative::implementation::QuirkSettings;
19
19
 
20
- namespace Microsoft::React {
20
+ namespace Microsoft::React::Networking {
21
21
 
22
22
  std::shared_ptr<IWebSocketResource> IWebSocketResource::Make() {
23
23
  std::vector<winrt::Windows::Security::Cryptography::Certificates::ChainValidationResult> certExceptions;
24
24
  return std::make_shared<WinRTWebSocketResource>(std::move(certExceptions));
25
25
  }
26
26
 
27
- } // namespace Microsoft::React
27
+ } // namespace Microsoft::React::Networking
@@ -236,7 +236,7 @@ void NativeUIManager::AddRootView(ShadowNode &shadowNode, facebook::react::IReac
236
236
  m_tagsToYogaNodes.emplace(shadowNode.m_tag, make_yoga_node(m_yogaConfig));
237
237
 
238
238
  auto element = view.as<xaml::FrameworkElement>();
239
- element.Tag(winrt::PropertyValue::CreateInt64(shadowNode.m_tag));
239
+ Microsoft::ReactNative::SetTag(element, shadowNode.m_tag);
240
240
 
241
241
  // Add listener to size change so we can redo the layout when that happens
242
242
  m_sizeChangedVector.push_back(
@@ -456,6 +456,8 @@ static void StyleYogaNode(
456
456
  wrap = YGWrapNoWrap;
457
457
  else if (value == "wrap")
458
458
  wrap = YGWrapWrap;
459
+ else if (value == "wrap-reverse")
460
+ wrap = YGWrapWrapReverse;
459
461
  else
460
462
  assert(false);
461
463
 
@@ -978,7 +980,7 @@ void NativeUIManager::measure(
978
980
  int64_t childTag = rootTag;
979
981
  while (true) {
980
982
  auto &currNode = m_host->GetShadowNodeForTag(rootTag);
981
- if (currNode.m_parent == -1)
983
+ if (currNode.m_parent == InvalidTag)
982
984
  break;
983
985
  ShadowNodeBase &rootNode = static_cast<ShadowNodeBase &>(currNode);
984
986
  if (rootNode.IsWindowed()) {
@@ -1092,9 +1094,9 @@ void NativeUIManager::findSubviewIn(
1092
1094
 
1093
1095
  for (const auto &elem : hitTestElements) {
1094
1096
  if (foundElement = elem.try_as<xaml::FrameworkElement>()) {
1095
- auto tag = foundElement.Tag();
1096
- if (tag != nullptr) {
1097
- foundTag = tag.as<winrt::IPropertyValue>().GetInt64();
1097
+ auto tag = GetTag(foundElement);
1098
+ if (tag != InvalidTag) {
1099
+ foundTag = tag;
1098
1100
  break;
1099
1101
  }
1100
1102
  }
@@ -130,9 +130,9 @@ void Timing::OnTick() {
130
130
  }
131
131
  }
132
132
 
133
- winrt::system::DispatcherQueueTimer Timing::EnsureDispatcherTimer() {
133
+ winrt::dispatching::DispatcherQueueTimer Timing::EnsureDispatcherTimer() {
134
134
  if (!m_dispatcherQueueTimer) {
135
- const auto queue = winrt::system::DispatcherQueue::GetForCurrentThread();
135
+ const auto queue = winrt::dispatching::DispatcherQueue::GetForCurrentThread();
136
136
  m_dispatcherQueueTimer = queue.CreateTimer();
137
137
  m_dispatcherQueueTimer.Tick([wkThis = std::weak_ptr(this->shared_from_this())](auto &&...) {
138
138
  if (auto pThis = wkThis.lock()) {
@@ -68,7 +68,7 @@ class Timing : public std::enable_shared_from_this<Timing> {
68
68
  private:
69
69
  std::weak_ptr<facebook::react::Instance> getInstance() noexcept;
70
70
  void OnTick();
71
- winrt::system::DispatcherQueueTimer EnsureDispatcherTimer();
71
+ winrt::dispatching::DispatcherQueueTimer EnsureDispatcherTimer();
72
72
  void StartRendering();
73
73
  void StartDispatcherTimer();
74
74
  void StopTicks();
@@ -77,7 +77,7 @@ class Timing : public std::enable_shared_from_this<Timing> {
77
77
  TimingModule *m_parent;
78
78
  TimerQueue m_timerQueue;
79
79
  xaml::Media::CompositionTarget::Rendering_revoker m_rendering;
80
- winrt::system::DispatcherQueueTimer m_dispatcherQueueTimer{nullptr};
80
+ winrt::dispatching::DispatcherQueueTimer m_dispatcherQueueTimer{nullptr};
81
81
  bool m_usingRendering{false};
82
82
  };
83
83
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
 
4
- #include "ReactContext.h"
4
+ #include "MsoReactContext.h"
5
5
  #include <winrt/Microsoft.ReactNative.h>
6
6
  #include "Microsoft.ReactNative/IReactNotificationService.h"
7
7
  #include "MsoUtils.h"
@@ -79,6 +79,13 @@
79
79
  #include "JsiApi.h"
80
80
  #include "ReactCoreInjection.h"
81
81
 
82
+ #ifdef USE_FABRIC
83
+ namespace facebook::react {
84
+ void InitTextInputThemeInfo(const Mso::React::IReactContext &reactContext);
85
+ void InitSliderMeasurements(const Mso::React::IReactContext &reactContext);
86
+ } // namespace facebook::react
87
+ #endif
88
+
82
89
  namespace Microsoft::ReactNative {
83
90
 
84
91
  void AddStandardViewManagers(
@@ -302,7 +309,7 @@ void ReactInstanceWin::LoadModules(
302
309
  if (m_options.UseWebDebugger()) {
303
310
  nativeModulesProvider->AddModuleProvider(name, provider);
304
311
  } else {
305
- turboModulesProvider->AddModuleProvider(name, provider);
312
+ turboModulesProvider->AddModuleProvider(name, provider, false);
306
313
  }
307
314
  };
308
315
 
@@ -385,7 +392,13 @@ void ReactInstanceWin::Initialize() noexcept {
385
392
  strongThis->m_appearanceListener = Mso::Make<Microsoft::ReactNative::AppearanceChangeListener>(
386
393
  strongThis->GetReactContext(), *(strongThis->m_uiQueue));
387
394
  Microsoft::ReactNative::DeviceInfoHolder::InitDeviceInfoHolder(strongThis->GetReactContext());
388
- #endif
395
+
396
+ #if USE_FABRIC
397
+ facebook::react::InitTextInputThemeInfo(strongThis->GetReactContext());
398
+ facebook::react::InitSliderMeasurements(strongThis->GetReactContext());
399
+ #endif // USE_FABRIC
400
+
401
+ #endif // CORE_ABI
389
402
 
390
403
  strongThis->Queue().Post([this, weakThis]() noexcept {
391
404
  if (auto strongThis = weakThis.GetStrongPtr()) {
@@ -5,7 +5,7 @@
5
5
 
6
6
  #include "IReactDispatcher.h"
7
7
  #include "IReactInstanceInternal.h"
8
- #include "ReactContext.h"
8
+ #include "MsoReactContext.h"
9
9
  #include "ReactNativeHeaders.h"
10
10
  #include "React_win.h"
11
11
  #include "activeObject/activeObject.h"
@@ -4,7 +4,7 @@
4
4
  #pragma once
5
5
 
6
6
  #if !MS_TARGET_APPLE
7
- //#include <msoFolly/MsoFolly.h>
7
+ // #include <msoFolly/MsoFolly.h>
8
8
  #endif
9
9
 
10
10
  #pragma warning(push)
@@ -100,7 +100,8 @@ namespace Microsoft.ReactNative
100
100
 
101
101
  DOC_STRING(
102
102
  "The name of the JavaScript bundle file to load. This should be a relative path from @.BundleRootPath. "
103
- "The `.bundle` extension will be appended to the end, when looking for the bundle file.")
103
+ "The `.bundle` extension will be appended to the end, when looking for the bundle file.\n"
104
+ "If using an embedded RCDATA resource, this identifies the resource ID that stores the bundle. See @.BundleRootPath.")
104
105
  DOC_DEFAULT("index.windows")
105
106
  String JavaScriptBundleFile { get; set; };
106
107
 
@@ -176,7 +177,16 @@ namespace Microsoft.ReactNative
176
177
  "If this is not provided, the value of @.JavaScriptBundleFile is used.")
177
178
  String DebugBundlePath { get; set; };
178
179
 
179
- DOC_STRING("Base path used for the location of the bundle.")
180
+ DOC_STRING(
181
+ "Base path used for the location of the bundle. \n"
182
+ "This can be an `ms-appx://` or `ms-appdata://` URI (if the app is UWP or packaged using MSIX), "
183
+ "a filesystem path, or a URI pointing at an embedded resource.\n"
184
+ "Examples:\n\n"
185
+ "- `ms-appx:///Bundle` - locates the bundle in the MSIX package. See [URI schemes](https://docs.microsoft.com/windows/uwp/app-resources/uri-schemes) for other UWP/MSIX valid URI formats."
186
+ "- `C:\\foo\\bar` - locates the bundle in the local filesystem. Note [UWP app file access permissions](https://docs.microsoft.com/windows/uwp/files/file-access-permissions)."
187
+ "- `resource://moduleName` - locates the bundle as an embedded RCDATA resource in moduleName. Specify the resource ID in @.JavaScriptBundleFile."
188
+ "- `resource://` - locates the bundle as an embedded RCDATA resource in the running process's module. Specify the resource ID in @.JavaScriptBundleFile."
189
+ )
180
190
  DOC_DEFAULT("ms-appx:///Bundle/")
181
191
  String BundleRootPath { get; set; };
182
192
 
@@ -38,7 +38,7 @@ void ReactPackageBuilder::AddViewManager(
38
38
  void ReactPackageBuilder::AddTurboModule(
39
39
  hstring const &moduleName,
40
40
  ReactModuleProvider const &moduleProvider) noexcept {
41
- m_turboModulesProvider->AddModuleProvider(moduleName, moduleProvider);
41
+ m_turboModulesProvider->AddModuleProvider(moduleName, moduleProvider, true);
42
42
  }
43
43
 
44
44
  } // namespace winrt::Microsoft::ReactNative
@@ -13,6 +13,7 @@
13
13
  #include <winrt/Windows.UI.Core.h>
14
14
  #include "ReactNativeHost.h"
15
15
  #include "ReactViewInstance.h"
16
+ #include "XamlUtils.h"
16
17
 
17
18
  #include <winrt/Microsoft.UI.Xaml.Controls.h>
18
19
 
@@ -269,7 +270,7 @@ void ReactRootView::EnsureLoadingUI() noexcept {
269
270
  m_greenBoxGrid.ColumnDefinitions().Append(c);
270
271
 
271
272
  m_waitingTextBlock.SetValue(xaml::Controls::Grid::ColumnProperty(), winrt::box_value(1));
272
- m_greenBoxGrid.Background(xaml::Media::SolidColorBrush(winrt::ColorHelper::FromArgb(0x80, 0x03, 0x29, 0x29)));
273
+ m_greenBoxGrid.Background(xaml::Media::SolidColorBrush(xaml::FromArgb(0x80, 0x03, 0x29, 0x29)));
273
274
  m_greenBoxGrid.Children().Append(m_waitingTextBlock);
274
275
  m_greenBoxGrid.VerticalAlignment(xaml::VerticalAlignment::Center);
275
276
  Microsoft::UI::Xaml::Controls::ProgressRing ring{};
@@ -27,6 +27,7 @@
27
27
  #include <winrt/Windows.Web.Http.h>
28
28
  #include "CppWinRTIncludes.h"
29
29
  #include "Utils/Helpers.h"
30
+ #include "XamlUtils.h"
30
31
  #endif
31
32
 
32
33
  using namespace winrt::Windows::Foundation;
@@ -210,7 +211,7 @@ struct RedBox : public std::enable_shared_from_this<RedBox> {
210
211
  webView.HorizontalAlignment(xaml::HorizontalAlignment::Stretch);
211
212
  webView.VerticalAlignment(xaml::VerticalAlignment::Stretch);
212
213
  webView.MinWidth(400);
213
- auto dispatcher = winrt::system::DispatcherQueue::GetForCurrentThread();
214
+ auto dispatcher = winrt::dispatching::DispatcherQueue::GetForCurrentThread();
214
215
  // XAML doesn't currently provide a way to measure a WebView control,
215
216
  // So we're going to tell the WebView to measure itself by running some javascript,
216
217
  // and then we'll post a task back to XAML to set the XAML WebView minimum height.
@@ -274,7 +275,7 @@ struct RedBox : public std::enable_shared_from_this<RedBox> {
274
275
  xaml::Documents::Run linkRun;
275
276
 
276
277
  linkRun.Text(Microsoft::Common::Unicode::Utf8ToUtf16(METRO_TROUBLESHOOTING_URL));
277
- link.Foreground(xaml::Media::SolidColorBrush(winrt::ColorHelper::FromArgb(0xff, 0xff, 0xff, 0xff)));
278
+ link.Foreground(xaml::Media::SolidColorBrush(xaml::FromArgb(0xff, 0xff, 0xff, 0xff)));
278
279
  link.Inlines().Append(linkRun);
279
280
  xaml::Documents::Run normalRun;
280
281
  normalRun.Text(Microsoft::Common::Unicode::Utf8ToUtf16(json["type"].asString() + (" ─ See ")));
@@ -336,12 +336,13 @@ void TurboModulesProvider::SetReactContext(const IReactContext &reactContext) no
336
336
 
337
337
  void TurboModulesProvider::AddModuleProvider(
338
338
  winrt::hstring const &moduleName,
339
- ReactModuleProvider const &moduleProvider) noexcept {
339
+ ReactModuleProvider const &moduleProvider,
340
+ bool overwriteExisting) noexcept {
340
341
  auto key = to_string(moduleName);
341
342
  auto it = m_moduleProviders.find(key);
342
343
  if (it == m_moduleProviders.end()) {
343
344
  m_moduleProviders.insert({key, moduleProvider});
344
- } else {
345
+ } else if (overwriteExisting) {
345
346
  // turbo modules should be replaceable before the first time it is requested
346
347
  it->second = moduleProvider;
347
348
  }
@@ -21,7 +21,10 @@ class TurboModulesProvider final : public facebook::react::TurboModuleRegistry {
21
21
 
22
22
  public:
23
23
  void SetReactContext(const IReactContext &reactContext) noexcept;
24
- void AddModuleProvider(winrt::hstring const &moduleName, ReactModuleProvider const &moduleProvider) noexcept;
24
+ void AddModuleProvider(
25
+ winrt::hstring const &moduleName,
26
+ ReactModuleProvider const &moduleProvider,
27
+ bool overwriteExisting) noexcept;
25
28
 
26
29
  private:
27
30
  std::unordered_map<std::string, ReactModuleProvider> m_moduleProviders;
@@ -15,6 +15,45 @@
15
15
 
16
16
  namespace Microsoft::ReactNative {
17
17
 
18
+ std::string GetBundleFromEmbeddedResource(winrt::hstring str) {
19
+ winrt::Windows::Foundation::Uri uri(str);
20
+ auto moduleName = uri.Host();
21
+ auto path = uri.Path();
22
+ // skip past the leading / slash
23
+ auto resourceName = path.c_str() + 1;
24
+
25
+ auto hmodule = GetModuleHandle(moduleName != L"" ? moduleName.c_str() : nullptr);
26
+ if (!hmodule) {
27
+ throw std::invalid_argument(fmt::format("Couldn't find module {}", winrt::to_string(moduleName)));
28
+ }
29
+
30
+ auto resource = FindResourceW(hmodule, resourceName, RT_RCDATA);
31
+ if (!resource) {
32
+ throw std::invalid_argument(fmt::format(
33
+ "Couldn't find resource {} in module {}", winrt::to_string(resourceName), winrt::to_string(moduleName)));
34
+ }
35
+
36
+ auto hglobal = LoadResource(hmodule, resource);
37
+ if (!hglobal) {
38
+ throw std::invalid_argument(fmt::format(
39
+ "Couldn't load resource {} in module {}", winrt::to_string(resourceName), winrt::to_string(moduleName)));
40
+ }
41
+
42
+ auto start = static_cast<char *>(LockResource(hglobal));
43
+ if (!start) {
44
+ throw std::invalid_argument(fmt::format(
45
+ "Couldn't lock resource {} in module {}", winrt::to_string(resourceName), winrt::to_string(moduleName)));
46
+ }
47
+
48
+ auto size = SizeofResource(hmodule, resource);
49
+ if (!size) {
50
+ throw std::invalid_argument(fmt::format(
51
+ "Couldn't get size of resource {} in module {}", winrt::to_string(resourceName), winrt::to_string(moduleName)));
52
+ }
53
+
54
+ return std::string(start, start + size);
55
+ }
56
+
18
57
  std::future<std::string> LocalBundleReader::LoadBundleAsync(const std::string &bundleUri) {
19
58
  winrt::hstring str(Microsoft::Common::Unicode::Utf8ToUtf16(bundleUri));
20
59
 
@@ -26,6 +65,8 @@ std::future<std::string> LocalBundleReader::LoadBundleAsync(const std::string &b
26
65
  if (bundleUri._Starts_with("ms-app")) {
27
66
  winrt::Windows::Foundation::Uri uri(str);
28
67
  file = co_await winrt::Windows::Storage::StorageFile::GetFileFromApplicationUriAsync(uri);
68
+ } else if (bundleUri._Starts_with("resource://")) {
69
+ co_return GetBundleFromEmbeddedResource(str);
29
70
  } else {
30
71
  file = co_await winrt::Windows::Storage::StorageFile::GetFileFromPathAsync(str);
31
72
  }
@@ -9,6 +9,7 @@
9
9
  #include <Utils/ValueUtils.h>
10
10
  #include <winrt/Windows.UI.ViewManagement.h>
11
11
  #include "Unicode.h"
12
+ #include "XamlUtils.h"
12
13
 
13
14
  #include <JSValue.h>
14
15
  #include <folly/dynamic.h>
@@ -84,7 +85,7 @@ struct BrushCache {
84
85
  {L"SystemListAccentHighColor", {nullptr}}};
85
86
 
86
87
  m_uiSettings = winrt::Windows::UI::ViewManagement::UISettings();
87
- auto dq = winrt::system::DispatcherQueue::GetForCurrentThread();
88
+ auto dq = winrt::dispatching::DispatcherQueue::GetForCurrentThread();
88
89
  m_uiSettings.ColorValuesChanged([this, dq](auto &&sender, auto &&args) {
89
90
  dq.TryEnqueue([this]() {
90
91
  for (auto &entry : m_map) {
@@ -157,7 +158,7 @@ xaml::Media::Brush BrushFromColorObject(const winrt::Microsoft::ReactNative::JSV
157
158
  }
158
159
 
159
160
  winrt::Color ColorFromNumber(DWORD argb) noexcept {
160
- return winrt::ColorHelper::FromArgb(GetAFromArgb(argb), GetRFromArgb(argb), GetGFromArgb(argb), GetBFromArgb(argb));
161
+ return xaml::FromArgb(GetAFromArgb(argb), GetRFromArgb(argb), GetGFromArgb(argb), GetBFromArgb(argb));
161
162
  }
162
163
 
163
164
  REACTWINDOWS_API_(winrt::Color) ColorFrom(const folly::dynamic &d) {