react-native-tvos 0.81.0-0rc2 → 0.81.0-0rc3

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 (53) hide show
  1. package/Libraries/Components/View/View.js +5 -1
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -2
  4. package/React/Base/RCTVersion.m +1 -1
  5. package/React/FBReactNativeSpec/FBReactNativeSpecJSI-generated.cpp +3 -3
  6. package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +5 -5
  7. package/ReactAndroid/api/ReactAndroid.api +2 -2
  8. package/ReactAndroid/gradle.properties +1 -1
  9. package/ReactAndroid/publish.gradle +1 -1
  10. package/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.kt +2 -2
  11. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +2 -2
  12. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +6 -6
  13. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +2 -2
  14. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +2 -2
  15. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +7 -7
  16. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Experimental_Android.kt +2 -2
  17. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +2 -2
  18. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  19. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +7 -7
  20. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +2 -2
  21. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  22. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +3 -3
  23. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +2 -2
  24. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +6 -6
  25. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +3 -3
  26. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +2 -2
  27. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +4 -4
  28. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSExperimental.h +2 -2
  29. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -2
  30. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +3 -3
  31. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +2 -2
  32. package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +14 -0
  33. package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +14 -0
  34. package/ReactCommon/react/renderer/components/rncore/Props.h +14 -0
  35. package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +14 -0
  36. package/ReactCommon/react/renderer/components/rncore/States.h +14 -0
  37. package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +30 -20
  38. package/ReactCommon/react/renderer/mounting/ShadowTree.h +14 -2
  39. package/flow/HermesInternalType.js +114 -0
  40. package/flow/Stringish.js +14 -0
  41. package/flow/bom.js.flow +489 -0
  42. package/flow/console.js +49 -0
  43. package/flow/cssom.js.flow +575 -0
  44. package/flow/dom.js.flow +6289 -0
  45. package/flow/global.js +88 -0
  46. package/flow/streams.js.flow +140 -0
  47. package/package.json +12 -11
  48. package/sdks/hermesc/osx-bin/hermes +0 -0
  49. package/sdks/hermesc/osx-bin/hermesc +0 -0
  50. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  51. package/src/private/featureflags/ReactNativeFeatureFlags.js +3 -3
  52. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -2
  53. package/types_generated/Libraries/Components/View/View.d.ts +4 -2
@@ -25,7 +25,7 @@ import {use} from 'react';
25
25
  *
26
26
  * @see https://reactnative.dev/docs/view
27
27
  */
28
- export default component View(
28
+ component View(
29
29
  ref?: React.RefSetter<React.ElementRef<typeof ViewNativeComponent>>,
30
30
  ...props: ViewProps
31
31
  ) {
@@ -244,3 +244,7 @@ export default component View(
244
244
  }
245
245
  return actualView;
246
246
  }
247
+
248
+ View.displayName = 'View';
249
+
250
+ export default View;
@@ -17,5 +17,5 @@ export const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 81,
19
19
  patch: 0,
20
- prerelease: '0rc2',
20
+ prerelease: '0rc3',
21
21
  };
@@ -18,7 +18,6 @@ end
18
18
 
19
19
  header_search_paths = [
20
20
  "\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
21
- "\"${PODS_ROOT}/Headers/Public/React-RCTFBReactNativeSpec/FBReactNativeSpec\"",
22
21
  ]
23
22
 
24
23
  Pod::Spec.new do |s|
@@ -46,7 +45,7 @@ Pod::Spec.new do |s|
46
45
  s.dependency "React-Core/RCTPushNotificationHeaders"
47
46
  s.dependency "React-jsi"
48
47
 
49
- add_dependency(s, "React-RCTFBReactNativeSpec", :additional_framework_paths => ['FBReactNativeSpec'])
48
+ add_dependency(s, "React-RCTFBReactNativeSpec")
50
49
  add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
51
50
  add_dependency(s, "React-NativeModulesApple")
52
51
 
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(81),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"0rc2",
27
+ RCTVersionPrerelease: @"0rc3",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -322,8 +322,8 @@ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_prepare
322
322
  rt
323
323
  );
324
324
  }
