react-native 0.80.0-rc.4 → 0.80.0

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.
@@ -17,5 +17,5 @@ export const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 80,
19
19
  patch: 0,
20
- prerelease: 'rc.4',
20
+ prerelease: null,
21
21
  };
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(80),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.4",
27
+ RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.80.0-rc.4
1
+ VERSION_NAME=0.80.0
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -18,7 +18,5 @@ public class ReactNativeFeatureFlagsOverrides_RNOSS_Stable_Android(
18
18
 
19
19
  override fun useTurboModules(): Boolean = bridgelessEnabled || turboModulesEnabled
20
20
 
21
- override fun updateRuntimeShadowNodeReferencesOnCommit(): Boolean = true
22
-
23
21
  override fun useShadowNodeStateOnClone(): Boolean = true
24
22
  }
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 80,
17
17
  "patch" to 0,
18
- "prerelease" to "rc.4"
18
+ "prerelease" to null
19
19
  )
20
20
  }
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 80;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "rc.4";
25
+ std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
@@ -26,9 +26,6 @@ class ReactNativeFeatureFlagsOverridesOSSStable
26
26
  bool useNativeViewConfigsInBridgelessMode() override {
27
27
  return true;
28
28
  }
29
- bool updateRuntimeShadowNodeReferencesOnCommit() override {
30
- return true;
31
- }
32
29
  bool useShadowNodeStateOnClone() override {
33
30
  return true;
34
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.80.0-rc.4",
3
+ "version": "0.80.0",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -159,13 +159,13 @@
159
159
  },
160
160
  "dependencies": {
161
161
  "@jest/create-cache-key-function": "^29.7.0",
162
- "@react-native/assets-registry": "0.80.0-rc.4",
163
- "@react-native/codegen": "0.80.0-rc.4",
164
- "@react-native/community-cli-plugin": "0.80.0-rc.4",
165
- "@react-native/gradle-plugin": "0.80.0-rc.4",
166
- "@react-native/js-polyfills": "0.80.0-rc.4",
167
- "@react-native/normalize-colors": "0.80.0-rc.4",
168
- "@react-native/virtualized-lists": "0.80.0-rc.4",
162
+ "@react-native/assets-registry": "0.80.0",
163
+ "@react-native/codegen": "0.80.0",
164
+ "@react-native/community-cli-plugin": "0.80.0",
165
+ "@react-native/gradle-plugin": "0.80.0",
166
+ "@react-native/js-polyfills": "0.80.0",
167
+ "@react-native/normalize-colors": "0.80.0",
168
+ "@react-native/virtualized-lists": "0.80.0",
169
169
  "abort-controller": "^3.0.0",
170
170
  "anser": "^1.4.9",
171
171
  "ansi-regex": "^5.0.0",
@@ -161,7 +161,7 @@ class NewArchitectureHelper
161
161
  .uniq{ |p| p.path }
162
162
  .map{ |p| p.path }
163
163
 
164
- excluded_info_plist = ["/Pods", "Tests", "metainternal", ".bundle"]
164
+ excluded_info_plist = ["/Pods", "Tests", "metainternal", ".bundle", "build/", "DerivedData/"]
165
165
  projectPaths.each do |projectPath|
166
166
  projectFolderPath = File.dirname(projectPath)
167
167
  infoPlistFiles = `find #{projectFolderPath} -name "Info.plist"`
@@ -52,8 +52,23 @@ function generateRCTThirdPartyComponents(libraries, outputDir) {
52
52
 
53
53
  const librariesToCrawl = {};
54
54
 
55
+ // Using new API explicitly or not using any config field to define components.
56
+ const componentLibrariesUsingNewApi = [];
57
+ const componentLibrariesUsingOldApi = [];
58
+
59
+ for (const library of componentLibraries) {
60
+ if (
61
+ library.config.ios?.components ||
62
+ !library.config.ios?.componentProvider
63
+ ) {
64
+ componentLibrariesUsingNewApi.push(library);
65
+ } else {
66
+ componentLibrariesUsingOldApi.push(library);
67
+ }
68
+ }
69
+
55
70
  // Old API
56
- componentLibraries.forEach(library => {
71
+ componentLibrariesUsingOldApi.forEach(library => {
57
72
  const {config, libraryPath} = library;
58
73
  const libraryName = JSON.parse(
59
74
  fs.readFileSync(path.join(libraryPath, 'package.json')),
@@ -62,9 +77,6 @@ function generateRCTThirdPartyComponents(libraries, outputDir) {
62
77
  librariesToCrawl[libraryName] = library;
63
78
 
64
79
  const componentsProvider = config.ios?.componentProvider;
65
- if (!componentsProvider) {
66
- return;
67
- }
68
80
 
69
81
  delete librariesToCrawl[libraryName];
70
82
  componentsInLibraries[libraryName] =
@@ -79,7 +91,7 @@ function generateRCTThirdPartyComponents(libraries, outputDir) {
79
91
  });
80
92
 
81
93
  // New API
82
- const iosAnnotations = parseiOSAnnotations(componentLibraries);
94
+ const iosAnnotations = parseiOSAnnotations(componentLibrariesUsingNewApi);
83
95
  for (const [libraryName, annotationMap] of Object.entries(iosAnnotations)) {
84
96
  const {library, components} = annotationMap;
85
97
  librariesToCrawl[libraryName] = library;
@@ -186,7 +198,7 @@ function findRCTComponentViewProtocolClass(filepath) {
186
198
  const lines = fileContent.split('\n');
187
199
  const signatureIndex = lines.findIndex(line => regex.test(line));
188
200
  const returnRegex = /return (.*)\.class/;
189
- const classNameMatch = String(lines.slice(signatureIndex)).match(
201
+ const classNameMatch = String(lines.slice(signatureIndex).join('\n')).match(
190
202
  returnRegex,
191
203
  );
192
204
  if (classNameMatch) {
@@ -216,6 +216,7 @@ function extractLibrariesFromJSON(configFile, dependencyPath) {
216
216
  const config = configFile.codegenConfig;
217
217
  return [
218
218
  {
219
+ name: configFile.name,
219
220
  config,
220
221
  libraryPath: dependencyPath,
221
222
  },
@@ -267,6 +268,7 @@ function printDeprecationWarningIfNeeded(dependency) {
267
268
  function extractLibrariesFromConfigurationArray(configFile, dependencyPath) {
268
269
  return configFile.codegenConfig.libraries.map(config => {
269
270
  return {
271
+ name: config.name,
270
272
  config,
271
273
  libraryPath: dependencyPath,
272
274
  };
Binary file
Binary file
Binary file
Binary file