react-native 0.84.0-nightly-20251113-6ddba300b → 0.84.0-nightly-20251114-dd6805dec
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/FBReactNativeSpec/FBReactNativeSpecJSI.h +8 -0
- package/ReactAndroid/build.gradle.kts +2 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +11 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +12 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Canary_Android.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkEventUtil.kt +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/jni/CMakeLists.txt +5 -0
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +15 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +4 -1
- package/ReactAndroid/src/main/res/views/uimanager/values-ne/strings.xml +1 -0
- package/ReactCommon/React-Fabric.podspec +8 -2
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +6 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +71 -53
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +4 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +6 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +10 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +2 -2
- 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 +5 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +6 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +3 -1
- package/ReactCommon/react/nativemodule/intersectionobserver/NativeIntersectionObserver.h +4 -0
- package/ReactCommon/react/nativemodule/intersectionobserver/React-intersectionobservernativemodule.podspec +66 -0
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +4 -10
- package/ReactCommon/react/renderer/core/tests/ShadowNodeTest.cpp +32 -0
- package/package.json +8 -8
- package/scripts/react_native_pods.rb +1 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +8 -3
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -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<<d03dd3ed92be3e140ac5172791ddadb2>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -659,6 +659,24 @@ bool ReactNativeFeatureFlagsAccessor::enableInteropViewManagerClassLookUpOptimiz
|
|
|
659
659
|
return flagValue.value();
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
+
bool ReactNativeFeatureFlagsAccessor::enableIntersectionObserverByDefault() {
|
|
663
|
+
auto flagValue = enableIntersectionObserverByDefault_.load();
|
|
664
|
+
|
|
665
|
+
if (!flagValue.has_value()) {
|
|
666
|
+
// This block is not exclusive but it is not necessary.
|
|
667
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
668
|
+
// be accessing the provider multiple times but the end state of this
|
|
669
|
+
// instance and the returned flag value would be the same.
|
|
670
|
+
|
|
671
|
+
markFlagAsAccessed(35, "enableIntersectionObserverByDefault");
|
|
672
|
+
|
|
673
|
+
flagValue = currentProvider_->enableIntersectionObserverByDefault();
|
|
674
|
+
enableIntersectionObserverByDefault_ = flagValue;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
return flagValue.value();
|
|
678
|
+
}
|
|
679
|
+
|
|
662
680
|
bool ReactNativeFeatureFlagsAccessor::enableKeyEvents() {
|
|
663
681
|
auto flagValue = enableKeyEvents_.load();
|
|
664
682
|
|
|
@@ -668,7 +686,7 @@ bool ReactNativeFeatureFlagsAccessor::enableKeyEvents() {
|
|
|
668
686
|
// be accessing the provider multiple times but the end state of this
|
|
669
687
|
// instance and the returned flag value would be the same.
|
|
670
688
|
|
|
671
|
-
markFlagAsAccessed(
|
|
689
|
+
markFlagAsAccessed(36, "enableKeyEvents");
|
|
672
690
|
|
|
673
691
|
flagValue = currentProvider_->enableKeyEvents();
|
|
674
692
|
enableKeyEvents_ = flagValue;
|
|
@@ -686,7 +704,7 @@ bool ReactNativeFeatureFlagsAccessor::enableLayoutAnimationsOnAndroid() {
|
|
|
686
704
|
// be accessing the provider multiple times but the end state of this
|
|
687
705
|
// instance and the returned flag value would be the same.
|
|
688
706
|
|
|
689
|
-
markFlagAsAccessed(
|
|
707
|
+
markFlagAsAccessed(37, "enableLayoutAnimationsOnAndroid");
|
|
690
708
|
|
|
691
709
|
flagValue = currentProvider_->enableLayoutAnimationsOnAndroid();
|
|
692
710
|
enableLayoutAnimationsOnAndroid_ = flagValue;
|
|
@@ -704,7 +722,7 @@ bool ReactNativeFeatureFlagsAccessor::enableLayoutAnimationsOnIOS() {
|
|
|
704
722
|
// be accessing the provider multiple times but the end state of this
|
|
705
723
|
// instance and the returned flag value would be the same.
|
|
706
724
|
|
|
707
|
-
markFlagAsAccessed(
|
|
725
|
+
markFlagAsAccessed(38, "enableLayoutAnimationsOnIOS");
|
|
708
726
|
|
|
709
727
|
flagValue = currentProvider_->enableLayoutAnimationsOnIOS();
|
|
710
728
|
enableLayoutAnimationsOnIOS_ = flagValue;
|
|
@@ -722,7 +740,7 @@ bool ReactNativeFeatureFlagsAccessor::enableMainQueueCoordinatorOnIOS() {
|
|
|
722
740
|
// be accessing the provider multiple times but the end state of this
|
|
723
741
|
// instance and the returned flag value would be the same.
|
|
724
742
|
|
|
725
|
-
markFlagAsAccessed(
|
|
743
|
+
markFlagAsAccessed(39, "enableMainQueueCoordinatorOnIOS");
|
|
726
744
|
|
|
727
745
|
flagValue = currentProvider_->enableMainQueueCoordinatorOnIOS();
|
|
728
746
|
enableMainQueueCoordinatorOnIOS_ = flagValue;
|
|
@@ -740,7 +758,7 @@ bool ReactNativeFeatureFlagsAccessor::enableModuleArgumentNSNullConversionIOS()
|
|
|
740
758
|
// be accessing the provider multiple times but the end state of this
|
|
741
759
|
// instance and the returned flag value would be the same.
|
|
742
760
|
|
|
743
|
-
markFlagAsAccessed(
|
|
761
|
+
markFlagAsAccessed(40, "enableModuleArgumentNSNullConversionIOS");
|
|
744
762
|
|
|
745
763
|
flagValue = currentProvider_->enableModuleArgumentNSNullConversionIOS();
|
|
746
764
|
enableModuleArgumentNSNullConversionIOS_ = flagValue;
|
|
@@ -758,7 +776,7 @@ bool ReactNativeFeatureFlagsAccessor::enableNativeCSSParsing() {
|
|
|
758
776
|
// be accessing the provider multiple times but the end state of this
|
|
759
777
|
// instance and the returned flag value would be the same.
|
|
760
778
|
|
|
761
|
-
markFlagAsAccessed(
|
|
779
|
+
markFlagAsAccessed(41, "enableNativeCSSParsing");
|
|
762
780
|
|
|
763
781
|
flagValue = currentProvider_->enableNativeCSSParsing();
|
|
764
782
|
enableNativeCSSParsing_ = flagValue;
|
|
@@ -776,7 +794,7 @@ bool ReactNativeFeatureFlagsAccessor::enableNetworkEventReporting() {
|
|
|
776
794
|
// be accessing the provider multiple times but the end state of this
|
|
777
795
|
// instance and the returned flag value would be the same.
|
|
778
796
|
|
|
779
|
-
markFlagAsAccessed(
|
|
797
|
+
markFlagAsAccessed(42, "enableNetworkEventReporting");
|
|
780
798
|
|
|
781
799
|
flagValue = currentProvider_->enableNetworkEventReporting();
|
|
782
800
|
enableNetworkEventReporting_ = flagValue;
|
|
@@ -794,7 +812,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePreparedTextLayout() {
|
|
|
794
812
|
// be accessing the provider multiple times but the end state of this
|
|
795
813
|
// instance and the returned flag value would be the same.
|
|
796
814
|
|
|
797
|
-
markFlagAsAccessed(
|
|
815
|
+
markFlagAsAccessed(43, "enablePreparedTextLayout");
|
|
798
816
|
|
|
799
817
|
flagValue = currentProvider_->enablePreparedTextLayout();
|
|
800
818
|
enablePreparedTextLayout_ = flagValue;
|
|
@@ -812,7 +830,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePropsUpdateReconciliationAndroid() {
|
|
|
812
830
|
// be accessing the provider multiple times but the end state of this
|
|
813
831
|
// instance and the returned flag value would be the same.
|
|
814
832
|
|
|
815
|
-
markFlagAsAccessed(
|
|
833
|
+
markFlagAsAccessed(44, "enablePropsUpdateReconciliationAndroid");
|
|
816
834
|
|
|
817
835
|
flagValue = currentProvider_->enablePropsUpdateReconciliationAndroid();
|
|
818
836
|
enablePropsUpdateReconciliationAndroid_ = flagValue;
|
|
@@ -830,7 +848,7 @@ bool ReactNativeFeatureFlagsAccessor::enableSwiftUIBasedFilters() {
|
|
|
830
848
|
// be accessing the provider multiple times but the end state of this
|
|
831
849
|
// instance and the returned flag value would be the same.
|
|
832
850
|
|
|
833
|
-
markFlagAsAccessed(
|
|
851
|
+
markFlagAsAccessed(45, "enableSwiftUIBasedFilters");
|
|
834
852
|
|
|
835
853
|
flagValue = currentProvider_->enableSwiftUIBasedFilters();
|
|
836
854
|
enableSwiftUIBasedFilters_ = flagValue;
|
|
@@ -848,7 +866,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewCulling() {
|
|
|
848
866
|
// be accessing the provider multiple times but the end state of this
|
|
849
867
|
// instance and the returned flag value would be the same.
|
|
850
868
|
|
|
851
|
-
markFlagAsAccessed(
|
|
869
|
+
markFlagAsAccessed(46, "enableViewCulling");
|
|
852
870
|
|
|
853
871
|
flagValue = currentProvider_->enableViewCulling();
|
|
854
872
|
enableViewCulling_ = flagValue;
|
|
@@ -866,7 +884,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecycling() {
|
|
|
866
884
|
// be accessing the provider multiple times but the end state of this
|
|
867
885
|
// instance and the returned flag value would be the same.
|
|
868
886
|
|
|
869
|
-
markFlagAsAccessed(
|
|
887
|
+
markFlagAsAccessed(47, "enableViewRecycling");
|
|
870
888
|
|
|
871
889
|
flagValue = currentProvider_->enableViewRecycling();
|
|
872
890
|
enableViewRecycling_ = flagValue;
|
|
@@ -884,7 +902,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForImage() {
|
|
|
884
902
|
// be accessing the provider multiple times but the end state of this
|
|
885
903
|
// instance and the returned flag value would be the same.
|
|
886
904
|
|
|
887
|
-
markFlagAsAccessed(
|
|
905
|
+
markFlagAsAccessed(48, "enableViewRecyclingForImage");
|
|
888
906
|
|
|
889
907
|
flagValue = currentProvider_->enableViewRecyclingForImage();
|
|
890
908
|
enableViewRecyclingForImage_ = flagValue;
|
|
@@ -902,7 +920,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForScrollView() {
|
|
|
902
920
|
// be accessing the provider multiple times but the end state of this
|
|
903
921
|
// instance and the returned flag value would be the same.
|
|
904
922
|
|
|
905
|
-
markFlagAsAccessed(
|
|
923
|
+
markFlagAsAccessed(49, "enableViewRecyclingForScrollView");
|
|
906
924
|
|
|
907
925
|
flagValue = currentProvider_->enableViewRecyclingForScrollView();
|
|
908
926
|
enableViewRecyclingForScrollView_ = flagValue;
|
|
@@ -920,7 +938,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForText() {
|
|
|
920
938
|
// be accessing the provider multiple times but the end state of this
|
|
921
939
|
// instance and the returned flag value would be the same.
|
|
922
940
|
|
|
923
|
-
markFlagAsAccessed(
|
|
941
|
+
markFlagAsAccessed(50, "enableViewRecyclingForText");
|
|
924
942
|
|
|
925
943
|
flagValue = currentProvider_->enableViewRecyclingForText();
|
|
926
944
|
enableViewRecyclingForText_ = flagValue;
|
|
@@ -938,7 +956,7 @@ bool ReactNativeFeatureFlagsAccessor::enableViewRecyclingForView() {
|
|
|
938
956
|
// be accessing the provider multiple times but the end state of this
|
|
939
957
|
// instance and the returned flag value would be the same.
|
|
940
958
|
|
|
941
|
-
markFlagAsAccessed(
|
|
959
|
+
markFlagAsAccessed(51, "enableViewRecyclingForView");
|
|
942
960
|
|
|
943
961
|
flagValue = currentProvider_->enableViewRecyclingForView();
|
|
944
962
|
enableViewRecyclingForView_ = flagValue;
|
|
@@ -956,7 +974,7 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewClippingWithoutScrollView
|
|
|
956
974
|
// be accessing the provider multiple times but the end state of this
|
|
957
975
|
// instance and the returned flag value would be the same.
|
|
958
976
|
|
|
959
|
-
markFlagAsAccessed(
|
|
977
|
+
markFlagAsAccessed(52, "enableVirtualViewClippingWithoutScrollViewClipping");
|
|
960
978
|
|
|
961
979
|
flagValue = currentProvider_->enableVirtualViewClippingWithoutScrollViewClipping();
|
|
962
980
|
enableVirtualViewClippingWithoutScrollViewClipping_ = flagValue;
|
|
@@ -974,7 +992,7 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewContainerStateExperimenta
|
|
|
974
992
|
// be accessing the provider multiple times but the end state of this
|
|
975
993
|
// instance and the returned flag value would be the same.
|
|
976
994
|
|
|
977
|
-
markFlagAsAccessed(
|
|
995
|
+
markFlagAsAccessed(53, "enableVirtualViewContainerStateExperimental");
|
|
978
996
|
|
|
979
997
|
flagValue = currentProvider_->enableVirtualViewContainerStateExperimental();
|
|
980
998
|
enableVirtualViewContainerStateExperimental_ = flagValue;
|
|
@@ -992,7 +1010,7 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewDebugFeatures() {
|
|
|
992
1010
|
// be accessing the provider multiple times but the end state of this
|
|
993
1011
|
// instance and the returned flag value would be the same.
|
|
994
1012
|
|
|
995
|
-
markFlagAsAccessed(
|
|
1013
|
+
markFlagAsAccessed(54, "enableVirtualViewDebugFeatures");
|
|
996
1014
|
|
|
997
1015
|
flagValue = currentProvider_->enableVirtualViewDebugFeatures();
|
|
998
1016
|
enableVirtualViewDebugFeatures_ = flagValue;
|
|
@@ -1010,7 +1028,7 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewRenderState() {
|
|
|
1010
1028
|
// be accessing the provider multiple times but the end state of this
|
|
1011
1029
|
// instance and the returned flag value would be the same.
|
|
1012
1030
|
|
|
1013
|
-
markFlagAsAccessed(
|
|
1031
|
+
markFlagAsAccessed(55, "enableVirtualViewRenderState");
|
|
1014
1032
|
|
|
1015
1033
|
flagValue = currentProvider_->enableVirtualViewRenderState();
|
|
1016
1034
|
enableVirtualViewRenderState_ = flagValue;
|
|
@@ -1028,7 +1046,7 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewWindowFocusDetection() {
|
|
|
1028
1046
|
// be accessing the provider multiple times but the end state of this
|
|
1029
1047
|
// instance and the returned flag value would be the same.
|
|
1030
1048
|
|
|
1031
|
-
markFlagAsAccessed(
|
|
1049
|
+
markFlagAsAccessed(56, "enableVirtualViewWindowFocusDetection");
|
|
1032
1050
|
|
|
1033
1051
|
flagValue = currentProvider_->enableVirtualViewWindowFocusDetection();
|
|
1034
1052
|
enableVirtualViewWindowFocusDetection_ = flagValue;
|
|
@@ -1046,7 +1064,7 @@ bool ReactNativeFeatureFlagsAccessor::enableWebPerformanceAPIsByDefault() {
|
|
|
1046
1064
|
// be accessing the provider multiple times but the end state of this
|
|
1047
1065
|
// instance and the returned flag value would be the same.
|
|
1048
1066
|
|
|
1049
|
-
markFlagAsAccessed(
|
|
1067
|
+
markFlagAsAccessed(57, "enableWebPerformanceAPIsByDefault");
|
|
1050
1068
|
|
|
1051
1069
|
flagValue = currentProvider_->enableWebPerformanceAPIsByDefault();
|
|
1052
1070
|
enableWebPerformanceAPIsByDefault_ = flagValue;
|
|
@@ -1064,7 +1082,7 @@ bool ReactNativeFeatureFlagsAccessor::fixMappingOfEventPrioritiesBetweenFabricAn
|
|
|
1064
1082
|
// be accessing the provider multiple times but the end state of this
|
|
1065
1083
|
// instance and the returned flag value would be the same.
|
|
1066
1084
|
|
|
1067
|
-
markFlagAsAccessed(
|
|
1085
|
+
markFlagAsAccessed(58, "fixMappingOfEventPrioritiesBetweenFabricAndReact");
|
|
1068
1086
|
|
|
1069
1087
|
flagValue = currentProvider_->fixMappingOfEventPrioritiesBetweenFabricAndReact();
|
|
1070
1088
|
fixMappingOfEventPrioritiesBetweenFabricAndReact_ = flagValue;
|
|
@@ -1082,7 +1100,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxAssertSingleHostState() {
|
|
|
1082
1100
|
// be accessing the provider multiple times but the end state of this
|
|
1083
1101
|
// instance and the returned flag value would be the same.
|
|
1084
1102
|
|
|
1085
|
-
markFlagAsAccessed(
|
|
1103
|
+
markFlagAsAccessed(59, "fuseboxAssertSingleHostState");
|
|
1086
1104
|
|
|
1087
1105
|
flagValue = currentProvider_->fuseboxAssertSingleHostState();
|
|
1088
1106
|
fuseboxAssertSingleHostState_ = flagValue;
|
|
@@ -1100,7 +1118,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxEnabledRelease() {
|
|
|
1100
1118
|
// be accessing the provider multiple times but the end state of this
|
|
1101
1119
|
// instance and the returned flag value would be the same.
|
|
1102
1120
|
|
|
1103
|
-
markFlagAsAccessed(
|
|
1121
|
+
markFlagAsAccessed(60, "fuseboxEnabledRelease");
|
|
1104
1122
|
|
|
1105
1123
|
flagValue = currentProvider_->fuseboxEnabledRelease();
|
|
1106
1124
|
fuseboxEnabledRelease_ = flagValue;
|
|
@@ -1118,7 +1136,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxNetworkInspectionEnabled() {
|
|
|
1118
1136
|
// be accessing the provider multiple times but the end state of this
|
|
1119
1137
|
// instance and the returned flag value would be the same.
|
|
1120
1138
|
|
|
1121
|
-
markFlagAsAccessed(
|
|
1139
|
+
markFlagAsAccessed(61, "fuseboxNetworkInspectionEnabled");
|
|
1122
1140
|
|
|
1123
1141
|
flagValue = currentProvider_->fuseboxNetworkInspectionEnabled();
|
|
1124
1142
|
fuseboxNetworkInspectionEnabled_ = flagValue;
|
|
@@ -1136,7 +1154,7 @@ bool ReactNativeFeatureFlagsAccessor::hideOffscreenVirtualViewsOnIOS() {
|
|
|
1136
1154
|
// be accessing the provider multiple times but the end state of this
|
|
1137
1155
|
// instance and the returned flag value would be the same.
|
|
1138
1156
|
|
|
1139
|
-
markFlagAsAccessed(
|
|
1157
|
+
markFlagAsAccessed(62, "hideOffscreenVirtualViewsOnIOS");
|
|
1140
1158
|
|
|
1141
1159
|
flagValue = currentProvider_->hideOffscreenVirtualViewsOnIOS();
|
|
1142
1160
|
hideOffscreenVirtualViewsOnIOS_ = flagValue;
|
|
@@ -1154,7 +1172,7 @@ bool ReactNativeFeatureFlagsAccessor::overrideBySynchronousMountPropsAtMountingA
|
|
|
1154
1172
|
// be accessing the provider multiple times but the end state of this
|
|
1155
1173
|
// instance and the returned flag value would be the same.
|
|
1156
1174
|
|
|
1157
|
-
markFlagAsAccessed(
|
|
1175
|
+
markFlagAsAccessed(63, "overrideBySynchronousMountPropsAtMountingAndroid");
|
|
1158
1176
|
|
|
1159
1177
|
flagValue = currentProvider_->overrideBySynchronousMountPropsAtMountingAndroid();
|
|
1160
1178
|
overrideBySynchronousMountPropsAtMountingAndroid_ = flagValue;
|
|
@@ -1172,7 +1190,7 @@ bool ReactNativeFeatureFlagsAccessor::perfIssuesEnabled() {
|
|
|
1172
1190
|
// be accessing the provider multiple times but the end state of this
|
|
1173
1191
|
// instance and the returned flag value would be the same.
|
|
1174
1192
|
|
|
1175
|
-
markFlagAsAccessed(
|
|
1193
|
+
markFlagAsAccessed(64, "perfIssuesEnabled");
|
|
1176
1194
|
|
|
1177
1195
|
flagValue = currentProvider_->perfIssuesEnabled();
|
|
1178
1196
|
perfIssuesEnabled_ = flagValue;
|
|
@@ -1190,7 +1208,7 @@ bool ReactNativeFeatureFlagsAccessor::perfMonitorV2Enabled() {
|
|
|
1190
1208
|
// be accessing the provider multiple times but the end state of this
|
|
1191
1209
|
// instance and the returned flag value would be the same.
|
|
1192
1210
|
|
|
1193
|
-
markFlagAsAccessed(
|
|
1211
|
+
markFlagAsAccessed(65, "perfMonitorV2Enabled");
|
|
1194
1212
|
|
|
1195
1213
|
flagValue = currentProvider_->perfMonitorV2Enabled();
|
|
1196
1214
|
perfMonitorV2Enabled_ = flagValue;
|
|
@@ -1208,7 +1226,7 @@ double ReactNativeFeatureFlagsAccessor::preparedTextCacheSize() {
|
|
|
1208
1226
|
// be accessing the provider multiple times but the end state of this
|
|
1209
1227
|
// instance and the returned flag value would be the same.
|
|
1210
1228
|
|
|
1211
|
-
markFlagAsAccessed(
|
|
1229
|
+
markFlagAsAccessed(66, "preparedTextCacheSize");
|
|
1212
1230
|
|
|
1213
1231
|
flagValue = currentProvider_->preparedTextCacheSize();
|
|
1214
1232
|
preparedTextCacheSize_ = flagValue;
|
|
@@ -1226,7 +1244,7 @@ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustion() {
|
|
|
1226
1244
|
// be accessing the provider multiple times but the end state of this
|
|
1227
1245
|
// instance and the returned flag value would be the same.
|
|
1228
1246
|
|
|
1229
|
-
markFlagAsAccessed(
|
|
1247
|
+
markFlagAsAccessed(67, "preventShadowTreeCommitExhaustion");
|
|
1230
1248
|
|
|
1231
1249
|
flagValue = currentProvider_->preventShadowTreeCommitExhaustion();
|
|
1232
1250
|
preventShadowTreeCommitExhaustion_ = flagValue;
|
|
@@ -1244,7 +1262,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldPressibilityUseW3CPointerEventsForHo
|
|
|
1244
1262
|
// be accessing the provider multiple times but the end state of this
|
|
1245
1263
|
// instance and the returned flag value would be the same.
|
|
1246
1264
|
|
|
1247
|
-
markFlagAsAccessed(
|
|
1265
|
+
markFlagAsAccessed(68, "shouldPressibilityUseW3CPointerEventsForHover");
|
|
1248
1266
|
|
|
1249
1267
|
flagValue = currentProvider_->shouldPressibilityUseW3CPointerEventsForHover();
|
|
1250
1268
|
shouldPressibilityUseW3CPointerEventsForHover_ = flagValue;
|
|
@@ -1262,7 +1280,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldSetEnabledBasedOnAccessibilityState(
|
|
|
1262
1280
|
// be accessing the provider multiple times but the end state of this
|
|
1263
1281
|
// instance and the returned flag value would be the same.
|
|
1264
1282
|
|
|
1265
|
-
markFlagAsAccessed(
|
|
1283
|
+
markFlagAsAccessed(69, "shouldSetEnabledBasedOnAccessibilityState");
|
|
1266
1284
|
|
|
1267
1285
|
flagValue = currentProvider_->shouldSetEnabledBasedOnAccessibilityState();
|
|
1268
1286
|
shouldSetEnabledBasedOnAccessibilityState_ = flagValue;
|
|
@@ -1280,7 +1298,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldTriggerResponderTransferOnScrollAndr
|
|
|
1280
1298
|
// be accessing the provider multiple times but the end state of this
|
|
1281
1299
|
// instance and the returned flag value would be the same.
|
|
1282
1300
|
|
|
1283
|
-
markFlagAsAccessed(
|
|
1301
|
+
markFlagAsAccessed(70, "shouldTriggerResponderTransferOnScrollAndroid");
|
|
1284
1302
|
|
|
1285
1303
|
flagValue = currentProvider_->shouldTriggerResponderTransferOnScrollAndroid();
|
|
1286
1304
|
shouldTriggerResponderTransferOnScrollAndroid_ = flagValue;
|
|
@@ -1298,7 +1316,7 @@ bool ReactNativeFeatureFlagsAccessor::skipActivityIdentityAssertionOnHostPause()
|
|
|
1298
1316
|
// be accessing the provider multiple times but the end state of this
|
|
1299
1317
|
// instance and the returned flag value would be the same.
|
|
1300
1318
|
|
|
1301
|
-
markFlagAsAccessed(
|
|
1319
|
+
markFlagAsAccessed(71, "skipActivityIdentityAssertionOnHostPause");
|
|
1302
1320
|
|
|
1303
1321
|
flagValue = currentProvider_->skipActivityIdentityAssertionOnHostPause();
|
|
1304
1322
|
skipActivityIdentityAssertionOnHostPause_ = flagValue;
|
|
@@ -1316,7 +1334,7 @@ bool ReactNativeFeatureFlagsAccessor::traceTurboModulePromiseRejectionsOnAndroid
|
|
|
1316
1334
|
// be accessing the provider multiple times but the end state of this
|
|
1317
1335
|
// instance and the returned flag value would be the same.
|
|
1318
1336
|
|
|
1319
|
-
markFlagAsAccessed(
|
|
1337
|
+
markFlagAsAccessed(72, "traceTurboModulePromiseRejectionsOnAndroid");
|
|
1320
1338
|
|
|
1321
1339
|
flagValue = currentProvider_->traceTurboModulePromiseRejectionsOnAndroid();
|
|
1322
1340
|
traceTurboModulePromiseRejectionsOnAndroid_ = flagValue;
|
|
@@ -1334,7 +1352,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommit(
|
|
|
1334
1352
|
// be accessing the provider multiple times but the end state of this
|
|
1335
1353
|
// instance and the returned flag value would be the same.
|
|
1336
1354
|
|
|
1337
|
-
markFlagAsAccessed(
|
|
1355
|
+
markFlagAsAccessed(73, "updateRuntimeShadowNodeReferencesOnCommit");
|
|
1338
1356
|
|
|
1339
1357
|
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommit();
|
|
1340
1358
|
updateRuntimeShadowNodeReferencesOnCommit_ = flagValue;
|
|
@@ -1352,7 +1370,7 @@ bool ReactNativeFeatureFlagsAccessor::useAlwaysAvailableJSErrorHandling() {
|
|
|
1352
1370
|
// be accessing the provider multiple times but the end state of this
|
|
1353
1371
|
// instance and the returned flag value would be the same.
|
|
1354
1372
|
|
|
1355
|
-
markFlagAsAccessed(
|
|
1373
|
+
markFlagAsAccessed(74, "useAlwaysAvailableJSErrorHandling");
|
|
1356
1374
|
|
|
1357
1375
|
flagValue = currentProvider_->useAlwaysAvailableJSErrorHandling();
|
|
1358
1376
|
useAlwaysAvailableJSErrorHandling_ = flagValue;
|
|
@@ -1370,7 +1388,7 @@ bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
|
|
|
1370
1388
|
// be accessing the provider multiple times but the end state of this
|
|
1371
1389
|
// instance and the returned flag value would be the same.
|
|
1372
1390
|
|
|
1373
|
-
markFlagAsAccessed(
|
|
1391
|
+
markFlagAsAccessed(75, "useFabricInterop");
|
|
1374
1392
|
|
|
1375
1393
|
flagValue = currentProvider_->useFabricInterop();
|
|
1376
1394
|
useFabricInterop_ = flagValue;
|
|
@@ -1388,7 +1406,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeEqualsInNativeReadableArrayAndroi
|
|
|
1388
1406
|
// be accessing the provider multiple times but the end state of this
|
|
1389
1407
|
// instance and the returned flag value would be the same.
|
|
1390
1408
|
|
|
1391
|
-
markFlagAsAccessed(
|
|
1409
|
+
markFlagAsAccessed(76, "useNativeEqualsInNativeReadableArrayAndroid");
|
|
1392
1410
|
|
|
1393
1411
|
flagValue = currentProvider_->useNativeEqualsInNativeReadableArrayAndroid();
|
|
1394
1412
|
useNativeEqualsInNativeReadableArrayAndroid_ = flagValue;
|
|
@@ -1406,7 +1424,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeTransformHelperAndroid() {
|
|
|
1406
1424
|
// be accessing the provider multiple times but the end state of this
|
|
1407
1425
|
// instance and the returned flag value would be the same.
|
|
1408
1426
|
|
|
1409
|
-
markFlagAsAccessed(
|
|
1427
|
+
markFlagAsAccessed(77, "useNativeTransformHelperAndroid");
|
|
1410
1428
|
|
|
1411
1429
|
flagValue = currentProvider_->useNativeTransformHelperAndroid();
|
|
1412
1430
|
useNativeTransformHelperAndroid_ = flagValue;
|
|
@@ -1424,7 +1442,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeViewConfigsInBridgelessMode() {
|
|
|
1424
1442
|
// be accessing the provider multiple times but the end state of this
|
|
1425
1443
|
// instance and the returned flag value would be the same.
|
|
1426
1444
|
|
|
1427
|
-
markFlagAsAccessed(
|
|
1445
|
+
markFlagAsAccessed(78, "useNativeViewConfigsInBridgelessMode");
|
|
1428
1446
|
|
|
1429
1447
|
flagValue = currentProvider_->useNativeViewConfigsInBridgelessMode();
|
|
1430
1448
|
useNativeViewConfigsInBridgelessMode_ = flagValue;
|
|
@@ -1442,7 +1460,7 @@ bool ReactNativeFeatureFlagsAccessor::useRawPropsJsiValue() {
|
|
|
1442
1460
|
// be accessing the provider multiple times but the end state of this
|
|
1443
1461
|
// instance and the returned flag value would be the same.
|
|
1444
1462
|
|
|
1445
|
-
markFlagAsAccessed(
|
|
1463
|
+
markFlagAsAccessed(79, "useRawPropsJsiValue");
|
|
1446
1464
|
|
|
1447
1465
|
flagValue = currentProvider_->useRawPropsJsiValue();
|
|
1448
1466
|
useRawPropsJsiValue_ = flagValue;
|
|
@@ -1460,7 +1478,7 @@ bool ReactNativeFeatureFlagsAccessor::useShadowNodeStateOnClone() {
|
|
|
1460
1478
|
// be accessing the provider multiple times but the end state of this
|
|
1461
1479
|
// instance and the returned flag value would be the same.
|
|
1462
1480
|
|
|
1463
|
-
markFlagAsAccessed(
|
|
1481
|
+
markFlagAsAccessed(80, "useShadowNodeStateOnClone");
|
|
1464
1482
|
|
|
1465
1483
|
flagValue = currentProvider_->useShadowNodeStateOnClone();
|
|
1466
1484
|
useShadowNodeStateOnClone_ = flagValue;
|
|
@@ -1478,7 +1496,7 @@ bool ReactNativeFeatureFlagsAccessor::useSharedAnimatedBackend() {
|
|
|
1478
1496
|
// be accessing the provider multiple times but the end state of this
|
|
1479
1497
|
// instance and the returned flag value would be the same.
|
|
1480
1498
|
|
|
1481
|
-
markFlagAsAccessed(
|
|
1499
|
+
markFlagAsAccessed(81, "useSharedAnimatedBackend");
|
|
1482
1500
|
|
|
1483
1501
|
flagValue = currentProvider_->useSharedAnimatedBackend();
|
|
1484
1502
|
useSharedAnimatedBackend_ = flagValue;
|
|
@@ -1496,7 +1514,7 @@ bool ReactNativeFeatureFlagsAccessor::useTraitHiddenOnAndroid() {
|
|
|
1496
1514
|
// be accessing the provider multiple times but the end state of this
|
|
1497
1515
|
// instance and the returned flag value would be the same.
|
|
1498
1516
|
|
|
1499
|
-
markFlagAsAccessed(
|
|
1517
|
+
markFlagAsAccessed(82, "useTraitHiddenOnAndroid");
|
|
1500
1518
|
|
|
1501
1519
|
flagValue = currentProvider_->useTraitHiddenOnAndroid();
|
|
1502
1520
|
useTraitHiddenOnAndroid_ = flagValue;
|
|
@@ -1514,7 +1532,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModuleInterop() {
|
|
|
1514
1532
|
// be accessing the provider multiple times but the end state of this
|
|
1515
1533
|
// instance and the returned flag value would be the same.
|
|
1516
1534
|
|
|
1517
|
-
markFlagAsAccessed(
|
|
1535
|
+
markFlagAsAccessed(83, "useTurboModuleInterop");
|
|
1518
1536
|
|
|
1519
1537
|
flagValue = currentProvider_->useTurboModuleInterop();
|
|
1520
1538
|
useTurboModuleInterop_ = flagValue;
|
|
@@ -1532,7 +1550,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModules() {
|
|
|
1532
1550
|
// be accessing the provider multiple times but the end state of this
|
|
1533
1551
|
// instance and the returned flag value would be the same.
|
|
1534
1552
|
|
|
1535
|
-
markFlagAsAccessed(
|
|
1553
|
+
markFlagAsAccessed(84, "useTurboModules");
|
|
1536
1554
|
|
|
1537
1555
|
flagValue = currentProvider_->useTurboModules();
|
|
1538
1556
|
useTurboModules_ = flagValue;
|
|
@@ -1550,7 +1568,7 @@ double ReactNativeFeatureFlagsAccessor::viewCullingOutsetRatio() {
|
|
|
1550
1568
|
// be accessing the provider multiple times but the end state of this
|
|
1551
1569
|
// instance and the returned flag value would be the same.
|
|
1552
1570
|
|
|
1553
|
-
markFlagAsAccessed(
|
|
1571
|
+
markFlagAsAccessed(85, "viewCullingOutsetRatio");
|
|
1554
1572
|
|
|
1555
1573
|
flagValue = currentProvider_->viewCullingOutsetRatio();
|
|
1556
1574
|
viewCullingOutsetRatio_ = flagValue;
|
|
@@ -1568,7 +1586,7 @@ double ReactNativeFeatureFlagsAccessor::virtualViewHysteresisRatio() {
|
|
|
1568
1586
|
// be accessing the provider multiple times but the end state of this
|
|
1569
1587
|
// instance and the returned flag value would be the same.
|
|
1570
1588
|
|
|
1571
|
-
markFlagAsAccessed(
|
|
1589
|
+
markFlagAsAccessed(86, "virtualViewHysteresisRatio");
|
|
1572
1590
|
|
|
1573
1591
|
flagValue = currentProvider_->virtualViewHysteresisRatio();
|
|
1574
1592
|
virtualViewHysteresisRatio_ = flagValue;
|
|
@@ -1586,7 +1604,7 @@ double ReactNativeFeatureFlagsAccessor::virtualViewPrerenderRatio() {
|
|
|
1586
1604
|
// be accessing the provider multiple times but the end state of this
|
|
1587
1605
|
// instance and the returned flag value would be the same.
|
|
1588
1606
|
|
|
1589
|
-
markFlagAsAccessed(
|
|
1607
|
+
markFlagAsAccessed(87, "virtualViewPrerenderRatio");
|
|
1590
1608
|
|
|
1591
1609
|
flagValue = currentProvider_->virtualViewPrerenderRatio();
|
|
1592
1610
|
virtualViewPrerenderRatio_ = flagValue;
|
|
@@ -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<<acef1e4ac15cf78463831e3aeb35b641>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -67,6 +67,7 @@ class ReactNativeFeatureFlagsAccessor {
|
|
|
67
67
|
bool enableImmediateUpdateModeForContentOffsetChanges();
|
|
68
68
|
bool enableImperativeFocus();
|
|
69
69
|
bool enableInteropViewManagerClassLookUpOptimizationIOS();
|
|
70
|
+
bool enableIntersectionObserverByDefault();
|
|
70
71
|
bool enableKeyEvents();
|
|
71
72
|
bool enableLayoutAnimationsOnAndroid();
|
|
72
73
|
bool enableLayoutAnimationsOnIOS();
|
|
@@ -130,7 +131,7 @@ class ReactNativeFeatureFlagsAccessor {
|
|
|
130
131
|
std::unique_ptr<ReactNativeFeatureFlagsProvider> currentProvider_;
|
|
131
132
|
bool wasOverridden_;
|
|
132
133
|
|
|
133
|
-
std::array<std::atomic<const char*>,
|
|
134
|
+
std::array<std::atomic<const char*>, 88> accessedFeatureFlags_;
|
|
134
135
|
|
|
135
136
|
std::atomic<std::optional<bool>> commonTestFlag_;
|
|
136
137
|
std::atomic<std::optional<bool>> cdpInteractionMetricsEnabled_;
|
|
@@ -167,6 +168,7 @@ class ReactNativeFeatureFlagsAccessor {
|
|
|
167
168
|
std::atomic<std::optional<bool>> enableImmediateUpdateModeForContentOffsetChanges_;
|
|
168
169
|
std::atomic<std::optional<bool>> enableImperativeFocus_;
|
|
169
170
|
std::atomic<std::optional<bool>> enableInteropViewManagerClassLookUpOptimizationIOS_;
|
|
171
|
+
std::atomic<std::optional<bool>> enableIntersectionObserverByDefault_;
|
|
170
172
|
std::atomic<std::optional<bool>> enableKeyEvents_;
|
|
171
173
|
std::atomic<std::optional<bool>> enableLayoutAnimationsOnAndroid_;
|
|
172
174
|
std::atomic<std::optional<bool>> enableLayoutAnimationsOnIOS_;
|
|
@@ -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<<18c966119a9b6123aea3b088e0eaf98b>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -167,6 +167,10 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
|
|
167
167
|
return false;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
bool enableIntersectionObserverByDefault() override {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
|
|
170
174
|
bool enableKeyEvents() override {
|
|
171
175
|
return false;
|
|
172
176
|
}
|
|
@@ -300,7 +304,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
|
|
300
304
|
}
|
|
301
305
|
|
|
302
306
|
bool shouldSetEnabledBasedOnAccessibilityState() override {
|
|
303
|
-
return
|
|
307
|
+
return true;
|
|
304
308
|
}
|
|
305
309
|
|
|
306
310
|
bool shouldTriggerResponderTransferOnScrollAndroid() 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<<152ea11685f3770782035b08831ef04d>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -360,6 +360,15 @@ class ReactNativeFeatureFlagsDynamicProvider : public ReactNativeFeatureFlagsDef
|
|
|
360
360
|
return ReactNativeFeatureFlagsDefaults::enableInteropViewManagerClassLookUpOptimizationIOS();
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
bool enableIntersectionObserverByDefault() override {
|
|
364
|
+
auto value = values_["enableIntersectionObserverByDefault"];
|
|
365
|
+
if (!value.isNull()) {
|
|
366
|
+
return value.getBool();
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
return ReactNativeFeatureFlagsDefaults::enableIntersectionObserverByDefault();
|
|
370
|
+
}
|
|
371
|
+
|
|
363
372
|
bool enableKeyEvents() override {
|
|
364
373
|
auto value = values_["enableKeyEvents"];
|
|
365
374
|
if (!value.isNull()) {
|
|
@@ -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<<1b2061068e0d6c9ca362ceddd97862da>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -35,6 +35,10 @@ class ReactNativeFeatureFlagsOverridesOSSCanary : public ReactNativeFeatureFlags
|
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
bool enableIntersectionObserverByDefault() override {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
|
|
38
42
|
bool useNativeViewConfigsInBridgelessMode() override {
|
|
39
43
|
return true;
|
|
40
44
|
}
|
|
@@ -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<<2fe890d6419dc1aaa9aa2d69a6e96bed>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -60,6 +60,7 @@ class ReactNativeFeatureFlagsProvider {
|
|
|
60
60
|
virtual bool enableImmediateUpdateModeForContentOffsetChanges() = 0;
|
|
61
61
|
virtual bool enableImperativeFocus() = 0;
|
|
62
62
|
virtual bool enableInteropViewManagerClassLookUpOptimizationIOS() = 0;
|
|
63
|
+
virtual bool enableIntersectionObserverByDefault() = 0;
|
|
63
64
|
virtual bool enableKeyEvents() = 0;
|
|
64
65
|
virtual bool enableLayoutAnimationsOnAndroid() = 0;
|
|
65
66
|
virtual bool enableLayoutAnimationsOnIOS() = 0;
|
package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm
CHANGED
|
@@ -694,7 +694,7 @@ typedef struct {
|
|
|
694
694
|
} else if (_bridgeProxy) {
|
|
695
695
|
[(id)module setValue:_bridgeProxy forKey:@"bridge"];
|
|
696
696
|
}
|
|
697
|
-
} @catch (NSException *
|
|
697
|
+
} @catch (NSException *) {
|
|
698
698
|
RCTLogError(
|
|
699
699
|
@"%@ has no setter or ivar for its bridge, which is not "
|
|
700
700
|
"permitted. You must either @synthesize the bridge property, "
|
|
@@ -742,7 +742,7 @@ typedef struct {
|
|
|
742
742
|
|
|
743
743
|
@try {
|
|
744
744
|
[(id)module setValue:methodQueue forKey:@"methodQueue"];
|
|
745
|
-
} @catch (NSException *
|
|
745
|
+
} @catch (NSException *) {
|
|
746
746
|
RCTLogError(
|
|
747
747
|
@"%@ has no setter or ivar for its methodQueue, which is not "
|
|
748
748
|
"permitted. You must either @synthesize the methodQueue property, "
|
|
@@ -21,6 +21,7 @@ target_link_libraries(react_nativemodule_defaults
|
|
|
21
21
|
react_nativemodule_featureflags
|
|
22
22
|
react_nativemodule_microtasks
|
|
23
23
|
react_nativemodule_idlecallbacks
|
|
24
|
+
react_nativemodule_intersectionobserver
|
|
24
25
|
react_nativemodule_webperformance
|
|
25
26
|
)
|
|
26
27
|
target_compile_reactnative_options(react_nativemodule_defaults PRIVATE)
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
#include <react/nativemodule/dom/NativeDOM.h>
|
|
11
11
|
#include <react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h>
|
|
12
12
|
#include <react/nativemodule/idlecallbacks/NativeIdleCallbacks.h>
|
|
13
|
+
#include <react/nativemodule/intersectionobserver/NativeIntersectionObserver.h>
|
|
13
14
|
#include <react/nativemodule/microtasks/NativeMicrotasks.h>
|
|
14
15
|
#include <react/nativemodule/webperformance/NativePerformance.h>
|
|
15
16
|
|
|
@@ -44,6 +45,12 @@ namespace facebook::react {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
if (ReactNativeFeatureFlags::enableIntersectionObserverByDefault()) {
|
|
49
|
+
if (name == NativeIntersectionObserver::kModuleName) {
|
|
50
|
+
return std::make_shared<NativeIntersectionObserver>(jsInvoker);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
47
54
|
#ifdef REACT_NATIVE_DEBUGGER_ENABLED_DEVONLY
|
|
48
55
|
if (name == DevToolsRuntimeSettingsModule::kModuleName) {
|
|
49
56
|
return std::make_shared<DevToolsRuntimeSettingsModule>(jsInvoker);
|