react-native 0.71.0-rc.3 → 0.71.0-rc.4

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.
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
15
  patch: 0,
16
- prerelease: 'rc.3',
16
+ prerelease: 'rc.4',
17
17
  };
@@ -11,8 +11,6 @@
11
11
  'use strict';
12
12
 
13
13
  /**
14
- * Keep this in sync with `DeprecatedImageSourcePropType.js`.
15
- *
16
14
  * This type is intentionally inexact in order to permit call sites that supply
17
15
  * extra properties.
18
16
  */
@@ -75,7 +75,8 @@ const PERMISSIONS = Object.freeze({
75
75
  ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS',
76
76
  READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS',
77
77
  UWB_RANGING: 'android.permission.UWB_RANGING',
78
- POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS',
78
+ POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', // Remove in 0.72
79
+ POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS',
79
80
  NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES',
80
81
  });
81
82
 
@@ -106,7 +107,8 @@ class PermissionsAndroid {
106
107
  CAMERA: string,
107
108
  GET_ACCOUNTS: string,
108
109
  NEARBY_WIFI_DEVICES: string,
109
- POST_NOTIFICATION: string,
110
+ POST_NOTIFICATION: string, // Remove in 0.72
111
+ POST_NOTIFICATIONS: string,
110
112
  PROCESS_OUTGOING_CALLS: string,
111
113
  READ_CALENDAR: string,
112
114
  READ_CALL_LOG: string,
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.3",
27
+ RCTVersionPrerelease: @"rc.4",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -117,7 +117,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
117
117
  ),
118
118
  new PrefabPreprocessingEntry(
119
119
  "fabricjni",
120
- new Pair("src/main/jni/react/fabric", "")
120
+ [
121
+ new Pair("src/main/jni/react/fabric", ""),
122
+ new Pair("src/main/jni/react/cxxcomponents", "react/cxxcomponents/")
123
+ ]
121
124
  ),
122
125
  new PrefabPreprocessingEntry(
123
126
  "react_render_mapbuffer",
@@ -205,7 +208,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
205
208
  ),
206
209
  new PrefabPreprocessingEntry(
207
210
  "reactnativejni",
208
- new Pair("src/main/jni/react/jni", "react/jni/"),
211
+ [
212
+ new Pair("src/main/jni/react/jni", "react/jni/"),
213
+ new Pair("../ReactCommon/cxxreact/", "cxxreact/"),
214
+ ]
209
215
  ),
210
216
  ]
211
217
  )
@@ -435,8 +441,7 @@ android {
435
441
  "-DANDROID_TOOLCHAIN=clang",
436
442
  "-DANDROID_PLATFORM=android-21"
437
443
 
438
- targets "jscexecutor",
439
- "jsijniprofiler",
444
+ targets "jsijniprofiler",
440
445
  "reactnativeblob",
441
446
  "reactperfloggerjni",
442
447
  // prefab targets
@@ -463,7 +468,8 @@ android {
463
468
  "react_render_uimanager",
464
469
  "react_render_scheduler",
465
470
  "react_render_mounting",
466
- "hermes_executor"
471
+ "hermes_executor",
472
+ "jscexecutor"
467
473
  }
468
474
  }
469
475
  ndk {
@@ -583,6 +589,9 @@ android {
583
589
  hermes_executor {
584
590
  headers(new File(prefabHeadersDir, "hermes_executor").absolutePath)
585
591
  }
592
+ jscexecutor {
593
+ headers(new File(prefabHeadersDir, "jscexecutor").absolutePath)
594
+ }
586
595
  }
587
596
 
588
597
  publishing {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.0-rc.3
1
+ VERSION_NAME=0.71.0-rc.4
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 71,
20
20
  "patch", 0,
21
- "prerelease", "rc.3");
21
+ "prerelease", "rc.4");
22
22
  }
@@ -61,7 +61,10 @@ Pod::Spec.new do |s|
61
61
  ss.subspec "core" do |sss|
62
62
  sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
63
63
  "react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
64
- sss.exclude_files = "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
64
+ excluded_files = ENV['USE_FRAMEWORKS'] == nil ?
65
+ "react/nativemodule/core/ReactCommon/LongLivedObject.h" :
66
+ "react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
67
+ sss.exclude_files = excluded_files
65
68
  end
66
69
 
67
70
  s.subspec "react_debug_core" do |sss|
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 71;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.3";
21
+ std::string_view Prerelease = "rc.4";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.71.0-rc.3",
3
+ "version": "0.71.0-rc.4",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -104,30 +104,30 @@
104
104
  },
