react-native-tvos 0.83.6-0 → 0.83.10-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/ActionSheetIOS/React-RCTActionSheet.podspec +1 -1
- package/Libraries/Animated/components/AnimatedScrollView.js +1 -1
- package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Components/Button.js +2 -2
- package/Libraries/Components/ScrollView/ScrollView.d.ts +1 -1
- package/Libraries/Components/ScrollView/ScrollView.js +1 -1
- package/Libraries/Components/TV/TVViewPropTypes.js +9 -0
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
- package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
- package/Libraries/Components/View/View.js +7 -3
- package/Libraries/Components/View/ViewAccessibility.d.ts +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +1 -1
- package/Libraries/Core/setUpNavigator.js +1 -1
- package/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +1 -1
- package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
- package/Libraries/Image/ImageSource.d.ts +1 -1
- package/Libraries/Image/RCTImageLoader.mm +1 -1
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Interaction/PanResponder.js +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/NativeComponent/TVViewConfig.js +1 -0
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/Renderer/README.md +2 -2
- package/Libraries/Required/RCTRequired.podspec +1 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Text/React-RCTText.podspec +1 -1
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/Utilities/PolyfillFunctions.js +1 -1
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/README-core.md +6 -6
- package/README.md +13 -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 +2 -1
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +24 -0
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +49 -17
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +12 -1
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +35 -7
- package/React/React-RCTFBReactNativeSpec.podspec +1 -1
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Runtime/React-RCTRuntime.podspec +1 -1
- package/React/Tests/Mounting/RCTViewComponentViewTests.mm +145 -0
- package/React/Views/ScrollView/RCTScrollView.m +1 -1
- package/React-Core.podspec +1 -1
- package/React.podspec +1 -1
- package/ReactAndroid/build.gradle.kts +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/hermes-engine/build.gradle.kts +6 -0
- package/ReactAndroid/publish.gradle +20 -46
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +99 -9
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/InspectorNetworkHelper.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +2 -2
- 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/core/JavaTimerManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactAndroidHWInputDeviceHelper.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +46 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextSelectionWatcher.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +5 -0
- package/ReactAndroid/src/main/jni/CMakeLists.txt +7 -0
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocket.cpp +29 -2
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +43 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +10 -1
- package/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +1 -1
- package/ReactApple/RCTSwiftUI/RCTSwiftUI.podspec +1 -1
- package/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIWrapper.podspec +1 -1
- package/ReactCommon/React-Fabric.podspec +7 -1
- package/ReactCommon/React-FabricComponents.podspec +1 -1
- package/ReactCommon/React-FabricImage.podspec +1 -1
- package/ReactCommon/React-Mapbuffer.podspec +1 -1
- package/ReactCommon/ReactCommon.podspec +1 -1
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/hermes/React-hermes.podspec +1 -1
- package/ReactCommon/hermes/executor/React-jsitracing.podspec +1 -1
- package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +1 -1
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/jsinspector-modern/InspectorInterfaces.cpp +7 -3
- package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +1 -1
- package/ReactCommon/jsinspector-modern/TracingAgent.cpp +1 -5
- package/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +1 -1
- package/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +1 -1
- package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +1 -1
- package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- package/ReactCommon/oscompat/React-oscompat.podspec +1 -1
- package/ReactCommon/react/debug/CMakeLists.txt +2 -1
- package/ReactCommon/react/debug/React-debug.podspec +8 -2
- 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/React-featureflags.podspec +1 -1
- 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/core/platform/android/ReactCommon/JavaTurboModule.cpp +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm +1 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +1 -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 +2 -1
- package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +16 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +7 -1
- package/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/intersectionobserver/React-intersectionobservernativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h +4 -0
- package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec +66 -0
- package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
- package/ReactCommon/react/nativemodule/webperformance/React-webperformancenativemodule.podspec +1 -1
- package/ReactCommon/react/networking/React-networking.podspec +1 -1
- package/ReactCommon/react/performance/cdpmetrics/React-performancecdpmetrics.podspec +1 -1
- package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +1 -1
- package/ReactCommon/react/renderer/animated/internal/primitives.h +1 -1
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +7 -0
- package/ReactCommon/react/renderer/components/view/BaseViewProps.h +1 -0
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +18 -0
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.h +1 -0
- package/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +1 -1
- package/ReactCommon/react/renderer/css/React-renderercss.podspec +1 -1
- package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -1
- package/ReactCommon/react/renderer/mounting/internal/CullingContext.cpp +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -1
- package/ReactCommon/react/runtime/React-RuntimeCore.podspec +1 -1
- package/ReactCommon/react/runtime/React-RuntimeHermes.podspec +1 -1
- package/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +1 -1
- package/ReactCommon/react/timing/React-timing.podspec +1 -1
- package/ReactCommon/react/utils/React-utils.podspec +1 -1
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/yoga/Yoga.podspec +2 -2
- package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +2 -0
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +11 -7
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +2 -0
- package/ReactCommon/yoga/yoga/node/Node.cpp +6 -1
- package/package.json +9 -9
- package/scripts/cocoapods/rncore.rb +26 -8
- package/scripts/cocoapods/rndependencies.rb +26 -5
- package/scripts/cocoapods/spm.rb +1 -1
- package/scripts/cocoapods/utils.rb +2 -2
- package/scripts/codegen/templates/ReactAppDependencyProvider.podspec.template +1 -1
- package/scripts/codegen/templates/ReactCodegen.podspec.template +1 -1
- package/scripts/ios-configure-glog.sh +1 -1
- package/scripts/react_native_pods.rb +1 -0
- package/sdks/hermes-engine/hermes-engine.podspec +6 -1
- package/sdks/hermes-engine/hermes-utils.rb +27 -5
- 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
- package/src/private/types/HostInstance.js +1 -1
- package/src/types/globals.d.ts +2 -2
- package/third-party-podspecs/RCT-Folly.podspec +1 -1
- package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
- package/third-party-podspecs/glog.podspec +1 -1
- package/types/public/ReactNativeTVTypes.d.ts +9 -0
- package/types/public/ReactNativeTypes.d.ts +2 -2
|
@@ -553,6 +553,8 @@ bool layoutAbsoluteDescendants(
|
|
|
553
553
|
containingNodeAvailableInnerHeight) ||
|
|
554
554
|
hasNewLayout;
|
|
555
555
|
|
|
556
|
+
cleanupContentsNodesRecursively(
|
|
557
|
+
child, /* didPerformLayout */ hasNewLayout);
|
|
556
558
|
if (hasNewLayout) {
|
|
557
559
|
child->setHasNewLayout(hasNewLayout);
|
|
558
560
|
}
|
|
@@ -480,7 +480,9 @@ static void zeroOutLayoutRecursively(yoga::Node* const node) {
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
|
|
483
|
+
void cleanupContentsNodesRecursively(
|
|
484
|
+
yoga::Node* const node,
|
|
485
|
+
bool didPerformLayout) {
|
|
484
486
|
if (node->hasContentsChildren()) [[unlikely]] {
|
|
485
487
|
node->cloneContentsChildrenIfNeeded();
|
|
486
488
|
for (auto child : node->getChildren()) {
|
|
@@ -488,11 +490,13 @@ static void cleanupContentsNodesRecursively(yoga::Node* const node) {
|
|
|
488
490
|
child->getLayout() = {};
|
|
489
491
|
child->setLayoutDimension(0, Dimension::Width);
|
|
490
492
|
child->setLayoutDimension(0, Dimension::Height);
|
|
491
|
-
|
|
493
|
+
if (didPerformLayout) {
|
|
494
|
+
child->setHasNewLayout(true);
|
|
495
|
+
}
|
|
492
496
|
child->setDirty(false);
|
|
493
497
|
child->cloneChildrenIfNeeded();
|
|
494
498
|
|
|
495
|
-
cleanupContentsNodesRecursively(child);
|
|
499
|
+
cleanupContentsNodesRecursively(child, didPerformLayout);
|
|
496
500
|
}
|
|
497
501
|
}
|
|
498
502
|
}
|
|
@@ -1317,7 +1321,7 @@ static void calculateLayoutImpl(
|
|
|
1317
1321
|
|
|
1318
1322
|
// Clean and update all display: contents nodes with a direct path to the
|
|
1319
1323
|
// current node as they will not be traversed
|
|
1320
|
-
cleanupContentsNodesRecursively(node);
|
|
1324
|
+
cleanupContentsNodesRecursively(node, performLayout);
|
|
1321
1325
|
return;
|
|
1322
1326
|
}
|
|
1323
1327
|
|
|
@@ -1335,7 +1339,7 @@ static void calculateLayoutImpl(
|
|
|
1335
1339
|
|
|
1336
1340
|
// Clean and update all display: contents nodes with a direct path to the
|
|
1337
1341
|
// current node as they will not be traversed
|
|
1338
|
-
cleanupContentsNodesRecursively(node);
|
|
1342
|
+
cleanupContentsNodesRecursively(node, performLayout);
|
|
1339
1343
|
return;
|
|
1340
1344
|
}
|
|
1341
1345
|
|
|
@@ -1353,7 +1357,7 @@ static void calculateLayoutImpl(
|
|
|
1353
1357
|
ownerHeight)) {
|
|
1354
1358
|
// Clean and update all display: contents nodes with a direct path to the
|
|
1355
1359
|
// current node as they will not be traversed
|
|
1356
|
-
cleanupContentsNodesRecursively(node);
|
|
1360
|
+
cleanupContentsNodesRecursively(node, /* didPerformLayout */ false);
|
|
1357
1361
|
return;
|
|
1358
1362
|
}
|
|
1359
1363
|
|
|
@@ -1365,7 +1369,7 @@ static void calculateLayoutImpl(
|
|
|
1365
1369
|
|
|
1366
1370
|
// Clean and update all display: contents nodes with a direct path to the
|
|
1367
1371
|
// current node as they will not be traversed
|
|
1368
|
-
cleanupContentsNodesRecursively(node);
|
|
1372
|
+
cleanupContentsNodesRecursively(node, performLayout);
|
|
1369
1373
|
|
|
1370
1374
|
// STEP 1: CALCULATE VALUES FOR REMAINDER OF ALGORITHM
|
|
1371
1375
|
const FlexDirection mainAxis =
|
|
@@ -392,7 +392,12 @@ void Node::cloneChildrenIfNeeded() {
|
|
|
392
392
|
child = resolveRef(config_->cloneNode(child, this, i));
|
|
393
393
|
child->setOwner(this);
|
|
394
394
|
|
|
395
|
-
if (child->
|
|
395
|
+
if (child->style().display() == Display::Contents) [[unlikely]] {
|
|
396
|
+
// The contents node's children are treated as children of the
|
|
397
|
+
// contents node's parent for layout purposes, so they need
|
|
398
|
+
// to be cloned as well.
|
|
399
|
+
child->cloneChildrenIfNeeded();
|
|
400
|
+
} else if (child->hasContentsChildren()) [[unlikely]] {
|
|
396
401
|
child->cloneContentsChildrenIfNeeded();
|
|
397
402
|
}
|
|
398
403
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.83.
|
|
3
|
+
"version": "0.83.10-0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"app-framework",
|
|
23
23
|
"mobile-development"
|
|
24
24
|
],
|
|
25
|
-
"bugs": "https://github.com/
|
|
25
|
+
"bugs": "https://github.com/react/react-native/issues",
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">= 20.19.4"
|
|
28
28
|
},
|
|
@@ -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.10",
|
|
169
|
+
"@react-native/codegen": "0.83.10",
|
|
170
|
+
"@react-native/community-cli-plugin": "0.83.10",
|
|
171
|
+
"@react-native/gradle-plugin": "0.83.10",
|
|
172
|
+
"@react-native/js-polyfills": "0.83.10",
|
|
173
|
+
"@react-native/normalize-colors": "0.83.10",
|
|
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.10-0"
|
|
202
202
|
},
|
|
203
203
|
"codegenConfig": {
|
|
204
204
|
"libraries": [
|
|
@@ -402,18 +402,36 @@ class ReactNativeCoreUtils
|
|
|
402
402
|
download_rncore_tarball(react_native_path, tarball_url, version, configuration, dsyms)
|
|
403
403
|
end
|
|
404
404
|
|
|
405
|
+
def self.shared_cache_dir()
|
|
406
|
+
return File.join(Dir.home, "Library", "Caches", "ReactNative")
|
|
407
|
+
end
|
|
408
|
+
|
|
405
409
|
def self.download_rncore_tarball(react_native_path, tarball_url, version, configuration, dsyms = false)
|
|
406
|
-
|
|
407
|
-
"
|
|
408
|
-
"
|
|
410
|
+
filename = configuration == nil ?
|
|
411
|
+
"reactnative-core-#{version}#{dsyms ? "-dSYM" : ""}.tar.gz" :
|
|
412
|
+
"reactnative-core-#{version}#{dsyms ? "-dSYM" : ""}-#{configuration}.tar.gz"
|
|
413
|
+
destination_path = "#{artifacts_dir()}/#{filename}"
|
|
414
|
+
|
|
415
|
+
if File.exist?(destination_path)
|
|
416
|
+
rncore_log("Tarball #{filename} already exists in Pods. Skipping download.")
|
|
417
|
+
return destination_path
|
|
418
|
+
end
|
|
409
419
|
|
|
410
|
-
|
|
420
|
+
`mkdir -p "#{artifacts_dir()}"`
|
|
421
|
+
|
|
422
|
+
cached_path = File.join(shared_cache_dir(), filename)
|
|
423
|
+
if File.exist?(cached_path)
|
|
424
|
+
rncore_log("Cache hit: copying #{filename} from shared cache (#{shared_cache_dir()})")
|
|
425
|
+
FileUtils.cp(cached_path, destination_path)
|
|
426
|
+
else
|
|
427
|
+
rncore_log("Cache miss: downloading #{filename} from #{tarball_url}")
|
|
411
428
|
# Download to a temporary file first so we don't cache incomplete downloads.
|
|
412
|
-
rncore_log("Downloading ReactNativeCore-prebuilt #{dsyms ? "dSYMs " : ""}#{configuration ? configuration.to_s : ""} tarball from #{tarball_url} to #{Pathname.new(destination_path).relative_path_from(Pathname.pwd).to_s}")
|
|
413
429
|
tmp_file = "#{artifacts_dir()}/reactnative-core.download"
|
|
414
|
-
`
|
|
415
|
-
|
|
416
|
-
|
|
430
|
+
`curl "#{tarball_url}" -Lo "#{tmp_file}" && mv "#{tmp_file}" "#{destination_path}"`
|
|
431
|
+
# Save to shared cache for future use
|
|
432
|
+
`mkdir -p "#{shared_cache_dir()}"`
|
|
433
|
+
FileUtils.cp(destination_path, cached_path)
|
|
434
|
+
rncore_log("Saved #{filename} to shared cache (#{shared_cache_dir()})")
|
|
417
435
|
end
|
|
418
436
|
|
|
419
437
|
return destination_path
|
|
@@ -243,15 +243,36 @@ class ReactNativeDependenciesUtils
|
|
|
243
243
|
return {:http => url}
|
|
244
244
|
end
|
|
245
245
|
|
|
246
|
+
def self.shared_cache_dir()
|
|
247
|
+
return File.join(Dir.home, "Library", "Caches", "ReactNative")
|
|
248
|
+
end
|
|
249
|
+
|
|
246
250
|
def self.download_rndeps_tarball(react_native_path, tarball_url, version, configuration)
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
"
|
|
251
|
+
filename = configuration == nil ?
|
|
252
|
+
"reactnative-dependencies-#{version}.tar.gz" :
|
|
253
|
+
"reactnative-dependencies-#{version}-#{configuration}.tar.gz"
|
|
254
|
+
destination_path = "#{artifacts_dir()}/#{filename}"
|
|
255
|
+
|
|
256
|
+
if File.exist?(destination_path)
|
|
257
|
+
rndeps_log("Tarball #{filename} already exists in Pods. Skipping download.")
|
|
258
|
+
return destination_path
|
|
259
|
+
end
|
|
250
260
|
|
|
251
|
-
|
|
261
|
+
`mkdir -p "#{artifacts_dir()}"`
|
|
262
|
+
|
|
263
|
+
cached_path = File.join(shared_cache_dir(), filename)
|
|
264
|
+
if File.exist?(cached_path)
|
|
265
|
+
rndeps_log("Cache hit: copying #{filename} from shared cache (#{shared_cache_dir()})")
|
|
266
|
+
FileUtils.cp(cached_path, destination_path)
|
|
267
|
+
else
|
|
268
|
+
rndeps_log("Cache miss: downloading #{filename} from #{tarball_url}")
|
|
252
269
|
# Download to a temporary file first so we don't cache incomplete downloads.
|
|
253
270
|
tmp_file = "#{artifacts_dir()}/reactnative-dependencies.download"
|
|
254
|
-
`
|
|
271
|
+
`curl "#{tarball_url}" -Lo "#{tmp_file}" && mv "#{tmp_file}" "#{destination_path}"`
|
|
272
|
+
# Save to shared cache for future use
|
|
273
|
+
`mkdir -p "#{shared_cache_dir()}"`
|
|
274
|
+
FileUtils.cp(destination_path, cached_path)
|
|
275
|
+
rndeps_log("Saved #{filename} to shared cache (#{shared_cache_dir()})")
|
|
255
276
|
end
|
|
256
277
|
|
|
257
278
|
return destination_path
|
package/scripts/cocoapods/spm.rb
CHANGED
|
@@ -45,7 +45,7 @@ class SPMManager
|
|
|
45
45
|
log_warning "If you're using Xcode 15 or earlier you might need to close and reopen the Xcode workspace"
|
|
46
46
|
unless ENV["USE_FRAMEWORKS"] == "dynamic"
|
|
47
47
|
@dependencies_by_pod.each do |pod_name, dependencies|
|
|
48
|
-
log_warning "Pod #{pod_name} is using swift package(s) #{dependencies.map{|i| i[:products]}.flatten.uniq.join(", ")} with static linking, this might cause linker errors. Consider using USE_FRAMEWORKS=dynamic, see https://github.com/
|
|
48
|
+
log_warning "Pod #{pod_name} is using swift package(s) #{dependencies.map{|i| i[:products]}.flatten.uniq.join(", ")} with static linking, this might cause linker errors. Consider using USE_FRAMEWORKS=dynamic, see https://github.com/react/react-native/pull/44627#issuecomment-2123119711 for more information"
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
end
|
|
@@ -69,7 +69,7 @@ class ReactNativePodsUtils
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def self.turn_off_resource_bundle_react_core(installer)
|
|
72
|
-
# this is needed for Xcode 14, see more details here https://github.com/
|
|
72
|
+
# this is needed for Xcode 14, see more details here https://github.com/react/react-native/issues/34673
|
|
73
73
|
# we should be able to remove this once CocoaPods catches up to it, see more details here https://github.com/CocoaPods/CocoaPods/issues/11402
|
|
74
74
|
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
|
|
75
75
|
if target_installation_result.target.root_spec.name == 'React-Core'
|
|
@@ -242,7 +242,7 @@ class ReactNativePodsUtils
|
|
|
242
242
|
# When installing pods with a yarn alias, yarn creates a fake yarn and node executables
|
|
243
243
|
# in a temporary folder.
|
|
244
244
|
# Using `node --print "process.argv[0]";` we are able to retrieve the actual path from which node is running.
|
|
245
|
-
# see https://github.com/
|
|
245
|
+
# see https://github.com/react/react-native/issues/43285 for more info. We've tweaked this slightly.
|
|
246
246
|
node_binary = Shellwords.escape(`node --print "process.argv[0]"`.strip)
|
|
247
247
|
system("echo 'export NODE_BINARY=#{node_binary}' > #{file_path}.local")
|
|
248
248
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# LICENSE file in the root directory of this source tree.
|
|
5
5
|
|
|
6
6
|
version = "{react-native-version}"
|
|
7
|
-
source = { :git => 'https://github.com/
|
|
7
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
8
8
|
if version == '1000.0.0'
|
|
9
9
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
10
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# LICENSE file in the root directory of this source tree.
|
|
5
5
|
|
|
6
6
|
version = "{react-native-version}"
|
|
7
|
-
source = { :git => 'https://github.com/
|
|
7
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
8
8
|
if version == '1000.0.0'
|
|
9
9
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
10
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -57,7 +57,7 @@ if [ -h "test-driver" ]; then
|
|
|
57
57
|
rm test-driver
|
|
58
58
|
fi
|
|
59
59
|
|
|
60
|
-
# Manually disable gflags include to fix issue https://github.com/
|
|
60
|
+
# Manually disable gflags include to fix issue https://github.com/react/react-native/issues/28446
|
|
61
61
|
sed -i.bak -e 's/\@ac_cv_have_libgflags\@/0/' src/glog/logging.h.in && rm src/glog/logging.h.in.bak
|
|
62
62
|
sed -i.bak -e 's/HAVE_LIB_GFLAGS/HAVE_LIB_GFLAGS_DISABLED/' src/config.h.in && rm src/config.h.in.bak
|
|
63
63
|
|
|
@@ -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,6 +4,7 @@
|
|
|
4
4
|
# LICENSE file in the root directory of this source tree.
|
|
5
5
|
|
|
6
6
|
require "json"
|
|
7
|
+
require "pathname"
|
|
7
8
|
require_relative "./hermes-utils.rb"
|
|
8
9
|
|
|
9
10
|
begin
|
|
@@ -74,9 +75,13 @@ Pod::Spec.new do |spec|
|
|
|
74
75
|
hermes_compiler_path = File.dirname(Pod::Executable.execute_command('node', ['-p',
|
|
75
76
|
"require.resolve(\"hermes-compiler\", {paths: [\"#{react_native_path}\"]})", __dir__]).strip
|
|
76
77
|
)
|
|
78
|
+
hermesc_path = File.join(hermes_compiler_path, 'hermesc', 'osx-bin', 'hermesc')
|
|
79
|
+
|
|
80
|
+
pods_root = Pod::Config.instance.sandbox.root
|
|
81
|
+
relative_hermesc = Pathname.new(hermesc_path).relative_path_from(pods_root)
|
|
77
82
|
|
|
78
83
|
spec.user_target_xcconfig = {
|
|
79
|
-
'HERMES_CLI_PATH' => "
|
|
84
|
+
'HERMES_CLI_PATH' => "$(PODS_ROOT)/#{relative_hermesc}"
|
|
80
85
|
}
|
|
81
86
|
end
|
|
82
87
|
|
|
@@ -247,16 +247,38 @@ def download_stable_hermes(react_native_path, version, configuration)
|
|
|
247
247
|
download_hermes_tarball(react_native_path, tarball_url, version, configuration)
|
|
248
248
|
end
|
|
249
249
|
|
|
250
|
+
def shared_cache_dir()
|
|
251
|
+
return File.join(Dir.home, "Library", "Caches", "ReactNative")
|
|
252
|
+
end
|
|
253
|
+
|
|
250
254
|
def download_hermes_tarball(react_native_path, tarball_url, version, configuration)
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
"
|
|
255
|
+
filename = configuration == nil ?
|
|
256
|
+
"hermes-ios-#{version}.tar.gz" :
|
|
257
|
+
"hermes-ios-#{version}-#{configuration}.tar.gz"
|
|
258
|
+
destination_path = "#{artifacts_dir()}/#{filename}"
|
|
259
|
+
|
|
260
|
+
if File.exist?(destination_path)
|
|
261
|
+
hermes_log("Tarball #{filename} already exists in Pods. Skipping download.", :info)
|
|
262
|
+
return destination_path
|
|
263
|
+
end
|
|
254
264
|
|
|
255
|
-
|
|
265
|
+
`mkdir -p "#{artifacts_dir()}"`
|
|
266
|
+
|
|
267
|
+
cached_path = File.join(shared_cache_dir(), filename)
|
|
268
|
+
if File.exist?(cached_path)
|
|
269
|
+
hermes_log("Cache hit: copying #{filename} from shared cache (#{shared_cache_dir()})", :info)
|
|
270
|
+
FileUtils.cp(cached_path, destination_path)
|
|
271
|
+
else
|
|
272
|
+
hermes_log("Cache miss: downloading #{filename} from #{tarball_url}", :info)
|
|
256
273
|
# Download to a temporary file first so we don't cache incomplete downloads.
|
|
257
274
|
tmp_file = "#{artifacts_dir()}/hermes-ios.download"
|
|
258
|
-
`
|
|
275
|
+
`curl "#{tarball_url}" -Lo "#{tmp_file}" && mv "#{tmp_file}" "#{destination_path}"`
|
|
276
|
+
# Save to shared cache for future use
|
|
277
|
+
`mkdir -p "#{shared_cache_dir()}"`
|
|
278
|
+
FileUtils.cp(destination_path, cached_path)
|
|
279
|
+
hermes_log("Saved #{filename} to shared cache (#{shared_cache_dir()})", :info)
|
|
259
280
|
end
|
|
281
|
+
|
|
260
282
|
return destination_path
|
|
261
283
|
end
|
|
262
284
|
|
|
@@ -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
|
}
|
|
@@ -42,7 +42,7 @@ export type MeasureLayoutOnSuccessCallback = (
|
|
|
42
42
|
* Note, however, that they are not available on composite components that aren't directly backed by a
|
|
43
43
|
* native view. This will generally include most components that you define in your own app.
|
|
44
44
|
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture).
|
|
45
|
-
* @see https://github.com/
|
|
45
|
+
* @see https://github.com/react/react-native/blob/master/Libraries/Renderer/shims/ReactNativeTypes.js#L87
|
|
46
46
|
*/
|
|
47
47
|
export interface LegacyHostInstanceMethods {
|
|
48
48
|
/**
|
package/src/types/globals.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare global {
|
|
|
41
41
|
*
|
|
42
42
|
* global.XMLHttpRequest = global.originalXMLHttpRequest;
|
|
43
43
|
*
|
|
44
|
-
* @see https://github.com/
|
|
44
|
+
* @see https://github.com/react/react-native/issues/934
|
|
45
45
|
*/
|
|
46
46
|
const originalXMLHttpRequest: any;
|
|
47
47
|
|
|
@@ -237,7 +237,7 @@ declare global {
|
|
|
237
237
|
/**
|
|
238
238
|
* React Native's implementation of fetch allows this syntax for uploading files from
|
|
239
239
|
* local filesystem.
|
|
240
|
-
* See https://github.com/
|
|
240
|
+
* See https://github.com/react/react-native/blob/master/Libraries/Network/convertRequestBody.js#L22
|
|
241
241
|
*/
|
|
242
242
|
interface _SourceUri {
|
|
243
243
|
uri: string;
|
|
@@ -73,7 +73,7 @@ Pod::Spec.new do |spec|
|
|
|
73
73
|
'folly/portability/*.h',
|
|
74
74
|
'folly/system/*.h',
|
|
75
75
|
|
|
76
|
-
# workaround for https://github.com/
|
|
76
|
+
# workaround for https://github.com/react/react-native/issues/14326
|
|
77
77
|
spec.preserve_paths = 'folly/*.h',
|
|
78
78
|
'folly/algorithm/simd/*.h',
|
|
79
79
|
'folly/algorithm/simd/detail/*.h',
|
|
@@ -30,7 +30,7 @@ Pod::Spec.new do |spec|
|
|
|
30
30
|
spec.version = core_version
|
|
31
31
|
spec.summary = 'React Native Dependencies'
|
|
32
32
|
spec.description = 'ReactNativeDependencies is a podspec that contains all the third-party dependencies of React Native.'
|
|
33
|
-
spec.homepage = 'https://github.com/
|
|
33
|
+
spec.homepage = 'https://github.com/react/react-native'
|
|
34
34
|
spec.license = package['license']
|
|
35
35
|
spec.authors = 'meta'
|
|
36
36
|
spec.platforms = min_supported_versions
|
|
@@ -27,7 +27,7 @@ Pod::Spec.new do |spec|
|
|
|
27
27
|
'src/symbolize.cc',
|
|
28
28
|
'src/utilities.cc',
|
|
29
29
|
'src/vlog_is_on.cc'
|
|
30
|
-
# workaround for https://github.com/
|
|
30
|
+
# workaround for https://github.com/react/react-native/issues/14326
|
|
31
31
|
spec.preserve_paths = 'src/*.h',
|
|
32
32
|
'src/base/*.h'
|
|
33
33
|
spec.exclude_files = "src/windows/**/*"
|
|
@@ -30,6 +30,15 @@ declare module 'react-native' {
|
|
|
30
30
|
*/
|
|
31
31
|
scrollSnapAlign?: 'start' | 'center' | 'end' | undefined;
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Per-item scroll snap offset in dp/pt. When set, the focus engine lands
|
|
35
|
+
* this view's top at viewport y = scrollSnapOffset. Standalone alternative
|
|
36
|
+
* to `scrollSnapAlign`; takes precedence if both are set on the same View.
|
|
37
|
+
*
|
|
38
|
+
* @platform tv
|
|
39
|
+
*/
|
|
40
|
+
scrollSnapOffset?: number | undefined;
|
|
41
|
+
|
|
33
42
|
/**
|
|
34
43
|
* Android TV only prop
|
|
35
44
|
*/
|
|
@@ -40,7 +40,7 @@ export type MeasureLayoutOnSuccessCallback = (
|
|
|
40
40
|
* Note, however, that they are not available on composite components that aren't directly backed by a
|
|
41
41
|
* native view. This will generally include most components that you define in your own app.
|
|
42
42
|
* For more information, see [Direct Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture).
|
|
43
|
-
* @see https://github.com/
|
|
43
|
+
* @see https://github.com/react/react-native/blob/master/Libraries/Renderer/shims/ReactNativeTypes.js#L87
|
|
44
44
|
*/
|
|
45
45
|
export interface NativeMethods {
|
|
46
46
|
/**
|
|
@@ -123,7 +123,7 @@ export type NativeMethodsMixinType = NativeMethods;
|
|
|
123
123
|
/**
|
|
124
124
|
* Represents a native component, such as those returned from `requireNativeComponent`.
|
|
125
125
|
*
|
|
126
|
-
* @see https://github.com/
|
|
126
|
+
* @see https://github.com/react/react-native/blob/v0.62.0-rc.5/Libraries/Renderer/shims/ReactNativeTypes.js
|
|
127
127
|
*
|
|
128
128
|
* @todo This should eventually be defined as an AbstractComponent, but that
|
|
129
129
|
* should first be introduced in the React typings.
|