325
- static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustionWithLocking(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
326
- return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->preventShadowTreeCommitExhaustionWithLocking(
325
+ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
326
+ return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->preventShadowTreeCommitExhaustion(
327
327
  rt
328
328
  );
329
329
  }
@@ -433,7 +433,7 @@ NativeReactNativeFeatureFlagsCxxSpecJSI::NativeReactNativeFeatureFlagsCxxSpecJSI
433
433
  methodMap_["fuseboxNetworkInspectionEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled};
434
434
  methodMap_["hideOffscreenVirtualViewsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS};
435
435
  methodMap_["preparedTextCacheSize"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize};
436
- methodMap_["preventShadowTreeCommitExhaustionWithLocking"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustionWithLocking};
436
+ methodMap_["preventShadowTreeCommitExhaustion"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion};
437
437
  methodMap_["traceTurboModulePromiseRejectionsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid};
438
438
  methodMap_["updateRuntimeShadowNodeReferencesOnCommit"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit};
439
439
  methodMap_["useAlwaysAvailableJSErrorHandling"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_useAlwaysAvailableJSErrorHandling};
@@ -374,7 +374,7 @@ public:
374
374
  virtual bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) = 0;
375
375
  virtual bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) = 0;
376
376
  virtual double preparedTextCacheSize(jsi::Runtime &rt) = 0;
377
- virtual bool preventShadowTreeCommitExhaustionWithLocking(jsi::Runtime &rt) = 0;
377
+ virtual bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) = 0;
378
378
  virtual bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) = 0;
379
379
  virtual bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) = 0;
380
380
  virtual bool useAlwaysAvailableJSErrorHandling(jsi::Runtime &rt) = 0;
@@ -800,13 +800,13 @@ private:
800
800
  return bridging::callFromJs<double>(
801
801
  rt, &T::preparedTextCacheSize, jsInvoker_, instance_);
802
802
  }
803
- bool preventShadowTreeCommitExhaustionWithLocking(jsi::Runtime &rt) override {
803
+ bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) override {
804
804
  static_assert(
805
- bridging::getParameterCount(&T::preventShadowTreeCommitExhaustionWithLocking) == 1,
806
- "Expected preventShadowTreeCommitExhaustionWithLocking(...) to have 1 parameters");
805
+ bridging::getParameterCount(&T::preventShadowTreeCommitExhaustion) == 1,
806
+ "Expected preventShadowTreeCommitExhaustion(...) to have 1 parameters");
807
807
 
808
808
  return bridging::callFromJs<bool>(
809
- rt, &T::preventShadowTreeCommitExhaustionWithLocking, jsInvoker_, instance_);
809
+ rt, &T::preventShadowTreeCommitExhaustion, jsInvoker_, instance_);
810
810
  }
