react-native 0.76.0 → 0.76.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.
@@ -76,6 +76,7 @@
76
76
  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
77
77
  UIViewController *rootViewController = [self createRootViewController];
78
78
  [self setRootView:rootView toRootViewController:rootViewController];
79
+ _window.windowScene.delegate = self;
79
80
  _window.rootViewController = rootViewController;
80
81
  [_window makeKeyAndVisible];
81
82
  }
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 76,
19
- patch: 0,
19
+ patch: 1,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -13,7 +13,7 @@ import type {RootTag} from '../Types/RootTagTypes';
13
13
  import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
14
14
  import type {DisplayModeType} from './DisplayMode';
15
15
 
16
- import BatchedBridge from '../BatchedBridge/BatchedBridge';
16
+ import registerCallableModule from '../Core/registerCallableModule';
17
17
  import BugReporting from '../BugReporting/BugReporting';
18
18
  import createPerformanceLogger from '../Utilities/createPerformanceLogger';
19
19
  import infoLog from '../Utilities/infoLog';
@@ -363,8 +363,8 @@ global.RN$SurfaceRegistry = {
363
363
 
364
364
  if (global.RN$Bridgeless === true) {
365
365
  console.log('Bridgeless mode is enabled');
366
- } else {
367
- BatchedBridge.registerCallableModule('AppRegistry', AppRegistry);
368
366
  }
369
367
 
368
+ registerCallableModule('AppRegistry', AppRegistry);
369
+
370
370
  module.exports = AppRegistry;
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(76),
26
- RCTVersionPatch: @(0),
26
+ RCTVersionPatch: @(1),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -833,6 +833,8 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle)
833
833
  _backgroundColorLayer.mask = maskLayer;
834
834
  _backgroundColorLayer.cornerRadius = 0;
835
835
  }
836
+
837
+ [_backgroundColorLayer removeAllAnimations];
836
838
  }
837
839
 
838
840
  // borders
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.76.0
1
+ VERSION_NAME=0.76.1
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -124,15 +124,11 @@ public abstract class HeadlessJsTaskService extends Service implements HeadlessJ
124
124
  @Override
