react-native 0.73.0-rc.2 → 0.73.0-rc.3

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 (61) hide show
  1. package/Libraries/AppDelegate/RCTAppDelegate.mm +1 -1
  2. package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +6 -2
  3. package/Libraries/Core/ReactNativeVersion.js +1 -1
  4. package/Libraries/LogBox/Data/LogBoxData.js +2 -1
  5. package/Libraries/promiseRejectionTrackingOptions.js +21 -7
  6. package/React/Base/RCTBridgeProxy.mm +11 -3
  7. package/React/Base/RCTConstants.h +1 -1
  8. package/React/Base/RCTConstants.m +1 -1
  9. package/React/Base/RCTVersion.m +1 -1
  10. package/React/Base/Surface/RCTSurfaceRootShadowView.h +1 -1
  11. package/React/Base/Surface/RCTSurfaceRootShadowView.m +1 -1
  12. package/React/CoreModules/RCTDeviceInfo.mm +1 -1
  13. package/React/CoreModules/React-CoreModules.podspec +1 -1
  14. package/React/Modules/RCTUIManager.h +7 -0
  15. package/React/Modules/RCTUIManager.m +1 -1
  16. package/React/Views/RCTComponentData.m +1 -1
  17. package/React/Views/RCTLayout.h +1 -1
  18. package/React/Views/RCTRootShadowView.h +1 -1
  19. package/React/Views/RCTRootShadowView.m +1 -1
  20. package/React/Views/RCTShadowView.m +1 -1
  21. package/React/Views/ScrollView/RCTScrollView.m +1 -1
  22. package/React-Core.podspec +1 -1
  23. package/ReactAndroid/gradle.properties +1 -1
  24. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +0 -1
  25. package/ReactAndroid/src/main/java/com/facebook/react/ReactApplication.kt +0 -1
  26. package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +0 -1
  27. package/ReactAndroid/src/main/java/com/facebook/react/{interfaces/ReactHost.kt → ReactHost.kt} +2 -3
  28. package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +1 -1
  29. package/ReactAndroid/src/main/java/com/facebook/react/common/annotations/UnstableReactNativeAPI.kt +1 -1
  30. package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactHost.kt +58 -8
  31. package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +16 -0
  32. package/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.java +3 -1
  33. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  34. package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessReactContext.java +8 -0
  35. package/ReactAndroid/src/main/java/com/facebook/react/runtime/CoreReactPackage.java +5 -0
  36. package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +1 -1
  37. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FabricViewStateManager.java +95 -0
  38. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +2 -2
  39. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNodeImpl.java +25 -6
  40. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +33 -23
  41. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  42. package/ReactCommon/hermes/executor/HermesExecutorFactory.cpp +10 -7
  43. package/ReactCommon/react/bridging/Object.h +1 -1
  44. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +8 -0
  45. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -1
  46. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +42 -10
  47. package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm +17 -17
  48. package/gradle/libs.versions.toml +1 -1
  49. package/package.json +4 -4
  50. package/scripts/cocoapods/utils.rb +4 -23
  51. package/scripts/codegen/generate-legacy-interop-components.js +8 -2
  52. package/sdks/hermes-engine/hermes-engine.podspec +7 -1
  53. package/sdks/hermes-engine/hermes-utils.rb +9 -6
  54. package/sdks/hermes-engine/utils/replace_hermes_version.js +8 -8
  55. package/sdks/hermesc/osx-bin/hermes +0 -0
  56. package/sdks/hermesc/osx-bin/hermesc +0 -0
  57. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  58. package/template/android/app/build.gradle +1 -1
  59. package/template/android/app/src/main/java/com/helloworld/MainApplication.kt +3 -10
  60. package/template/package.json +1 -1
  61. package/third-party-podspecs/glog.podspec +14 -1
@@ -52,8 +52,8 @@ function shouldReplaceHermesConfiguration(configuration) {
52
52
  return true;
53
53
  }
54
54
 