811
811
  bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) override {
812
812
  static_assert(
@@ -31,8 +31,8 @@ public abstract class com/facebook/react/HeadlessJsTaskService : android/app/Ser
31
31
  public fun <init> ()V
32
32
  public static final fun acquireWakeLockNow (Landroid/content/Context;)V
33
33
  protected final fun getReactContext ()Lcom/facebook/react/bridge/ReactContext;
34
- protected final fun getReactHost ()Lcom/facebook/react/ReactHost;
35
- protected final fun getReactNativeHost ()Lcom/facebook/react/ReactNativeHost;
34
+ protected fun getReactHost ()Lcom/facebook/react/ReactHost;
35
+ protected fun getReactNativeHost ()Lcom/facebook/react/ReactNativeHost;
36
36
  protected fun getTaskConfig (Landroid/content/Intent;)Lcom/facebook/react/jstasks/HeadlessJsTaskConfig;
37
37
  public fun onBind (Landroid/content/Intent;)Landroid/os/IBinder;
38
38
  public fun onDestroy ()V
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.81.0-0rc2
1
+ VERSION_NAME=0.81.0-0rc3
2
2
  react.internal.publishingGroup=io.github.react-native-tvos
3
3
 
4
4
  android.useAndroidX=true
@@ -20,7 +20,7 @@ def sonatypeUsername = findProperty('SONATYPE_USERNAME')
20
20
  def sonatypePassword = findProperty('SONATYPE_PASSWORD')
21
21
 
22
22
  def reactAndroidProjectDir = project(':packages:react-native:ReactAndroid').projectDir
23
- def mavenTempLocalUrl = 'file:///private/var/folders/xp/yw_lp59x05d2mp0g0n2f_d240000gn/T/eas-build-workingdir/build/maven-local'
23
+ def mavenTempLocalUrl = 'file:///home/expo/workingdir/build/maven-local'
24
24
  // Rewritten when copying this to ReactAndroid/publish.gradle
25
25
 
26
26
  publishing {
@@ -113,7 +113,7 @@ public abstract class HeadlessJsTaskService : Service(), HeadlessJsTaskEventList
113
113
  * somewhere.
114
114
  */
115
115
  @Suppress("DEPRECATION")
116
- protected val reactNativeHost: ReactNativeHost
116
+ protected open val reactNativeHost: ReactNativeHost
117
117
  get() = (application as ReactApplication).reactNativeHost
118
118
 
119
119
  /**
@@ -121,7 +121,7 @@ public abstract class HeadlessJsTaskService : Service(), HeadlessJsTaskEventList
121
121
  * [ReactApplication] and calls [ReactApplication.reactHost]. This method assumes it is called in
122
122
  * new architecture and returns null if not.
123
123
  */
124
- protected val reactHost: ReactHost?
124
+ protected open val reactHost: ReactHost?
125
125
  get() = (application as ReactApplication).reactHost
126
126
 
127
127
  protected val reactContext: ReactContext?
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<f5f8c15a68610c9453d4085626effee2>>
7
+ * @generated SignedSource<<3e4d74a17c15742d35db9e4247f3e1c1>>
8
8
  */
9
9
 
10
10
  /**
@@ -316,7 +316,7 @@ public object ReactNativeFeatureFlags {
316
316
  * Enables a new mechanism in ShadowTree to prevent problems caused by multiple threads trying to commit concurrently. If a thread tries to commit a few times unsuccessfully, it will acquire a lock and try again.
317
317
  */
318
318
  @JvmStatic
319
- public fun preventShadowTreeCommitExhaustionWithLocking(): Boolean = accessor.preventShadowTreeCommitExhaustionWithLocking()
319
+ public fun preventShadowTreeCommitExhaustion(): Boolean = accessor.preventShadowTreeCommitExhaustion()
320
320
 
321
321
  /**
322
322
  * Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<773ddcede573164ba82db671341ddc3f>>
7
+ * @generated SignedSource<<e7c1c6d184681d98320aac2a23c06288>>
8
8
  */
9
9
 
10
10
  /**
@@ -67,7 +67,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
67
67
  private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
68
68
  private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
69
69
  private var preparedTextCacheSizeCache: Double? = null
70
- private var preventShadowTreeCommitExhaustionWithLockingCache: Boolean? = null
70
+ private var preventShadowTreeCommitExhaustionCache: Boolean? = null
71
71
  private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
72
72
  private var updateRuntimeShadowNodeReferencesOnCommitCache: Boolean? = null
73
73
  private var useAlwaysAvailableJSErrorHandlingCache: Boolean? = null
@@ -503,11 +503,11 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
503
503
  return cached
504
504
  }
505
505
 
506
- override fun preventShadowTreeCommitExhaustionWithLocking(): Boolean {
507
- var cached = preventShadowTreeCommitExhaustionWithLockingCache
506
+ override fun preventShadowTreeCommitExhaustion(): Boolean {
507
+ var cached = preventShadowTreeCommitExhaustionCache
508
508
  if (cached == null) {
509
- cached = ReactNativeFeatureFlagsCxxInterop.preventShadowTreeCommitExhaustionWithLocking()
510
- preventShadowTreeCommitExhaustionWithLockingCache = cached
509
+ cached = ReactNativeFeatureFlagsCxxInterop.preventShadowTreeCommitExhaustion()
510
+ preventShadowTreeCommitExhaustionCache = cached
511
511
  }
512
512
  return cached
513
513
  }
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<96fca46813d841eb7f4d043010513999>>
7
+ * @generated SignedSource<<ba62d616188ed439c85c66cfd055810d>>
8
8
  */
9
9
 
10
10
  /**
@@ -122,7 +122,7 @@ public object ReactNativeFeatureFlagsCxxInterop {
122
122
 
123
123
  @DoNotStrip @JvmStatic public external fun preparedTextCacheSize(): Double
124
124
 
125
- @DoNotStrip @JvmStatic public external fun preventShadowTreeCommitExhaustionWithLocking(): Boolean
125
+ @DoNotStrip @JvmStatic public external fun preventShadowTreeCommitExhaustion(): Boolean
126
126
 
127
127
  @DoNotStrip @JvmStatic public external fun traceTurboModulePromiseRejectionsOnAndroid(): Boolean
128
128
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<8ebd61411e0e0ac8c8b307cf803f1206>>
7
+ * @generated SignedSource<<12c2727291b635ef7c3163d153669c2c>>
8
8
  */
9
9
 
10
10
  /**
@@ -117,7 +117,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
117
117
 
118
118
  override fun preparedTextCacheSize(): Double = 200.0
119
119
 
120
- override fun preventShadowTreeCommitExhaustionWithLocking(): Boolean = false
120
+ override fun preventShadowTreeCommitExhaustion(): Boolean = false
121
121
 
122
122
  override fun traceTurboModulePromiseRejectionsOnAndroid(): Boolean = false
123
123
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<a7e62fa950e2716e664e7f6d30d4c941>>
7
+ * @generated SignedSource<<3ea9946ef21c8ac8bb9bb63712636e89>>
8
8
  */
9
9
 
10
10
  /**
@@ -71,7 +71,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
71
71
  private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
72
72
  private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
73
73
  private var preparedTextCacheSizeCache: Double? = null
74
- private var preventShadowTreeCommitExhaustionWithLockingCache: Boolean? = null
74
+ private var preventShadowTreeCommitExhaustionCache: Boolean? = null
75
75
  private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
76
76
  private var updateRuntimeShadowNodeReferencesOnCommitCache: Boolean? = null
77
77
  private var useAlwaysAvailableJSErrorHandlingCache: Boolean? = null
@@ -554,12 +554,12 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
554
554
  return cached
555
555
  }
556
556
 
557
- override fun preventShadowTreeCommitExhaustionWithLocking(): Boolean {
558
- var cached = preventShadowTreeCommitExhaustionWithLockingCache
557
+ override fun preventShadowTreeCommitExhaustion(): Boolean {
558
+ var cached = preventShadowTreeCommitExhaustionCache
559
559
  if (cached == null) {
560
- cached = currentProvider.preventShadowTreeCommitExhaustionWithLocking()
561
- accessedFeatureFlags.add("preventShadowTreeCommitExhaustionWithLocking")
562
- preventShadowTreeCommitExhaustionWithLockingCache = cached
560
+ cached = currentProvider.preventShadowTreeCommitExhaustion()
561
+ accessedFeatureFlags.add("preventShadowTreeCommitExhaustion")
562
+ preventShadowTreeCommitExhaustionCache = cached
563
563
  }
564
564
  return cached
565
565
  }
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<93aab733661b558c1701b728c18b3d00>>
7
+ * @generated SignedSource<<58da46268043f086730132430735b720>>
8
8
  */
9
9
 
10
10
  /**
@@ -23,5 +23,5 @@ public open class ReactNativeFeatureFlagsOverrides_RNOSS_Experimental_Android :
23
23
  // We could use JNI to get the defaults from C++,
24
24
  // but that is more expensive than just duplicating the defaults here.
25
25
 
26
- override fun preventShadowTreeCommitExhaustionWithLocking(): Boolean = true
26
+ override fun preventShadowTreeCommitExhaustion(): Boolean = true
27
27
  }
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<f3b9aa1ed32aa3e013e16d4abb10b9cf>>
7
+ * @generated SignedSource<<1e81de36735c6c9286b228c75c9a0228>>
8
8
  */
9
9
 
10
10
  /**
@@ -117,7 +117,7 @@ public interface ReactNativeFeatureFlagsProvider {
117
117
 
118
118
  @DoNotStrip public fun preparedTextCacheSize(): Double
119
119
 
120
- @DoNotStrip public fun preventShadowTreeCommitExhaustionWithLocking(): Boolean
120
+ @DoNotStrip public fun preventShadowTreeCommitExhaustion(): Boolean
121
121
 
122
122
  @DoNotStrip public fun traceTurboModulePromiseRejectionsOnAndroid(): Boolean
123
123
 
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 81,
17
17
  "patch" to 0,
18
- "prerelease" to "rc.2"
18
+ "prerelease" to "rc.3"
19
19
  )
20
20
  }
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<7fac1c2c0c3ce131442319925e4231dc>>
7
+ * @generated SignedSource<<cf7b6ff66c614ca2acc6667a80c5590d>>
8
8
  */
9
9
 
10
10
  /**
@@ -321,9 +321,9 @@ class ReactNativeFeatureFlagsJavaProvider
321
321
  return method(javaProvider_);
322
322
  }
323
323
 
324
- bool preventShadowTreeCommitExhaustionWithLocking() override {
324
+ bool preventShadowTreeCommitExhaustion() override {
325
325
  static const auto method =
326
- getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("preventShadowTreeCommitExhaustionWithLocking");
326
+ getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("preventShadowTreeCommitExhaustion");
327
327
  return method(javaProvider_);
328
328
  }
329
329
 
@@ -632,9 +632,9 @@ double JReactNativeFeatureFlagsCxxInterop::preparedTextCacheSize(
632
632
  return ReactNativeFeatureFlags::preparedTextCacheSize();
633
633
  }
634
634
 
635
- bool JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustionWithLocking(
635
+ bool JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustion(
636
636
  facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
637
- return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustionWithLocking();
637
+ return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion();
638
638
  }
639
639
 
640
640
  bool JReactNativeFeatureFlagsCxxInterop::traceTurboModulePromiseRejectionsOnAndroid(
@@ -865,8 +865,8 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
865
865
  "preparedTextCacheSize",
866
866
  JReactNativeFeatureFlagsCxxInterop::preparedTextCacheSize),
867
867
  makeNativeMethod(
868
- "preventShadowTreeCommitExhaustionWithLocking",
869
- JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustionWithLocking),
868
+ "preventShadowTreeCommitExhaustion",
869
+ JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustion),
870
870
  makeNativeMethod(
871
871
  "traceTurboModulePromiseRejectionsOnAndroid",
872
872
  JReactNativeFeatureFlagsCxxInterop::traceTurboModulePromiseRejectionsOnAndroid),
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<07daae0284829d56b7eaa330b1973e02>>
7
+ * @generated SignedSource<<dae981c66bf0751fd2863937ecf255d8>>
8
8
  */
9
9
 
10
10
  /**
@@ -171,7 +171,7 @@ class JReactNativeFeatureFlagsCxxInterop
171
171
  static double preparedTextCacheSize(
172
172
  facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
173
173
 
174
- static bool preventShadowTreeCommitExhaustionWithLocking(
174
+ static bool preventShadowTreeCommitExhaustion(
175
175
  facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
176
176
 
177
177
  static bool traceTurboModulePromiseRejectionsOnAndroid(
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 81;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "0rc2";
21
+ std::string_view Prerelease = "0rc3";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<0179ba45718903d6fec6dcc19b0e1aaa>>
7
+ * @generated SignedSource<<f73bbcd926a835c09b70d814c6662dbb>>
8
8
  */
9
9
 
10
10
  /**
@@ -214,8 +214,8 @@ double ReactNativeFeatureFlags::preparedTextCacheSize() {
214
214
  return getAccessor().preparedTextCacheSize();
215
215
  }
216
216
 
217
- bool ReactNativeFeatureFlags::preventShadowTreeCommitExhaustionWithLocking() {
218
- return getAccessor().preventShadowTreeCommitExhaustionWithLocking();
217
+ bool ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion() {
218
+ return getAccessor().preventShadowTreeCommitExhaustion();
219
219
  }
220
220
 
221
221
  bool ReactNativeFeatureFlags::traceTurboModulePromiseRejectionsOnAndroid() {
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<5055890d2cb2fb46a940f8308f014f0b>>
7
+ * @generated SignedSource<<da14545268455bfd4cd35e5c2ecf81ee>>
8
8
  */
9
9
 
10
10
  /**
@@ -277,7 +277,7 @@ class ReactNativeFeatureFlags {
277
277
  /**
278
278
  * Enables a new mechanism in ShadowTree to prevent problems caused by multiple threads trying to commit concurrently. If a thread tries to commit a few times unsuccessfully, it will acquire a lock and try again.
279
279
  */
280
- RN_EXPORT static bool preventShadowTreeCommitExhaustionWithLocking();
280
+ RN_EXPORT static bool preventShadowTreeCommitExhaustion();
281
281
 
282
282
  /**
283
283
  * Enables storing js caller stack when creating promise in native module. This is useful in case of Promise rejection and tracing the cause.
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<ea72f787f16b0c96ad745e82067591a9>>
7
+ * @generated SignedSource<<681bff71eb87886a108f67b3162b030c>>
8
8
  */
9
9
 
10
10
  /**
@@ -875,8 +875,8 @@ double ReactNativeFeatureFlagsAccessor::preparedTextCacheSize() {
875
875
  return flagValue.value();
876
876
  }
877
877
 
878
- bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustionWithLocking() {
879
- auto flagValue = preventShadowTreeCommitExhaustionWithLocking_.load();
878
+ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustion() {
879
+ auto flagValue = preventShadowTreeCommitExhaustion_.load();
880
880
 
881
881
  if (!flagValue.has_value()) {
882
882
  // This block is not exclusive but it is not necessary.
@@ -884,10 +884,10 @@ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustionWithLocki
884
884
  // be accessing the provider multiple times but the end state of this
885
885
  // instance and the returned flag value would be the same.
886
886
 
887
- markFlagAsAccessed(47, "preventShadowTreeCommitExhaustionWithLocking");
887
+ markFlagAsAccessed(47, "preventShadowTreeCommitExhaustion");
888
888
 
889
- flagValue = currentProvider_->preventShadowTreeCommitExhaustionWithLocking();
890
- preventShadowTreeCommitExhaustionWithLocking_ = flagValue;
889
+ flagValue = currentProvider_->preventShadowTreeCommitExhaustion();
890
+ preventShadowTreeCommitExhaustion_ = flagValue;
891
891
  }
892
892
 
893
893
  return flagValue.value();
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<5ed90d5ed1a03a16f551cd1cf6cbdeb3>>
7
+ * @generated SignedSource<<e5a8a196b35c010d92d3f616979891a9>>
8
8
  */
9
9
 
10
10
  /**
@@ -79,7 +79,7 @@ class ReactNativeFeatureFlagsAccessor {
79
79
  bool fuseboxNetworkInspectionEnabled();
80
80
  bool hideOffscreenVirtualViewsOnIOS();
81
81
  double preparedTextCacheSize();
82
- bool preventShadowTreeCommitExhaustionWithLocking();
82
+ bool preventShadowTreeCommitExhaustion();
83
83
  bool traceTurboModulePromiseRejectionsOnAndroid();
84
84
  bool updateRuntimeShadowNodeReferencesOnCommit();
85
85
  bool useAlwaysAvailableJSErrorHandling();
@@ -151,7 +151,7 @@ class ReactNativeFeatureFlagsAccessor {
151
151
  std::atomic<std::optional<bool>> fuseboxNetworkInspectionEnabled_;
152
152
  std::atomic<std::optional<bool>> hideOffscreenVirtualViewsOnIOS_;
153
153
  std::atomic<std::optional<double>> preparedTextCacheSize_;
154
- std::atomic<std::optional<bool>> preventShadowTreeCommitExhaustionWithLocking_;
154
+ std::atomic<std::optional<bool>> preventShadowTreeCommitExhaustion_;
155
155
  std::atomic<std::optional<bool>> traceTurboModulePromiseRejectionsOnAndroid_;
156
156
  std::atomic<std::optional<bool>> updateRuntimeShadowNodeReferencesOnCommit_;
157
157
  std::atomic<std::optional<bool>> useAlwaysAvailableJSErrorHandling_;
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<d9fdce0b92313eff37d7146d25b80d4a>>
7
+ * @generated SignedSource<<9832c18e4c7ccf232b7222e2356f99d9>>
8
8
  */
9
9
 
10
10
  /**
@@ -215,7 +215,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
215
215
  return 200.0;
216
216
  }
217
217
 
218
- bool preventShadowTreeCommitExhaustionWithLocking() override {
218
+ bool preventShadowTreeCommitExhaustion() override {
219
219
  return false;
220
220
  }
221
221
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<ae01d3b37b41ff2ef7fdc26977954b7e>>
7
+ * @generated SignedSource<<19f0a48bcfa8f8ffaf634e85301adc7e>>
8
8
  */
9
9
 
10
10
  /**
@@ -468,13 +468,13 @@ class ReactNativeFeatureFlagsDynamicProvider : public ReactNativeFeatureFlagsDef
468
468
  return ReactNativeFeatureFlagsDefaults::preparedTextCacheSize();
469
469
  }
470
470
 
471
- bool preventShadowTreeCommitExhaustionWithLocking() override {
472
- auto value = values_["preventShadowTreeCommitExhaustionWithLocking"];
471
+ bool preventShadowTreeCommitExhaustion() override {
472
+ auto value = values_["preventShadowTreeCommitExhaustion"];
473
473
  if (!value.isNull()) {
474
474
  return value.getBool();
475
475
  }
476
476
 
477
- return ReactNativeFeatureFlagsDefaults::preventShadowTreeCommitExhaustionWithLocking();
477
+ return ReactNativeFeatureFlagsDefaults::preventShadowTreeCommitExhaustion();
478
478
  }
479
479
 
480
480
  bool traceTurboModulePromiseRejectionsOnAndroid() override {
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<16c5fdf431579bbfd454a28c06f28c41>>
7
+ * @generated SignedSource<<f33ea0f19a27ec6124d8dbf1a043b4ce>>
8
8
  */
9
9
 
10
10
  /**
@@ -27,7 +27,7 @@ class ReactNativeFeatureFlagsOverridesOSSExperimental : public ReactNativeFeatur
27
27
  public:
28
28
  ReactNativeFeatureFlagsOverridesOSSExperimental() = default;
29
29
 
30
- bool preventShadowTreeCommitExhaustionWithLocking() override {
30
+ bool preventShadowTreeCommitExhaustion() override {
31
31
  return true;
32
32
  }
33
33
  };
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<bf06b42a9dfc43a3bfe4e8e59587ea71>>
7
+ * @generated SignedSource<<815769cc8d08e19b2598dd1862ed5060>>
8
8
  */
9
9
 
10
10
  /**
@@ -72,7 +72,7 @@ class ReactNativeFeatureFlagsProvider {
72
72
  virtual bool fuseboxNetworkInspectionEnabled() = 0;
73
73
  virtual bool hideOffscreenVirtualViewsOnIOS() = 0;
74
74
  virtual double preparedTextCacheSize() = 0;
75
- virtual bool preventShadowTreeCommitExhaustionWithLocking() = 0;
75
+ virtual bool preventShadowTreeCommitExhaustion() = 0;
76
76
  virtual bool traceTurboModulePromiseRejectionsOnAndroid() = 0;
77
77
  virtual bool updateRuntimeShadowNodeReferencesOnCommit() = 0;
78
78
  virtual bool useAlwaysAvailableJSErrorHandling() = 0;
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<b6c1cb535484fe2a5ff839ca2a9ece46>>
7
+ * @generated SignedSource<<474a64af739969acebb4bb9bb1005168>>
8
8
  */
9
9
 
10
10
  /**
@@ -279,9 +279,9 @@ double NativeReactNativeFeatureFlags::preparedTextCacheSize(
279
279
  return ReactNativeFeatureFlags::preparedTextCacheSize();
280
280
  }
281
281
 
282
- bool NativeReactNativeFeatureFlags::preventShadowTreeCommitExhaustionWithLocking(
282
+ bool NativeReactNativeFeatureFlags::preventShadowTreeCommitExhaustion(
283
283
  jsi::Runtime& /*runtime*/) {
284
- return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustionWithLocking();
284
+ return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion();
285
285
  }
286
286
 
287
287
  bool NativeReactNativeFeatureFlags::traceTurboModulePromiseRejectionsOnAndroid(
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<03ab35c55476b69046e67235b66533a0>>
7
+ * @generated SignedSource<<bfaa3cc7ab3eeff306337b06b7ae978a>>
8
8
  */
9
9
 
10
10
  /**
@@ -130,7 +130,7 @@ class NativeReactNativeFeatureFlags
130
130
 
131
131
  double preparedTextCacheSize(jsi::Runtime& runtime);
132
132
 
133
- bool preventShadowTreeCommitExhaustionWithLocking(jsi::Runtime& runtime);
133
+ bool preventShadowTreeCommitExhaustion(jsi::Runtime& runtime);
134
134
 
135
135
  bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime& runtime);
136
136
 
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #include <react/renderer/components/FBReactNativeSpec/States.h>
9
+
10
+ #warning \
11
+ "[DEPRECATION] `react/renderer/components/rncore/States.h` is deprecated and will be \
12
+ removed in the future. If this warning appears due to a library, please open an issue \
13
+ in that library, and ask for an update. Please, replace the `rncore` imports with \
14
+ `FBReactNativeSpec` or remove them entirely.