react-native-windows 0.75.4 → 0.76.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 (310) hide show
  1. package/.flowconfig +6 -4
  2. package/Directory.Build.props +4 -0
  3. package/Directory.Build.targets +5 -0
  4. package/Libraries/Alert/Alert.js +3 -0
  5. package/Libraries/Alert/Alert.windows.js +3 -0
  6. package/Libraries/Animated/AnimatedEvent.js +1 -1
  7. package/Libraries/Animated/AnimatedImplementation.js +7 -7
  8. package/Libraries/Animated/NativeAnimatedAllowlist.js +111 -0
  9. package/Libraries/Animated/animations/Animation.js +11 -1
  10. package/Libraries/Animated/animations/DecayAnimation.js +1 -1
  11. package/Libraries/Animated/animations/SpringAnimation.js +1 -1
  12. package/Libraries/Animated/animations/TimingAnimation.js +2 -1
  13. package/Libraries/Animated/components/AnimatedScrollView.js +3 -2
  14. package/Libraries/Animated/createAnimatedComponent.js +10 -9
  15. package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
  16. package/Libraries/Animated/nodes/AnimatedInterpolation.js +3 -2
  17. package/Libraries/Animated/nodes/AnimatedNode.js +42 -33
  18. package/Libraries/Animated/nodes/AnimatedObject.js +56 -50
  19. package/Libraries/Animated/nodes/AnimatedProps.js +77 -40
  20. package/Libraries/Animated/nodes/AnimatedStyle.js +103 -59
  21. package/Libraries/Animated/nodes/AnimatedTracking.js +1 -1
  22. package/Libraries/Animated/nodes/AnimatedTransform.js +102 -67
  23. package/Libraries/Animated/nodes/AnimatedValue.js +2 -1
  24. package/Libraries/Animated/nodes/AnimatedWithChildren.js +21 -22
  25. package/Libraries/Animated/useAnimatedProps.js +142 -7
  26. package/Libraries/BatchedBridge/NativeModules.js +2 -0
  27. package/Libraries/Blob/FileReader.js +1 -1
  28. package/Libraries/Blob/URL.js +2 -62
  29. package/Libraries/Blob/URLSearchParams.js +71 -0
  30. package/Libraries/Components/Button.windows.js +0 -1
  31. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -1
  32. package/Libraries/Components/Keyboard/KeyboardExt.js.map +1 -1
  33. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +1 -1
  34. package/Libraries/Components/ScrollView/ScrollView.js +131 -169
  35. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
  36. package/Libraries/Components/StatusBar/StatusBar.js +3 -1
  37. package/Libraries/Components/TextInput/TextInput.d.ts +32 -2
  38. package/Libraries/Components/TextInput/TextInput.js +230 -94
  39. package/Libraries/Components/TextInput/TextInput.windows.js +230 -105
  40. package/Libraries/Components/View/ReactNativeStyleAttributes.js +22 -0
  41. package/Libraries/Components/View/ReactNativeViewAttributes.js +2 -0
  42. package/Libraries/Components/View/ReactNativeViewAttributes.windows.js +2 -0
  43. package/Libraries/Components/View/View.windows.js +32 -30
  44. package/Libraries/Components/View/ViewAccessibility.d.ts +15 -0
  45. package/Libraries/Components/View/ViewNativeComponent.js +0 -1
  46. package/Libraries/Components/View/ViewPropTypes.js +14 -0
  47. package/Libraries/Components/View/ViewPropTypes.windows.js +14 -0
  48. package/Libraries/Core/ExceptionsManager.js +2 -0
  49. package/Libraries/Core/InitializeCore.js +3 -1
  50. package/Libraries/Core/ReactFiberErrorDialog.js +3 -0
  51. package/Libraries/Core/ReactNativeVersion.js +4 -4
  52. package/Libraries/Core/setUpErrorHandling.js +7 -1
  53. package/Libraries/Core/setUpGlobals.js +1 -0
  54. package/Libraries/Core/setUpReactRefresh.js +0 -4
  55. package/Libraries/Image/AssetSourceResolver.js +28 -1
  56. package/Libraries/Image/AssetSourceResolver.windows.js +28 -1
  57. package/Libraries/Image/Image.android.js +9 -14
  58. package/Libraries/Image/Image.ios.js +11 -22
  59. package/Libraries/Image/Image.windows.js +11 -22
  60. package/Libraries/Image/ImageBackground.js +1 -8
  61. package/Libraries/Image/ImageUtils.js +9 -9
  62. package/Libraries/Image/ImageViewNativeComponent.js +1 -0
  63. package/Libraries/Inspector/Inspector.js +3 -2
  64. package/Libraries/Inspector/InspectorPanel.js +16 -10
  65. package/Libraries/Inspector/NetworkOverlay.js +1 -1
  66. package/Libraries/Interaction/TaskQueue.js +1 -0
  67. package/Libraries/Lists/FlatList.js +1 -1
  68. package/Libraries/Lists/SectionList.js +2 -2
  69. package/Libraries/Lists/SectionListModern.js +3 -3
  70. package/Libraries/LogBox/Data/LogBoxData.js +24 -3
  71. package/Libraries/LogBox/LogBoxNotificationContainer.js +3 -2
  72. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +9 -8
  73. package/Libraries/LogBox/UI/LogBoxInspectorHeader.windows.js +9 -8
  74. package/Libraries/Modal/Modal.js +0 -1
  75. package/Libraries/NativeComponent/BaseViewConfig.android.js +8 -0
  76. package/Libraries/NativeComponent/BaseViewConfig.ios.js +7 -0
  77. package/Libraries/NativeComponent/BaseViewConfig.windows.js +7 -0
  78. package/Libraries/NativeComponent/NativeComponentRegistry.js +22 -22
  79. package/Libraries/NativeComponent/StaticViewConfigValidator.js +0 -21
  80. package/Libraries/Network/XMLHttpRequest.js +4 -2
  81. package/Libraries/ReactNative/AppContainer-dev.js +1 -5
  82. package/Libraries/ReactNative/AppContainer-prod.js +1 -5
  83. package/Libraries/ReactNative/AppContainer.js +1 -2
  84. package/Libraries/ReactNative/AppRegistry.d.ts +0 -4
  85. package/Libraries/ReactNative/AppRegistry.js +1 -7
  86. package/Libraries/ReactNative/BridgelessUIManager.js +1 -0
  87. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +1 -1
  88. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +5 -5
  89. package/Libraries/ReactNative/RendererImplementation.js +26 -4
  90. package/Libraries/ReactNative/getNativeComponentAttributes.js +8 -0
  91. package/Libraries/ReactNative/renderApplication.js +1 -3
  92. package/Libraries/Renderer/shims/ReactNativeTypes.js +11 -4
  93. package/Libraries/StyleSheet/StyleSheet.js +1 -1
  94. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +57 -0
  95. package/Libraries/StyleSheet/StyleSheetTypes.js +60 -5
  96. package/Libraries/StyleSheet/processBackgroundImage.js +384 -0
  97. package/Libraries/StyleSheet/processBoxShadow.js +211 -0
  98. package/Libraries/StyleSheet/processFilter.js +231 -42
  99. package/Libraries/Text/Text.js +394 -196
  100. package/Libraries/Text/Text.windows.js +476 -300
  101. package/Libraries/Text/TextNativeComponent.js +2 -1
  102. package/Libraries/TurboModule/TurboModuleRegistry.js +13 -50
  103. package/Libraries/Types/CodegenTypes.js +3 -1
  104. package/Libraries/Utilities/Appearance.js +108 -84
  105. package/Libraries/Utilities/DevLoadingView.js +2 -4
  106. package/Libraries/Utilities/HMRClient.js +2 -1
  107. package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
  108. package/Libraries/Utilities/createPerformanceLogger.js +0 -9
  109. package/Libraries/Utilities/stringifyViewConfig.js +22 -0
  110. package/Libraries/Utilities/useColorScheme.js +3 -3
  111. package/Libraries/WebSocket/WebSocket.js +1 -1
  112. package/Libraries/promiseRejectionTrackingOptions.js +1 -1
  113. package/Libraries/vendor/emitter/EventEmitter.js +6 -5
  114. package/Microsoft.ReactNative/ComponentView.idl +11 -0
  115. package/Microsoft.ReactNative/Composition.Input.idl +1 -0
  116. package/Microsoft.ReactNative/CompositionSwitcher.idl +3 -0
  117. package/Microsoft.ReactNative/Fabric/AbiComponentDescriptor.cpp +9 -9
  118. package/Microsoft.ReactNative/Fabric/AbiViewComponentDescriptor.cpp +9 -9
  119. package/Microsoft.ReactNative/Fabric/ComponentView.cpp +7 -9
  120. package/Microsoft.ReactNative/Fabric/ComponentView.h +5 -6
  121. package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.cpp +4 -0
  122. package/Microsoft.ReactNative/Fabric/Composition/Composition.Input.h +1 -0
  123. package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +44 -13
  124. package/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp +42 -5
  125. package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +1 -0
  126. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +81 -63
  127. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.h +2 -3
  128. package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +8 -6
  129. package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.h +1 -2
  130. package/Microsoft.ReactNative/Fabric/Composition/FocusManager.cpp +20 -6
  131. package/Microsoft.ReactNative/Fabric/Composition/FocusManager.h +13 -6
  132. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +2 -3
  133. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.h +1 -2
  134. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +72 -54
  135. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +14 -4
  136. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.cpp +26 -8
  137. package/Microsoft.ReactNative/Fabric/Composition/RootComponentView.h +5 -2
  138. package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.cpp +18 -7
  139. package/Microsoft.ReactNative/Fabric/Composition/ScrollViewComponentView.h +1 -2
  140. package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.cpp +6 -6
  141. package/Microsoft.ReactNative/Fabric/Composition/SwitchComponentView.h +1 -2
  142. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +97 -140
  143. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +8 -4
  144. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.cpp +18 -11
  145. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputShadowNode.h +5 -4
  146. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.cpp +0 -13
  147. package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputState.h +0 -3
  148. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.cpp +29 -4
  149. package/Microsoft.ReactNative/Fabric/Composition/UiaHelpers.h +2 -0
  150. package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.cpp +1 -2
  151. package/Microsoft.ReactNative/Fabric/Composition/UnimplementedNativeViewComponentView.h +1 -2
  152. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +28 -12
  153. package/Microsoft.ReactNative/Fabric/platform/react/renderer/graphics/HostPlatformColor.h +33 -0
  154. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.cpp +26 -9
  155. package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/TextLayoutManager.h +10 -4
  156. package/Microsoft.ReactNative/IReactModuleBuilder.cpp +5 -0
  157. package/Microsoft.ReactNative/IReactModuleBuilder.h +1 -0
  158. package/Microsoft.ReactNative/IReactModuleBuilder.idl +9 -0
  159. package/Microsoft.ReactNative/IReactViewComponentBuilder.idl +8 -1
  160. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -0
  161. package/Microsoft.ReactNative/Modules/AlertModule.cpp +3 -1
  162. package/Microsoft.ReactNative/Modules/AppearanceModule.cpp +1 -1
  163. package/Microsoft.ReactNative/Modules/AppearanceModule.h +7 -1
  164. package/Microsoft.ReactNative/Modules/DevSettingsModule.cpp +3 -3
  165. package/Microsoft.ReactNative/Modules/DevSettingsModule.h +1 -1
  166. package/Microsoft.ReactNative/Modules/LinkingManagerModule.cpp +2 -2
  167. package/Microsoft.ReactNative/Modules/LinkingManagerModule.h +1 -1
  168. package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +9 -0
  169. package/Microsoft.ReactNative/Modules/LogBoxModule.h +2 -0
  170. package/Microsoft.ReactNative/Modules/SampleTurboModule.cpp +121 -0
  171. package/Microsoft.ReactNative/Modules/SampleTurboModule.h +90 -0
  172. package/Microsoft.ReactNative/ReactHost/MsoReactContext.cpp +0 -7
  173. package/Microsoft.ReactNative/ReactHost/MsoReactContext.h +0 -5
  174. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +5 -1
  175. package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.cpp +59 -0
  176. package/Microsoft.ReactNative/ReactInstanceSettingsBuilder.h +23 -0
  177. package/Microsoft.ReactNative/ReactNativeAppBuilder.cpp +179 -0
  178. package/Microsoft.ReactNative/ReactNativeAppBuilder.h +35 -0
  179. package/Microsoft.ReactNative/ReactNativeAppBuilder.idl +69 -0
  180. package/Microsoft.ReactNative/ReactNativeIsland.idl +2 -0
  181. package/Microsoft.ReactNative/ReactNativeWin32App.cpp +82 -0
  182. package/Microsoft.ReactNative/ReactNativeWin32App.h +38 -0
  183. package/Microsoft.ReactNative/TurboModulesProvider.cpp +45 -0
  184. package/Microsoft.ReactNative/Views/DynamicAutomationPeer.cpp +2 -1
  185. package/Microsoft.ReactNative/Views/FlyoutViewManager.cpp +25 -16
  186. package/Microsoft.ReactNative/packages.fabric.lock.json +159 -0
  187. package/Microsoft.ReactNative/packages.lock.json +11 -12
  188. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +3 -4
  189. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +3 -0
  190. package/Microsoft.ReactNative.Cxx/ModuleRegistration.cpp +2 -2
  191. package/Microsoft.ReactNative.Cxx/ModuleRegistration.h +62 -4
  192. package/Microsoft.ReactNative.Cxx/NativeModules.h +131 -14
  193. package/Microsoft.ReactNative.Managed/packages.lock.json +9 -9
  194. package/Microsoft.ReactNative.Managed.CodeGen/ReactNativeNames.cs +10 -2
  195. package/PropertySheets/Autolink.props +1 -1
  196. package/PropertySheets/Bundle.props +1 -1
  197. package/PropertySheets/Codegen.props +1 -1
  198. package/PropertySheets/Generated/PackageVersion.g.props +4 -4
  199. package/PropertySheets/NuGet.LockFile.props +18 -0
  200. package/README.md +29 -29
  201. package/ReactCommon/ReactCommon.vcxproj +5 -1
  202. package/ReactCommon/ReactCommon.vcxproj.filters +11 -2
  203. package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +2 -7
  204. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.cpp +441 -0
  205. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.h +266 -0
  206. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/Utf8.h +56 -0
  207. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Base.h +3 -1
  208. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Bridging.h +2 -2
  209. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/CallbackWrapper.h +1 -1
  210. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Convert.h +172 -0
  211. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/EventEmitter.h +4 -5
  212. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/bridging/Function.h +2 -2
  213. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +1 -1
  214. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +3 -2
  215. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/scrollview/ScrollViewProps.cpp +9 -0
  216. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/LayoutableShadowNode.cpp +363 -0
  217. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/JSRuntimeFactory.h +22 -2
  218. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +118 -51
  219. package/ReactCommon/packages.lock.json +2 -2
  220. package/Scripts/NuGetRestoreForceEvaluateAllSolutions.ps1 +8 -1
  221. package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +2 -2
  222. package/Shared/Modules/WebSocketModule.cpp +1 -2
  223. package/Shared/Networking/WinRTWebSocketResource.cpp +4 -1
  224. package/Shared/Shared.vcxitems +38 -2
  225. package/Shared/Shared.vcxitems.filters +6 -1
  226. package/Shared/TurboModuleManager.cpp +0 -3
  227. package/codegen/NativeLinkingManagerSpec.g.h +3 -3
  228. package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +198 -54
  229. package/codegen/NativeSampleTurboModuleSpec.g.h +35 -0
  230. package/codegen/rnwcoreJSI-generated.cpp +245 -101
  231. package/codegen/rnwcoreJSI.h +847 -548
  232. package/index.js +3 -1
  233. package/index.windows.js +3 -1
  234. package/jest/mockComponent.js +4 -1
  235. package/jest/mockModal.js +1 -3
  236. package/jest/mockScrollView.js +1 -1
  237. package/jest/renderer.js +2 -2
  238. package/jest/setup.js +16 -13
  239. package/package.json +29 -29
  240. package/src/private/animated/NativeAnimatedHelper.js +438 -0
  241. package/src/private/animated/NativeAnimatedValidation.js +64 -0
  242. package/src/private/components/HScrollViewNativeComponents.js +56 -0
  243. package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +27 -0
  244. package/src/private/components/VScrollViewNativeComponents.js +48 -0
  245. package/src/private/components/useSyncOnScroll.js +48 -0
  246. package/src/private/featureflags/ReactNativeFeatureFlags.js +166 -16
  247. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +29 -5
  248. package/src/private/fusebox/FuseboxSessionObserver.js +42 -0
  249. package/{Libraries/Core → src/private/renderer/errorhandling}/ErrorHandlers.js +14 -4
  250. package/src/private/setup/setUpDOM.js +28 -0
  251. package/src/private/setup/setUpIntersectionObserver.js +27 -0
  252. package/src/private/setup/setUpMutationObserver.js +26 -0
  253. package/src/private/setup/setUpPerformanceObserver.js +64 -0
  254. package/src/private/specs/modules/NativeAppearance.js +3 -3
  255. package/src/private/specs/modules/NativeLinkingManager.js +1 -1
  256. package/src/private/specs/modules/NativePlatformConstantsWindows.js +7 -0
  257. package/src/private/specs/modules/NativeSampleTurboModule.js +14 -1
  258. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +6 -4
  259. package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserver.js +5 -3
  260. package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserverEntry.js +3 -3
  261. package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver}/IntersectionObserverManager.js +14 -17
  262. package/src/private/{specs/modules → webapis/intersectionobserver/specs}/NativeIntersectionObserver.js +2 -2
  263. package/{Libraries/IntersectionObserver → src/private/webapis/intersectionobserver/specs}/__mocks__/NativeIntersectionObserver.js +4 -4
  264. package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationObserver.js +5 -3
  265. package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationObserverManager.js +24 -15
  266. package/{Libraries/MutationObserver → src/private/webapis/mutationobserver}/MutationRecord.js +4 -6
  267. package/src/private/{specs/modules → webapis/mutationobserver/specs}/NativeMutationObserver.js +2 -2
  268. package/{Libraries/MutationObserver → src/private/webapis/mutationobserver/specs}/__mocks__/NativeMutationObserver.js +5 -5
  269. package/src/private/webapis/performance/{EventCounts.js → EventTiming.js} +65 -3
  270. package/src/private/webapis/performance/LongTasks.js +39 -0
  271. package/src/private/webapis/performance/Performance.js +22 -9
  272. package/src/private/webapis/performance/PerformanceEntry.js +36 -18
  273. package/src/private/webapis/performance/PerformanceObserver.js +29 -43
  274. package/src/private/webapis/performance/RawPerformanceEntry.js +24 -1
  275. package/src/private/webapis/performance/UserTiming.js +17 -12
  276. package/src/private/webapis/performance/specs/NativePerformanceObserver.js +1 -1
  277. package/template/cpp-app/src/AutolinkedNativeModules.g.cpp +1 -1
  278. package/template/cpp-app/src/AutolinkedNativeModules.g.h +1 -1
  279. package/template/cs-app/src/AutolinkedNativeModules.g.cs +1 -1
  280. package/template/index.windows.bundle +1 -1
  281. package/template/metro.config.js +2 -2
  282. package/template/shared-app/src/AutolinkedNativeModules.g.props +1 -1
  283. package/template/shared-app/src/AutolinkedNativeModules.g.targets +1 -1
  284. package/templates/cpp-app/metro.config.js +2 -2
  285. package/templates/cpp-app/template.config.js +5 -5
  286. package/templates/cpp-app/windows/MyApp/AutolinkedNativeModules.g.cpp +1 -1
  287. package/templates/cpp-app/windows/MyApp/AutolinkedNativeModules.g.h +1 -1
  288. package/templates/cpp-app/windows/MyApp/MyApp.cpp +2 -0
  289. package/templates/cpp-app/windows/MyApp/MyApp.vcxproj +1 -1
  290. package/templates/cpp-lib/example/metro.config.js +2 -2
  291. package/templates/cpp-lib/template.config.js +3 -3
  292. package/templates/cpp-lib/windows/MyLib/MyLib.h +3 -3
  293. package/templates/cpp-lib/windows/MyLib/MyLib.vcxproj +1 -1
  294. package/types/experimental.d.ts +20 -1
  295. package/Libraries/Animated/NativeAnimatedHelper.js +0 -615
  296. package/Libraries/Core/setUpIntersectionObserver.js +0 -16
  297. package/Libraries/Core/setUpMutationObserver.js +0 -16
  298. package/Libraries/Core/setUpPerformanceObserver.js +0 -18
  299. package/Libraries/IntersectionObserver/NativeIntersectionObserver.js +0 -13
  300. package/Libraries/MutationObserver/NativeMutationObserver.js +0 -13
  301. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +0 -135
  302. package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/algorithm/CalculateLayout.cpp +0 -2396
  303. package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/config/Config.cpp +0 -136
  304. package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/config/Config.h +0 -92
  305. package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/node/LayoutResults.cpp +0 -48
  306. package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/node/LayoutResults.h +0 -122
  307. package/ReactCommon/TEMP_UntilReactCommonUpdate/yoga/yoga/node/Node.cpp +0 -388
  308. package/src/private/core/setUpDOM.js +0 -18
  309. package/src/private/webapis/performance/PerformanceEventTiming.js +0 -55
  310. /package/src/private/{core → styles}/composeStyles.js +0 -0