55
- function replaceHermesConfiguration(configuration, version, reactNativePath) {
56
- const tarballURLPath = `${reactNativePath}/sdks/downloads/hermes-ios-${version}-${configuration}.tar.gz`;
55
+ function replaceHermesConfiguration(configuration, version, podsRoot) {
56
+ const tarballURLPath = `${podsRoot}/hermes-engine-artifacts/hermes-ios-${version}-${configuration}.tar.gz`;
57
57
 
58
58
  const finalLocation = 'hermes-engine';
59
59
  console.log('Preparing the final location');
@@ -68,7 +68,7 @@ function updateLastBuildConfiguration(configuration) {
68
68
  fs.writeFileSync(LAST_BUILD_FILENAME, configuration);
69
69
  }
70
70
 
71
- function main(configuration, version, reactNativePath) {
71
+ function main(configuration, version, podsRoot) {
72
72
  validateBuildConfiguration(configuration);
73
73
  validateVersion(version);
74
74
 
@@ -76,7 +76,7 @@ function main(configuration, version, reactNativePath) {
76
76
  return;
77
77
  }
78
78
 
79
- replaceHermesConfiguration(configuration, version, reactNativePath);
79
+ replaceHermesConfiguration(configuration, version, podsRoot);
80
80
  updateLastBuildConfiguration(configuration);
81
81
  console.log('Done replacing hermes-engine');
82
82
  }
@@ -94,13 +94,13 @@ const argv = yargs
94
94
  'The Version of React Native associated with the Hermes tarball.',
95
95
  })
96
96
  .option('p', {
97
- alias: 'reactNativePath',
98
- description: 'The path to the React Native root folder',
97
+ alias: 'podsRoot',
98
+ description: 'The path to the Pods root folder',
99
99
  })
100
100
  .usage('Usage: $0 -c Debug -r <version> -p <path/to/react-native>').argv;
101
101
 
102
102
  const configuration = argv.configuration;
103
103
  const version = argv.reactNativeVersion;
104
- const reactNativePath = argv.reactNativePath;
104
+ const podsRoot = argv.podsRoot;
105
105
 
106
- main(configuration, version, reactNativePath);
106
+ main(configuration, version, podsRoot);
Binary file
Binary file
Binary file
@@ -71,7 +71,7 @@ def jscFlavor = 'org.webkit:android-jsc:+'
71
71
 
72
72
  android {
73
73
  ndkVersion rootProject.ext.ndkVersion
74
-
74
+ buildToolsVersion rootProject.ext.buildToolsVersion
75
75
  compileSdk rootProject.ext.compileSdkVersion
76
76
 
77
77
  namespace "com.helloworld"
@@ -3,17 +3,15 @@ package com.helloworld
3
3
  import android.app.Application
4
4
  import com.facebook.react.PackageList
5
5
  import com.facebook.react.ReactApplication
6
+ import com.facebook.react.ReactHost
6
7
  import com.facebook.react.ReactNativeHost
7
8
  import com.facebook.react.ReactPackage
8
- import com.facebook.react.common.annotations.UnstableReactNativeAPI
9
9
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
10
- import com.facebook.react.defaults.DefaultReactHost
10
+ import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11
11
  import com.facebook.react.defaults.DefaultReactNativeHost
12
12
  import com.facebook.react.flipper.ReactNativeFlipper
13
- import com.facebook.react.interfaces.ReactHost
14
13
  import com.facebook.soloader.SoLoader
15
14
 
16
- @UnstableReactNativeAPI
17
15
  class MainApplication : Application(), ReactApplication {
18
16
 
19
17
  override val reactNativeHost: ReactNativeHost =
@@ -33,12 +31,7 @@ class MainApplication : Application(), ReactApplication {
33
31
  }
34
32
 
35
33
  override val reactHost: ReactHost
36
- get() =
37
- DefaultReactHost.getDefaultReactHost(
38
- context = this,
39
- packageList = PackageList(this).packages,
40
- jsMainModulePath = "index",
41
- isHermesEnabled = BuildConfig.IS_HERMES_ENABLED)
34
+ get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
42
35
 
43
36
  override fun onCreate() {
44
37
  super.onCreate()
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.73.0-rc.2"
14
+ "react-native": "0.73.0-rc.3"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",
@@ -29,10 +29,23 @@ Pod::Spec.new do |spec|
29
29
  'src/base/*.h'
30
30
  spec.exclude_files = "src/windows/**/*"
31
31
  spec.compiler_flags = '-Wno-shorten-64-to-32'
32
+
33
+ # TODO: T167482718 Remove this code after April 2024, when Apple will
34
+ # push the lower version of Xcode required to upload apps to the Store.
35
+ xcode_path = `xcodebuild -version` # This return the current version of Xcode
36
+
37
+ match = xcode_path.match(/Xcode (\d+)\.(\d+)/)
38
+ major_version = match[1].to_i
39
+ minor_version = match[2].to_i
40
+ is_greater_than_15 = major_version >= 15
41
+ is_greater_than_14_3 = major_version == 14 && minor_version >= 3
42
+ should_define_modules = is_greater_than_15 ? "YES" : is_greater_than_14_3 ? "YES" : "NO"
43
+ # End TODO.
44
+
32
45
  spec.pod_target_xcconfig = {
33
46
  "USE_HEADERMAP" => "NO",
34
47
  "HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src",
35
- "DEFINES_MODULE" => "YES"
48
+ "DEFINES_MODULE" => should_define_modules # When the workaround is removed, set this var to "YES"
36
49
  }
37
50
 
38
51
  # Pinning to the same version as React.podspec.