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.
- package/Libraries/Components/View/View.js +5 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -2
- package/React/Base/RCTVersion.m +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI-generated.cpp +3 -3
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +5 -5
- package/ReactAndroid/api/ReactAndroid.api +2 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Experimental_Android.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +7 -7
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +2 -2
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +3 -3
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +2 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +6 -6
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +3 -3
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +2 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +4 -4
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSExperimental.h +2 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -2
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +3 -3
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +2 -2
- package/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h +14 -0
- package/ReactCommon/react/renderer/components/rncore/EventEmitters.h +14 -0
- package/ReactCommon/react/renderer/components/rncore/Props.h +14 -0
- package/ReactCommon/react/renderer/components/rncore/ShadowNodes.h +14 -0
- package/ReactCommon/react/renderer/components/rncore/States.h +14 -0
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +30 -20
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +14 -2
- package/flow/HermesInternalType.js +114 -0
- package/flow/Stringish.js +14 -0
- package/flow/bom.js.flow +489 -0
- package/flow/console.js +49 -0
- package/flow/cssom.js.flow +575 -0
- package/flow/dom.js.flow +6289 -0
- package/flow/global.js +88 -0
- package/flow/streams.js.flow +140 -0
- package/package.json +12 -11
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +3 -3
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -2
- 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
|
-
|
|
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;
|
|
@@ -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"
|
|
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
|
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -322,8 +322,8 @@ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_prepare
|
|
|
322
322
|
rt
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
|
-
static jsi::Value
|
|
326
|
-
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->
|
|
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_["
|
|
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
|
|
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
|
|
803
|
+
bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) override {
|
|
804
804
|
static_assert(
|
|
805
|
-
bridging::getParameterCount(&T::
|
|
806
|
-
"Expected
|
|
805
|
+
bridging::getParameterCount(&T::preventShadowTreeCommitExhaustion) == 1,
|
|
806
|
+
"Expected preventShadowTreeCommitExhaustion(...) to have 1 parameters");
|
|
807
807
|
|
|
808
808
|
return bridging::callFromJs<bool>(
|
|
809
|
-
rt, &T::
|
|
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
|
|
35
|
-
protected
|
|
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
|
|
@@ -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:///
|
|
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<<
|
|
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
|
|
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<<
|
|
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
|
|
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
|
|
507
|
-
var cached =
|
|
506
|
+
override fun preventShadowTreeCommitExhaustion(): Boolean {
|
|
507
|
+
var cached = preventShadowTreeCommitExhaustionCache
|
|
508
508
|
if (cached == null) {
|
|
509
|
-
cached = ReactNativeFeatureFlagsCxxInterop.
|
|
510
|
-
|
|
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<<
|
|
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
|
|
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<<
|
|
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
|
|
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<<
|
|
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
|
|
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
|
|
558
|
-
var cached =
|
|
557
|
+
override fun preventShadowTreeCommitExhaustion(): Boolean {
|
|
558
|
+
var cached = preventShadowTreeCommitExhaustionCache
|
|
559
559
|
if (cached == null) {
|
|
560
|
-
cached = currentProvider.
|
|
561
|
-
accessedFeatureFlags.add("
|
|
562
|
-
|
|
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<<
|
|
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
|
|
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<<
|
|
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
|
|
120
|
+
@DoNotStrip public fun preventShadowTreeCommitExhaustion(): Boolean
|
|
121
121
|
|
|
122
122
|
@DoNotStrip public fun traceTurboModulePromiseRejectionsOnAndroid(): Boolean
|
|
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<<
|
|
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
|
|
324
|
+
bool preventShadowTreeCommitExhaustion() override {
|
|
325
325
|
static const auto method =
|
|
326
|
-
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("
|
|
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::
|
|
635
|
+
bool JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustion(
|
|
636
636
|
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
|
|
637
|
-
return ReactNativeFeatureFlags::
|
|
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
|
-
"
|
|
869
|
-
JReactNativeFeatureFlagsCxxInterop::
|
|
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<<
|
|
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
|
|
174
|
+
static bool preventShadowTreeCommitExhaustion(
|
|
175
175
|
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
|
176
176
|
|
|
177
177
|
static bool 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<<
|
|
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::
|
|
218
|
-
return getAccessor().
|
|
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<<
|
|
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
|
|
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<<
|
|
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::
|
|
879
|
-
auto flagValue =
|
|
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, "
|
|
887
|
+
markFlagAsAccessed(47, "preventShadowTreeCommitExhaustion");
|
|
888
888
|
|
|
889
|
-
flagValue = currentProvider_->
|
|
890
|
-
|
|
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<<
|
|
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
|
|
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>>
|
|
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<<
|
|
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
|
|
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<<
|
|
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
|
|
472
|
-
auto value = values_["
|
|
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::
|
|
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<<
|
|
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
|
|
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<<
|
|
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
|
|
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<<
|
|
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::
|
|
282
|
+
bool NativeReactNativeFeatureFlags::preventShadowTreeCommitExhaustion(
|
|
283
283
|
jsi::Runtime& /*runtime*/) {
|
|
284
|
-
return ReactNativeFeatureFlags::
|
|
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<<
|
|
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
|
|
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.
|