@@ -8,9 +8,10 @@
8
8
  * @format
9
9
  */
10
10
 
11
+ import type {ViewProps} from '../../Components/View/ViewPropTypes';
11
12
  import type {LogLevel} from '../Data/LogBoxLog';
12
13
 
13
- import StatusBar from '../../Components/StatusBar/StatusBar';
14
+ import SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';
14
15
  import View from '../../Components/View/View';
15
16
  import StyleSheet from '../../StyleSheet/StyleSheet';
16
17
  import Text from '../../Text/Text';
@@ -26,16 +27,19 @@ type Props = $ReadOnly<{
26
27
  level: LogLevel,
27
28
  }>;
28
29
 
30
+ const LogBoxInspectorHeaderSafeArea: React.AbstractComponent<ViewProps> =
31
+ Platform.OS === 'android' ? View : SafeAreaView;
32
+
29
33
  export default function LogBoxInspectorHeader(props: Props): React.Node {
30
34
  if (props.level === 'syntax') {
31
35
  return (
32
- <View style={[styles.safeArea, styles[props.level]]}>
36
+ <LogBoxInspectorHeaderSafeArea style={styles[props.level]}>
33
37
  <View style={styles.header}>
34
38
  <View style={styles.title}>
35
39
  <Text style={styles.titleText}>Failed to compile</Text>
36
40
  </View>
37
41
  </View>
38
- </View>
42
+ </LogBoxInspectorHeaderSafeArea>
39
43
  );
40
44
  }
41
45
 
@@ -47,7 +51,7 @@ export default function LogBoxInspectorHeader(props: Props): React.Node {
47
51
  const titleText = `Log ${props.selectedIndex + 1} of ${props.total}`;
48
52
 
49
53
  return (
50
- <View style={[styles.safeArea, styles[props.level]]}>
54
+ <LogBoxInspectorHeaderSafeArea style={styles[props.level]}>
51
55
  <View style={styles.header}>
52
56
  <LogBoxInspectorHeaderButton
53
57
  disabled={props.total <= 1}
@@ -65,7 +69,7 @@ export default function LogBoxInspectorHeader(props: Props): React.Node {
65
69
  onPress={() => props.onSelectIndex(nextIndex)}
66
70
  />
67
71
  </View>
68
- </View>
72
+ </LogBoxInspectorHeaderSafeArea>
69
73
  );
70
74
  }
71
75
 
@@ -105,7 +109,4 @@ const styles = StyleSheet.create({
105
109
  includeFontPadding: false,
106
110
  lineHeight: 20,
107
111
  },
108
- safeArea: {
109
- paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 40,
110
- },
111
112
  });
@@ -218,7 +218,6 @@ class Modal extends React.Component<Props, State> {
218
218
  }
219
219
 
220
220
  componentWillUnmount() {
221
- this.setState({isRendered: false});
222
221
  if (this._eventSubscription) {
223
222
  this._eventSubscription.remove();
224
223
  }
@@ -166,9 +166,17 @@ const validAttributesForNonEventProps = {
166
166
  backgroundColor: {process: require('../StyleSheet/processColor').default},
167
167
  transform: true,
168
168
  transformOrigin: true,
169
+ experimental_backgroundImage: {
170
+ process: require('../StyleSheet/processBackgroundImage').default,
171
+ },
172
+ experimental_boxShadow: {
173
+ process: require('../StyleSheet/processBoxShadow').default,
174
+ },
169
175
  experimental_filter: {
170
176
  process: require('../StyleSheet/processFilter').default,
171
177
  },
178
+ experimental_mixBlendMode: true,
179
+ isolation: true,
172
180
  opacity: true,
173
181
  elevation: true,
174
182
  shadowColor: {process: require('../StyleSheet/processColor').default},
@@ -193,6 +193,8 @@ const validAttributesForNonEventProps = {
193
193
  accessibilityViewIsModal: true,
194
194
  accessibilityElementsHidden: true,
195
195
  accessibilityIgnoresInvertColors: true,
196
+ accessibilityShowsLargeContentViewer: true,
197
+ accessibilityLargeContentTitle: true,
196
198
  testID: true,
197
199
  backgroundColor: {process: require('../StyleSheet/processColor').default},
198
200
  backfaceVisibility: true,
@@ -223,6 +225,11 @@ const validAttributesForNonEventProps = {
223
225
  experimental_filter: {
224
226
  process: require('../StyleSheet/processFilter').default,
225
227
  },
228
+ experimental_boxShadow: {
229
+ process: require('../StyleSheet/processBoxShadow').default,
230
+ },
231
+ experimental_mixBlendMode: true,
232
+ isolation: true,
226
233
 
227
234
  borderTopWidth: true,
228
235
  borderTopColor: {process: require('../StyleSheet/processColor').default},
@@ -213,6 +213,8 @@ const validAttributesForNonEventProps = {
213
213
  accessibilityViewIsModal: true,
214
214
  accessibilityElementsHidden: true,
215
215
  accessibilityIgnoresInvertColors: true,
216
+ accessibilityShowsLargeContentViewer: true,
217
+ accessibilityLargeContentTitle: true,
216
218
  testID: true,
217
219
  backgroundColor: {process: require('../StyleSheet/processColor').default},
218
220
  backfaceVisibility: true,
@@ -243,6 +245,11 @@ const validAttributesForNonEventProps = {
243
245
  experimental_filter: {
244
246
  process: require('../StyleSheet/processFilter').default,
245
247
  },
248
+ experimental_boxShadow: {
249
+ process: require('../StyleSheet/processBoxShadow').default,
250
+ },
251
+ experimental_mixBlendMode: true,
252
+ isolation: true,
246
253
 
247
254
  borderTopWidth: true,
248
255
  borderTopColor: {process: require('../StyleSheet/processColor').default},
@@ -11,12 +11,12 @@
11
11
  import type {
12
12
  HostComponent,
13
13
  PartialViewConfig,
14
+ ViewConfig,
14
15
  } from '../Renderer/shims/ReactNativeTypes';
15
16
 
16
17
  import getNativeComponentAttributes from '../ReactNative/getNativeComponentAttributes';
17
18
  import UIManager from '../ReactNative/UIManager';
18
19
  import * as ReactNativeViewConfigRegistry from '../Renderer/shims/ReactNativeViewConfigRegistry';
19
- import verifyComponentAttributeEquivalence from '../Utilities/verifyComponentAttributeEquivalence';
20
20
  import * as StaticViewConfigValidator from './StaticViewConfigValidator';
21
21
  import {createViewConfig} from './ViewConfig';
22
22
  import invariant from 'invariant';
@@ -34,7 +34,6 @@ let getRuntimeConfig;
34
34
  export function setRuntimeConfigProvider(
35
35
  runtimeConfigProvider: (name: string) => ?{
36
36
  native: boolean,
37
- strict: boolean,
38
37
  verify: boolean,
39
38
  },
40
39
  ): void {
@@ -54,13 +53,12 @@ export function get<Config>(
54
53
  viewConfigProvider: () => PartialViewConfig,
55
54
  ): HostComponent<Config> {
56
55
  ReactNativeViewConfigRegistry.register(name, () => {
57
- const {native, strict, verify} = getRuntimeConfig?.(name) ?? {
56
+ const {native, verify} = getRuntimeConfig?.(name) ?? {
58
57
  native: !global.RN$Bridgeless,
59
- strict: false,
60
58
  verify: false,
61
59
  };
62
60
 
63
- let viewConfig;
61
+ let viewConfig: ViewConfig;
64
62
  if (native) {
65
63
  viewConfig =
66
64
  getNativeComponentAttributes(name) ??
@@ -81,27 +79,29 @@ export function get<Config>(
81
79
  const nativeViewConfig = native
82
80
  ? viewConfig
83
81
  : getNativeComponentAttributes(name);
84
- const staticViewConfig = native
82
+
83
+ if (nativeViewConfig == null) {
84
+ // Defer to static view config if native view config is missing.
85
+ return viewConfig;
86
+ }
87
+
88
+ const staticViewConfig: ViewConfig = native
85
89
  ? createViewConfig(viewConfigProvider())
86
90
  : viewConfig;
87
91
 
88
- if (strict) {
89
- const validationOutput = StaticViewConfigValidator.validate(
90
- name,
91
- nativeViewConfig,
92
- staticViewConfig,
92
+ const validationOutput = StaticViewConfigValidator.validate(
93
+ name,
94
+ nativeViewConfig,
95
+ staticViewConfig,
96
+ );
97
+
98
+ if (validationOutput.type === 'invalid') {
99
+ console.error(
100
+ StaticViewConfigValidator.stringifyValidationResult(
101
+ name,
102
+ validationOutput,
103
+ ),
93
104
  );
94
-
95
- if (validationOutput.type === 'invalid') {
96
- console.error(
97
- StaticViewConfigValidator.stringifyValidationResult(
98
- name,
99
- validationOutput,
100
- ),
101
- );
102
- }
103
- } else {
104
- verifyComponentAttributeEquivalence(nativeViewConfig, staticViewConfig);
105
105
  }
106
106
  }
107
107
 
@@ -22,11 +22,6 @@ export type Difference =
22
22
  path: Array<string>,
23
23
  nativeValue: mixed,
24
24
  staticValue: mixed,
25
- }
26
- | {
27
- type: 'unexpected',
28
- path: Array<string>,
29
- staticValue: mixed,
30
25
  };
31
26
 
32
27
  export type ValidationResult = ValidResult | InvalidResult;
@@ -90,8 +85,6 @@ export function stringifyValidationResult(
90
85
  return `- '${path.join('.')}' is missing.`;
91
86
  case 'unequal':
92
87
  return `- '${path.join('.')}' is the wrong value.`;
93
- case 'unexpected':
94
- return `- '${path.join('.')}' is present but not expected to be.`;
95
88
  }
96
89
  }),
97
90
  '',
@@ -145,20 +138,6 @@ function accumulateDifferences(
145
138
  });
146
139
  }
147
140
  }
148
-
149
- for (const staticKey in staticObject) {
150
- if (
151
- !nativeObject.hasOwnProperty(staticKey) &&
152
- // $FlowFixMe[invalid-computed-prop]
153
- !isIgnored(staticObject[staticKey])
154
- ) {
155
- differences.push({
156
- path: [...path, staticKey],
157
- type: 'unexpected',
158
- staticValue: staticObject[staticKey],
159
- });
160
- }
161
- }
162
141
  }
163
142
 
164
143
  function ifObject(value: mixed): ?{...} {
@@ -78,7 +78,9 @@ const REQUEST_EVENTS = [
78
78
 
79
79
  const XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange');
80
80
 
81
- class XMLHttpRequestEventTarget extends (EventTarget(...REQUEST_EVENTS): any) {
81
+ class XMLHttpRequestEventTarget extends (EventTarget(
82
+ ...REQUEST_EVENTS,
83
+ ): typeof EventTarget) {
82
84
  onload: ?Function;
83
85
  onloadstart: ?Function;
84
86
  onprogress: ?Function;
@@ -91,7 +93,7 @@ class XMLHttpRequestEventTarget extends (EventTarget(...REQUEST_EVENTS): any) {
91
93
  /**
92
94
  * Shared base for platform-specific XMLHttpRequest implementations.
93
95
  */
94
- class XMLHttpRequest extends (EventTarget(...XHR_EVENTS): any) {
96
+ class XMLHttpRequest extends (EventTarget(...XHR_EVENTS): typeof EventTarget) {
95
97
  static UNSENT: number = UNSENT;
96
98
  static OPENED: number = OPENED;
97
99
  static HEADERS_RECEIVED: number = HEADERS_RECEIVED;
@@ -90,7 +90,6 @@ const AppContainer = ({
90
90
  internal_excludeInspector = false,
91
91
  internal_excludeLogBox = false,
92
92
  rootTag,
93
- showArchitectureIndicator,
94
93
  WrapperComponent,
95
94
  rootViewStyle,
96
95
  }: Props): React.Node => {
@@ -150,10 +149,7 @@ const AppContainer = ({
150
149
 
151
150
  if (WrapperComponent != null) {
152
151
  innerView = (
153
- <WrapperComponent
154
- initialProps={initialProps}
155
- fabric={fabric === true}
156
- showArchitectureIndicator={showArchitectureIndicator === true}>
152
+ <WrapperComponent initialProps={initialProps} fabric={fabric === true}>
157
153
  {innerView}
158
154
  </WrapperComponent>
159
155
  );
@@ -21,7 +21,6 @@ const AppContainer = ({
21
21
  fabric,
22
22
  initialProps,
23
23
  rootTag,
24
- showArchitectureIndicator,
25
24
  WrapperComponent,
26
25
  rootViewStyle,
27
26
  }: Props): React.Node => {
@@ -29,10 +28,7 @@ const AppContainer = ({
29
28
 
30
29
  if (WrapperComponent != null) {
31
30
  innerView = (
32
- <WrapperComponent
33
- initialProps={initialProps}
34
- fabric={fabric === true}
35
- showArchitectureIndicator={showArchitectureIndicator === true}>
31
+ <WrapperComponent initialProps={initialProps} fabric={fabric === true}>
36
32
  {innerView}
37
33
  </WrapperComponent>
38
34
  );
@@ -8,8 +8,8 @@
8
8
  * @flow
9
9
  */
10
10
 
11
- import type {RootTag} from './RootTag';
12
11
  import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
12
+ import type {RootTag} from './RootTag';
13
13
 
14
14
  import * as React from 'react';
15
15
 
@@ -18,7 +18,6 @@ export type Props = $ReadOnly<{|
18
18
  fabric?: boolean,
19
19
  rootTag: number | RootTag,
20
20
  initialProps?: {...},
21
- showArchitectureIndicator?: boolean,
22
21
  WrapperComponent?: ?React.ComponentType<any>,
23
22
  rootViewStyle?: ?ViewStyleProp,
24
23
  internal_excludeLogBox?: boolean,
@@ -63,10 +63,6 @@ export namespace AppRegistry {
63
63
 
64
64
  export function registerConfig(config: AppConfig[]): void;
65
65
 
66
- export function setRootViewStyleProvider(
67
- provider: RootViewStyleProvider,
68
- ): void;
69
-
70
66
  export function registerComponent(
71
67
  appKey: string,
72
68
  getComponentFunc: ComponentProvider,
@@ -8,10 +8,10 @@
8
8
  * @format
9
9
  */
10
10
 
11
+ import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
11
12
  import type {RootTag} from '../Types/RootTagTypes';
12
13
  import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
13
14
  import type {DisplayModeType} from './DisplayMode';
14
- import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
15
15
 
16
16
  import BatchedBridge from '../BatchedBridge/BatchedBridge';
17
17
  import BugReporting from '../BugReporting/BugReporting';
@@ -73,7 +73,6 @@ let componentProviderInstrumentationHook: ComponentProviderInstrumentationHook =
73
73
 
74
74
  let wrapperComponentProvider: ?WrapperComponentProvider;
75
75
  let rootViewStyleProvider: ?RootViewStyleProvider;
76
- let showArchitectureIndicator = false;
77
76
 
78
77
  /**
79
78
  * `AppRegistry` is the JavaScript entry point to running all React Native apps.
@@ -89,10 +88,6 @@ const AppRegistry = {
89
88
  rootViewStyleProvider = provider;
90
89
  },
91
90
 
92
- enableArchitectureIndicator(enabled: boolean): void {
93
- showArchitectureIndicator = enabled;
94
- },
95
-
96
91
  registerConfig(config: Array<AppConfig>): void {
97
92
  config.forEach(appConfig => {
98
93
  if (appConfig.run) {
@@ -139,7 +134,6 @@ const AppRegistry = {
139
134
  wrapperComponentProvider && wrapperComponentProvider(appParameters),
140
135
  rootViewStyleProvider && rootViewStyleProvider(appParameters),
141
136
  appParameters.fabric,
142
- showArchitectureIndicator,
143
137
  scopedPerformanceLogger,
144
138
  appKey === 'LogBox', // is logbox
145
139
  appKey,
@@ -382,6 +382,7 @@ const UIManagerJS: UIManagerJSInterface & {[string]: any} = {
382
382
  shadowNode,
383
383
  );
384
384
 
385
+ // eslint-disable-next-line no-bitwise
385
386
  let isAncestor = (result & DOCUMENT_POSITION_CONTAINED_BY) !== 0;
386
387
 
387
388
  callback([isAncestor]);
@@ -20,7 +20,7 @@ import type {
20
20
  import type {ElementRef} from 'react';
21
21
 
22
22
  import TextInputState from '../../Components/TextInput/TextInputState';
23
- import {getNodeFromInternalInstanceHandle} from '../../Renderer/shims/ReactFabric';
23
+ import {getNodeFromInternalInstanceHandle} from '../../ReactNative/RendererProxy';
24
24
  import {getFabricUIManager} from '../FabricUIManager';
25
25
  import {create} from './ReactNativeAttributePayload';
26
26
  import warnForStyleProps from './warnForStyleProps';
@@ -15,7 +15,7 @@
15
15
 
16
16
  import type ReactNativeElement from '../../../src/private/webapis/dom/nodes/ReactNativeElement';
17
17
  import type ReadOnlyText from '../../../src/private/webapis/dom/nodes/ReadOnlyText';
18
- import typeof ReactFabricType from '../../Renderer/shims/ReactFabric';
18
+ import typeof * as RendererProxyT from '../../ReactNative/RendererProxy';
19
19
  import type {
20
20
  InternalInstanceHandle,
21
21
  Node,
@@ -32,7 +32,7 @@ let PublicInstanceClass:
32
32
  let ReadOnlyTextClass: Class<ReadOnlyText>;
33
33
 
34
34
  // Lazy loaded to avoid evaluating the module when using the legacy renderer.
35
- let ReactFabric: ReactFabricType;
35
+ let RendererProxy: RendererProxyT;
36
36
 
37
37
  export function createPublicInstance(
38
38
  tag: number,
@@ -78,10 +78,10 @@ export function getNodeFromPublicInstance(
78
78
  return null;
79
79
  }
80
80
 
81
- if (ReactFabric == null) {
82
- ReactFabric = require('../../Renderer/shims/ReactFabric');
81
+ if (RendererProxy == null) {
82
+ RendererProxy = require('../../ReactNative/RendererProxy');
83
83
  }
84
- return ReactFabric.getNodeFromInternalInstanceHandle(
84
+ return RendererProxy.getNodeFromInternalInstanceHandle(
85
85
  publicInstance.__internalInstanceHandle,
86
86
  );
87
87
  }
@@ -8,15 +8,19 @@
8
8
  * @flow strict-local
9
9
  */
10
10
 
11
- import type {HostComponent} from '../Renderer/shims/ReactNativeTypes';
11
+ import type {
12
+ HostComponent,
13
+ InternalInstanceHandle,
14
+ Node,
15
+ } from '../Renderer/shims/ReactNativeTypes';
12
16
  import type ReactFabricHostComponent from './ReactFabricPublicInstance/ReactFabricHostComponent';
13
- import type {Element, ElementRef, ElementType} from 'react';
17
+ import type {ElementRef, ElementType} from 'react';
14
18
 
15
19
  import {
16
20
  onCaughtError,
17
21
  onRecoverableError,
18
22
  onUncaughtError,
19
- } from '../Core/ErrorHandlers';
23
+ } from '../../src/private/renderer/errorhandling/ErrorHandlers';
20
24
  import {type RootTag} from './RootTag';
21
25
  export function renderElement({
22
26
  element,
@@ -24,7 +28,7 @@ export function renderElement({
24
28
  useFabric,
25
29
  useConcurrentRoot,
26
30
  }: {
27
- element: Element<ElementType>,
31
+ element: React.MixedElement,
28
32
  rootTag: number,
29
33
  useFabric: boolean,
30
34
  useConcurrentRoot: boolean,
@@ -139,3 +143,21 @@ export function isChildPublicInstance(
139
143
  childInstance,
140
144
  );
141
145
  }
146
+
147
+ export function getNodeFromInternalInstanceHandle(
148
+ internalInstanceHandle: InternalInstanceHandle,
149
+ ): ?Node {
150
+ // This is only available in Fabric
151
+ return require('../Renderer/shims/ReactFabric').getNodeFromInternalInstanceHandle(
152
+ internalInstanceHandle,
153
+ );
154
+ }
155
+
156
+ export function getPublicInstanceFromInternalInstanceHandle(
157
+ internalInstanceHandle: InternalInstanceHandle,
158
+ ): mixed /*PublicInstance | PublicTextInstance | null*/ {
159
+ // This is only available in Fabric
160
+ return require('../Renderer/shims/ReactFabric').getPublicInstanceFromInternalInstanceHandle(
161
+ internalInstanceHandle,
162
+ );
163
+ }
@@ -10,8 +10,12 @@
10
10
 
11
11
  'use strict';
12
12
 
13
+ import processBoxShadow from '../StyleSheet/processBoxShadow';
14
+
13
15
  const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes');
14
16
  const resolveAssetSource = require('../Image/resolveAssetSource');
17
+ const processBackgroundImage =
18
+ require('../StyleSheet/processBackgroundImage').default;
15
19
  const processColor = require('../StyleSheet/processColor').default;
16
20
  const processColorArray = require('../StyleSheet/processColorArray');
17
21
  const processFilter = require('../StyleSheet/processFilter').default;
@@ -191,8 +195,12 @@ function getProcessorForType(typeName: string): ?(nextProp: any) => any {
191
195
  return processColorArray;
192
196
  case 'Filter':
193
197
  return processFilter;
198
+ case 'BackgroundImage':
199
+ return processBackgroundImage;
194
200
  case 'ImageSource':
195
201
  return resolveAssetSource;
202
+ case 'BoxShadow':
203
+ return processBoxShadow;
196
204
  }
197
205
  return null;
198
206
  }
@@ -8,8 +8,8 @@
8
8
  * @flow
9
9
  */
10
10
 
11
- import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
12
11
  import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
12
+ import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
13
13
 
14
14
  import GlobalPerformanceLogger from '../Utilities/GlobalPerformanceLogger';
15
15
  import PerformanceLoggerContext from '../Utilities/PerformanceLoggerContext';
@@ -35,7 +35,6 @@ export default function renderApplication<Props: Object>(
35
35
  WrapperComponent?: ?React.ComponentType<any>,
36
36
  rootViewStyle?: ?ViewStyleProp,
37
37
  fabric?: boolean,
38
- showArchitectureIndicator?: boolean,
39
38
  scopedPerformanceLogger?: IPerformanceLogger,
40
39
  isLogBox?: boolean,
41
40
  debugName?: string,
@@ -52,7 +51,6 @@ export default function renderApplication<Props: Object>(
52
51
  <AppContainer
53
52
  rootTag={rootTag}
54
53
  fabric={fabric}
55
- showArchitectureIndicator={showArchitectureIndicator}
56
54
  WrapperComponent={WrapperComponent}
57
55
  rootViewStyle={rootViewStyle}
58
56
  initialProps={initialProps ?? Object.freeze({})}
@@ -7,10 +7,15 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict
10
- * @generated SignedSource<<e7a1421518e1d99f18c5b14e85f44843>>
10
+ * @generated SignedSource<<89361333bb6b688486e35849a9c669a6>>
11
11
  */
12
12
 
13
- import type {ElementRef, ElementType, Element, AbstractComponent} from 'react';
13
+ import type {
14
+ ElementRef,
15
+ ElementType,
16
+ MixedElement,
17
+ AbstractComponent,
18
+ } from 'react';
14
19
 
15
20
  export type MeasureOnSuccessCallback = (
16
21
  x: number,
@@ -86,6 +91,7 @@ export type ViewConfig = $ReadOnly<{
86
91
  }>,
87
92
  ...
88
93
  }>,
94
+ supportsRawText?: boolean,
89
95
  uiViewClassName: string,
90
96
  validAttributes: AttributeConfiguration,
91
97
  }>;
@@ -93,6 +99,7 @@ export type ViewConfig = $ReadOnly<{
93
99
  export type PartialViewConfig = $ReadOnly<{
94
100
  bubblingEventTypes?: $PropertyType<ViewConfig, 'bubblingEventTypes'>,
95
101
  directEventTypes?: $PropertyType<ViewConfig, 'directEventTypes'>,
102
+ supportsRawText?: boolean,
96
103
  uiViewClassName: string,
97
104
  validAttributes?: PartialAttributeConfiguration,
98
105
  }>;
@@ -220,7 +227,7 @@ export type ReactNativeType = {
220
227
  eventType: string,
221
228
  ): void,
222
229
  render(
223
- element: Element<ElementType>,
230
+ element: MixedElement,
224
231
  containerTag: number,
225
232
  callback: ?() => void,
226
233
  options: ?RenderRootOptions,
@@ -255,7 +262,7 @@ export type ReactFabricType = {
255
262
  eventType: string,
256
263
  ): void,
257
264
  render(
258
- element: Element<ElementType>,
265
+ element: MixedElement,
259
266
  containerTag: number,
260
267
  callback: ?() => void,
261
268
  concurrentRoot: ?boolean,
@@ -23,7 +23,7 @@ import type {
23
23
  ____ViewStyleProp_Internal,
24
24
  } from './StyleSheetTypes';
25
25
 
26
- import composeStyles from '../../src/private/core/composeStyles';
26
+ import composeStyles from '../../src/private/styles/composeStyles';
27
27
 
28
28
  const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes');
29
29
  const PixelRatio = require('../Utilities/PixelRatio').default;
@@ -229,6 +229,62 @@ export interface TransformsStyle {
229
229
  translateY?: AnimatableNumericValue | undefined;
230
230
  }
231
231
 
232
+ export type FilterFunction =
233
+ | {brightness: number | string}
234
+ | {blur: number | string}
235
+ | {contrast: number | string}
236
+ | {grayscale: number | string}
237
+ | {hueRotate: number | string}
238
+ | {invert: number | string}
239
+ | {opacity: number | string}
240
+ | {saturate: number | string}
241
+ | {sepia: number | string}
242
+ | {dropShadow: DropShadowPrimitive | string};
243
+
244
+ export type DropShadowPrimitive = {
245
+ offsetX: number | string;
246
+ offsetY: number | string;
247
+ standardDeviation?: number | string | undefined;
248
+ color?: ColorValue | number | undefined;
249
+ };
250
+
251
+ export type BoxShadowPrimitive = {
252
+ offsetX: number | string;
253
+ offsetY: number | string;
254
+ color?: string | undefined;
255
+ blurRadius?: ColorValue | number | undefined;
256
+ spreadDistance?: number | string | undefined;
257
+ inset?: boolean | undefined;
258
+ };
259
+
260
+ export type BlendMode =
261
+ | 'normal'
262
+ | 'multiply'
263
+ | 'screen'
264
+ | 'overlay'
265
+ | 'darken'
266
+ | 'lighten'
267
+ | 'color-dodge'
268
+ | 'color-burn'
269
+ | 'hard-light'
270
+ | 'soft-light'
271
+ | 'difference'
272
+ | 'exclusion'
273
+ | 'hue'
274
+ | 'saturation'
275
+ | 'color'
276
+ | 'luminosity';
277
+
278
+ export type GradientValue = {
279
+ type: 'linearGradient';
280
+ // Angle or direction enums
281
+ direction?: string | undefined;
282
+ colorStops: ReadonlyArray<{
283
+ color: ColorValue;
284
+ positions?: ReadonlyArray<string[]> | undefined;
285
+ }>;
286
+ };
287
+
232
288
  /**
233
289
  * @see https://reactnative.dev/docs/view#style
234
290
  */
@@ -278,6 +334,7 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle {
278
334
  * Controls whether the View can be the target of touch events.
279
335
  */
280
336
  pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined;
337
+ isolation?: 'auto' | 'isolate' | undefined;
281
338
  cursor?: CursorValue | undefined;
282
339
  }
283
340