peachsim 0.1.2674 → 0.1.2675

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 (139) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +86 -64
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-7UZN4VYK.mjs → acorn-VEOPTKVF.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-JN5AITFW.mjs → chunk-35JRIGP7.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-YTLETAHS.mjs → chunk-3Q3LIOE4.mjs} +2 -2
  29. package/dist-lib/esm-chunks/{chunk-S6FAF3O6.mjs → chunk-5F7IW22G.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-K6YX77B2.mjs → chunk-5INXUSJ3.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-64GNURGG.mjs → chunk-ADOQU6SI.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-5HLALTZU.mjs → chunk-AJTT2VYL.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-YTVAFL2C.mjs → chunk-ATBIBLXB.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-BVXC4YET.mjs → chunk-BJGGCQKA.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-DDKNMOMP.mjs → chunk-DBPA4NE7.mjs} +5 -5
  36. package/dist-lib/esm-chunks/{chunk-TCJINVW7.mjs → chunk-E663VVCN.mjs} +6 -6
  37. package/dist-lib/esm-chunks/{chunk-GR6LZLL3.mjs → chunk-FOTVQGKC.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-OSSY6ZNV.mjs → chunk-FSMKZOTX.mjs} +3 -3
  39. package/dist-lib/esm-chunks/{chunk-UQLURJW5.mjs → chunk-GM75SEKY.mjs} +6 -6
  40. package/dist-lib/esm-chunks/{chunk-Y3Y67ML7.mjs → chunk-I5Z73FXT.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-6MQE6NHP.mjs → chunk-IZB357DH.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-54JOIACB.mjs → chunk-K234VYDM.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-JGCL2DFM.mjs → chunk-LCSKGJ7G.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-ASL76C2M.mjs → chunk-LFD67UJA.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-OICCOALD.mjs → chunk-MED7BRBB.mjs} +4 -4
  46. package/dist-lib/esm-chunks/{chunk-UYNBXPDJ.mjs → chunk-MJBRJSOV.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-7LVYKI6B.mjs → chunk-NNH7MSKJ.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-GY2LAJOJ.mjs → chunk-SKQE5DWK.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-UR4364IC.mjs → chunk-YPE76EEE.mjs} +15 -15
  50. package/dist-lib/esm-chunks/{chunk-PGWO5WJS.mjs → chunk-ZATDP3O2.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-SIV4DJUF.mjs → metro-layout-parser-RYUGORYR.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-U4TO4A5N.mjs → swift-package-prebuilt-M55UCSKN.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-J5OL6AQS.mjs → swift-sdk-app-module-L2HB3XBS.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-CV5NS7AQ.mjs → swift-sdk-image-AHIIWTZ6.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-I4HX7YZO.mjs → swift-sdk-image-producer-4S5ZPC2A.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +56 -39
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +85 -63
  61. package/dist-lib/host/fetch-proxy-handler.cjs +11 -10
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +64 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +98 -76
  95. package/dist-lib/swift-compile.cjs +2 -2
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/remote-stream/client-config.d.ts +4 -0
  123. package/package.json +1 -1
  124. package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h +14 -0
  125. package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h +20 -0
  126. package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h +71 -0
  127. package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Headers/AssetsLibrary.h +5 -0
  128. package/sdk/ios/System/Library/Frameworks/AssetsLibrary.framework/Modules/module.modulemap +5 -0
  129. package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTask.h +21 -0
  130. package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskRequest.h +24 -0
  131. package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BGTaskScheduler.h +32 -0
  132. package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Headers/BackgroundTasks.h +5 -0
  133. package/sdk/ios/System/Library/Frameworks/BackgroundTasks.framework/Modules/module.modulemap +5 -0
  134. package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Headers/LPLinkMetadata.h +17 -0
  135. package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Headers/LPMetadataProvider.h +18 -0
  136. package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Headers/LinkPresentation.h +4 -0
  137. package/sdk/ios/System/Library/Frameworks/LinkPresentation.framework/Modules/module.modulemap +5 -0
  138. package/src/expo-native-workspace.ts +3 -4
  139. package/src/turbo-source.ts +60 -23
@@ -47,6 +47,7 @@ function cleanWorkspaceGitEnv(): NodeJS.ProcessEnv {
47
47
  // or its prebuilt frameworks; each choice needs its own prepared workspace.
48
48
  export function reactNativePodsEnvironment() {
49
49
  return {
50
+ RCT_NEW_ARCH_ENABLED: process.env.RCT_NEW_ARCH_ENABLED,
50
51
  RCT_USE_PREBUILT_RNCORE: process.env.RCT_USE_PREBUILT_RNCORE,
51
52
  RCT_USE_RN_DEP: process.env.RCT_USE_RN_DEP,
52
53
  }
@@ -392,7 +393,7 @@ async function walkWorkspaceInputs(
392
393
  { cwd: root },
393
394
  )
394
395
  const toolchain = JSON.stringify({
395
- preparation: 12,
396
+ preparation: 13,
396
397
  appRelative,
397
398
  xcode: xcodeInstallationIdentity(),
398
399
  node: node.stdout.trim(),
@@ -1118,12 +1119,10 @@ async function prepareNativeProject(
1118
1119
  oneSdkPrepared?: Set<string>,
1119
1120
  ) {
1120
1121
  const appRequire = createRequire(path.join(app, 'package.json'))
1121
- // peach runs the new architecture only, and pods such as
1122
- // react-native-paste-input refuse to evaluate without it
1123
1122
  const sourcePodEnv = {
1124
1123
  EXPO_USE_PRECOMPILED_MODULES: '0',
1125
1124
  ONE_PREBUILT_IOS: '0',
1126
- RCT_NEW_ARCH_ENABLED: '1',
1125
+ RCT_NEW_ARCH_ENABLED: process.env.RCT_NEW_ARCH_ENABLED ?? '1',
1127
1126
  }
1128
1127
  const declares = (name: string) => declaresNativeDependency(manifest, name)
1129
1128
  if (!fs.existsSync(path.join(app, 'ios', 'Podfile'))) {
@@ -9,6 +9,7 @@
9
9
  // classes are left out: React Native never reaches them for a C++ module.
10
10
  import { createHash } from 'node:crypto'
11
11
  import fs from 'node:fs'
12
+ import { createRequire } from 'node:module'
12
13
  import path from 'node:path'
13
14
  import { trunkSpecificationFile, trunkVersions } from './cocoapods-trunk'
14
15
  import { installedNativeSources } from './installed-native-libraries'
@@ -896,7 +897,11 @@ function transcribeLoad(text: string, file: string) {
896
897
  return { includes, usings, body }
897
898
  }
898
899
 
899
- function viewManagers(root: string, files: Iterable<string>): Set<string> {
900
+ function viewManagers(
901
+ root: string,
902
+ files: Iterable<string>,
903
+ inherited?: ReadonlySet<string>,
904
+ ): Set<string> {
900
905
  const classes = new Map<string, string>()
901
906
  for (const file of files) {
902
907
  if (!HEADER.test(file) && !OBJC.test(file)) continue
@@ -908,7 +913,7 @@ function viewManagers(root: string, files: Iterable<string>): Set<string> {
908
913
  ))
909
914
  classes.set(name!, parent!)
910
915
  }
911
- const managers = new Set(['RCTViewManager'])
916
+ const managers = new Set(inherited ?? ['RCTViewManager'])
912
917
  for (let remaining = classes.size; remaining > 0; remaining--) {
913
918
  let changed = false
914
919
  for (const [name, parent] of classes) {
@@ -922,12 +927,23 @@ function viewManagers(root: string, files: Iterable<string>): Set<string> {
922
927
  return managers
923
928
  }
924
929
 
930
+ function reactNativeViewManagers(root: string): Set<string> {
931
+ const files = new Set<string>()
932
+ for (const { from, to } of REACT_NATIVE_HEADER_DIRS)
933
+ if (to === 'React') walkFiles(root, from, files)
934
+ return viewManagers(root, files)
935
+ }
936
+
925
937
  /** the RCTViewManager subclasses a pod registers (RCT_EXPORT_MODULE in its
926
938
  * @implementation, or a Swift manager's RCT_EXTERN_MODULE): Fabric mounts
927
939
  * each through React Native's legacy view manager interop. */
928
- function paperViewManagers(root: string, files: Iterable<string>): string[] {
940
+ function paperViewManagers(
941
+ root: string,
942
+ files: Iterable<string>,
943
+ inherited: ReadonlySet<string>,
944
+ ): string[] {
929
945
  const sources = [...files]
930
- const managers = viewManagers(root, sources)
946
+ const managers = viewManagers(root, sources, inherited)
931
947
  const exported = new Set<string>()
932
948
  for (const file of sources) {
933
949
  if (!OBJC.test(file)) continue
@@ -945,16 +961,19 @@ function paperViewManagers(root: string, files: Iterable<string>): string[] {
945
961
  return [...exported].sort()
946
962
  }
947
963
 
948
- function registers(root: string, files: Iterable<string>, objc = true): boolean {
964
+ function registers(
965
+ root: string,
966
+ files: Iterable<string>,
967
+ inherited: ReadonlySet<string>,
968
+ ): boolean {
949
969
  const sources = [...files]
950
- const managers = objc ? viewManagers(root, sources) : new Set<string>()
970
+ const managers = viewManagers(root, sources, inherited)
951
971
  for (const file of sources) {
952
972
  if (!UNIT.test(file) && !OBJC.test(file)) continue
953
973
  const text = fs.readFileSync(path.join(root, file), 'utf8')
954
974
  if (text.includes(REGISTRATION)) return true
955
975
  const stripped = stripComments(text)
956
976
  if (
957
- objc &&
958
977
  OBJC.test(file) &&
959
978
  !CODEGEN_OBJC.test(text) &&
960
979
  (OBJC_TURBO.test(stripped) ||
@@ -1004,6 +1023,11 @@ export async function discoverTurboProviders(
1004
1023
  ): Promise<TurboProvider[]> {
1005
1024
  const providers: TurboProvider[] = []
1006
1025
  const candidates = await turboProviderCandidates(appRoot, answeredPackages)
1026
+ if (!candidates.length) return providers
1027
+ const appRequire = createRequire(path.join(appRoot, 'package.json'))
1028
+ const nativeManagers = reactNativeViewManagers(
1029
+ path.dirname(appRequire.resolve('react-native/package.json')),
1030
+ )
1007
1031
  const installed =
1008
1032
  projectRoot && installedXcodeWorkspace(projectRoot)
1009
1033
  ? installedNativeSources(
@@ -1022,7 +1046,8 @@ export async function discoverTurboProviders(
1022
1046
  if (
1023
1047
  fabric ||
1024
1048
  (files !== null &&
1025
- (registers(root, files) || paperViewManagers(root, files).length > 0))
1049
+ (registers(root, files, nativeManagers) ||
1050
+ paperViewManagers(root, files, nativeManagers).length > 0))
1026
1051
  ) {
1027
1052
  const nameFiles = files ?? podGlobFiles(pod)
1028
1053
  if (
@@ -1126,12 +1151,24 @@ export async function collectTurboSources(options: {
1126
1151
  const reactNative = packageInfo(options.reactNativeRoot)
1127
1152
  if (reactNative.name !== 'react-native')
1128
1153
  throw new Error(`${options.reactNativeRoot} is not react-native`)
1154
+ const nativeManagers = reactNativeViewManagers(reactNative.root)
1155
+ const paperWorkspace = process.env.RCT_NEW_ARCH_ENABLED === '0'
1129
1156
  const rawProviders = options.providers
1130
- .map((provider) => ({
1131
- ...provider,
1132
- info: packageInfo(provider.root),
1133
- libraries: packageCodegenLibraries(provider.root),
1134
- }))
1157
+ .map((provider) => {
1158
+ const installed = options.installedPods?.get(provider.name)
1159
+ const paper =
1160
+ paperWorkspace &&
1161
+ installed !== undefined &&
1162
+ !/(?:^| )-D ?RCT_NEW_ARCH_ENABLED(?:=[^ ]+)?(?: |$)/.test(
1163
+ installed.preprocessorFlags.cxx.join(' '),
1164
+ )
1165
+ return {
1166
+ ...provider,
1167
+ info: packageInfo(provider.root),
1168
+ libraries: packageCodegenLibraries(provider.root),
1169
+ paper,
1170
+ }
1171
+ })
1135
1172
  .sort((a, b) => a.info.name.localeCompare(b.info.name))
1136
1173
  const installedHeaderPods = (
1137
1174
  options.reactNativeProvider || options.reactNativeCore
@@ -1169,7 +1206,7 @@ export async function collectTurboSources(options: {
1169
1206
  const providers: ((typeof rawProviders)[number] & { providerFabric: boolean })[] = []
1170
1207
  for (const provider of rawProviders) {
1171
1208
  const componentLibraries = provider.libraries.filter((library) => library.components)
1172
- if (componentLibraries.length === 0) {
1209
+ if (componentLibraries.length === 0 || provider.paper) {
1173
1210
  providers.push({ ...provider, providerFabric: false })
1174
1211
  continue
1175
1212
  }
@@ -1216,8 +1253,8 @@ export async function collectTurboSources(options: {
1216
1253
  return registersReactModule(text) || CODEGEN_OBJC.test(text)
1217
1254
  })
1218
1255
  if (
1219
- !registers(pod.root, filteredFiles) &&
1220
- paperViewManagers(pod.root, filteredFiles).length === 0
1256
+ !registers(pod.root, filteredFiles, nativeManagers) &&
1257
+ paperViewManagers(pod.root, filteredFiles, nativeManagers).length === 0
1221
1258
  )
1222
1259
  continue
1223
1260
  }
@@ -1235,13 +1272,12 @@ export async function collectTurboSources(options: {
1235
1272
  const targetPath = (name: string) => `Sources/${name}`
1236
1273
  const providerTarget = (name: string) => `TurboPackage_${sha256(name).slice(0, 16)}`
1237
1274
  const folly = readFollyConfig(reactNative.root)
1238
- const defines = [
1275
+ const baseDefines = [
1239
1276
  options.configuration === 'Debug' ? 'DEBUG=1' : 'NDEBUG',
1240
- 'RCT_NEW_ARCH_ENABLED=1',
1241
- 'RCT_REMOVE_LEGACY_ARCH=1',
1242
1277
  'RCT_REMOTE_PROFILE=0',
1243
1278
  ...folly.defines,
1244
1279
  ]
1280
+ const defines = [...baseDefines, 'RCT_NEW_ARCH_ENABLED=1', 'RCT_REMOVE_LEGACY_ARCH=1']
1245
1281
  const target = (name: string, dependencies: string[]) => ({
1246
1282
  name,
1247
1283
  path: targetPath(name),
@@ -1870,6 +1906,7 @@ export async function collectTurboSources(options: {
1870
1906
  options.appRoot,
1871
1907
  options.installedPods?.get(provider.name),
1872
1908
  )
1909
+ if (provider.paper) providerTargetInput.cxxDefines = baseDefines
1873
1910
  if (pod.installed)
1874
1911
  providerTargetInput.clangSettings = [
1875
1912
  { tool: 'c', flags: pod.installed.preprocessorFlags.c },
@@ -1895,8 +1932,8 @@ export async function collectTurboSources(options: {
1895
1932
  const text = fs.readFileSync(path.join(root, file), 'utf8')
1896
1933
  return registersReactModule(text) || CODEGEN_OBJC.test(text)
1897
1934
  })
1898
- const managers = viewManagers(root, files)
1899
- const paper = paperViewManagers(root, files)
1935
+ const managers = viewManagers(root, files, nativeManagers)
1936
+ const paper = paperViewManagers(root, files, nativeManagers)
1900
1937
  if (paper.length > 0) {
1901
1938
  // RCTLegacyViewManagerInteropComponentView, from the renderer pods, mounts them
1902
1939
  fabric = true
@@ -2197,7 +2234,7 @@ export async function collectTurboSources(options: {
2197
2234
  }
2198
2235
  if (
2199
2236
  loads.length === 0 &&
2200
- !registers(root, files) &&
2237
+ !registers(root, files, nativeManagers) &&
2201
2238
  !provider.providerFabric &&
2202
2239
  paper.length === 0
2203
2240
  )
@@ -4629,7 +4666,7 @@ std::array<double, 10> fabricAdoptedStyle(const PeachFabricView &view) {
4629
4666
  // the event type and its payload with the target tag and timestamp
4630
4667
  const auto fabricDispatchEvent = [](
4631
4668
  jsi::Runtime &rt,
4632
- react::EventTarget *target,
4669
+ const react::EventTarget *target,
4633
4670
  const std::string &type,
4634
4671
  react::ReactEventPriority,
4635
4672
  const react::EventPayload &eventPayload,