105
105
  "dependencies": {
106
106
  "@jest/create-cache-key-function": "^29.2.1",
107
- "@react-native-community/cli": "10.0.0-alpha.5",
108
- "@react-native-community/cli-platform-android": "10.0.0-alpha.4",
109
- "@react-native-community/cli-platform-ios": "10.0.0-alpha.3",
107
+ "@react-native-community/cli": "10.0.0",
108
+ "@react-native-community/cli-platform-android": "10.0.0",
109
+ "@react-native-community/cli-platform-ios": "10.0.0",
110
110
  "@react-native/assets": "1.0.0",
111
111
  "@react-native/normalize-color": "2.1.0",
112
112
  "@react-native/polyfills": "2.0.0",
113
113
  "abort-controller": "^3.0.0",
114
114
  "anser": "^1.4.9",
115
115
  "base64-js": "^1.1.2",
116
- "deprecated-react-native-prop-types": "^2.3.0",
116
+ "deprecated-react-native-prop-types": "^3.0.1",
117
117
  "event-target-shim": "^5.0.1",
118
118
  "invariant": "^2.2.4",
119
119
  "jest-environment-node": "^29.2.1",
120
120
  "jsc-android": "^250230.2.1",
121
121
  "memoize-one": "^5.0.0",
122
- "metro-react-native-babel-transformer": "0.73.3",
123
- "metro-runtime": "0.73.3",
124
- "metro-source-map": "0.73.3",
122
+ "metro-react-native-babel-transformer": "0.73.5",
123
+ "metro-runtime": "0.73.5",
124
+ "metro-source-map": "0.73.5",
125
125
  "mkdirp": "^0.5.1",
126
126
  "nullthrows": "^1.1.1",
127
127
  "pretty-format": "^26.5.2",
128
128
  "promise": "^8.3.0",
129
129
  "react-devtools-core": "^4.26.1",
130
- "react-native-gradle-plugin": "^0.71.10",
130
+ "react-native-gradle-plugin": "^0.71.11",
131
131
  "react-refresh": "^0.4.0",
132
132
  "react-shallow-renderer": "^16.15.0",
133
133
  "regenerator-runtime": "^0.13.2",
@@ -175,8 +175,8 @@
175
175
  "jest": "^29.2.1",
176
176
  "jest-junit": "^10.0.0",
177
177
  "jscodeshift": "^0.13.1",
178
- "metro-babel-register": "0.73.3",
179
- "metro-memory-fs": "0.73.3",
178
+ "metro-babel-register": "0.73.5",
179
+ "metro-memory-fs": "0.73.5",
180
180
  "mkdirp": "^0.5.1",
181
181
  "mock-fs": "^5.1.4",
182
182
  "prettier": "^2.4.1",
@@ -30,7 +30,7 @@ def setup_hermes!(react_native_path: "../node_modules/react-native", fabric_enab
30
30
  abort unless prep_status == 0
31
31
 
32
32
  pod 'React-jsi', :path => "#{react_native_path}/ReactCommon/jsi"
33
- pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes/hermes-engine.podspec"
33
+ pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes-engine/hermes-engine.podspec"
34
34
  pod 'React-hermes', :path => "#{react_native_path}/ReactCommon/hermes"
35
35
  pod 'libevent', '~> 2.1.12'
36
36
  end
@@ -72,7 +72,7 @@ def is_building_hermes_from_source(react_native_version, react_native_path)
72
72
  isInMain = react_native_version.include?('1000.0.0')
73
73
 
74
74
  hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")
75
- isInCI = ENV['CI'] === 'true'
75
+ isInCI = ENV['REACT_NATIVE_CI'] === 'true'
76
76
 
77
77
  isReleaseBranch = File.exist?(hermestag_file) && isInCI
78
78
 
@@ -39,7 +39,7 @@ async function main(isInCI) {
39
39
  }
40
40
  }
41
41
 
42
- const isInCI = process.env.CI === 'true';
42
+ const isInCI = process.env.REACT_NATIVE_CI === 'true';
43
43
 
44
44
  main(isInCI).then(() => {
45
45
  process.exit(0);
@@ -17,7 +17,7 @@ version = package['version']
17
17
 
18
18
  # sdks/.hermesversion
19
19
  hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")
20
- isInCI = ENV['CI'] === 'true'
20
+ isInCI = ENV['REACT_NATIVE_CI'] === 'true'
21
21
 
22
22
  source = {}
23
23
  git = "https://github.com/facebook/hermes.git"
Binary file
@@ -1,6 +1,4 @@
1
1
  module.exports = {
2
2
  root: true,
3
- extends: '@react-native-community',
4
- parser: '@typescript-eslint/parser',
5
- plugins: ['@typescript-eslint'],
3
+ extends: '@react-native',
6
4
  };
@@ -1,5 +1,5 @@
1
1
  require_relative '../node_modules/react-native/scripts/react_native_pods'
2
- require_relative '../node_modules/react-native/scripts/native_modules'
2
+ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
 
4
4
  platform :ios, min_ios_version_supported
5
5
  prepare_react_native_project!
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.71.0-rc.3"
14
+ "react-native": "0.71.0-rc.4"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -22,12 +22,10 @@
22
22
  "@types/jest": "^29.2.1",
23
23
  "@types/react": "^18.0.24",
24
24
  "@types/react-test-renderer": "^18.0.0",
25
- "@typescript-eslint/eslint-plugin": "^5.37.0",
26
- "@typescript-eslint/parser": "^5.37.0",
27
25
  "babel-jest": "^29.2.1",
28
26
  "eslint": "^8.19.0",
29
27
  "jest": "^29.2.1",
30
- "metro-react-native-babel-preset": "0.73.3",
28
+ "metro-react-native-babel-preset": "0.73.5",
31
29
  "prettier": "^2.4.1",
32
30
  "react-test-renderer": "18.2.0",
33
31
  "typescript": "4.8.4"
@@ -86,9 +86,11 @@ export interface NativeMethods {
86
86
  * _Can also be called with a relativeNativeNodeHandle but is deprecated._
87
87
  */
88
88
  measureLayout(
89
- relativeToNativeComponentRef: HostComponent<unknown> | number,
89
+ relativeToNativeComponentRef:
90
+ | React.ElementRef<HostComponent<unknown>>
91
+ | number,
90
92
  onSuccess: MeasureLayoutOnSuccessCallback,
91
- onFail: () => void /* currently unused */,
93
+ onFail?: () => void,
92
94
  ): void;
93
95
 
94
96
  /**