125
125
  public void onDestroy() {
126
126
  super.onDestroy();
127
+ ReactContext reactContext = getReactContext();
127
128
 
128
- if (getReactNativeHost().hasInstance()) {
129
- ReactInstanceManager reactInstanceManager = getReactNativeHost().getReactInstanceManager();
130
- ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
131
- if (reactContext != null) {
132
- HeadlessJsTaskContext headlessJsTaskContext =
133
- HeadlessJsTaskContext.getInstance(reactContext);
134
- headlessJsTaskContext.removeTaskEventListener(this);
135
- }
129
+ if (reactContext != null) {
130
+ HeadlessJsTaskContext headlessJsTaskContext = HeadlessJsTaskContext.getInstance(reactContext);
131
+ headlessJsTaskContext.removeTaskEventListener(this);
136
132
  }
137
133
  if (sWakeLock != null) {
138
134
  sWakeLock.release();
@@ -111,7 +111,7 @@ protected constructor(
111
111
  packages,
112
112
  jsMainModuleName,
113
113
  bundleAssetName ?: "index",
114
- null,
114
+ jsBundleFile,
115
115
  isHermesEnabled ?: true,
116
116
  useDeveloperSupport,
117
117
  )
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 76,
20
- "patch", 0,
20
+ "patch", 1,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 76;
20
- int32_t Patch = 0;
20
+ int32_t Patch = 1;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.76.0",
3
+ "version": "0.76.1",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -109,13 +109,13 @@
109
109
  },
110
110
  "dependencies": {
111
111
  "@jest/create-cache-key-function": "^29.6.3",
112
- "@react-native/assets-registry": "0.76.0",
113
- "@react-native/codegen": "0.76.0",
114
- "@react-native/community-cli-plugin": "0.76.0",
115
- "@react-native/gradle-plugin": "0.76.0",
116
- "@react-native/js-polyfills": "0.76.0",
117
- "@react-native/normalize-colors": "0.76.0",
118
- "@react-native/virtualized-lists": "0.76.0",
112
+ "@react-native/assets-registry": "0.76.1",
113
+ "@react-native/codegen": "0.76.1",
114
+ "@react-native/community-cli-plugin": "0.76.1",
115
+ "@react-native/gradle-plugin": "0.76.1",
116
+ "@react-native/js-polyfills": "0.76.1",
117
+ "@react-native/normalize-colors": "0.76.1",
118
+ "@react-native/virtualized-lists": "0.76.1",
119
119
  "abort-controller": "^3.0.0",
120
120
  "anser": "^1.4.9",
121
121
  "ansi-regex": "^5.0.0",
@@ -3,6 +3,8 @@
3
3
  # This source code is licensed under the MIT license found in the
4
4
  # LICENSE file in the root directory of this source tree.
5
5
 
6
+ require 'shellwords'
7
+
6
8
  require_relative "./helpers.rb"
7
9
 
8
10
  # Utilities class for React Native Cocoapods
@@ -237,8 +239,8 @@ class ReactNativePodsUtils
237
239
  # When installing pods with a yarn alias, yarn creates a fake yarn and node executables
238
240
  # in a temporary folder.
239
241
  # Using `node --print "process.argv[0]";` we are able to retrieve the actual path from which node is running.
240
- # see https://github.com/facebook/react-native/issues/43285 for more info
241
- node_binary = `node --print "process.argv[0]";`
242
+ # see https://github.com/facebook/react-native/issues/43285 for more info. We've tweaked this slightly.
243
+ node_binary = Shellwords.escape(`node --print "process.argv[0]"`.strip)
242
244
  system("echo 'export NODE_BINARY=#{node_binary}' > #{file_path}.local")
243
245
  end
244
246
  end
@@ -489,11 +489,22 @@ function rootCodegenTargetNeedsThirdPartyComponentProvider(pkgJson, platform) {
489
489
  return !pkgJsonIncludesGeneratedCode(pkgJson) && platform === 'ios';
490
490
  }
491
491
 
492
- function dependencyNeedsThirdPartyComponentProvider(schemaInfo, platform) {
492
+ function dependencyNeedsThirdPartyComponentProvider(
493
+ schemaInfo,
494
+ platform,
495
+ appCondegenConfigSpec,
496
+ ) {
493
497
  // Filter the react native core library out.
494
498
  // In the future, core library and third party library should
495
499
  // use the same way to generate/register the fabric components.
496
- return !isReactNativeCoreLibrary(schemaInfo.library.config.name, platform);
500
+ // We also have to filter out the the components defined in the app
501
+ // because the RCTThirdPartyComponentProvider is generated inside Fabric,
502
+ // which lives in a different target from the app and it has no visibility over
503
+ // the symbols defined in the app.
504
+ return (
505
+ !isReactNativeCoreLibrary(schemaInfo.library.config.name, platform) &&
506
+ schemaInfo.library.config.name !== appCondegenConfigSpec
507
+ );
497
508
  }
498
509
 
499
510
  function mustGenerateNativeCode(includeLibraryPath, schemaInfo) {
@@ -704,8 +715,12 @@ function execute(projectRoot, targetPlatform, baseOutputPath) {
704
715
  if (
705
716
  rootCodegenTargetNeedsThirdPartyComponentProvider(pkgJson, platform)
706
717
  ) {
707
- const filteredSchemas = schemaInfos.filter(
708
- dependencyNeedsThirdPartyComponentProvider,
718
+ const filteredSchemas = schemaInfos.filter(schemaInfo =>
719
+ dependencyNeedsThirdPartyComponentProvider(
720
+ schemaInfo,
721
+ platform,
722
+ pkgJson.codegenConfig?.appCondegenConfigSpec,
723
+ ),
709
724
  );
710
725
  const schemas = filteredSchemas.map(schemaInfo => schemaInfo.schema);
711
726
  const supportedApplePlatforms = filteredSchemas.map(
Binary file
Binary file
Binary file