react-native-tvos 0.86.0-2 → 0.86.3-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/TV/TVFocusGuideView.js +31 -0
- package/Libraries/Components/TV/useFocusEnterLeave.js +112 -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/ViewAccessibility.d.ts +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- 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/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 +2 -0
- package/React/Base/RCTVersion.m +2 -2
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +43 -17
- package/React/React-RCTFBReactNativeSpec.podspec +1 -1
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Runtime/React-RCTRuntime.podspec +1 -1
- 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/publish.gradle +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt +49 -12
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +8 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- 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/ReactNestedScrollViewManager.kt +1 -1
- 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 +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +1 -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 +1 -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 +3 -3
- 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/React-jsinspector.podspec +1 -1
- 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/React-debug.podspec +1 -1
- package/ReactCommon/react/debug/redbox/JscSafeUrl.h +1 -1
- package/ReactCommon/react/featureflags/React-featureflags.podspec +1 -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/React-defaultsnativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
- package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +1 -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/React-mutationobservernativemodule.podspec +1 -1
- package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
- package/ReactCommon/react/nativemodule/viewtransition/React-viewtransitionnativemodule.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/consistency/React-rendererconsistency.podspec +1 -1
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +20 -4
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +27 -19
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +2 -0
- 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/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +58 -53
- package/ReactCommon/react/renderer/uimanager/tests/FabricUIManagerTest.cpp +144 -3
- 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 -1
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +11 -7
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +1 -1
- package/package.json +11 -11
- 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/sdks/.hermesv1version +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +7 -2
- package/sdks/hermes-engine/version.properties +1 -1
- 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 +12 -1
- package/types/public/ReactNativeTypes.d.ts +2 -2
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +101 -0
- package/types_generated/Libraries/Alert/Alert.d.ts +55 -0
- package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +128 -0
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
- package/types_generated/Libraries/Animated/Easing.d.ts +171 -0
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +47 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
- package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
- package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
- package/types_generated/Libraries/AppState/AppState.d.ts +63 -0
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +20 -0
- package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +232 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +84 -0
- package/types_generated/Libraries/Components/Button.d.ts +247 -0
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +38 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +176 -0
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +146 -0
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +73 -0
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +146 -0
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +50 -0
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +113 -0
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +33 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +581 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +21 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +140 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +222 -0
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +138 -0
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +21 -0
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +86 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +47 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1005 -0
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
- package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +257 -0
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +51 -0
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +192 -0
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +35 -0
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
- package/types_generated/Libraries/Components/View/View.d.ts +30 -0
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +415 -0
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +39 -0
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +367 -0
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
- package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
- package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +42 -0
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +21 -0
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +71 -0
- package/types_generated/Libraries/Image/Image.d.ts +18 -0
- package/types_generated/Libraries/Image/ImageBackground.d.ts +44 -0
- package/types_generated/Libraries/Image/ImageProps.d.ts +512 -0
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
- package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +61 -0
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +117 -0
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +228 -0
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +76 -0
- package/types_generated/Libraries/Linking/Linking.d.ts +68 -0
- package/types_generated/Libraries/Lists/FlatList.d.ts +317 -0
- package/types_generated/Libraries/Lists/SectionList.d.ts +172 -0
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +19 -0
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +19 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
- package/types_generated/Libraries/LogBox/LogBox.d.ts +29 -0
- package/types_generated/Libraries/Modal/Modal.d.ts +110 -0
- package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +17 -0
- package/types_generated/Libraries/Network/FormData.d.ts +56 -0
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
- package/types_generated/Libraries/Performance/Systrace.d.ts +61 -0
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +129 -0
- package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
- package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +323 -0
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +73 -0
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +23 -0
- package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +33 -0
- package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
- package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
- package/types_generated/Libraries/Share/Share.d.ts +85 -0
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +17 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +851 -0
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
- package/types_generated/Libraries/Text/Text.d.ts +30 -0
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
- package/types_generated/Libraries/Text/TextProps.d.ts +220 -0
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +355 -0
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
- package/types_generated/Libraries/UTFSequence.d.ts +39 -0
- package/types_generated/Libraries/Utilities/Appearance.d.ts +31 -0
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +27 -0
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +34 -0
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +54 -0
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +110 -0
- package/types_generated/Libraries/Utilities/Platform.d.ts +16 -0
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +134 -0
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +15 -0
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +15 -0
- package/types_generated/Libraries/Vibration/Vibration.d.ts +29 -0
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
- package/types_generated/index.d.ts +184 -0
- package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
- package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
- package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
- package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
- package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
- package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
- package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +53 -0
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +36 -0
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +51 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +26 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +37 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
- package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
- package/types_generated/src/private/types/HostComponent.d.ts +19 -0
- package/types_generated/src/private/types/HostInstance.d.ts +92 -0
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +33 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +30 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +54 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +129 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +24 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +22 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +25 -0
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
- package/types_generated/tsconfig.json +3 -0
- package/types_generated/tsconfig.test.json +16 -0
|
@@ -433,9 +433,7 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
|
|
|
433
433
|
float magnification = _tvParallaxProperties.magnification;
|
|
434
434
|
|
|
435
435
|
if (magnification != 1.0) {
|
|
436
|
-
[UIView animateWithDuration:0.2 animations:^{
|
|
437
436
|
self.transform = CGAffineTransformScale(self.transform, magnification, magnification);
|
|
438
|
-
}];
|
|
439
437
|
}
|
|
440
438
|
|
|
441
439
|
_motionEffectsAdded = YES;
|
|
@@ -447,13 +445,11 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
|
|
|
447
445
|
return;
|
|
448
446
|
}
|
|
449
447
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
456
|
-
}];
|
|
448
|
+
float magnification = self->_tvParallaxProperties.magnification;
|
|
449
|
+
BOOL enabled = self->_tvParallaxProperties.enabled;
|
|
450
|
+
if (enabled && magnification != 0.0 && magnification != 1.0) {
|
|
451
|
+
self.transform = CGAffineTransformScale(self.transform, 1.0/magnification, 1.0/magnification);
|
|
452
|
+
}
|
|
457
453
|
|
|
458
454
|
for (UIMotionEffect *effect in [self.motionEffects copy]){
|
|
459
455
|
[self removeMotionEffect:effect];
|
|
@@ -496,6 +492,34 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
|
|
|
496
492
|
return _props->isTVSelectable;
|
|
497
493
|
}
|
|
498
494
|
|
|
495
|
+
// Directional focus destinations are looked up in the containing root view when
|
|
496
|
+
// `updateProps` runs. A destination set while this view is not attached yet --
|
|
497
|
+
// e.g. a nextFocus* value delivered together with the view's creation -- resolves
|
|
498
|
+
// to nil there, and `updateProps` never retries because the prop value does not
|
|
499
|
+
// change. Re-resolve pending destinations lazily: `enableDirectionalFocusGuides`
|
|
500
|
+
// only does work while the view is focused, at which point the hierarchy is
|
|
501
|
+
// guaranteed to be attached.
|
|
502
|
+
- (void)resolvePendingNextFocusTargets
|
|
503
|
+
{
|
|
504
|
+
UIView *rootView = [self containingRootView];
|
|
505
|
+
|
|
506
|
+
if (rootView == nil) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
if (_nextFocusUp == nil && _props->nextFocusUp.has_value()) {
|
|
510
|
+
_nextFocusUp = [rootView viewWithTag:_props->nextFocusUp.value()];
|
|
511
|
+
}
|
|
512
|
+
if (_nextFocusDown == nil && _props->nextFocusDown.has_value()) {
|
|
513
|
+
_nextFocusDown = [rootView viewWithTag:_props->nextFocusDown.value()];
|
|
514
|
+
}
|
|
515
|
+
if (_nextFocusLeft == nil && _props->nextFocusLeft.has_value()) {
|
|
516
|
+
_nextFocusLeft = [rootView viewWithTag:_props->nextFocusLeft.value()];
|
|
517
|
+
}
|
|
518
|
+
if (_nextFocusRight == nil && _props->nextFocusRight.has_value()) {
|
|
519
|
+
_nextFocusRight = [rootView viewWithTag:_props->nextFocusRight.value()];
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
499
523
|
// In tvOS, to support directional focus APIs, we add a UIFocusGuide for each
|
|
500
524
|
// side of the view where a nextFocus has been set. Set layout constraints to
|
|
501
525
|
// make the guide 1 px thick, and set the destination to the nextFocus object.
|
|
@@ -507,6 +531,8 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
|
|
|
507
531
|
if (!self.isFocused) {
|
|
508
532
|
return;
|
|
509
533
|
}
|
|
534
|
+
|
|
535
|
+
[self resolvePendingNextFocusTargets];
|
|
510
536
|
if (self->_nextFocusUp != nil) {
|
|
511
537
|
if (self.focusGuideUp == nil) {
|
|
512
538
|
self.focusGuideUp = [UIFocusGuide new];
|
|
@@ -606,12 +632,12 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
|
|
|
606
632
|
|
|
607
633
|
- (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator
|
|
608
634
|
{
|
|
609
|
-
if (context.
|
|
635
|
+
if (context.previouslyFocusedItem == context.nextFocusedItem) {
|
|
610
636
|
return;
|
|
611
637
|
}
|
|
612
638
|
|
|
613
639
|
if (_autoFocus && self.focusGuide != nil && context.previouslyFocusedItem != nil) {
|
|
614
|
-
// Whenever focus leaves the container, `
|
|
640
|
+
// Whenever focus leaves the container, `nextFocusedItem` is the destination, the item outside the container.
|
|
615
641
|
// So, `previouslyFocusedItem` is always the last focused child of `TVFocusGuide`.
|
|
616
642
|
// We should update `preferredFocusEnvironments` in this case to make sure `FocusGuide` remembers
|
|
617
643
|
// the last focused element and redirects the focus to it whenever focus comes back.
|
|
@@ -619,20 +645,20 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
|
|
|
619
645
|
[self handleFocusGuide];
|
|
620
646
|
}
|
|
621
647
|
|
|
622
|
-
if (context.
|
|
648
|
+
if (context.nextFocusedItem == self) {
|
|
623
649
|
[self becomeFirstResponder];
|
|
624
650
|
[self enableDirectionalFocusGuides];
|
|
625
|
-
|
|
626
|
-
|
|
651
|
+
if (self->_eventEmitter) self->_eventEmitter->onFocus();
|
|
652
|
+
[coordinator addCoordinatedFocusingAnimations:^(id<UIFocusAnimationContext> _Nonnull animationContext) {
|
|
627
653
|
[self addParallaxMotionEffects];
|
|
628
654
|
} completion:^(void){}];
|
|
629
655
|
// Without this check, onBlur would also trigger when `TVFocusGuideView` transfers focus to its children.
|
|
630
656
|
// [self isTVFocusGuide] is false when autofocus and destinations are not used, so we cannot use that.
|
|
631
657
|
// Generally speaking, it would happen for any non-collapsable `View`.
|
|
632
|
-
} else if (context.
|
|
633
|
-
|
|
658
|
+
} else if (context.previouslyFocusedItem == self) {
|
|
659
|
+
if (self->_eventEmitter) self->_eventEmitter->onBlur();
|
|
660
|
+
[coordinator addCoordinatedUnfocusingAnimations:^(id<UIFocusAnimationContext> _Nonnull animationContext) {
|
|
634
661
|
[self removeParallaxMotionEffects];
|
|
635
|
-
if (self->_eventEmitter) self->_eventEmitter->onBlur();
|
|
636
662
|
} completion:^(void){[self disableDirectionalFocusGuides];}];
|
|
637
663
|
[self resignFirstResponder];
|
|
638
664
|
}
|
|
@@ -11,7 +11,7 @@ require "json"
|
|
|
11
11
|
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
|
|
12
12
|
version = package['version']
|
|
13
13
|
|
|
14
|
-
source = { :git => 'https://github.com/
|
|
14
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
15
15
|
if version == '1000.0.0'
|
|
16
16
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
17
17
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -8,7 +8,7 @@ require "json"
|
|
|
8
8
|
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
|
|
9
9
|
version = package['version']
|
|
10
10
|
|
|
11
|
-
source = { :git => 'https://github.com/
|
|
11
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
12
12
|
if version == '1000.0.0'
|
|
13
13
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
14
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -8,7 +8,7 @@ require "json"
|
|
|
8
8
|
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
9
|
version = package['version']
|
|
10
10
|
|
|
11
|
-
source = { :git => 'https://github.com/
|
|
11
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
12
12
|
if version == '1000.0.0'
|
|
13
13
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
14
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -366,7 +366,7 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
|
|
|
366
366
|
if (@available(iOS 14.0, *)) {
|
|
367
367
|
// On iOS when Prefer Cross-Fade Transitions is enabled, the keyboard position
|
|
368
368
|
// & height is reported differently (0 instead of Y position value matching height of frame)
|
|
369
|
-
// Fixes similar issue we saw with https://github.com/
|
|
369
|
+
// Fixes similar issue we saw with https://github.com/react/react-native/pull/34503
|
|
370
370
|
if (UIAccessibilityPrefersCrossFadeTransitions() && endFrame.size.height == 0) {
|
|
371
371
|
newContentOffset.y = 0;
|
|
372
372
|
newEdgeInsets.bottom = 0;
|
package/React-Core.podspec
CHANGED
|
@@ -8,7 +8,7 @@ require "json"
|
|
|
8
8
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
9
9
|
version = package['version']
|
|
10
10
|
|
|
11
|
-
source = { :git => 'https://github.com/
|
|
11
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
12
12
|
if version == '1000.0.0'
|
|
13
13
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
14
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
package/React.podspec
CHANGED
|
@@ -8,7 +8,7 @@ require "json"
|
|
|
8
8
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
9
9
|
version = package['version']
|
|
10
10
|
|
|
11
|
-
source = { :git => 'https://github.com/
|
|
11
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
12
12
|
if version == '1000.0.0'
|
|
13
13
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
14
14
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -767,7 +767,7 @@ apply(from = "./publish.gradle")
|
|
|
767
767
|
// We need to override the artifact ID as this project is called `ReactAndroid` but
|
|
768
768
|
// the maven coordinates are on `react-android`.
|
|
769
769
|
// Please note that the original coordinates, `react-native`, have been voided
|
|
770
|
-
// as they caused https://github.com/
|
|
770
|
+
// as they caused https://github.com/react/react-native/issues/35210
|
|
771
771
|
publishing {
|
|
772
772
|
publications { getByName("release", MavenPublication::class) { artifactId = "react-android" } }
|
|
773
773
|
}
|
|
@@ -37,7 +37,7 @@ publishing {
|
|
|
37
37
|
pom {
|
|
38
38
|
name = "react-native"
|
|
39
39
|
description = "A framework for building native apps with React"
|
|
40
|
-
url = "https://github.com/
|
|
40
|
+
url = "https://github.com/react/react-native"
|
|
41
41
|
|
|
42
42
|
developers {
|
|
43
43
|
developer {
|
|
@@ -49,15 +49,15 @@ publishing {
|
|
|
49
49
|
licenses {
|
|
50
50
|
license {
|
|
51
51
|
name = "MIT License"
|
|
52
|
-
url = "https://github.com/
|
|
52
|
+
url = "https://github.com/react/react-native/blob/HEAD/LICENSE"
|
|
53
53
|
distribution = "repo"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
scm {
|
|
58
|
-
url = "https://github.com/
|
|
59
|
-
connection = "scm:git:https://github.com/
|
|
60
|
-
developerConnection = "scm:git:git@github.com:
|
|
58
|
+
url = "https://github.com/react/react-native.git"
|
|
59
|
+
connection = "scm:git:https://github.com/react/react-native.git"
|
|
60
|
+
developerConnection = "scm:git:git@github.com:react/react-native.git"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -171,6 +171,7 @@ public class ReactInstanceManager {
|
|
|
171
171
|
// Identifies whether the instance manager destroy function is in process,
|
|
172
172
|
// while true any spawned create thread should wait for proper clean up before initializing
|
|
173
173
|
private volatile Boolean mHasStartedDestroying = false;
|
|
174
|
+
private final Object mHasStartedDestroyingLock = new Object();
|
|
174
175
|
private final MemoryPressureRouter mMemoryPressureRouter;
|
|
175
176
|
private final @Nullable JSExceptionHandler mJSExceptionHandler;
|
|
176
177
|
private final @Nullable UIManagerProvider mUIManagerProvider;
|
|
@@ -782,8 +783,8 @@ public class ReactInstanceManager {
|
|
|
782
783
|
ResourceDrawableIdHelper.getInstance().clear();
|
|
783
784
|
|
|
784
785
|
mHasStartedDestroying = false;
|
|
785
|
-
synchronized (
|
|
786
|
-
|
|
786
|
+
synchronized (mHasStartedDestroyingLock) {
|
|
787
|
+
mHasStartedDestroyingLock.notifyAll();
|
|
787
788
|
}
|
|
788
789
|
synchronized (mPackages) {
|
|
789
790
|
mViewManagerNames = null;
|
|
@@ -1139,10 +1140,10 @@ public class ReactInstanceManager {
|
|
|
1139
1140
|
null,
|
|
1140
1141
|
() -> {
|
|
1141
1142
|
ReactMarker.logMarker(REACT_CONTEXT_THREAD_END);
|
|
1142
|
-
synchronized (ReactInstanceManager.this.
|
|
1143
|
+
synchronized (ReactInstanceManager.this.mHasStartedDestroyingLock) {
|
|
1143
1144
|
while (ReactInstanceManager.this.mHasStartedDestroying) {
|
|
1144
1145
|
try {
|
|
1145
|
-
ReactInstanceManager.this.
|
|
1146
|
+
ReactInstanceManager.this.mHasStartedDestroyingLock.wait();
|
|
1146
1147
|
} catch (InterruptedException e) {
|
|
1147
1148
|
// Interrupted while waiting for destruction to complete, just retry
|
|
1148
1149
|
continue;
|
package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt
CHANGED
|
@@ -85,7 +85,7 @@ internal class CxxInspectorPackagerConnection(
|
|
|
85
85
|
* A simple WebSocket wrapper that prevents having more than 16MiB of messages queued
|
|
86
86
|
* simultaneously. This is done to stop OkHttp from closing the WebSocket connection.
|
|
87
87
|
*
|
|
88
|
-
* https://github.com/
|
|
88
|
+
* https://github.com/react/react-native/issues/39651.
|
|
89
89
|
* https://github.com/square/okhttp/blob/4e7dbec1ea6c9cf8d80422ac9d44b9b185c749a3/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt#L684.
|
|
90
90
|
*/
|
|
91
91
|
private class InspectorPackagerWebSocketImpl(
|
package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt
CHANGED
|
@@ -626,14 +626,15 @@ internal constructor(
|
|
|
626
626
|
|
|
627
627
|
public fun storeSynchronousMountPropsOverride(reactTag: Int, props: ReadableMap): Unit {
|
|
628
628
|
if (ReactNativeFeatureFlags.overrideBySynchronousMountPropsAtMountingAndroid()) {
|
|
629
|
-
val propsMap =
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
629
|
+
val propsMap = getAnimatedPropsMap(props)
|
|
630
|
+
val synchronousMountProps = tagToSynchronousMountProps[reactTag] ?: mutableMapOf()
|
|
631
|
+
clearAnimatedNullPropsMapKeys(props, synchronousMountProps)
|
|
632
|
+
synchronousMountProps.putAll(propsMap)
|
|
633
|
+
if (synchronousMountProps.isEmpty()) {
|
|
634
|
+
tagToSynchronousMountProps.remove(reactTag)
|
|
633
635
|
} else {
|
|
634
|
-
|
|
636
|
+
tagToSynchronousMountProps[reactTag] = synchronousMountProps
|
|
635
637
|
}
|
|
636
|
-
tagToSynchronousMountProps[reactTag] = synchronousMountProps
|
|
637
638
|
}
|
|
638
639
|
}
|
|
639
640
|
|
|
@@ -899,7 +900,16 @@ internal constructor(
|
|
|
899
900
|
return
|
|
900
901
|
}
|
|
901
902
|
|
|
902
|
-
val viewState =
|
|
903
|
+
val viewState = getNullableViewState(reactTag)
|
|
904
|
+
if (viewState == null) {
|
|
905
|
+
ReactSoftExceptionLogger.logSoftException(
|
|
906
|
+
ReactSoftExceptionLogger.Categories.SURFACE_MOUNTING_MANAGER_MISSING_VIEWSTATE,
|
|
907
|
+
ReactNoCrashSoftException(
|
|
908
|
+
"Unable to find viewState for tag $reactTag for updateOverflowInset"
|
|
909
|
+
),
|
|
910
|
+
)
|
|
911
|
+
return
|
|
912
|
+
}
|
|
903
913
|
// Do not layout Root Views
|
|
904
914
|
if (viewState.isRoot) {
|
|
905
915
|
return
|
|
@@ -1069,8 +1079,8 @@ internal constructor(
|
|
|
1069
1079
|
// If the view that went offscreen is still being touched, we can't delete it yet.
|
|
1070
1080
|
// We have to delay the deletion till the touch is completed.
|
|
1071
1081
|
// This is causing bugs like those otherwise:
|
|
1072
|
-
// - https://github.com/
|
|
1073
|
-
// - https://github.com/
|
|
1082
|
+
// - https://github.com/react/react-native/issues/44610
|
|
1083
|
+
// - https://github.com/react/react-native/issues/45126
|
|
1074
1084
|
viewsToDeleteAfterTouchFinishes.add(reactTag)
|
|
1075
1085
|
} else {
|
|
1076
1086
|
// To delete we simply remove the tag from the registry.
|
|
@@ -1328,7 +1338,11 @@ internal constructor(
|
|
|
1328
1338
|
for ((propKey, propValue) in patchMap) {
|
|
1329
1339
|
if (outputReadableMap.hasKey(propKey)) {
|
|
1330
1340
|
if (propKey == PROP_TRANSFORM) {
|
|
1331
|
-
|
|
1341
|
+
val outputType = outputReadableMap.getType(propKey)
|
|
1342
|
+
assert(
|
|
1343
|
+
(outputType == ReadableType.Array || outputType == ReadableType.Null) &&
|
|
1344
|
+
propValue is List<*>
|
|
1345
|
+
)
|
|
1332
1346
|
val array = WritableNativeArray()
|
|
1333
1347
|
for (item in propValue as List<*>) {
|
|
1334
1348
|
if (item is Map<*, *>) {
|
|
@@ -1346,14 +1360,18 @@ internal constructor(
|
|
|
1346
1360
|
}
|
|
1347
1361
|
outputReadableMap.putArray(propKey, array)
|
|
1348
1362
|
} else if (propKey == PROP_OPACITY) {
|
|
1349
|
-
|
|
1363
|
+
val outputType = outputReadableMap.getType(propKey)
|
|
1364
|
+
assert(
|
|
1365
|
+
(outputType == ReadableType.Number || outputType == ReadableType.Null) &&
|
|
1366
|
+
propValue is Number
|
|
1367
|
+
)
|
|
1350
1368
|
outputReadableMap.putDouble(propKey, (propValue as Number).toDouble())
|
|
1351
1369
|
}
|
|
1352
1370
|
}
|
|
1353
1371
|
}
|
|
1354
1372
|
}
|
|
1355
1373
|
|
|
1356
|
-
private fun
|
|
1374
|
+
private fun getAnimatedPropsMap(readableMap: ReadableMap): MutableMap<String, Any> {
|
|
1357
1375
|
val outputMap = mutableMapOf<String, Any>()
|
|
1358
1376
|
|
|
1359
1377
|
if (
|
|
@@ -1383,6 +1401,25 @@ internal constructor(
|
|
|
1383
1401
|
return outputMap
|
|
1384
1402
|
}
|
|
1385
1403
|
|
|
1404
|
+
private fun clearAnimatedNullPropsMapKeys(
|
|
1405
|
+
readableMap: ReadableMap,
|
|
1406
|
+
outputMap: MutableMap<String, Any>,
|
|
1407
|
+
) {
|
|
1408
|
+
// Native Animated uses synchronous null updates to restore animated-managed props.
|
|
1409
|
+
// Keep this scoped to props stored by this override path today.
|
|
1410
|
+
if (
|
|
1411
|
+
readableMap.hasKey(PROP_TRANSFORM) &&
|
|
1412
|
+
readableMap.getType(PROP_TRANSFORM) == ReadableType.Null
|
|
1413
|
+
) {
|
|
1414
|
+
outputMap.remove(PROP_TRANSFORM)
|
|
1415
|
+
}
|
|
1416
|
+
if (
|
|
1417
|
+
readableMap.hasKey(PROP_OPACITY) && readableMap.getType(PROP_OPACITY) == ReadableType.Null
|
|
1418
|
+
) {
|
|
1419
|
+
outputMap.remove(PROP_OPACITY)
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1386
1423
|
// prevents unchecked conversion warn of the <ViewGroup> type
|
|
1387
1424
|
private fun getViewGroupManager(viewState: ViewState): IViewGroupManager<View> {
|
|
1388
1425
|
val viewManager =
|
|
@@ -326,8 +326,8 @@ public open class JavaTimerManager(
|
|
|
326
326
|
|
|
327
327
|
// If the JS thread is busy for multiple frames we cancel any other pending runnable.
|
|
328
328
|
// We also capture the idleCallbackRunnable to tentatively fix:
|
|
329
|
-
// https://github.com/
|
|
330
|
-
// https://github.com/
|
|
329
|
+
// https://github.com/react/react-native/issues/44842
|
|
330
|
+
// https://github.com/react/react-native/issues/54983
|
|
331
331
|
currentIdleCallbackRunnable?.cancel()
|
|
332
332
|
val idleCallbackRunnable = IdleCallbackRunnable(frameTimeNanos)
|
|
333
333
|
currentIdleCallbackRunnable = idleCallbackRunnable
|
|
@@ -87,11 +87,15 @@ public open class IntentModule(reactContext: ReactApplicationContext) :
|
|
|
87
87
|
override fun onHostResume() {
|
|
88
88
|
reactApplicationContext.removeLifecycleEventListener(this)
|
|
89
89
|
synchronized(this@IntentModule) {
|
|
90
|
-
|
|
90
|
+
// getInitialURL can re-enter and re-add to pendingOpenURLPromises when the activity
|
|
91
|
+
// is still null at resume, so drain a snapshot (after clearing the list and listener)
|
|
92
|
+
// to avoid mutating the list being iterated (ConcurrentModificationException).
|
|
93
|
+
val pendingPromises = ArrayList(pendingOpenURLPromises)
|
|
94
|
+
pendingOpenURLPromises.clear()
|
|
95
|
+
initialURLListener = null
|
|
96
|
+
for (pendingPromise in pendingPromises) {
|
|
91
97
|
getInitialURL(pendingPromise)
|
|
92
98
|
}
|
|
93
|
-
initialURLListener = null
|
|
94
|
-
pendingOpenURLPromises.clear()
|
|
95
99
|
}
|
|
96
100
|
}
|
|
97
101
|
|
|
@@ -223,7 +227,7 @@ public open class IntentModule(reactContext: ReactApplicationContext) :
|
|
|
223
227
|
}
|
|
224
228
|
ReadableType.Number -> {
|
|
225
229
|
// We cannot know from JS if is an Integer or Double
|
|
226
|
-
// See: https://github.com/
|
|
230
|
+
// See: https://github.com/react/react-native/issues/4141
|
|
227
231
|
// We might need to find a workaround if this is really an issue
|
|
228
232
|
val number = map.getDouble(EXTRA_MAP_KEY_FOR_VALUE)
|
|
229
233
|
intent.putExtra(name, number)
|
|
@@ -166,7 +166,7 @@ public class NetworkingModule(
|
|
|
166
166
|
|
|
167
167
|
@Deprecated(
|
|
168
168
|
"""To be removed in a future release. See
|
|
169
|
-
https://github.com/
|
|
169
|
+
https://github.com/react/react-native/pull/37798#pullrequestreview-1518338914"""
|
|
170
170
|
)
|
|
171
171
|
public interface CustomClientBuilder : com.facebook.react.modules.network.CustomClientBuilder
|
|
172
172
|
|
|
@@ -480,7 +480,7 @@ public class NetworkingModule(
|
|
|
480
480
|
} else {
|
|
481
481
|
// Use getBytes() to convert the body into a byte[], preventing okhttp from
|
|
482
482
|
// appending the character set to the Content-Type header when otherwise unspecified
|
|
483
|
-
// https://github.com/
|
|
483
|
+
// https://github.com/react/react-native/issues/8237
|
|
484
484
|
val charset =
|
|
485
485
|
if (contentMediaType == null) {
|
|
486
486
|
StandardCharsets.UTF_8
|
|
@@ -569,7 +569,7 @@ internal class ReactInstance(
|
|
|
569
569
|
// We need to null check here because some Java implementation of the
|
|
570
570
|
// `ViewManagerOnDemandReactPackage` interface could still return null even
|
|
571
571
|
// if the method is marked as returning a non-nullable collection in Kotlin.
|
|
572
|
-
// See https://github.com/
|
|
572
|
+
// See https://github.com/react/react-native/issues/52014
|
|
573
573
|
@Suppress("SENSELESS_COMPARISON")
|
|
574
574
|
if (names == null) {
|
|
575
575
|
RNLog.w(
|
|
@@ -626,7 +626,7 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
|
|
|
626
626
|
// The native Android implementation removed the screen density from the
|
|
627
627
|
// calculation, so squaring and a normalization value of
|
|
628
628
|
// sqrt(5) produces an exact replica with iOS.
|
|
629
|
-
// For more information, see https://github.com/
|
|
629
|
+
// For more information, see https://github.com/react/react-native/pull/18302
|
|
630
630
|
float normalizedCameraDistance =
|
|
631
631
|
sanitizeFloatPropertyValue(
|
|
632
632
|
scale * scale * cameraDistance * CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);
|
package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactNestedScrollViewManager.kt
CHANGED
|
@@ -438,7 +438,7 @@ constructor(private val fpsListener: FpsListener? = null) :
|
|
|
438
438
|
// be on the wrong side. Thus we are moving it to the other side, when the list
|
|
439
439
|
// is inverted.
|
|
440
440
|
// See also:
|
|
441
|
-
// - https://github.com/
|
|
441
|
+
// - https://github.com/react/react-native/issues/35350
|
|
442
442
|
// - https://issuetracker.google.com/issues/287304310
|
|
443
443
|
if (applyFix) {
|
|
444
444
|
view.verticalScrollbarPosition = View.SCROLLBAR_POSITION_LEFT
|
package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt
CHANGED
|
@@ -442,7 +442,7 @@ constructor(private val fpsListener: FpsListener? = null) :
|
|
|
442
442
|
// be on the wrong side. Thus we are moving it to the other side, when the list
|
|
443
443
|
// is inverted.
|
|
444
444
|
// See also:
|
|
445
|
-
// - https://github.com/
|
|
445
|
+
// - https://github.com/react/react-native/issues/35350
|
|
446
446
|
// - https://issuetracker.google.com/issues/287304310
|
|
447
447
|
if (applyFix) {
|
|
448
448
|
view.verticalScrollbarPosition = View.SCROLLBAR_POSITION_LEFT
|
|
@@ -252,7 +252,7 @@ public class ReactTextView extends AppCompatTextView implements ReactCompoundVie
|
|
|
252
252
|
try (SystraceSection s = new SystraceSection("ReactTextView.setText(ReactTextUpdate)")) {
|
|
253
253
|
// Android's TextView crashes when it tries to relayout if LayoutParams are
|
|
254
254
|
// null; explicitly set the LayoutParams to prevent this crash. See:
|
|
255
|
-
// https://github.com/
|
|
255
|
+
// https://github.com/react/react-native/pull/7011
|
|
256
256
|
if (getLayoutParams() == null) {
|
|
257
257
|
setLayoutParams(EMPTY_LAYOUT_PARAMS);
|
|
258
258
|
}
|
|
@@ -772,7 +772,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
|
|
|
772
772
|
/**
|
|
773
773
|
* Remove spans from the SpannableStringBuilder which can be represented by TextAppearance
|
|
774
774
|
* attributes on the underlying EditText. This works around instability on Samsung devices with
|
|
775
|
-
* the presence of spans https://github.com/
|
|
775
|
+
* the presence of spans https://github.com/react/react-native/issues/35936 (S318090)
|
|
776
776
|
*/
|
|
777
777
|
private fun stripStyleEquivalentSpans(sb: SpannableStringBuilder) {
|
|
778
778
|
stripSpansOfKind(sb, ReactAbsoluteSizeSpan::class.java) { span: ReactAbsoluteSizeSpan ->
|
|
@@ -990,7 +990,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
|
|
|
990
990
|
val selectionEnd = selectionEnd
|
|
991
991
|
|
|
992
992
|
// Used to ensure that text is selectable inside of removeClippedSubviews
|
|
993
|
-
// See https://github.com/
|
|
993
|
+
// See https://github.com/react/react-native/issues/6805 for original
|
|
994
994
|
// fix that was ported to here.
|
|
995
995
|
super.setTextIsSelectable(true)
|
|
996
996
|
|
package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt
CHANGED
|
@@ -381,7 +381,7 @@ public open class ReactTextInputManager public constructor() :
|
|
|
381
381
|
return
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
// Based on https://github.com/
|
|
384
|
+
// Based on https://github.com/react/react-native/pull/31007
|
|
385
385
|
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.P) {
|
|
386
386
|
return
|
|
387
387
|
}
|
|
@@ -739,7 +739,7 @@ public open class ReactTextInputManager public constructor() :
|
|
|
739
739
|
// crash happens when focusing on a email EditText, during which a prompt will be triggered
|
|
740
740
|
// but
|
|
741
741
|
// the system fail to locate it properly. Here is an example post discussing about this
|
|
742
|
-
// issue: https://github.com/
|
|
742
|
+
// issue: https://github.com/react/react-native/issues/27204
|
|
743
743
|
if (shouldHideCursorForEmailTextInput()) {
|
|
744
744
|
view.isCursorVisible = false
|
|
745
745
|
}
|
package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextSelectionWatcher.kt
CHANGED
|
@@ -30,7 +30,7 @@ internal class ReactTextSelectionWatcher(private val editText: ReactEditText) :
|
|
|
30
30
|
// forward it on if we have new values
|
|
31
31
|
|
|
32
32
|
// Apparently Android might call this with an end value that is less than the start value
|
|
33
|
-
// Lets normalize them. See https://github.com/
|
|
33
|
+
// Lets normalize them. See https://github.com/react/react-native/issues/18579
|
|
34
34
|
val realStart = min(start.toDouble(), end.toDouble()).toInt()
|
|
35
35
|
val realEnd = max(start.toDouble(), end.toDouble()).toInt()
|
|
36
36
|
|
|
@@ -458,7 +458,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
|
|
|
458
458
|
|
|
459
459
|
internal fun requestFocusFromJS() {
|
|
460
460
|
if (isAttachedToWindow) {
|
|
461
|
-
|
|
461
|
+
requestFocus(FOCUS_DOWN, null)
|
|
462
462
|
} else {
|
|
463
463
|
focusOnAttach = true
|
|
464
464
|
}
|
|
@@ -1188,7 +1188,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
|
|
|
1188
1188
|
return super.performAccessibilityAction(host, action, args)
|
|
1189
1189
|
}
|
|
1190
1190
|
if (action == AccessibilityNodeInfo.ACTION_FOCUS) {
|
|
1191
|
-
if (
|
|
1191
|
+
if (host.interceptAccessibilityEvents(action, args) == true) {
|
|
1192
1192
|
return true
|
|
1193
1193
|
}
|
|
1194
1194
|
// Handle case when focus guide cannot find any focusable child
|
|
@@ -1206,7 +1206,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
|
|
|
1206
1206
|
return super.performAccessibilityAction(host, action, args)
|
|
1207
1207
|
}
|
|
1208
1208
|
if (action == AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS) {
|
|
1209
|
-
if (
|
|
1209
|
+
if (host.interceptAccessibilityEvents(action, args) == true) {
|
|
1210
1210
|
return true
|
|
1211
1211
|
}
|
|
1212
1212
|
// Handle case when focus guide cannot find any focusable child
|
|
@@ -1265,7 +1265,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
|
|
|
1265
1265
|
return this.isFocusGuideTalkbackAccessibilityDelegateSet
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
|
-
private fun interceptAccessibilityEvents(action: Int, args: Bundle): Boolean {
|
|
1268
|
+
private fun interceptAccessibilityEvents(action: Int, args: Bundle?): Boolean {
|
|
1269
1269
|
if (!this.isTVFocusGuide) {
|
|
1270
1270
|
return false
|
|
1271
1271
|
}
|
|
@@ -518,7 +518,7 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
|
|
|
518
518
|
HOTSPOT_UPDATE_KEY -> handleHotspotUpdate(root, args)
|
|
519
519
|
"setPressed" -> handleSetPressed(root, args)
|
|
520
520
|
"setDestinations" -> handleSetDestinations(root, args)
|
|
521
|
-
"requestTVFocus" -> root.
|
|
521
|
+
"requestTVFocus" -> root.requestFocusFromJS()
|
|
522
522
|
"focus" -> handleFocus(root)
|
|
523
523
|
"blur" -> handleBlur(root)
|
|
524
524
|
else -> {}
|
|
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
15
15
|
s.license = package["license"]
|
|
16
16
|
s.homepage = "https://reactnative.dev/"
|
|
17
|
-
s.source = { :git => 'https://github.com/
|
|
17
|
+
s.source = { :git => 'https://github.com/react/react-native.git', :tag => 'v#{version}' }
|
|
18
18
|
s.summary = "Macros for marking APIs as deprecated"
|
|
19
19
|
s.source_files = podspec_sources(["Exported/*.h", "RCTDeprecation.m"], "Exported/*.h")
|
|
20
20
|
s.pod_target_xcconfig = {
|
|
@@ -8,7 +8,7 @@ require "json"
|
|
|
8
8
|
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
9
|
version = package['version']
|
|
10
10
|
|
|
11
|
-
source = { :git => 'https://github.com/
|
|
11
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
12
12
|
if version == '1000.0.0'
|
|
13
13
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we're presumably in.
|
|
14
14
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
@@ -8,7 +8,7 @@ require "json"
|
|
|
8
8
|
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
|
9
9
|
version = package['version']
|
|
10
10
|
|
|
11
|
-
source = { :git => 'https://github.com/
|
|
11
|
+
source = { :git => 'https://github.com/react/react-native.git' }
|
|
12
12
|
if version == '1000.0.0'
|
|
13
13
|
# This is an unpublished version, use the latest commit hash of the react-native repo, which we're presumably in.
|
|
14
14
|
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|