react-native-tvos 0.79.3-0 → 0.79.5-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/AppDelegate/RCTReactNativeFactory.mm +0 -4
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTTVRemoteSelectHandler.h +4 -0
- package/React/Base/RCTTVRemoteSelectHandler.m +18 -6
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +51 -19
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI-generated.cpp +0 -6
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +0 -9
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/publish.gradle +5 -3
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +1 -7
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +1 -11
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +1 -12
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Stable_Android.kt +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +20 -36
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +1 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +1 -15
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +1 -4
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +1 -5
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +1 -6
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +8 -26
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +2 -4
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +1 -5
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +1 -10
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +1 -2
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +1 -6
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +1 -3
- package/index.js.flow +115 -0
- package/package.json +9 -8
- package/scripts/cocoapods/utils.rb +8 -3
- package/scripts/codegen/generate-artifacts-executor.js +2 -0
- 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/sdks/hermesc/win64-bin/msvcp140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140_1.dll +0 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +1 -6
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +1 -2
|
@@ -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<<cf0734c38bab916ecaf361bc557b8802>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -261,12 +261,6 @@ class ReactNativeFeatureFlagsProviderHolder
|
|
|
261
261
|
return method(javaProvider_);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
bool useEditTextStockAndroidFocusBehavior() override {
|
|
265
|
-
static const auto method =
|
|
266
|
-
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("useEditTextStockAndroidFocusBehavior");
|
|
267
|
-
return method(javaProvider_);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
264
|
bool useFabricInterop() override {
|
|
271
265
|
static const auto method =
|
|
272
266
|
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("useFabricInterop");
|
|
@@ -498,11 +492,6 @@ bool JReactNativeFeatureFlagsCxxInterop::useAlwaysAvailableJSErrorHandling(
|
|
|
498
492
|
return ReactNativeFeatureFlags::useAlwaysAvailableJSErrorHandling();
|
|
499
493
|
}
|
|
500
494
|
|
|
501
|
-
bool JReactNativeFeatureFlagsCxxInterop::useEditTextStockAndroidFocusBehavior(
|
|
502
|
-
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
|
|
503
|
-
return ReactNativeFeatureFlags::useEditTextStockAndroidFocusBehavior();
|
|
504
|
-
}
|
|
505
|
-
|
|
506
495
|
bool JReactNativeFeatureFlagsCxxInterop::useFabricInterop(
|
|
507
496
|
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
|
|
508
497
|
return ReactNativeFeatureFlags::useFabricInterop();
|
|
@@ -680,9 +669,6 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
|
|
|
680
669
|
makeNativeMethod(
|
|
681
670
|
"useAlwaysAvailableJSErrorHandling",
|
|
682
671
|
JReactNativeFeatureFlagsCxxInterop::useAlwaysAvailableJSErrorHandling),
|
|
683
|
-
makeNativeMethod(
|
|
684
|
-
"useEditTextStockAndroidFocusBehavior",
|
|
685
|
-
JReactNativeFeatureFlagsCxxInterop::useEditTextStockAndroidFocusBehavior),
|
|
686
672
|
makeNativeMethod(
|
|
687
673
|
"useFabricInterop",
|
|
688
674
|
JReactNativeFeatureFlagsCxxInterop::useFabricInterop),
|
|
@@ -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<<f295d109e9a81ce2d2040a5fc89e9ada>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -141,9 +141,6 @@ class JReactNativeFeatureFlagsCxxInterop
|
|
|
141
141
|
static bool useAlwaysAvailableJSErrorHandling(
|
|
142
142
|
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
|
143
143
|
|
|
144
|
-
static bool useEditTextStockAndroidFocusBehavior(
|
|
145
|
-
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
|
146
|
-
|
|
147
144
|
static bool useFabricInterop(
|
|
148
145
|
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);
|
|
149
146
|
|
|
@@ -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<<1c90106ded5dc5f08cdec4dede695341>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -174,10 +174,6 @@ bool ReactNativeFeatureFlags::useAlwaysAvailableJSErrorHandling() {
|
|
|
174
174
|
return getAccessor().useAlwaysAvailableJSErrorHandling();
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
bool ReactNativeFeatureFlags::useEditTextStockAndroidFocusBehavior() {
|
|
178
|
-
return getAccessor().useEditTextStockAndroidFocusBehavior();
|
|
179
|
-
}
|
|
180
|
-
|
|
181
177
|
bool ReactNativeFeatureFlags::useFabricInterop() {
|
|
182
178
|
return getAccessor().useFabricInterop();
|
|
183
179
|
}
|
|
@@ -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<<ce2f5895234f1cfb30374c72db54ccce>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -224,11 +224,6 @@ class ReactNativeFeatureFlags {
|
|
|
224
224
|
*/
|
|
225
225
|
RN_EXPORT static bool useAlwaysAvailableJSErrorHandling();
|
|
226
226
|
|
|
227
|
-
/**
|
|
228
|
-
* If true, focusing in ReactEditText will mainly use stock Android requestFocus() behavior. If false it will use legacy custom focus behavior.
|
|
229
|
-
*/
|
|
230
|
-
RN_EXPORT static bool useEditTextStockAndroidFocusBehavior();
|
|
231
|
-
|
|
232
227
|
/**
|
|
233
228
|
* Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.
|
|
234
229
|
*/
|
|
@@ -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<<f975f6ffd2d6ec5d9057585ac0613c23>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -695,24 +695,6 @@ bool ReactNativeFeatureFlagsAccessor::useAlwaysAvailableJSErrorHandling() {
|
|
|
695
695
|
return flagValue.value();
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
bool ReactNativeFeatureFlagsAccessor::useEditTextStockAndroidFocusBehavior() {
|
|
699
|
-
auto flagValue = useEditTextStockAndroidFocusBehavior_.load();
|
|
700
|
-
|
|
701
|
-
if (!flagValue.has_value()) {
|
|
702
|
-
// This block is not exclusive but it is not necessary.
|
|
703
|
-
// If multiple threads try to initialize the feature flag, we would only
|
|
704
|
-
// be accessing the provider multiple times but the end state of this
|
|
705
|
-
// instance and the returned flag value would be the same.
|
|
706
|
-
|
|
707
|
-
markFlagAsAccessed(37, "useEditTextStockAndroidFocusBehavior");
|
|
708
|
-
|
|
709
|
-
flagValue = currentProvider_->useEditTextStockAndroidFocusBehavior();
|
|
710
|
-
useEditTextStockAndroidFocusBehavior_ = flagValue;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
return flagValue.value();
|
|
714
|
-
}
|
|
715
|
-
|
|
716
698
|
bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
|
|
717
699
|
auto flagValue = useFabricInterop_.load();
|
|
718
700
|
|
|
@@ -722,7 +704,7 @@ bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
|
|
|
722
704
|
// be accessing the provider multiple times but the end state of this
|
|
723
705
|
// instance and the returned flag value would be the same.
|
|
724
706
|
|
|
725
|
-
markFlagAsAccessed(
|
|
707
|
+
markFlagAsAccessed(37, "useFabricInterop");
|
|
726
708
|
|
|
727
709
|
flagValue = currentProvider_->useFabricInterop();
|
|
728
710
|
useFabricInterop_ = flagValue;
|
|
@@ -740,7 +722,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeViewConfigsInBridgelessMode() {
|
|
|
740
722
|
// be accessing the provider multiple times but the end state of this
|
|
741
723
|
// instance and the returned flag value would be the same.
|
|
742
724
|
|
|
743
|
-
markFlagAsAccessed(
|
|
725
|
+
markFlagAsAccessed(38, "useNativeViewConfigsInBridgelessMode");
|
|
744
726
|
|
|
745
727
|
flagValue = currentProvider_->useNativeViewConfigsInBridgelessMode();
|
|
746
728
|
useNativeViewConfigsInBridgelessMode_ = flagValue;
|
|
@@ -758,7 +740,7 @@ bool ReactNativeFeatureFlagsAccessor::useOptimizedEventBatchingOnAndroid() {
|
|
|
758
740
|
// be accessing the provider multiple times but the end state of this
|
|
759
741
|
// instance and the returned flag value would be the same.
|
|
760
742
|
|
|
761
|
-
markFlagAsAccessed(
|
|
743
|
+
markFlagAsAccessed(39, "useOptimizedEventBatchingOnAndroid");
|
|
762
744
|
|
|
763
745
|
flagValue = currentProvider_->useOptimizedEventBatchingOnAndroid();
|
|
764
746
|
useOptimizedEventBatchingOnAndroid_ = flagValue;
|
|
@@ -776,7 +758,7 @@ bool ReactNativeFeatureFlagsAccessor::useRawPropsJsiValue() {
|
|
|
776
758
|
// be accessing the provider multiple times but the end state of this
|
|
777
759
|
// instance and the returned flag value would be the same.
|
|
778
760
|
|
|
779
|
-
markFlagAsAccessed(
|
|
761
|
+
markFlagAsAccessed(40, "useRawPropsJsiValue");
|
|
780
762
|
|
|
781
763
|
flagValue = currentProvider_->useRawPropsJsiValue();
|
|
782
764
|
useRawPropsJsiValue_ = flagValue;
|
|
@@ -794,7 +776,7 @@ bool ReactNativeFeatureFlagsAccessor::useShadowNodeStateOnClone() {
|
|
|
794
776
|
// be accessing the provider multiple times but the end state of this
|
|
795
777
|
// instance and the returned flag value would be the same.
|
|
796
778
|
|
|
797
|
-
markFlagAsAccessed(
|
|
779
|
+
markFlagAsAccessed(41, "useShadowNodeStateOnClone");
|
|
798
780
|
|
|
799
781
|
flagValue = currentProvider_->useShadowNodeStateOnClone();
|
|
800
782
|
useShadowNodeStateOnClone_ = flagValue;
|
|
@@ -812,7 +794,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModuleInterop() {
|
|
|
812
794
|
// be accessing the provider multiple times but the end state of this
|
|
813
795
|
// instance and the returned flag value would be the same.
|
|
814
796
|
|
|
815
|
-
markFlagAsAccessed(
|
|
797
|
+
markFlagAsAccessed(42, "useTurboModuleInterop");
|
|
816
798
|
|
|
817
799
|
flagValue = currentProvider_->useTurboModuleInterop();
|
|
818
800
|
useTurboModuleInterop_ = flagValue;
|
|
@@ -830,7 +812,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModules() {
|
|
|
830
812
|
// be accessing the provider multiple times but the end state of this
|
|
831
813
|
// instance and the returned flag value would be the same.
|
|
832
814
|
|
|
833
|
-
markFlagAsAccessed(
|
|
815
|
+
markFlagAsAccessed(43, "useTurboModules");
|
|
834
816
|
|
|
835
817
|
flagValue = currentProvider_->useTurboModules();
|
|
836
818
|
useTurboModules_ = 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<<978f828e7368b8802f8eaa5194e86e2f>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -69,7 +69,6 @@ class ReactNativeFeatureFlagsAccessor {
|
|
|
69
69
|
bool traceTurboModulePromiseRejectionsOnAndroid();
|
|
70
70
|
bool updateRuntimeShadowNodeReferencesOnCommit();
|
|
71
71
|
bool useAlwaysAvailableJSErrorHandling();
|
|
72
|
-
bool useEditTextStockAndroidFocusBehavior();
|
|
73
72
|
bool useFabricInterop();
|
|
74
73
|
bool useNativeViewConfigsInBridgelessMode();
|
|
75
74
|
bool useOptimizedEventBatchingOnAndroid();
|
|
@@ -88,7 +87,7 @@ class ReactNativeFeatureFlagsAccessor {
|
|
|
88
87
|
std::unique_ptr<ReactNativeFeatureFlagsProvider> currentProvider_;
|
|
89
88
|
bool wasOverridden_;
|
|
90
89
|
|
|
91
|
-
std::array<std::atomic<const char*>,
|
|
90
|
+
std::array<std::atomic<const char*>, 44> accessedFeatureFlags_;
|
|
92
91
|
|
|
93
92
|
std::atomic<std::optional<bool>> commonTestFlag_;
|
|
94
93
|
std::atomic<std::optional<bool>> disableMountItemReorderingAndroid_;
|
|
@@ -127,7 +126,6 @@ class ReactNativeFeatureFlagsAccessor {
|
|
|
127
126
|
std::atomic<std::optional<bool>> traceTurboModulePromiseRejectionsOnAndroid_;
|
|
128
127
|
std::atomic<std::optional<bool>> updateRuntimeShadowNodeReferencesOnCommit_;
|
|
129
128
|
std::atomic<std::optional<bool>> useAlwaysAvailableJSErrorHandling_;
|
|
130
|
-
std::atomic<std::optional<bool>> useEditTextStockAndroidFocusBehavior_;
|
|
131
129
|
std::atomic<std::optional<bool>> useFabricInterop_;
|
|
132
130
|
std::atomic<std::optional<bool>> useNativeViewConfigsInBridgelessMode_;
|
|
133
131
|
std::atomic<std::optional<bool>> useOptimizedEventBatchingOnAndroid_;
|
|
@@ -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<<643c1fd24fbc1a77ef109e712023f9d5>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -175,10 +175,6 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
|
|
|
175
175
|
return false;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
bool useEditTextStockAndroidFocusBehavior() override {
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
178
|
bool useFabricInterop() override {
|
|
183
179
|
return false;
|
|
184
180
|
}
|
|
@@ -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<<a0aeb1ef5255e98ab3df8e892a6147f4>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -378,15 +378,6 @@ class ReactNativeFeatureFlagsDynamicProvider : public ReactNativeFeatureFlagsDef
|
|
|
378
378
|
return ReactNativeFeatureFlagsDefaults::useAlwaysAvailableJSErrorHandling();
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
bool useEditTextStockAndroidFocusBehavior() override {
|
|
382
|
-
auto value = values_["useEditTextStockAndroidFocusBehavior"];
|
|
383
|
-
if (!value.isNull()) {
|
|
384
|
-
return value.getBool();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
return ReactNativeFeatureFlagsDefaults::useEditTextStockAndroidFocusBehavior();
|
|
388
|
-
}
|
|
389
|
-
|
|
390
381
|
bool useFabricInterop() override {
|
|
391
382
|
auto value = values_["useFabricInterop"];
|
|
392
383
|
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<<4db2ff36701f0dbcd3dd59fa5879a612>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -62,7 +62,6 @@ class ReactNativeFeatureFlagsProvider {
|
|
|
62
62
|
virtual bool traceTurboModulePromiseRejectionsOnAndroid() = 0;
|
|
63
63
|
virtual bool updateRuntimeShadowNodeReferencesOnCommit() = 0;
|
|
64
64
|
virtual bool useAlwaysAvailableJSErrorHandling() = 0;
|
|
65
|
-
virtual bool useEditTextStockAndroidFocusBehavior() = 0;
|
|
66
65
|
virtual bool useFabricInterop() = 0;
|
|
67
66
|
virtual bool useNativeViewConfigsInBridgelessMode() = 0;
|
|
68
67
|
virtual bool useOptimizedEventBatchingOnAndroid() = 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<<4f6ee8b8bae8ea84fab77eb9feb63f9d>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -229,11 +229,6 @@ bool NativeReactNativeFeatureFlags::useAlwaysAvailableJSErrorHandling(
|
|
|
229
229
|
return ReactNativeFeatureFlags::useAlwaysAvailableJSErrorHandling();
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
bool NativeReactNativeFeatureFlags::useEditTextStockAndroidFocusBehavior(
|
|
233
|
-
jsi::Runtime& /*runtime*/) {
|
|
234
|
-
return ReactNativeFeatureFlags::useEditTextStockAndroidFocusBehavior();
|
|
235
|
-
}
|
|
236
|
-
|
|
237
232
|
bool NativeReactNativeFeatureFlags::useFabricInterop(
|
|
238
233
|
jsi::Runtime& /*runtime*/) {
|
|
239
234
|
return ReactNativeFeatureFlags::useFabricInterop();
|
|
@@ -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<<0009cf8a05d254e3695e7ce57fc5f8af>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -111,8 +111,6 @@ class NativeReactNativeFeatureFlags
|
|
|
111
111
|
|
|
112
112
|
bool useAlwaysAvailableJSErrorHandling(jsi::Runtime& runtime);
|
|
113
113
|
|
|
114
|
-
bool useEditTextStockAndroidFocusBehavior(jsi::Runtime& runtime);
|
|
115
|
-
|
|
116
114
|
bool useFabricInterop(jsi::Runtime& runtime);
|
|
117
115
|
|
|
118
116
|
bool useNativeViewConfigsInBridgelessMode(jsi::Runtime& runtime);
|
package/index.js.flow
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
* @format
|
|
8
|
+
* @flow strict-local
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// ----------------------------------------------------------------------------
|
|
12
|
+
// Types entry point for react-native.
|
|
13
|
+
//
|
|
14
|
+
// IMPORTANT: Keep this file in sync with index.js. Test your changes whenever
|
|
15
|
+
// updating React Native's public API.
|
|
16
|
+
// ----------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
// TODO(T215317597): Reconsider the pre-existing grouping of these APIs
|
|
19
|
+
|
|
20
|
+
export type {HostInstance} from './src/private/types/HostInstance';
|
|
21
|
+
export type {HostComponent} from './src/private/types/HostComponent';
|
|
22
|
+
export {default as registerCallableModule} from './Libraries/Core/registerCallableModule';
|
|
23
|
+
|
|
24
|
+
/// <reference path="src/types/globals.d.ts" />
|
|
25
|
+
|
|
26
|
+
// #region Components
|
|
27
|
+
|
|
28
|
+
export {default as AccessibilityInfo} from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
|
|
29
|
+
export {default as ActivityIndicator} from './Libraries/Components/ActivityIndicator/ActivityIndicator';
|
|
30
|
+
export {default as Button} from './Libraries/Components/Button';
|
|
31
|
+
export {default as DrawerLayoutAndroid} from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
|
|
32
|
+
export {default as experimental_LayoutConformance} from './Libraries/Components/LayoutConformance/LayoutConformance';
|
|
33
|
+
export {default as FlatList} from './Libraries/Lists/FlatList';
|
|
34
|
+
export {default as Image} from './Libraries/Image/Image';
|
|
35
|
+
export {default as ImageBackground} from './Libraries/Image/ImageBackground';
|
|
36
|
+
export {default as InputAccessoryView} from './Libraries/Components/TextInput/InputAccessoryView';
|
|
37
|
+
export {default as KeyboardAvoidingView} from './Libraries/Components/Keyboard/KeyboardAvoidingView';
|
|
38
|
+
export {default as Modal} from './Libraries/Modal/Modal';
|
|
39
|
+
export {default as Pressable} from './Libraries/Components/Pressable/Pressable';
|
|
40
|
+
export {default as ProgressBarAndroid} from './Libraries/Components/ProgressBarAndroid/ProgressBarAndroid';
|
|
41
|
+
export {default as RefreshControl} from './Libraries/Components/RefreshControl/RefreshControl';
|
|
42
|
+
export {default as SafeAreaView} from './Libraries/Components/SafeAreaView/SafeAreaView';
|
|
43
|
+
export {default as ScrollView} from './Libraries/Components/ScrollView/ScrollView';
|
|
44
|
+
export {default as SectionList} from './Libraries/Lists/SectionList';
|
|
45
|
+
export {default as StatusBar} from './Libraries/Components/StatusBar/StatusBar';
|
|
46
|
+
export {default as Switch} from './Libraries/Components/Switch/Switch';
|
|
47
|
+
export {default as Text} from './Libraries/Text/Text';
|
|
48
|
+
export {default as TextInput} from './Libraries/Components/TextInput/TextInput';
|
|
49
|
+
export {default as Touchable} from './Libraries/Components/Touchable/Touchable';
|
|
50
|
+
export {default as TouchableHighlight} from './Libraries/Components/Touchable/TouchableHighlight';
|
|
51
|
+
export {default as TouchableNativeFeedback} from './Libraries/Components/Touchable/TouchableNativeFeedback';
|
|
52
|
+
export {default as TouchableOpacity} from './Libraries/Components/Touchable/TouchableOpacity';
|
|
53
|
+
export {default as TouchableWithoutFeedback} from './Libraries/Components/Touchable/TouchableWithoutFeedback';
|
|
54
|
+
export {default as View} from './Libraries/Components/View/View';
|
|
55
|
+
export {default as VirtualizedList} from './Libraries/Lists/VirtualizedList';
|
|
56
|
+
export {default as VirtualizedSectionList} from './Libraries/Lists/VirtualizedSectionList';
|
|
57
|
+
|
|
58
|
+
// #endregion
|
|
59
|
+
// #region APIs
|
|
60
|
+
|
|
61
|
+
export {default as ActionSheetIOS} from './Libraries/ActionSheetIOS/ActionSheetIOS';
|
|
62
|
+
export {default as Alert} from './Libraries/Alert/Alert';
|
|
63
|
+
export {default as Animated} from './Libraries/Animated/Animated';
|
|
64
|
+
export * as Appearance from './Libraries/Utilities/Appearance';
|
|
65
|
+
export {default as AppRegistry} from './Libraries/ReactNative/AppRegistry';
|
|
66
|
+
export {default as AppState} from './Libraries/AppState/AppState';
|
|
67
|
+
export {default as BackHandler} from './Libraries/Utilities/BackHandler';
|
|
68
|
+
export {default as Clipboard} from './Libraries/Components/Clipboard/Clipboard';
|
|
69
|
+
export {default as DeviceInfo} from './Libraries/Utilities/DeviceInfo';
|
|
70
|
+
export {default as DevMenu} from './src/private/devmenu/DevMenu';
|
|
71
|
+
export {default as DevSettings} from './Libraries/Utilities/DevSettings';
|
|
72
|
+
export {default as Dimensions} from './Libraries/Utilities/Dimensions';
|
|
73
|
+
export {default as Easing} from './Libraries/Animated/Easing';
|
|
74
|
+
export {findNodeHandle} from './Libraries/ReactNative/RendererProxy';
|
|
75
|
+
export {default as I18nManager} from './Libraries/ReactNative/I18nManager';
|
|
76
|
+
export {default as InteractionManager} from './Libraries/Interaction/InteractionManager';
|
|
77
|
+
export {default as Keyboard} from './Libraries/Components/Keyboard/Keyboard';
|
|
78
|
+
export {default as LayoutAnimation} from './Libraries/LayoutAnimation/LayoutAnimation';
|
|
79
|
+
export {default as Linking} from './Libraries/Linking/Linking';
|
|
80
|
+
export {default as LogBox} from './Libraries/LogBox/LogBox';
|
|
81
|
+
export {default as NativeDialogManagerAndroid} from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
|
|
82
|
+
export {default as NativeEventEmitter} from './Libraries/EventEmitter/NativeEventEmitter';
|
|
83
|
+
export {default as Networking} from './Libraries/Network/RCTNetworking';
|
|
84
|
+
export {default as PanResponder} from './Libraries/Interaction/PanResponder';
|
|
85
|
+
export {default as PermissionsAndroid} from './Libraries/PermissionsAndroid/PermissionsAndroid';
|
|
86
|
+
export {default as PixelRatio} from './Libraries/Utilities/PixelRatio';
|
|
87
|
+
export {default as PushNotificationIOS} from './Libraries/PushNotificationIOS/PushNotificationIOS';
|
|
88
|
+
export {default as Settings} from './Libraries/Settings/Settings';
|
|
89
|
+
export {default as Share} from './Libraries/Share/Share';
|
|
90
|
+
export {default as StyleSheet} from './Libraries/StyleSheet/StyleSheet';
|
|
91
|
+
export * as Systrace from './Libraries/Performance/Systrace';
|
|
92
|
+
export {default as ToastAndroid} from './Libraries/Components/ToastAndroid/ToastAndroid';
|
|
93
|
+
export * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistry';
|
|
94
|
+
export {default as UIManager} from './Libraries/ReactNative/UIManager';
|
|
95
|
+
export {unstable_batchedUpdates} from './Libraries/ReactNative/RendererProxy';
|
|
96
|
+
export {default as useAnimatedValue} from './Libraries/Animated/useAnimatedValue';
|
|
97
|
+
export {default as useColorScheme} from './Libraries/Utilities/useColorScheme';
|
|
98
|
+
export {default as useWindowDimensions} from './Libraries/Utilities/useWindowDimensions';
|
|
99
|
+
export {default as UTFSequence} from './Libraries/UTFSequence';
|
|
100
|
+
export {default as Vibration} from './Libraries/Vibration/Vibration';
|
|
101
|
+
|
|
102
|
+
// #endregion
|
|
103
|
+
// #region Plugins
|
|
104
|
+
|
|
105
|
+
export {default as DeviceEventEmitter} from './Libraries/EventEmitter/RCTDeviceEventEmitter';
|
|
106
|
+
export {DynamicColorIOS} from './Libraries/StyleSheet/PlatformColorValueTypesIOS';
|
|
107
|
+
export {default as NativeAppEventEmitter} from './Libraries/EventEmitter/RCTNativeAppEventEmitter';
|
|
108
|
+
export {default as NativeModules} from './Libraries/BatchedBridge/NativeModules';
|
|
109
|
+
export {default as Platform} from './Libraries/Utilities/Platform';
|
|
110
|
+
export {PlatformColor} from './Libraries/StyleSheet/PlatformColorValueTypes';
|
|
111
|
+
export {default as processColor} from './Libraries/StyleSheet/processColor';
|
|
112
|
+
export {default as requireNativeComponent} from './Libraries/ReactNative/requireNativeComponent';
|
|
113
|
+
export {RootTagContext} from './Libraries/ReactNative/RootTag';
|
|
114
|
+
|
|
115
|
+
// #endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.5-0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"gradle.properties",
|
|
43
43
|
"gradle/libs.versions.toml",
|
|
44
44
|
"index.js",
|
|
45
|
+
"index.js.flow",
|
|
45
46
|
"interface.js",
|
|
46
47
|
"jest-preset.js",
|
|
47
48
|
"jest",
|
|
@@ -112,12 +113,12 @@
|
|
|
112
113
|
},
|
|
113
114
|
"dependencies": {
|
|
114
115
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
115
|
-
"@react-native/assets-registry": "0.79.
|
|
116
|
-
"@react-native/codegen": "0.79.
|
|
117
|
-
"@react-native/community-cli-plugin": "0.79.
|
|
118
|
-
"@react-native/gradle-plugin": "0.79.
|
|
119
|
-
"@react-native/js-polyfills": "0.79.
|
|
120
|
-
"@react-native/normalize-colors": "0.79.
|
|
116
|
+
"@react-native/assets-registry": "0.79.5",
|
|
117
|
+
"@react-native/codegen": "0.79.5",
|
|
118
|
+
"@react-native/community-cli-plugin": "0.79.5",
|
|
119
|
+
"@react-native/gradle-plugin": "0.79.5",
|
|
120
|
+
"@react-native/js-polyfills": "0.79.5",
|
|
121
|
+
"@react-native/normalize-colors": "0.79.5",
|
|
121
122
|
"abort-controller": "^3.0.0",
|
|
122
123
|
"anser": "^1.4.9",
|
|
123
124
|
"ansi-regex": "^5.0.0",
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
"whatwg-fetch": "^3.0.0",
|
|
147
148
|
"ws": "^6.2.3",
|
|
148
149
|
"yargs": "^17.6.2",
|
|
149
|
-
"@react-native-tvos/virtualized-lists": "0.79.
|
|
150
|
+
"@react-native-tvos/virtualized-lists": "0.79.5-0"
|
|
150
151
|
},
|
|
151
152
|
"codegenConfig": {
|
|
152
153
|
"libraries": [
|
|
@@ -58,7 +58,7 @@ class ReactNativePodsUtils
|
|
|
58
58
|
# this is needed for Xcode 14, see more details here https://github.com/facebook/react-native/issues/34673
|
|
59
59
|
# we should be able to remove this once CocoaPods catches up to it, see more details here https://github.com/CocoaPods/CocoaPods/issues/11402
|
|
60
60
|
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
|
|
61
|
-
if
|
|
61
|
+
if target_installation_result.target.root_spec.name == 'React-Core'
|
|
62
62
|
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
|
|
63
63
|
resource_bundle_target.build_configurations.each do |config|
|
|
64
64
|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
|
|
@@ -200,7 +200,12 @@ class ReactNativePodsUtils
|
|
|
200
200
|
|
|
201
201
|
def self.add_build_settings_to_pod(installer, settings_name, settings_value, target_pod_name, configuration_type)
|
|
202
202
|
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
|
|
203
|
-
|
|
203
|
+
# https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/target/pod_target.rb
|
|
204
|
+
# In multitarget project, pod_name may contain scope_suffix, namely: platform, OS version, swift version, etc.
|
|
205
|
+
# E.g. hermes-engine-tvOS16.0
|
|
206
|
+
# Root spec name is the original pod name, without any scope suffix.
|
|
207
|
+
original_pod_name = target_installation_result.target.root_spec.name
|
|
208
|
+
if original_pod_name == target_pod_name
|
|
204
209
|
target_installation_result.native_target.build_configurations.each do |config|
|
|
205
210
|
if configuration_type == nil || (configuration_type != nil && config.type == configuration_type)
|
|
206
211
|
config.build_settings[settings_name] ||= '$(inherited) '
|
|
@@ -371,7 +376,7 @@ class ReactNativePodsUtils
|
|
|
371
376
|
|
|
372
377
|
# Set "RCT_DYNAMIC_FRAMEWORKS=1" if pod are installed with USE_FRAMEWORKS=dynamic
|
|
373
378
|
# This helps with backward compatibility.
|
|
374
|
-
if
|
|
379
|
+
if target_installation_result.target.root_spec.name == 'React-RCTFabric' && ENV['USE_FRAMEWORKS'] == 'dynamic'
|
|
375
380
|
Pod::UI.puts "Setting -DRCT_DYNAMIC_FRAMEWORKS=1 to React-RCTFabric".green
|
|
376
381
|
rct_dynamic_framework_flag = " -DRCT_DYNAMIC_FRAMEWORKS=1"
|
|
377
382
|
target_installation_result.native_target.build_configurations.each do |config|
|
|
@@ -198,6 +198,7 @@ function printDeprecationWarningIfNeeded(dependency) {
|
|
|
198
198
|
function extractLibrariesFromConfigurationArray(configFile, dependencyPath) {
|
|
199
199
|
return configFile.codegenConfig.libraries.map(config => {
|
|
200
200
|
return {
|
|
201
|
+
name: config.name,
|
|
201
202
|
config,
|
|
202
203
|
libraryPath: dependencyPath,
|
|
203
204
|
};
|
|
@@ -213,6 +214,7 @@ function extractLibrariesFromJSON(configFile, dependencyPath) {
|
|
|
213
214
|
const config = configFile.codegenConfig;
|
|
214
215
|
return [
|
|
215
216
|
{
|
|
217
|
+
name: configFile.name,
|
|
216
218
|
config,
|
|
217
219
|
libraryPath: dependencyPath,
|
|
218
220
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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<<a28a3b729eaeee7ba3b1c2105d277286>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -86,7 +86,6 @@ export type ReactNativeFeatureFlags = $ReadOnly<{
|
|
|
86
86
|
traceTurboModulePromiseRejectionsOnAndroid: Getter<boolean>,
|
|
87
87
|
updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean>,
|
|
88
88
|
useAlwaysAvailableJSErrorHandling: Getter<boolean>,
|
|
89
|
-
useEditTextStockAndroidFocusBehavior: Getter<boolean>,
|
|
90
89
|
useFabricInterop: Getter<boolean>,
|
|
91
90
|
useNativeViewConfigsInBridgelessMode: Getter<boolean>,
|
|
92
91
|
useOptimizedEventBatchingOnAndroid: Getter<boolean>,
|
|
@@ -323,10 +322,6 @@ export const updateRuntimeShadowNodeReferencesOnCommit: Getter<boolean> = create
|
|
|
323
322
|
* In Bridgeless mode, use the always available javascript error reporting pipeline.
|
|
324
323
|
*/
|
|
325
324
|
export const useAlwaysAvailableJSErrorHandling: Getter<boolean> = createNativeFlagGetter('useAlwaysAvailableJSErrorHandling', false);
|
|
326
|
-
/**
|
|
327
|
-
* If true, focusing in ReactEditText will mainly use stock Android requestFocus() behavior. If false it will use legacy custom focus behavior.
|
|
328
|
-
*/
|
|
329
|
-
export const useEditTextStockAndroidFocusBehavior: Getter<boolean> = createNativeFlagGetter('useEditTextStockAndroidFocusBehavior', true);
|
|
330
325
|
/**
|
|
331
326
|
* Should this application enable the Fabric Interop Layer for Android? If yes, the application will behave so that it can accept non-Fabric components and render them on Fabric. This toggle is controlling extra logic such as custom event dispatching that are needed for the Fabric Interop Layer to work correctly.
|
|
332
327
|
*/
|
|
@@ -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<<2499cbe243c048d9e3647342ebec3544>>
|
|
8
8
|
* @flow strict
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -61,7 +61,6 @@ export interface Spec extends TurboModule {
|
|
|
61
61
|
+traceTurboModulePromiseRejectionsOnAndroid?: () => boolean;
|
|
62
62
|
+updateRuntimeShadowNodeReferencesOnCommit?: () => boolean;
|
|
63
63
|
+useAlwaysAvailableJSErrorHandling?: () => boolean;
|
|
64
|
-
+useEditTextStockAndroidFocusBehavior?: () => boolean;
|
|
65
64
|
+useFabricInterop?: () => boolean;
|
|
66
65
|
+useNativeViewConfigsInBridgelessMode?: () => boolean;
|
|
67
66
|
+useOptimizedEventBatchingOnAndroid?: () => boolean;
|