react-native-tvos 0.83.6-0 → 0.83.9-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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTJscSafeUrl+Internal.h +23 -0
- package/React/CoreModules/RCTJscSafeUrl.mm +38 -0
- package/React/CoreModules/RCTRedBox+Internal.h +42 -0
- package/React/CoreModules/RCTRedBox.mm +30 -471
- package/React/CoreModules/RCTRedBox2AnsiParser+Internal.h +22 -0
- package/React/CoreModules/RCTRedBox2AnsiParser.mm +55 -0
- package/React/CoreModules/RCTRedBox2Controller+Internal.h +34 -0
- package/React/CoreModules/RCTRedBox2Controller.mm +764 -0
- package/React/CoreModules/RCTRedBox2ErrorParser+Internal.h +46 -0
- package/React/CoreModules/RCTRedBox2ErrorParser.mm +57 -0
- package/React/CoreModules/RCTRedBoxController+Internal.h +31 -0
- package/React/CoreModules/RCTRedBoxController.mm +447 -0
- package/React/CoreModules/RCTRedBoxHMRClient+Internal.h +26 -0
- package/React/CoreModules/RCTRedBoxHMRClient.mm +125 -0
- package/React/CoreModules/React-CoreModules.podspec +1 -0
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +24 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +1 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +20 -46
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +19 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +31 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +34 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/jni/CMakeLists.txt +7 -0
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +43 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +10 -1
- package/ReactCommon/React-Fabric.podspec +6 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/react/debug/CMakeLists.txt +2 -1
- package/ReactCommon/react/debug/React-debug.podspec +7 -1
- package/ReactCommon/react/debug/redbox/AnsiParser.cpp +139 -0
- package/ReactCommon/react/debug/redbox/AnsiParser.h +35 -0
- package/ReactCommon/react/debug/redbox/JscSafeUrl.cpp +179 -0
- package/ReactCommon/react/debug/redbox/JscSafeUrl.h +27 -0
- package/ReactCommon/react/debug/redbox/RedBoxErrorParser.cpp +171 -0
- package/ReactCommon/react/debug/redbox/RedBoxErrorParser.h +40 -0
- package/ReactCommon/react/debug/redbox/tests/AnsiParserTest.cpp +97 -0
- package/ReactCommon/react/debug/redbox/tests/JscSafeUrlTest.cpp +173 -0
- package/ReactCommon/react/debug/redbox/tests/RedBoxErrorParserTest.cpp +107 -0
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +13 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +16 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +106 -52
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +8 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +13 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +28 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +4 -1
- package/ReactCommon/react/nativemodule/defaults/CMakeLists.txt +1 -0
- package/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.cpp +7 -0
- package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +1 -0
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +16 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +7 -1
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h +4 -0
- package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec +66 -0
- package/package.json +8 -8
- package/scripts/react_native_pods.rb +1 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -1
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -1
- package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -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<<75595b7640dd5849fcd3c40a965582fe>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -61,6 +61,7 @@ class ReactNativeFeatureFlagsProvider {
|
|
|
61
61
|
virtual bool enableLayoutAnimationsOnIOS() = 0;
|
|
62
62
|
virtual bool enableMainQueueCoordinatorOnIOS() = 0;
|
|
63
63
|
virtual bool enableModuleArgumentNSNullConversionIOS() = 0;
|
|
64
|
+
virtual bool enableMutationObserverByDefault() = 0;
|
|
64
65
|
virtual bool enableNativeCSSParsing() = 0;
|
|
65
66
|
virtual bool enableNetworkEventReporting() = 0;
|
|
66
67
|
virtual bool enablePreparedTextLayout() = 0;
|
|
@@ -91,6 +92,8 @@ class ReactNativeFeatureFlagsProvider {
|
|
|
91
92
|
virtual bool perfMonitorV2Enabled() = 0;
|
|
92
93
|
virtual double preparedTextCacheSize() = 0;
|
|
93
94
|
virtual bool preventShadowTreeCommitExhaustion() = 0;
|
|
95
|
+
virtual bool redBoxV2Android() = 0;
|
|
96
|
+
virtual bool redBoxV2IOS() = 0;
|
|
94
97
|
virtual bool shouldPressibilityUseW3CPointerEventsForHover() = 0;
|
|
95
98
|
virtual bool shouldTriggerResponderTransferOnScrollAndroid() = 0;
|
|
96
99
|
virtual bool skipActivityIdentityAssertionOnHostPause() = 0;
|
|
@@ -22,6 +22,7 @@ target_link_libraries(react_nativemodule_defaults
|
|
|
22
22
|
react_nativemodule_microtasks
|
|
23
23
|
react_nativemodule_idlecallbacks
|
|
24
24
|
react_nativemodule_intersectionobserver
|
|
25
|
+
react_nativemodule_mutationobserver
|
|
25
26
|
react_nativemodule_webperformance
|
|
26
27
|
)
|
|
27
28
|
target_compile_reactnative_options(react_nativemodule_defaults PRIVATE)
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
#include <react/nativemodule/idlecallbacks/NativeIdleCallbacks.h>
|
|
13
13
|
#include <react/nativemodule/intersectionobserver/NativeIntersectionObserver.h>
|
|
14
14
|
#include <react/nativemodule/microtasks/NativeMicrotasks.h>
|
|
15
|
+
#include <react/nativemodule/mutationobserver/NativeMutationObserver.h>
|
|
15
16
|
#include <react/nativemodule/webperformance/NativePerformance.h>
|
|
16
17
|
|
|
17
18
|
#ifdef REACT_NATIVE_DEBUGGER_ENABLED_DEVONLY
|
|
@@ -51,6 +52,12 @@ namespace facebook::react {
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
if (ReactNativeFeatureFlags::enableMutationObserverByDefault()) {
|
|
56
|
+
if (name == NativeMutationObserver::kModuleName) {
|
|
57
|
+
return std::make_shared<NativeMutationObserver>(jsInvoker);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
54
61
|
#ifdef REACT_NATIVE_DEBUGGER_ENABLED_DEVONLY
|
|
55
62
|
if (name == DevToolsRuntimeSettingsModule::kModuleName) {
|
|
56
63
|
return std::make_shared<DevToolsRuntimeSettingsModule>(jsInvoker);
|
|
@@ -53,6 +53,7 @@ Pod::Spec.new do |s|
|
|
|
53
53
|
s.dependency "React-microtasksnativemodule"
|
|
54
54
|
s.dependency "React-idlecallbacksnativemodule"
|
|
55
55
|
s.dependency "React-intersectionobservernativemodule"
|
|
56
|
+
s.dependency "React-mutationobservernativemodule"
|
|
56
57
|
s.dependency "React-webperformancenativemodule"
|
|
57
58
|
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
58
59
|
add_dependency(s, "React-featureflags")
|
|
@@ -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<<d4e9743710d91c1287986f2dab260e10>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -224,6 +224,11 @@ bool NativeReactNativeFeatureFlags::enableModuleArgumentNSNullConversionIOS(
|
|
|
224
224
|
return ReactNativeFeatureFlags::enableModuleArgumentNSNullConversionIOS();
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
bool NativeReactNativeFeatureFlags::enableMutationObserverByDefault(
|
|
228
|
+
jsi::Runtime& /*runtime*/) {
|
|
229
|
+
return ReactNativeFeatureFlags::enableMutationObserverByDefault();
|
|
230
|
+
}
|
|
231
|
+
|
|
227
232
|
bool NativeReactNativeFeatureFlags::enableNativeCSSParsing(
|
|
228
233
|
jsi::Runtime& /*runtime*/) {
|
|
229
234
|
return ReactNativeFeatureFlags::enableNativeCSSParsing();
|
|
@@ -374,6 +379,16 @@ bool NativeReactNativeFeatureFlags::preventShadowTreeCommitExhaustion(
|
|
|
374
379
|
return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion();
|
|
375
380
|
}
|
|
376
381
|
|
|
382
|
+
bool NativeReactNativeFeatureFlags::redBoxV2Android(
|
|
383
|
+
jsi::Runtime& /*runtime*/) {
|
|
384
|
+
return ReactNativeFeatureFlags::redBoxV2Android();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
bool NativeReactNativeFeatureFlags::redBoxV2IOS(
|
|
388
|
+
jsi::Runtime& /*runtime*/) {
|
|
389
|
+
return ReactNativeFeatureFlags::redBoxV2IOS();
|
|
390
|
+
}
|
|
391
|
+
|
|
377
392
|
bool NativeReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover(
|
|
378
393
|
jsi::Runtime& /*runtime*/) {
|
|
379
394
|
return ReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover();
|
|
@@ -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<<1b5ca84f5d82d6861379191ed93d8b63>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -108,6 +108,8 @@ class NativeReactNativeFeatureFlags
|
|
|
108
108
|
|
|
109
109
|
bool enableModuleArgumentNSNullConversionIOS(jsi::Runtime& runtime);
|
|
110
110
|
|
|
111
|
+
bool enableMutationObserverByDefault(jsi::Runtime& runtime);
|
|
112
|
+
|
|
111
113
|
bool enableNativeCSSParsing(jsi::Runtime& runtime);
|
|
112
114
|
|
|
113
115
|
bool enableNetworkEventReporting(jsi::Runtime& runtime);
|
|
@@ -168,6 +170,10 @@ class NativeReactNativeFeatureFlags
|
|
|
168
170
|
|
|
169
171
|
bool preventShadowTreeCommitExhaustion(jsi::Runtime& runtime);
|
|
170
172
|
|
|
173
|
+
bool redBoxV2Android(jsi::Runtime& runtime);
|
|
174
|
+
|
|
175
|
+
bool redBoxV2IOS(jsi::Runtime& runtime);
|
|
176
|
+
|
|
171
177
|
bool shouldPressibilityUseW3CPointerEventsForHover(jsi::Runtime& runtime);
|
|
172
178
|
|
|
173
179
|
bool shouldTriggerResponderTransferOnScrollAndroid(jsi::Runtime& runtime);
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
|
+
#if __has_include("FBReactNativeSpecJSI.h") // CocoaPod headers on Apple
|
|
11
|
+
#include "FBReactNativeSpecJSI.h"
|
|
12
|
+
#else
|
|
10
13
|
#include <FBReactNativeSpec/FBReactNativeSpecJSI.h>
|
|
14
|
+
#endif
|
|
11
15
|
#include <react/renderer/bridging/bridging.h>
|
|
12
16
|
#include <react/renderer/observers/mutation/MutationObserverManager.h>
|
|
13
17
|
#include <react/renderer/uimanager/UIManager.h>
|
package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
require "json"
|
|
7
|
+
|
|
8
|
+
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
|
|
9
|
+
version = package['version']
|
|
10
|
+
|
|
11
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
12
|
+
if version == '1000.0.0'
|
|
13
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we're presumably in.
|
|
14
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
15
|
+
else
|
|
16
|
+
source[:tag] = "v#{version}"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
header_search_paths = [
|
|
20
|
+
"\"$(PODS_ROOT)/Headers/Private/Yoga\"",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
if ENV['USE_FRAMEWORKS']
|
|
24
|
+
header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the module access its own files
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
Pod::Spec.new do |s|
|
|
28
|
+
s.name = "React-mutationobservernativemodule"
|
|
29
|
+
s.version = version
|
|
30
|
+
s.summary = "React Native mutation observer native module"
|
|
31
|
+
s.homepage = "https://reactnative.dev/"
|
|
32
|
+
s.license = package["license"]
|
|
33
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
34
|
+
s.platforms = min_supported_versions
|
|
35
|
+
s.source = source
|
|
36
|
+
s.source_files = podspec_sources("*.{cpp,h}", "*.h")
|
|
37
|
+
s.header_dir = "react/nativemodule/mutationobserver"
|
|
38
|
+
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
39
|
+
"HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
|
|
40
|
+
"OTHER_CFLAGS" => "$(inherited)",
|
|
41
|
+
"DEFINES_MODULE" => "YES" }
|
|
42
|
+
|
|
43
|
+
if ENV['USE_FRAMEWORKS']
|
|
44
|
+
s.module_name = "mutationobservernativemodule"
|
|
45
|
+
s.header_mappings_dir = "../.."
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
s.dependency "Yoga"
|
|
49
|
+
s.dependency "React-jsi"
|
|
50
|
+
s.dependency "React-jsiexecutor"
|
|
51
|
+
s.dependency "React-cxxreact"
|
|
52
|
+
|
|
53
|
+
depend_on_js_engine(s)
|
|
54
|
+
add_rn_third_party_dependencies(s)
|
|
55
|
+
add_rncore_dependency(s)
|
|
56
|
+
|
|
57
|
+
s.dependency "ReactCommon/turbomodule/core"
|
|
58
|
+
|
|
59
|
+
s.dependency "React-Fabric"
|
|
60
|
+
s.dependency "React-Fabric/bridging"
|
|
61
|
+
s.dependency "React-Fabric/observers/mutation"
|
|
62
|
+
s.dependency "React-featureflags"
|
|
63
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
64
|
+
add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
|
|
65
|
+
|
|
66
|
+
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.83.
|
|
3
|
+
"version": "0.83.9-0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -165,12 +165,12 @@
|
|
|
165
165
|
},
|
|
166
166
|
"dependencies": {
|
|
167
167
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
168
|
-
"@react-native/assets-registry": "0.83.
|
|
169
|
-
"@react-native/codegen": "0.83.
|
|
170
|
-
"@react-native/community-cli-plugin": "0.83.
|
|
171
|
-
"@react-native/gradle-plugin": "0.83.
|
|
172
|
-
"@react-native/js-polyfills": "0.83.
|
|
173
|
-
"@react-native/normalize-colors": "0.83.
|
|
168
|
+
"@react-native/assets-registry": "0.83.9",
|
|
169
|
+
"@react-native/codegen": "0.83.9",
|
|
170
|
+
"@react-native/community-cli-plugin": "0.83.9",
|
|
171
|
+
"@react-native/gradle-plugin": "0.83.9",
|
|
172
|
+
"@react-native/js-polyfills": "0.83.9",
|
|
173
|
+
"@react-native/normalize-colors": "0.83.9",
|
|
174
174
|
"abort-controller": "^3.0.0",
|
|
175
175
|
"anser": "^1.4.9",
|
|
176
176
|
"ansi-regex": "^5.0.0",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"whatwg-fetch": "^3.0.0",
|
|
199
199
|
"ws": "^7.5.10",
|
|
200
200
|
"yargs": "^17.6.2",
|
|
201
|
-
"@react-native-tvos/virtualized-lists": "0.83.
|
|
201
|
+
"@react-native-tvos/virtualized-lists": "0.83.9-0"
|
|
202
202
|
},
|
|
203
203
|
"codegenConfig": {
|
|
204
204
|
"libraries": [
|
|
@@ -145,6 +145,7 @@ def use_react_native! (
|
|
|
145
145
|
pod 'React-microtasksnativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/microtasks"
|
|
146
146
|
pod 'React-idlecallbacksnativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/idlecallbacks"
|
|
147
147
|
pod 'React-intersectionobservernativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/intersectionobserver"
|
|
148
|
+
pod 'React-mutationobservernativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/mutationobserver"
|
|
148
149
|
pod 'React-webperformancenativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/webperformance"
|
|
149
150
|
pod 'React-domnativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/dom"
|
|
150
151
|
pod 'React-defaultsnativemodule', :path => "#{prefix}/ReactCommon/react/nativemodule/defaults"
|
|
@@ -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<<3f2bdc6f93d0f963c9386ea8caa9953c>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
* @noformat
|
|
10
10
|
*/
|
|
@@ -86,6 +86,7 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
86
86
|
enableLayoutAnimationsOnIOS: Getter<boolean>,
|
|
87
87
|
enableMainQueueCoordinatorOnIOS: Getter<boolean>,
|
|
88
88
|
enableModuleArgumentNSNullConversionIOS: Getter<boolean>,
|
|
89
|
+
enableMutationObserverByDefault: Getter<boolean>,
|
|
89
90
|
enableNativeCSSParsing: Getter<boolean>,
|
|
90
91
|
enableNetworkEventReporting: Getter<boolean>,
|
|
91
92
|
enablePreparedTextLayout: Getter<boolean>,
|
|
@@ -116,6 +117,8 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
116
117
|
perfMonitorV2Enabled: Getter<boolean>,
|
|
117
118
|
preparedTextCacheSize: Getter<number>,
|
|
118
119
|
preventShadowTreeCommitExhaustion: Getter<boolean>,
|
|
120
|
+
redBoxV2Android: Getter<boolean>,
|
|
121
|
+
redBoxV2IOS: Getter<boolean>,
|
|
119
122
|
shouldPressibilityUseW3CPointerEventsForHover: Getter<boolean>,
|
|
120
123
|
shouldTriggerResponderTransferOnScrollAndroid: Getter<boolean>,
|
|
121
124
|
skipActivityIdentityAssertionOnHostPause: Getter<boolean>,
|
|
@@ -362,6 +365,10 @@ export const enableMainQueueCoordinatorOnIOS: Getter<boolean> = createNativeFlag
|
|
|
362
365
|
* Enable NSNull conversion when handling module arguments on iOS
|
|
363
366
|
*/
|
|
364
367
|
export const enableModuleArgumentNSNullConversionIOS: Getter<boolean> = createNativeFlagGetter('enableModuleArgumentNSNullConversionIOS', false);
|
|
368
|
+
/**
|
|
369
|
+
* Enables the MutationObserver Web API in React Native.
|
|
370
|
+
*/
|
|
371
|
+
export const enableMutationObserverByDefault: Getter<boolean> = createNativeFlagGetter('enableMutationObserverByDefault', false);
|
|
365
372
|
/**
|
|
366
373
|
* Parse CSS strings using the Fabric CSS parser instead of ViewConfig processing
|
|
367
374
|
*/
|
|
@@ -482,6 +489,14 @@ export const preparedTextCacheSize: Getter<number> = createNativeFlagGetter('pre
|
|
|
482
489
|
* 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.
|
|
483
490
|
*/
|
|
484
491
|
export const preventShadowTreeCommitExhaustion: Getter<boolean> = createNativeFlagGetter('preventShadowTreeCommitExhaustion', false);
|
|
492
|
+
/**
|
|
493
|
+
* Use the redesigned RedBox error overlay on Android, styled to match the LogBox visual language.
|
|
494
|
+
*/
|
|
495
|
+
export const redBoxV2Android: Getter<boolean> = createNativeFlagGetter('redBoxV2Android', false);
|
|
496
|
+
/**
|
|
497
|
+
* Use the redesigned RedBox error overlay on iOS, styled to match the LogBox visual language.
|
|
498
|
+
*/
|
|
499
|
+
export const redBoxV2IOS: Getter<boolean> = createNativeFlagGetter('redBoxV2IOS', false);
|
|
485
500
|
/**
|
|
486
501
|
* Function used to enable / disable Pressibility from using W3C Pointer Events for its hover callbacks
|
|
487
502
|
*/
|
|
@@ -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<<8ef0f9289aa8f259fd110b70a8fd2294>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
* @noformat
|
|
10
10
|
*/
|
|
@@ -61,6 +61,7 @@ export interface Spec extends TurboModule {
|
|
|
61
61
|
+enableLayoutAnimationsOnIOS?: () => boolean;
|
|
62
62
|
+enableMainQueueCoordinatorOnIOS?: () => boolean;
|
|
63
63
|
+enableModuleArgumentNSNullConversionIOS?: () => boolean;
|
|
64
|
+
+enableMutationObserverByDefault?: () => boolean;
|
|
64
65
|
+enableNativeCSSParsing?: () => boolean;
|
|
65
66
|
+enableNetworkEventReporting?: () => boolean;
|
|
66
67
|
+enablePreparedTextLayout?: () => boolean;
|
|
@@ -91,6 +92,8 @@ export interface Spec extends TurboModule {
|
|
|
91
92
|
+perfMonitorV2Enabled?: () => boolean;
|
|
92
93
|
+preparedTextCacheSize?: () => number;
|
|
93
94
|
+preventShadowTreeCommitExhaustion?: () => boolean;
|
|
95
|
+
+redBoxV2Android?: () => boolean;
|
|
96
|
+
+redBoxV2IOS?: () => boolean;
|
|
94
97
|
+shouldPressibilityUseW3CPointerEventsForHover?: () => boolean;
|
|
95
98
|
+shouldTriggerResponderTransferOnScrollAndroid?: () => boolean;
|
|
96
99
|
+skipActivityIdentityAssertionOnHostPause?: () => boolean;
|
|
@@ -47,4 +47,10 @@ export default function setUpDefaltReactNativeEnvironment(
|
|
|
47
47
|
) {
|
|
48
48
|
require('./setUpIntersectionObserver').default();
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
if (
|
|
52
|
+
require('../../../src/private/featureflags/ReactNativeFeatureFlags').enableMutationObserverByDefault()
|
|
53
|
+
) {
|
|
54
|
+
require('./setUpMutationObserver').default();
|
|
55
|
+
}
|
|
50
56
|
}
|