react-native-macos 0.0.0-35c96300a → 0.0.0-38e149ac0
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/ActionSheetIOS.js +17 -4
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +25 -0
- package/Libraries/Alert/Alert.js +1 -1
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/AnimatedImplementation.js +23 -24
- package/Libraries/Animated/AnimatedMock.js +52 -11
- package/Libraries/Animated/Easing.js +1 -3
- package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
- package/Libraries/Animated/SpringConfig.js +10 -10
- package/Libraries/Animated/bezier.js +19 -8
- package/Libraries/Animated/components/AnimatedImage.js +3 -3
- package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
- package/Libraries/Animated/components/AnimatedText.js +3 -3
- package/Libraries/Animated/components/AnimatedView.js +1 -3
- package/Libraries/Animated/createAnimatedComponent.js +6 -37
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +2 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +3 -3
- package/Libraries/Animated/nodes/AnimatedStyle.js +2 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +10 -10
- package/Libraries/Animated/nodes/AnimatedValueXY.js +12 -12
- package/Libraries/AppState/AppState.js +2 -2
- package/Libraries/BatchedBridge/MessageQueue.js +6 -8
- package/Libraries/Blob/RCTBlobManager.mm +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +2 -2
- package/Libraries/Blob/URL.js +25 -20
- package/Libraries/BugReporting/getReactData.js +14 -5
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +68 -24
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +3 -0
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +2 -1
- package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +4 -4
- package/Libraries/Components/Button.js +6 -8
- package/Libraries/Components/CheckBox/CheckBox.macos.js +8 -4
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +20 -7
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +8 -9
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +18 -7
- package/Libraries/Components/Pressable/Pressable.js +2 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +5 -4
- package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +0 -1
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
- package/Libraries/Components/ScrollView/ScrollView.js +26 -21
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +269 -252
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +59 -11
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -3
- package/Libraries/Components/TextInput/InputAccessoryView.js +2 -1
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +0 -2
- package/Libraries/Components/TextInput/TextInput.js +39 -20
- package/Libraries/Components/Touchable/PooledClass.js +5 -5
- package/Libraries/Components/Touchable/Touchable.js +0 -14
- package/Libraries/Components/Touchable/TouchableBounce.js +13 -23
- package/Libraries/Components/Touchable/TouchableHighlight.js +21 -31
- package/Libraries/Components/Touchable/TouchableOpacity.js +16 -30
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +8 -18
- package/Libraries/Components/View/ReactNativeViewAttributes.js +8 -7
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +12 -1
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
- package/Libraries/Components/View/View.js +9 -11
- package/Libraries/Components/View/ViewAccessibility.js +1 -2
- package/Libraries/Components/View/ViewPropTypes.js +31 -37
- package/Libraries/Core/ExceptionsManager.js +45 -80
- package/Libraries/Core/ExtendedError.js +0 -1
- package/Libraries/Core/InitializeCore.js +0 -2
- package/Libraries/Core/ReactNativeVersion.js +5 -1
- package/Libraries/Core/ReactNativeVersionCheck.js +10 -1
- package/Libraries/Core/setUpBatchedBridge.js +15 -3
- package/Libraries/Core/setUpErrorHandling.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -4
- package/Libraries/Core/setUpTimers.js +13 -3
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +6 -6
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +83 -12
- package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +18 -18
- package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +30 -30
- package/Libraries/Image/Image.android.js +16 -17
- package/Libraries/Image/Image.ios.js +18 -15
- package/Libraries/Image/ImageBackground.js +22 -10
- package/Libraries/Image/ImageProps.js +45 -17
- package/Libraries/Image/RCTAnimatedImage.m +1 -1
- package/Libraries/Image/RCTImageCache.m +2 -2
- package/Libraries/Image/RCTImageLoaderProtocol.h +1 -1
- package/Libraries/Image/RCTImageView.mm +7 -9
- package/Libraries/Image/RCTUIImageViewAnimated.m +1 -1
- package/Libraries/Image/React-RCTImage.podspec +2 -2
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/ElementProperties.js +4 -2
- package/Libraries/Inspector/Inspector.js +1 -1
- package/Libraries/Inspector/InspectorOverlay.js +2 -1
- package/Libraries/Inspector/InspectorPanel.js +2 -1
- package/Libraries/Inspector/NetworkOverlay.js +6 -3
- package/Libraries/Linking/Linking.js +7 -7
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +2 -2
- package/Libraries/Lists/FillRateHelper.js +4 -1
- package/Libraries/Lists/SectionList.js +3 -3
- package/Libraries/Lists/SectionListModern.js +3 -3
- package/Libraries/Lists/VirtualizedList.js +14 -9
- package/Libraries/Lists/VirtualizedListContext.js +2 -1
- package/Libraries/LogBox/Data/LogBoxData.js +18 -19
- package/Libraries/LogBox/LogBox.js +3 -3
- package/Libraries/LogBox/UI/AnsiHighlight.js +9 -4
- package/Libraries/LogBox/UI/LogBoxButton.js +4 -2
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/LogBox/UI/LogBoxInspector.js +3 -1
- package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +4 -2
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +2 -1
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +2 -1
- package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +7 -4
- package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +2 -1
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +5 -3
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +7 -3
- package/Libraries/LogBox/UI/LogBoxMessage.js +6 -2
- package/Libraries/LogBox/UI/LogBoxNotification.js +10 -5
- package/Libraries/Modal/Modal.js +17 -14
- package/Libraries/Modal/RCTModalHostViewNativeComponent.js +11 -11
- package/Libraries/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +42 -38
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +33 -32
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +1 -4
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +10 -41
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +2 -2
- package/Libraries/NativeComponent/NativeComponentRegistry.js +26 -9
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +159 -0
- package/Libraries/Network/React-RCTNetwork.podspec +2 -2
- package/Libraries/Network/XMLHttpRequest.js +43 -6
- package/Libraries/NewAppScreen/components/Header.js +4 -2
- package/Libraries/NewAppScreen/components/HermesBadge.js +2 -1
- package/Libraries/NewAppScreen/components/LearnMoreLinks.js +4 -2
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Performance/Systrace.js +8 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +7 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +17 -5
- package/Libraries/Pressability/Pressability.js +13 -13
- package/Libraries/Pressability/PressabilityDebug.js +14 -11
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +26 -26
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +1 -2
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +2 -2
- package/Libraries/RCTTest/RNTester-macOSUITests/RNTester_macOSUITests.m +1 -1
- package/Libraries/ReactNative/AppContainer.js +4 -2
- package/Libraries/ReactNative/AppRegistry.js +12 -10
- package/Libraries/ReactNative/getCachedComponentWithDebugName.js +3 -1
- package/Libraries/ReactNative/getNativeComponentAttributes.js +15 -1
- package/Libraries/ReactNative/renderApplication.js +2 -1
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +2528 -1057
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +608 -375
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +963 -463
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +2551 -1168
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +610 -381
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +960 -460
- package/Libraries/Renderer/shims/ReactFabric.js +2 -2
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
- package/Libraries/Renderer/shims/ReactNative.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -2
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -2
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
- package/Libraries/Settings/React-RCTSettings.podspec +2 -2
- package/Libraries/Share/Share.js +1 -1
- package/Libraries/Storage/AsyncStorage.js +12 -13
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +16 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +2 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +8 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/StyleSheet/processTransform.js +20 -1
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
- package/Libraries/Text/Text/RCTTextView.m +8 -4
- package/Libraries/Text/Text.js +7 -10
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +18 -14
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +14 -15
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +3 -1
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +11 -15
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +3 -0
- package/Libraries/Text/TextNativeComponent.js +0 -2
- package/Libraries/Text/TextProps.js +19 -25
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Types/RootTagTypes.js~merged +23 -0
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +5 -7
- package/Libraries/Utilities/SceneTracker.js +4 -1
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -2
- package/Libraries/Utilities/differ/matricesDiffer.js +5 -1
- package/Libraries/Utilities/differ/sizesDiffer.js +10 -4
- package/Libraries/Utilities/useWindowDimensions.js +5 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +1 -1
- package/Libraries/Vibration/React-RCTVibration.podspec +2 -2
- package/Libraries/Vibration/Vibration.js +3 -3
- package/Libraries/WebSocket/RCTSRWebSocket.m +23 -0
- package/Libraries/WebSocket/WebSocketInterceptor.js +2 -2
- package/README.md +19 -43
- package/React/Base/RCTBridge+Private.h +8 -0
- package/React/Base/RCTBridge.h +4 -0
- package/React/Base/RCTBridge.m +19 -7
- package/React/Base/RCTBridgeMethod.h +1 -1
- package/React/Base/RCTBridgeModule.h +3 -12
- package/React/Base/RCTBundleURLProvider.h +1 -15
- package/React/Base/RCTBundleURLProvider.mm +15 -31
- package/React/Base/RCTConstants.h +0 -12
- package/React/Base/RCTConstants.m +0 -30
- package/React/Base/RCTConvert.h +1 -1
- package/React/Base/RCTConvert.m +25 -8
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTDisplayLink.m +6 -2
- package/React/Base/RCTEventDispatcherProtocol.h +2 -0
- package/React/Base/RCTImageSource.m +2 -0
- package/React/Base/RCTJSStackFrame.m +2 -0
- package/React/Base/RCTJSThread.h +29 -0
- package/React/Base/RCTJSThread.m +19 -0
- package/React/Base/RCTJavaScriptLoader.mm +2 -0
- package/React/Base/RCTKeyCommands.m +2 -0
- package/React/Base/RCTMockDef.h +61 -0
- package/React/Base/RCTModuleData.mm +2 -0
- package/React/Base/RCTModuleMethod.mm +2 -0
- package/React/Base/RCTNullability.h +1 -1
- package/React/Base/RCTPerformanceLogger.h +1 -1
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchEvent.m +2 -0
- package/React/Base/RCTTouchHandler.m +1 -8
- package/React/Base/RCTUtils.h +3 -0
- package/React/Base/RCTUtils.m +14 -7
- package/React/Base/RCTVersion.m +5 -1
- package/React/Base/Surface/RCTSurface.mm +2 -4
- package/React/Base/Surface/RCTSurfaceProtocol.h +2 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +11 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +35 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +5 -2
- package/React/CoreModules/RCTAccessibilityManager+Internal.h +24 -0
- package/React/CoreModules/RCTAccessibilityManager.mm +18 -3
- package/React/CoreModules/RCTActionSheetManager.mm +18 -5
- package/React/CoreModules/RCTAddressSanitizerCrashManager.h +12 -0
- package/React/CoreModules/RCTAddressSanitizerCrashManager.mm +18 -0
- package/React/CoreModules/RCTAlertController.m +9 -5
- package/React/CoreModules/RCTAlertManager.mm +1 -1
- package/React/CoreModules/RCTAppearance.mm +23 -25
- package/React/CoreModules/RCTDevLoadingView.mm +19 -19
- package/React/CoreModules/RCTDevMenu.mm +9 -9
- package/React/CoreModules/RCTDevSettings.mm +6 -6
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.mm +5 -0
- package/React/CoreModules/RCTExceptionsManager.mm +11 -24
- package/React/CoreModules/RCTLogBox.mm +1 -3
- package/React/CoreModules/RCTLogBoxView.h +2 -0
- package/React/CoreModules/RCTLogBoxView.mm +5 -0
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CoreModules/RCTRedBox.mm +1 -5
- package/React/CoreModules/React-CoreModules.podspec +2 -2
- package/React/CxxBridge/RCTCxxBridge.mm +21 -10
- package/React/CxxModule/RCTCxxMethod.mm +2 -0
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
- package/React/DevSupport/RCTPackagerConnection.h +3 -0
- package/React/DevSupport/RCTPackagerConnection.mm +9 -5
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +12 -4
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +6 -15
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +0 -3
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +4 -6
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +29 -93
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +29 -5
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +2 -5
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +5 -8
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +2 -2
- package/React/Fabric/Mounting/RCTMountingManager.mm +16 -2
- package/React/Fabric/RCTScheduler.mm +12 -5
- package/React/Fabric/RCTSurfacePresenter.mm +2 -10
- package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
- package/React/Fabric/Surface/RCTFabricSurface.h +9 -24
- package/React/Fabric/Surface/RCTFabricSurface.mm +6 -10
- package/React/Modules/RCTEventEmitter.h +2 -2
- package/React/Modules/RCTI18nUtil.h +6 -13
- package/React/Modules/RCTI18nUtil.m +47 -1
- package/React/Modules/RCTLayoutAnimation.m +2 -0
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
- package/React/Modules/RCTUIManager.m +19 -10
- package/React/React-RCTFabric.podspec +1 -2
- package/React/Tests/Text/RCTParagraphComponentViewTests.mm +7 -7
- package/React/Views/RCTFont.mm +58 -47
- package/React/Views/RCTShadowView.m +3 -1
- package/React/Views/RCTSwitch.h +1 -1
- package/React/Views/RCTSwitch.m +0 -15
- package/React/Views/RCTView.h +5 -11
- package/React/Views/RCTView.m +30 -36
- package/React/Views/RCTViewManager.m +13 -18
- package/React/Views/RCTViewUtils.h +20 -0
- package/React/Views/RCTViewUtils.m +24 -0
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +3 -5
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.h +2 -2
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.m +10 -24
- package/React/Views/ScrollView/RCTScrollView.m +14 -35
- package/React/Views/ScrollView/RCTScrollViewManager.m +2 -7
- package/React/Views/UIView+React.m +7 -10
- package/React-Core.podspec +0 -12
- package/ReactAndroid/Android-prebuilt.mk +35 -2
- package/ReactAndroid/DevExperience.md +1 -1
- package/ReactAndroid/build.gradle +97 -229
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/androidTest/AndroidManifest.xml +1 -0
- package/ReactAndroid/src/androidTest/buck-runner/AndroidManifest.xml +2 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/ReactNativeTestRule.java +2 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -1
- package/ReactAndroid/src/androidTest/js/AnimatedTransformTestModule.js +2 -1
- package/ReactAndroid/src/androidTest/js/JSResponderTestApp.js +2 -1
- package/ReactAndroid/src/androidTest/js/LayoutEventsTestApp.js +2 -1
- package/ReactAndroid/src/androidTest/js/MeasureLayoutTestModule.js +25 -22
- package/ReactAndroid/src/androidTest/js/ScrollViewTestModule.js +4 -3
- package/ReactAndroid/src/androidTest/js/SubviewsClippingTestModule.js +15 -8
- package/ReactAndroid/src/androidTest/js/SwipeRefreshLayoutTestModule.js +3 -2
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -7
- package/ReactAndroid/src/androidTest/js/TextInputTestModule.js +3 -8
- package/ReactAndroid/src/androidTest/js/TouchBubblingTestAppModule.js +6 -3
- package/ReactAndroid/src/androidTest/js/UIManagerTestModule.js +6 -3
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/BUCK +2 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutor.java +14 -8
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceEventListener.java +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +86 -43
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +50 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +31 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +58 -10
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +13 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegate.java +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegateFactory.java +24 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +6 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +102 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +35 -11
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +5 -72
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxModule.java +28 -42
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/EmptyReactNativeConfig.java +35 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +3 -7
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +54 -14
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/ReactNativeConfig.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +8 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.java +43 -9
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.cpp +69 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +40 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +2 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +89 -36
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/CoreComponentsRegistry.h +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +20 -2
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/SurfaceHandlerBinding.cpp +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +11 -12
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +25 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/BUCK +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/JSCExecutor.java +6 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.java +41 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/BUCK +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java +9 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ExceptionsManagerModule.java +7 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/processing/ReactPropertyProcessor.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/BUCK +0 -12
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java +10 -25
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootView.java +11 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +90 -10
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +11 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +38 -23
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +19 -22
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventCategoryDef.java +42 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/EventDispatcherImpl.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/NativeGestureUtil.java +13 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTEventEmitter.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +17 -9
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +56 -16
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEventType.java +15 -16
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +109 -19
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +12 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +107 -154
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +119 -144
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.java +247 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +5 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.java +22 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +16 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +21 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +22 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +25 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +25 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +5 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +19 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +30 -16
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +6 -5
- package/ReactAndroid/src/main/jni/react/jni/BUCK +4 -5
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +49 -7
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +15 -2
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h +25 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactMarker.cpp +11 -3
- package/ReactAndroid/src/main/jni/react/jni/JReactMarker.h +3 -0
- package/{ReactCommon/react/renderer/core/Constants.h → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +8 -9
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/react/perftests/BUCK +0 -4
- package/ReactAndroid/src/main/jni/third-party/libevent/event-config.h +339 -339
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +8 -0
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +6 -6
- package/ReactAndroid/src/test/java/com/facebook/react/RootViewTest.java +43 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.java +3 -1
- package/ReactCommon/React-Fabric.podspec +2 -10
- package/ReactCommon/React-rncore.podspec +41 -0
- package/ReactCommon/better/BUCK +0 -6
- package/ReactCommon/callinvoker/BUCK +2 -8
- package/ReactCommon/cxxreact/Android.mk +2 -2
- package/ReactCommon/cxxreact/BUCK +1 -16
- package/ReactCommon/cxxreact/ReactMarker.cpp +5 -1
- package/ReactCommon/cxxreact/ReactMarker.h +9 -10
- package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -1
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1238 -1491
- package/ReactCommon/hermes/inspector/tools/sandcastle/setup.sh +0 -4
- package/ReactCommon/jsi/BUCK +0 -9
- package/ReactCommon/jsi/jsi/jsi.h +4 -4
- package/ReactCommon/jsinspector/BUCK +1 -5
- package/ReactCommon/logger/BUCK +0 -5
- package/ReactCommon/react/config/BUCK +2 -6
- package/ReactCommon/react/debug/Android.mk +0 -2
- package/ReactCommon/react/debug/BUCK +0 -6
- package/ReactCommon/react/debug/react_native_assert.cpp +4 -4
- package/ReactCommon/react/nativemodule/core/BUCK +0 -5
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +14 -31
- package/ReactCommon/react/nativemodule/samples/BUCK +0 -7
- package/ReactCommon/react/renderer/animations/BUCK +1 -4
- package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -26
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +912 -1147
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +80 -245
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +3 -3
- package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
- package/ReactCommon/react/renderer/animations/utils.h +80 -0
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
- package/ReactCommon/react/renderer/attributedstring/BUCK +0 -6
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +6 -15
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -5
- package/ReactCommon/react/renderer/attributedstring/conversions.h +87 -92
- package/ReactCommon/react/renderer/attributedstring/primitives.h +21 -19
- package/ReactCommon/react/renderer/componentregistry/BUCK +0 -6
- package/ReactCommon/react/renderer/componentregistry/native/BUCK +0 -6
- package/ReactCommon/react/renderer/components/image/BUCK +0 -6
- package/ReactCommon/react/renderer/components/image/ImageComponentDescriptor.h +0 -2
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +0 -6
- package/ReactCommon/react/renderer/components/inputaccessory/InputAccessoryComponentDescriptor.h +0 -4
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +0 -6
- package/ReactCommon/react/renderer/components/modal/BUCK +0 -6
- package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +0 -5
- package/ReactCommon/react/renderer/components/progressbar/BUCK +0 -6
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/root/BUCK +0 -6
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +0 -6
- package/ReactCommon/react/renderer/components/scrollview/BUCK +0 -6
- package/ReactCommon/react/renderer/components/slider/BUCK +0 -6
- package/ReactCommon/react/renderer/components/slider/SliderComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/switch/BUCK +0 -6
- package/ReactCommon/react/renderer/components/switch/androidswitch/react/renderer/components/androidswitch/AndroidSwitchComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/text/BUCK +0 -6
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +4 -10
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -20
- package/ReactCommon/react/renderer/components/textinput/BUCK +0 -6
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +2 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/BUCK +0 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputComponentDescriptor.h +0 -3
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.cpp +5 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputEventEmitter.h +3 -0
- package/ReactCommon/react/renderer/components/unimplementedview/BUCK +0 -6
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +0 -4
- package/ReactCommon/react/renderer/components/view/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/view/BUCK +2 -6
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -23
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +18 -0
- package/ReactCommon/react/renderer/components/view/ViewProps.h +6 -0
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +2 -3
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +7 -6
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +4 -0
- package/ReactCommon/react/renderer/core/BUCK +2 -6
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +14 -9
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +1 -10
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +9 -4
- package/ReactCommon/react/renderer/core/EventEmitter.h +2 -1
- package/ReactCommon/react/renderer/core/EventTarget.cpp +4 -2
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +13 -23
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +2 -2
- package/ReactCommon/react/renderer/core/Props.h +1 -0
- package/ReactCommon/react/renderer/core/PropsParserContext.h +3 -2
- package/ReactCommon/react/renderer/core/RawEvent.h +7 -5
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +7 -10
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/debug/BUCK +2 -6
- package/ReactCommon/react/renderer/element/BUCK +0 -6
- package/ReactCommon/react/renderer/graphics/Android.mk +1 -1
- package/ReactCommon/react/renderer/graphics/BUCK +0 -6
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +0 -1
- package/ReactCommon/react/renderer/graphics/Transform.cpp +1 -1
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +8 -10
- package/ReactCommon/react/renderer/imagemanager/BUCK +0 -6
- package/ReactCommon/react/renderer/leakchecker/BUCK +0 -6
- package/ReactCommon/react/renderer/mapbuffer/BUCK +0 -6
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/BUCK +0 -6
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -7
- package/ReactCommon/react/renderer/runtimescheduler/ErrorUtils.h +36 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +28 -20
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +4 -3
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +32 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +36 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -3
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +26 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubErrorUtils.h +72 -0
- package/ReactCommon/react/renderer/scheduler/BUCK +0 -6
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +1 -4
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +1 -1
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +4 -4
- package/ReactCommon/react/renderer/telemetry/BUCK +0 -6
- package/ReactCommon/react/renderer/templateprocessor/BUCK +0 -6
- package/ReactCommon/react/renderer/textlayoutmanager/BUCK +0 -6
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +23 -5
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +10 -35
- package/ReactCommon/react/renderer/timeline/BUCK +6 -12
- package/ReactCommon/react/renderer/uimanager/BUCK +0 -6
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +2 -2
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +1 -1
- package/ReactCommon/react/test_utils/BUCK +3 -6
- package/ReactCommon/react/test_utils/MockSurfaceHandler.h +26 -0
- package/ReactCommon/react/utils/BUCK +0 -6
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/ReactCommon/reactperflogger/BUCK +0 -4
- package/ReactCommon/runtimeexecutor/Android.mk +1 -1
- package/ReactCommon/runtimeexecutor/BUCK +0 -6
- package/ReactCommon/yoga/BUCK +1 -5
- package/flow/global.js +41 -0
- package/flow-typed/npm/glob_v7.x.x.js +79 -0
- package/index.js +41 -26
- package/jest/mockModal.js +31 -0
- package/jest/mockNativeComponent.js +4 -0
- package/jest/preprocessor.js +7 -75
- package/jest/setup.js +6 -3
- package/local-cli/cli.js +0 -0
- package/local-cli/generator-macos/templates/macos/Podfile +2 -7
- package/package.json +55 -32
- package/react.gradle +73 -26
- package/scripts/compose-source-maps.js +14 -10
- package/scripts/find-node.sh +19 -0
- package/scripts/generate-specs-cli.js +62 -10
- package/scripts/ios-configure-glog.sh +25 -0
- package/scripts/launchPackager.command +11 -3
- package/scripts/packager.sh +1 -1
- package/scripts/react-native-xcode.sh +7 -7
- package/scripts/react_native_pods.rb +372 -60
- package/scripts/update-ruby.sh +69 -0
- package/template/App.js +8 -4
- package/template/Gemfile +6 -0
- package/template/Gemfile.lock +100 -0
- package/template/_bundle/config +2 -0
- package/template/_flowconfig +1 -1
- package/template/_prettierrc.js +2 -2
- package/template/_ruby-version +1 -0
- package/template/android/app/build.gradle +12 -9
- package/template/android/app/src/debug/AndroidManifest.xml +1 -1
- package/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java +2 -1
- package/template/android/app/src/main/AndroidManifest.xml +3 -2
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/template/android/app/src/main/res/values/styles.xml +1 -0
- package/template/android/build.gradle +11 -7
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +6 -1
- package/template/android/gradlew +153 -104
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +0 -2
- package/template/package.json +4 -2
- package/third-party-podspecs/RCT-Folly.podspec +2 -2
- package/third-party-podspecs/glog.podspec +0 -1
- package/CHANGELOG.json +0 -500
- package/CHANGELOG.md +0 -240
- package/Libraries/.npmignore +0 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/Touchable/__mocks__/ensureComponentIsNative.js +0 -12
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -54
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/React/Base/macOS/RCTDynamicColor.h +0 -28
- package/React/Base/macOS/RCTDynamicColor.m +0 -219
- package/React/Fabric/Surface/RCTFabricSurfaceHostingView.h +0 -15
- package/React/Fabric/Surface/RCTFabricSurfaceHostingView.mm +0 -27
- package/ReactAndroid/.npmignore +0 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -153
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/BUCK +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/RuntimeSchedulerManager.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/Android.mk +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/BUCK +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/OnLoad.cpp +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.cpp +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.h +0 -40
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerDelegate.java +0 -57
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/AndroidViewPagerManagerInterface.java +0 -23
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/BUCK +0 -19
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerDelegate.java +0 -62
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/DatePickerManagerInterface.java +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerDelegate.java +0 -33
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/InputAccessoryViewManagerInterface.java +0 -17
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerDelegate.java +0 -51
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/PullToRefreshViewManagerInterface.java +0 -21
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerDelegate.java +0 -63
- package/ReactAndroid/src/main/java/com/facebook/react/viewmanagers/SwitchManagerInterface.java +0 -24
- package/ReactAndroid/src/main/jni/first-party/fbjni/.gitignore +0 -2
- package/ReactCommon/hermes/inspector/tools/msggen/.gitignore +0 -3
- package/ReactCommon/react/renderer/core/Constants.cpp +0 -24
- package/scripts/fixmacscripts.sh +0 -9
- package/scripts/generate-specs.sh +0 -99
- package/scripts/postInstall.js +0 -6
- package/template/_editorconfig +0 -3
- package/template/_gitattributes +0 -3
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import DeprecatedImagePropType from '../DeprecatedPropTypes/DeprecatedImagePropType';
|
|
12
11
|
import ImageViewNativeComponent from './ImageViewNativeComponent';
|
|
13
12
|
import * as React from 'react';
|
|
14
13
|
import StyleSheet from '../StyleSheet/StyleSheet';
|
|
@@ -33,7 +32,7 @@ function generateRequestId() {
|
|
|
33
32
|
/**
|
|
34
33
|
* Retrieve the width and height (in pixels) of an image prior to displaying it
|
|
35
34
|
*
|
|
36
|
-
* See https://reactnative.dev/docs/image
|
|
35
|
+
* See https://reactnative.dev/docs/image#getsize
|
|
37
36
|
*/
|
|
38
37
|
function getSize(
|
|
39
38
|
url: string,
|
|
@@ -56,7 +55,7 @@ function getSize(
|
|
|
56
55
|
* Retrieve the width and height (in pixels) of an image prior to displaying it
|
|
57
56
|
* with the ability to provide the headers for the request
|
|
58
57
|
*
|
|
59
|
-
* See https://reactnative.dev/docs/image
|
|
58
|
+
* See https://reactnative.dev/docs/image#getsizewithheaders
|
|
60
59
|
*/
|
|
61
60
|
function getSizeWithHeaders(
|
|
62
61
|
url: string,
|
|
@@ -99,7 +98,7 @@ function abortPrefetch(requestId: number) {
|
|
|
99
98
|
/**
|
|
100
99
|
* Perform cache interrogation.
|
|
101
100
|
*
|
|
102
|
-
* See https://reactnative.dev/docs/image
|
|
101
|
+
* See https://reactnative.dev/docs/image#querycache
|
|
103
102
|
*/
|
|
104
103
|
async function queryCache(
|
|
105
104
|
urls: Array<string>,
|
|
@@ -115,7 +114,6 @@ type ImageComponentStatics = $ReadOnly<{|
|
|
|
115
114
|
abortPrefetch: typeof abortPrefetch,
|
|
116
115
|
queryCache: typeof queryCache,
|
|
117
116
|
resolveAssetSource: typeof resolveAssetSource,
|
|
118
|
-
propTypes: typeof DeprecatedImagePropType,
|
|
119
117
|
|}>;
|
|
120
118
|
|
|
121
119
|
/**
|
|
@@ -123,7 +121,7 @@ type ImageComponentStatics = $ReadOnly<{|
|
|
|
123
121
|
* including network images, static resources, temporary local images, and
|
|
124
122
|
* images from local disk, such as the camera roll.
|
|
125
123
|
*
|
|
126
|
-
* See https://reactnative.dev/docs/image
|
|
124
|
+
* See https://reactnative.dev/docs/image
|
|
127
125
|
*/
|
|
128
126
|
let Image = (props: ImagePropsType, forwardedRef) => {
|
|
129
127
|
let source = resolveAssetSource(props.source);
|
|
@@ -229,7 +227,7 @@ Image.displayName = 'Image';
|
|
|
229
227
|
/**
|
|
230
228
|
* Retrieve the width and height (in pixels) of an image prior to displaying it
|
|
231
229
|
*
|
|
232
|
-
* See https://reactnative.dev/docs/image
|
|
230
|
+
* See https://reactnative.dev/docs/image#getsize
|
|
233
231
|
*/
|
|
234
232
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
235
233
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
@@ -240,7 +238,7 @@ Image.getSize = getSize;
|
|
|
240
238
|
* Retrieve the width and height (in pixels) of an image prior to displaying it
|
|
241
239
|
* with the ability to provide the headers for the request
|
|
242
240
|
*
|
|
243
|
-
* See https://reactnative.dev/docs/image
|
|
241
|
+
* See https://reactnative.dev/docs/image#getsizewithheaders
|
|
244
242
|
*/
|
|
245
243
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
246
244
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
@@ -251,7 +249,7 @@ Image.getSizeWithHeaders = getSizeWithHeaders;
|
|
|
251
249
|
* Prefetches a remote image for later use by downloading it to the disk
|
|
252
250
|
* cache
|
|
253
251
|
*
|
|
254
|
-
* See https://reactnative.dev/docs/image
|
|
252
|
+
* See https://reactnative.dev/docs/image#prefetch
|
|
255
253
|
*/
|
|
256
254
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
257
255
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
@@ -262,7 +260,7 @@ Image.prefetch = prefetch;
|
|
|
262
260
|
* Prefetches a remote image for later use by downloading it to the disk
|
|
263
261
|
* cache, and adds metadata for queryRootName and rootTag.
|
|
264
262
|
*
|
|
265
|
-
* See https://reactnative.dev/docs/image
|
|
263
|
+
* See https://reactnative.dev/docs/image#prefetch
|
|
266
264
|
*/
|
|
267
265
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
268
266
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
@@ -272,7 +270,7 @@ Image.prefetchWithMetadata = prefetchWithMetadata;
|
|
|
272
270
|
/**
|
|
273
271
|
* Abort prefetch request.
|
|
274
272
|
*
|
|
275
|
-
* See https://reactnative.dev/docs/image
|
|
273
|
+
* See https://reactnative.dev/docs/image#abortprefetch
|
|
276
274
|
*/
|
|
277
275
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
278
276
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
@@ -282,7 +280,7 @@ Image.abortPrefetch = abortPrefetch;
|
|
|
282
280
|
/**
|
|
283
281
|
* Perform cache interrogation.
|
|
284
282
|
*
|
|
285
|
-
* See https://reactnative.dev/docs/image
|
|
283
|
+
* See https://reactnative.dev/docs/image#querycache
|
|
286
284
|
*/
|
|
287
285
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
288
286
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
@@ -292,17 +290,18 @@ Image.queryCache = queryCache;
|
|
|
292
290
|
/**
|
|
293
291
|
* Resolves an asset reference into an object.
|
|
294
292
|
*
|
|
295
|
-
* See https://reactnative.dev/docs/image
|
|
293
|
+
* See https://reactnative.dev/docs/image#resolveassetsource
|
|
296
294
|
*/
|
|
297
295
|
/* $FlowFixMe(>=0.89.0 site=react_native_android_fb) This comment suppresses an
|
|
298
296
|
* error found when Flow v0.89 was deployed. To see the error, delete this
|
|
299
297
|
* comment and run Flow. */
|
|
300
298
|
Image.resolveAssetSource = resolveAssetSource;
|
|
301
299
|
|
|
302
|
-
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
|
|
300
|
+
/**
|
|
301
|
+
* Switch to `deprecated-react-native-prop-types` for compatibility with future
|
|
302
|
+
* releases. This is deprecated and will be removed in the future.
|
|
303
|
+
*/
|
|
304
|
+
Image.propTypes = require('deprecated-react-native-prop-types').ImagePropTypes;
|
|
306
305
|
|
|
307
306
|
const styles = StyleSheet.create({
|
|
308
307
|
base: {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import DeprecatedImagePropType from '../DeprecatedPropTypes/DeprecatedImagePropType';
|
|
12
11
|
import * as React from 'react';
|
|
13
12
|
import StyleSheet from '../StyleSheet/StyleSheet';
|
|
14
13
|
|
|
14
|
+
import ImageInjection from './ImageInjection';
|
|
15
15
|
import ImageAnalyticsTagContext from './ImageAnalyticsTagContext';
|
|
16
16
|
import flattenStyle from '../StyleSheet/flattenStyle';
|
|
17
17
|
import resolveAssetSource from './resolveAssetSource';
|
|
@@ -93,7 +93,6 @@ type ImageComponentStatics = $ReadOnly<{|
|
|
|
93
93
|
prefetchWithMetadata: typeof prefetchWithMetadata,
|
|
94
94
|
queryCache: typeof queryCache,
|
|
95
95
|
resolveAssetSource: typeof resolveAssetSource,
|
|
96
|
-
propTypes: typeof DeprecatedImagePropType,
|
|
97
96
|
|}>;
|
|
98
97
|
|
|
99
98
|
/**
|
|
@@ -101,7 +100,7 @@ type ImageComponentStatics = $ReadOnly<{|
|
|
|
101
100
|
* including network images, static resources, temporary local images, and
|
|
102
101
|
* images from local disk, such as the camera roll.
|
|
103
102
|
*
|
|
104
|
-
* See https://reactnative.dev/docs/image
|
|
103
|
+
* See https://reactnative.dev/docs/image
|
|
105
104
|
*/
|
|
106
105
|
let Image = (props: ImagePropsType, forwardedRef) => {
|
|
107
106
|
const source = resolveAssetSource(props.source) || {
|
|
@@ -125,11 +124,7 @@ let Image = (props: ImagePropsType, forwardedRef) => {
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
// $FlowFixMe[incompatible-use]
|
|
129
|
-
// $FlowFixMe[incompatible-type]
|
|
130
127
|
const resizeMode = props.resizeMode || style.resizeMode || 'cover';
|
|
131
|
-
// $FlowFixMe[prop-missing]
|
|
132
|
-
// $FlowFixMe[incompatible-use]
|
|
133
128
|
const tintColor = style.tintColor;
|
|
134
129
|
|
|
135
130
|
if (props.src != null) {
|
|
@@ -155,7 +150,6 @@ let Image = (props: ImagePropsType, forwardedRef) => {
|
|
|
155
150
|
accessibilityRole={accessibilityRole}
|
|
156
151
|
ref={forwardedRef}
|
|
157
152
|
style={style}
|
|
158
|
-
// $FlowFixMe[incompatible-type]
|
|
159
153
|
resizeMode={resizeMode}
|
|
160
154
|
tintColor={tintColor}
|
|
161
155
|
source={sources}
|
|
@@ -171,12 +165,17 @@ Image = React.forwardRef<
|
|
|
171
165
|
ImagePropsType,
|
|
172
166
|
React.ElementRef<typeof ImageViewNativeComponent>,
|
|
173
167
|
>(Image);
|
|
168
|
+
|
|
169
|
+
if (ImageInjection.unstable_createImageComponent != null) {
|
|
170
|
+
Image = ImageInjection.unstable_createImageComponent(Image);
|
|
171
|
+
}
|
|
172
|
+
|
|
174
173
|
Image.displayName = 'Image';
|
|
175
174
|
|
|
176
175
|
/**
|
|
177
176
|
* Retrieve the width and height (in pixels) of an image prior to displaying it.
|
|
178
177
|
*
|
|
179
|
-
* See https://reactnative.dev/docs/image
|
|
178
|
+
* See https://reactnative.dev/docs/image#getsize
|
|
180
179
|
*/
|
|
181
180
|
/* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment
|
|
182
181
|
* suppresses an error found when Flow v0.89 was deployed. To see the error,
|
|
@@ -187,7 +186,7 @@ Image.getSize = getSize;
|
|
|
187
186
|
* Retrieve the width and height (in pixels) of an image prior to displaying it
|
|
188
187
|
* with the ability to provide the headers for the request.
|
|
189
188
|
*
|
|
190
|
-
* See https://reactnative.dev/docs/image
|
|
189
|
+
* See https://reactnative.dev/docs/image#getsizewithheaders
|
|
191
190
|
*/
|
|
192
191
|
/* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment
|
|
193
192
|
* suppresses an error found when Flow v0.89 was deployed. To see the error,
|
|
@@ -198,7 +197,7 @@ Image.getSizeWithHeaders = getSizeWithHeaders;
|
|
|
198
197
|
* Prefetches a remote image for later use by downloading it to the disk
|
|
199
198
|
* cache.
|
|
200
199
|
*
|
|
201
|
-
* See https://reactnative.dev/docs/image
|
|
200
|
+
* See https://reactnative.dev/docs/image#prefetch
|
|
202
201
|
*/
|
|
203
202
|
/* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment
|
|
204
203
|
* suppresses an error found when Flow v0.89 was deployed. To see the error,
|
|
@@ -209,7 +208,7 @@ Image.prefetch = prefetch;
|
|
|
209
208
|
* Prefetches a remote image for later use by downloading it to the disk
|
|
210
209
|
* cache, and adds metadata for queryRootName and rootTag.
|
|
211
210
|
*
|
|
212
|
-
* See https://reactnative.dev/docs/image
|
|
211
|
+
* See https://reactnative.dev/docs/image#prefetch
|
|
213
212
|
*/
|
|
214
213
|
/* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment
|
|
215
214
|
* suppresses an error found when Flow v0.89 was deployed. To see the error,
|
|
@@ -219,7 +218,7 @@ Image.prefetchWithMetadata = prefetchWithMetadata;
|
|
|
219
218
|
/**
|
|
220
219
|
* Performs cache interrogation.
|
|
221
220
|
*
|
|
222
|
-
* See https://reactnative.dev/docs/image
|
|
221
|
+
* See https://reactnative.dev/docs/image#querycache
|
|
223
222
|
*/
|
|
224
223
|
/* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment
|
|
225
224
|
* suppresses an error found when Flow v0.89 was deployed. To see the error,
|
|
@@ -229,14 +228,18 @@ Image.queryCache = queryCache;
|
|
|
229
228
|
/**
|
|
230
229
|
* Resolves an asset reference into an object.
|
|
231
230
|
*
|
|
232
|
-
* See https://reactnative.dev/docs/image
|
|
231
|
+
* See https://reactnative.dev/docs/image#resolveassetsource
|
|
233
232
|
*/
|
|
234
233
|
/* $FlowFixMe[prop-missing] (>=0.89.0 site=react_native_ios_fb) This comment
|
|
235
234
|
* suppresses an error found when Flow v0.89 was deployed. To see the error,
|
|
236
235
|
* delete this comment and run Flow. */
|
|
237
236
|
Image.resolveAssetSource = resolveAssetSource;
|
|
238
237
|
|
|
239
|
-
|
|
238
|
+
/**
|
|
239
|
+
* Switch to `deprecated-react-native-prop-types` for compatibility with future
|
|
240
|
+
* releases. This is deprecated and will be removed in the future.
|
|
241
|
+
*/
|
|
242
|
+
Image.propTypes = require('deprecated-react-native-prop-types').ImagePropTypes;
|
|
240
243
|
|
|
241
244
|
const styles = StyleSheet.create({
|
|
242
245
|
base: {
|
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import Image from './Image';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import StyleSheet from '../StyleSheet/StyleSheet';
|
|
16
|
+
import flattenStyle from '../StyleSheet/flattenStyle';
|
|
17
|
+
import View from '../Components/View/View';
|
|
18
|
+
import type {HostComponent} from '../Renderer/shims/ReactNativeTypes';
|
|
19
|
+
import type {ImageBackgroundProps} from './ImageProps';
|
|
20
|
+
import type {ViewProps} from '../Components/View/ViewPropTypes';
|
|
17
21
|
|
|
18
22
|
/**
|
|
19
23
|
* Very simple drop-in replacement for <Image> which supports nesting views.
|
|
@@ -39,7 +43,7 @@ const View = require('../Components/View/View');
|
|
|
39
43
|
* AppRegistry.registerComponent('DisplayAnImageBackground', () => DisplayAnImageBackground);
|
|
40
44
|
* ```
|
|
41
45
|
*/
|
|
42
|
-
class ImageBackground extends React.Component
|
|
46
|
+
class ImageBackground extends React.Component<ImageBackgroundProps> {
|
|
43
47
|
setNativeProps(props: Object) {
|
|
44
48
|
// Work-around flow
|
|
45
49
|
const viewRef = this._viewRef;
|
|
@@ -50,18 +54,26 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
|
|
|
50
54
|
|
|
51
55
|
_viewRef: ?React.ElementRef<typeof View> = null;
|
|
52
56
|
|
|
53
|
-
_captureRef =
|
|
57
|
+
_captureRef = (
|
|
58
|
+
ref: null | React$ElementRef<
|
|
59
|
+
React$AbstractComponent<
|
|
60
|
+
ViewProps,
|
|
61
|
+
React.ElementRef<HostComponent<ViewProps>>,
|
|
62
|
+
>,
|
|
63
|
+
>,
|
|
64
|
+
) => {
|
|
54
65
|
this._viewRef = ref;
|
|
55
66
|
};
|
|
56
67
|
|
|
57
68
|
render(): React.Node {
|
|
58
69
|
const {children, style, imageStyle, imageRef, ...props} = this.props;
|
|
59
|
-
|
|
70
|
+
const flattenedStyle = flattenStyle(style);
|
|
60
71
|
return (
|
|
61
72
|
<View
|
|
62
73
|
accessibilityIgnoresInvertColors={true}
|
|
63
74
|
style={style}
|
|
64
|
-
ref={this._captureRef}
|
|
75
|
+
ref={this._captureRef}
|
|
76
|
+
>
|
|
65
77
|
<Image
|
|
66
78
|
{...props}
|
|
67
79
|
style={[
|
|
@@ -74,8 +86,8 @@ class ImageBackground extends React.Component<$FlowFixMeProps> {
|
|
|
74
86
|
// So, we have to proxy/reapply these styles explicitly for actual <Image> component.
|
|
75
87
|
// This workaround should be removed after implementing proper support of
|
|
76
88
|
// intrinsic content size of the <Image>.
|
|
77
|
-
width:
|
|
78
|
-
height:
|
|
89
|
+
width: flattenedStyle?.width,
|
|
90
|
+
height: flattenedStyle?.height,
|
|
79
91
|
},
|
|
80
92
|
imageStyle,
|
|
81
93
|
]}
|
|
@@ -15,6 +15,8 @@ import type {EdgeInsetsProp} from '../StyleSheet/EdgeInsetsPropType';
|
|
|
15
15
|
import type {ImageSource} from './ImageSource';
|
|
16
16
|
import type {ViewStyleProp, ImageStyleProp} from '../StyleSheet/StyleSheet';
|
|
17
17
|
import type {ViewProps} from '../Components/View/ViewPropTypes';
|
|
18
|
+
import type {Node, Ref} from 'react';
|
|
19
|
+
import typeof Image from './Image';
|
|
18
20
|
|
|
19
21
|
export type ImageLoadEvent = SyntheticEvent<
|
|
20
22
|
$ReadOnly<{|
|
|
@@ -30,19 +32,19 @@ type IOSImageProps = $ReadOnly<{|
|
|
|
30
32
|
/**
|
|
31
33
|
* A static image to display while loading the image source.
|
|
32
34
|
*
|
|
33
|
-
* See https://reactnative.dev/docs/image
|
|
35
|
+
* See https://reactnative.dev/docs/image#defaultsource
|
|
34
36
|
*/
|
|
35
37
|
defaultSource?: ?ImageSource,
|
|
36
38
|
/**
|
|
37
39
|
* Invoked when a partial load of the image is complete.
|
|
38
40
|
*
|
|
39
|
-
* See https://reactnative.dev/docs/image
|
|
41
|
+
* See https://reactnative.dev/docs/image#onpartialload
|
|
40
42
|
*/
|
|
41
43
|
onPartialLoad?: ?() => void,
|
|
42
44
|
/**
|
|
43
45
|
* Invoked on download progress with `{nativeEvent: {loaded, total}}`.
|
|
44
46
|
*
|
|
45
|
-
* See https://reactnative.dev/docs/image
|
|
47
|
+
* See https://reactnative.dev/docs/image#onprogress
|
|
46
48
|
*/
|
|
47
49
|
onProgress?: ?(
|
|
48
50
|
event: SyntheticEvent<$ReadOnly<{|loaded: number, total: number|}>>,
|
|
@@ -63,7 +65,7 @@ export type ImageProps = {|
|
|
|
63
65
|
/**
|
|
64
66
|
* When true, indicates the image is an accessibility element.
|
|
65
67
|
*
|
|
66
|
-
* See https://reactnative.dev/docs/image
|
|
68
|
+
* See https://reactnative.dev/docs/image#accessible
|
|
67
69
|
*/
|
|
68
70
|
accessible?: ?boolean,
|
|
69
71
|
|
|
@@ -76,26 +78,26 @@ export type ImageProps = {|
|
|
|
76
78
|
* The text that's read by the screen reader when the user interacts with
|
|
77
79
|
* the image.
|
|
78
80
|
*
|
|
79
|
-
* See https://reactnative.dev/docs/image
|
|
81
|
+
* See https://reactnative.dev/docs/image#accessibilitylabel
|
|
80
82
|
*/
|
|
81
83
|
accessibilityLabel?: ?Stringish,
|
|
82
84
|
|
|
83
85
|
/**
|
|
84
86
|
* blurRadius: the blur radius of the blur filter added to the image
|
|
85
87
|
*
|
|
86
|
-
* See https://reactnative.dev/docs/image
|
|
88
|
+
* See https://reactnative.dev/docs/image#blurradius
|
|
87
89
|
*/
|
|
88
90
|
blurRadius?: ?number,
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
|
-
* See https://reactnative.dev/docs/image
|
|
93
|
+
* See https://reactnative.dev/docs/image#capinsets
|
|
92
94
|
*/
|
|
93
95
|
capInsets?: ?EdgeInsetsProp,
|
|
94
96
|
|
|
95
97
|
/**
|
|
96
98
|
* Invoked on load error with `{nativeEvent: {error}}`.
|
|
97
99
|
*
|
|
98
|
-
* See https://reactnative.dev/docs/image
|
|
100
|
+
* See https://reactnative.dev/docs/image#onerror
|
|
99
101
|
*/
|
|
100
102
|
onError?: ?(
|
|
101
103
|
event: SyntheticEvent<
|
|
@@ -109,7 +111,7 @@ export type ImageProps = {|
|
|
|
109
111
|
* Invoked on mount and layout changes with
|
|
110
112
|
* `{nativeEvent: {layout: {x, y, width, height}}}`.
|
|
111
113
|
*
|
|
112
|
-
* See https://reactnative.dev/docs/image
|
|
114
|
+
* See https://reactnative.dev/docs/image#onlayout
|
|
113
115
|
*/
|
|
114
116
|
|
|
115
117
|
onLayout?: ?(event: LayoutEvent) => mixed,
|
|
@@ -117,38 +119,38 @@ export type ImageProps = {|
|
|
|
117
119
|
/**
|
|
118
120
|
* Invoked when load completes successfully.
|
|
119
121
|
*
|
|
120
|
-
* See https://reactnative.dev/docs/image
|
|
122
|
+
* See https://reactnative.dev/docs/image#onload
|
|
121
123
|
*/
|
|
122
124
|
onLoad?: ?(event: ImageLoadEvent) => void,
|
|
123
125
|
|
|
124
126
|
/**
|
|
125
127
|
* Invoked when load either succeeds or fails.
|
|
126
128
|
*
|
|
127
|
-
* See https://reactnative.dev/docs/image
|
|
129
|
+
* See https://reactnative.dev/docs/image#onloadend
|
|
128
130
|
*/
|
|
129
131
|
onLoadEnd?: ?() => void,
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
134
|
* Invoked on load start.
|
|
133
135
|
*
|
|
134
|
-
* See https://reactnative.dev/docs/image
|
|
136
|
+
* See https://reactnative.dev/docs/image#onloadstart
|
|
135
137
|
*/
|
|
136
138
|
onLoadStart?: ?() => void,
|
|
137
139
|
|
|
138
140
|
/**
|
|
139
|
-
* See https://reactnative.dev/docs/image
|
|
141
|
+
* See https://reactnative.dev/docs/image#resizemethod
|
|
140
142
|
*/
|
|
141
143
|
resizeMethod?: ?('auto' | 'resize' | 'scale'),
|
|
142
144
|
|
|
143
145
|
/**
|
|
144
146
|
* The image source (either a remote URL or a local file resource).
|
|
145
147
|
*
|
|
146
|
-
* See https://reactnative.dev/docs/image
|
|
148
|
+
* See https://reactnative.dev/docs/image#source
|
|
147
149
|
*/
|
|
148
150
|
source?: ?ImageSource,
|
|
149
151
|
|
|
150
152
|
/**
|
|
151
|
-
* See https://reactnative.dev/docs/image
|
|
153
|
+
* See https://reactnative.dev/docs/image#style
|
|
152
154
|
*/
|
|
153
155
|
style?: ?ImageStyleProp,
|
|
154
156
|
|
|
@@ -156,7 +158,7 @@ export type ImageProps = {|
|
|
|
156
158
|
* Determines how to resize the image when the frame doesn't match the raw
|
|
157
159
|
* image dimensions.
|
|
158
160
|
*
|
|
159
|
-
* See https://reactnative.dev/docs/image
|
|
161
|
+
* See https://reactnative.dev/docs/image#resizemode
|
|
160
162
|
*/
|
|
161
163
|
resizeMode?: ?('cover' | 'contain' | 'stretch' | 'repeat' | 'center'),
|
|
162
164
|
|
|
@@ -164,7 +166,7 @@ export type ImageProps = {|
|
|
|
164
166
|
* A unique identifier for this element to be used in UI Automation
|
|
165
167
|
* testing scripts.
|
|
166
168
|
*
|
|
167
|
-
* See https://reactnative.dev/docs/image
|
|
169
|
+
* See https://reactnative.dev/docs/image#testid
|
|
168
170
|
*/
|
|
169
171
|
testID?: ?string,
|
|
170
172
|
|
|
@@ -176,3 +178,29 @@ export type ImageProps = {|
|
|
|
176
178
|
*/
|
|
177
179
|
tooltip?: ?string,
|
|
178
180
|
|};
|
|
181
|
+
|
|
182
|
+
export type ImageBackgroundProps = $ReadOnly<{|
|
|
183
|
+
...ImageProps,
|
|
184
|
+
children?: Node,
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Style applied to the outer View component
|
|
188
|
+
*
|
|
189
|
+
* See https://reactnative.dev/docs/imagebackground#style
|
|
190
|
+
*/
|
|
191
|
+
style?: ?ViewStyleProp,
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Style applied to the inner Image component
|
|
195
|
+
*
|
|
196
|
+
* See https://reactnative.dev/docs/imagebackground#imagestyle
|
|
197
|
+
*/
|
|
198
|
+
imageStyle?: ?ImageStyleProp,
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Allows to set a reference to the inner Image component
|
|
202
|
+
*
|
|
203
|
+
* See https://reactnative.dev/docs/imagebackground#imageref
|
|
204
|
+
*/
|
|
205
|
+
imageRef?: Ref<Image>,
|
|
206
|
+
|}>;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
NSMutableArray<RCTGIFCoderFrame *> *frames = [NSMutableArray array];
|
|
70
70
|
|
|
71
71
|
for (size_t i = 0; i < frameCount; i++) {
|
|
72
|
-
RCTGIFCoderFrame *frame = [
|
|
72
|
+
RCTGIFCoderFrame *frame = [RCTGIFCoderFrame new];
|
|
73
73
|
frame.index = i;
|
|
74
74
|
frame.duration = [self frameDurationAtIndex:i source:imageSource];
|
|
75
75
|
[frames addObject:frame];
|
|
@@ -40,7 +40,7 @@ static NSString *RCTCacheKeyForImage(NSString *imageTag, CGSize size, CGFloat sc
|
|
|
40
40
|
_decodedImageCache = [NSCache new];
|
|
41
41
|
#if !TARGET_OS_OSX // TODO(macOS GH#774)
|
|
42
42
|
_decodedImageCache.totalCostLimit = 20 * 1024 * 1024; // 20 MB
|
|
43
|
-
_cacheStaleTimes = [
|
|
43
|
+
_cacheStaleTimes = [NSMutableDictionary new];
|
|
44
44
|
|
|
45
45
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
46
46
|
selector:@selector(clearCache)
|
|
@@ -155,7 +155,7 @@ static NSString *RCTCacheKeyForImage(NSString *imageTag, CGSize size, CGFloat sc
|
|
|
155
155
|
static NSDateFormatter *formatter;
|
|
156
156
|
static dispatch_once_t onceToken;
|
|
157
157
|
dispatch_once(&onceToken, ^{
|
|
158
|
-
formatter = [
|
|
158
|
+
formatter = [NSDateFormatter new];
|
|
159
159
|
formatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];
|
|
160
160
|
formatter.dateFormat = @"EEE',' dd MMM yyyy HH':'mm':'ss 'GMT'";
|
|
161
161
|
formatter.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0];
|
|
@@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
34
34
|
* Use PriorityPrefetch to prefetch images at a lower priority.
|
|
35
35
|
* The priority logic is up to each @RCTImageLoaderProtocol implementation
|
|
36
36
|
*/
|
|
37
|
-
typedef NS_ENUM(
|
|
37
|
+
typedef NS_ENUM(NSInteger, RCTImageLoaderPriority) {
|
|
38
38
|
RCTImageLoaderPriorityImmediate,
|
|
39
39
|
RCTImageLoaderPriorityPrefetch
|
|
40
40
|
};
|
|
@@ -149,7 +149,7 @@ static NSDictionary *onLoadParamsForSource(RCTImageSource *source)
|
|
|
149
149
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
150
150
|
self.wantsLayer = YES;
|
|
151
151
|
#endif
|
|
152
|
-
_imageView = [
|
|
152
|
+
_imageView = [RCTUIImageViewAnimated new];
|
|
153
153
|
_imageView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
154
154
|
[self addSubview:_imageView];
|
|
155
155
|
|
|
@@ -335,6 +335,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
|
|
|
335
335
|
|
|
336
336
|
[_imageLoader trackURLImageRequestDidDestroy:_loaderRequest];
|
|
337
337
|
_loaderRequest = nil;
|
|
338
|
+
|
|
339
|
+
if (!self.image) {
|
|
340
|
+
self.image = _defaultImage;
|
|
341
|
+
}
|
|
338
342
|
}
|
|
339
343
|
|
|
340
344
|
#if !TARGET_OS_OSX // TODO(macOS GH#774)
|
|
@@ -649,18 +653,12 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
|
|
|
649
653
|
|
|
650
654
|
- (NSColor *)tintColor
|
|
651
655
|
{
|
|
652
|
-
|
|
653
|
-
if (@available(macOS 10.14, *)) {
|
|
654
|
-
tintColor = _imageView.contentTintColor;
|
|
655
|
-
}
|
|
656
|
-
return tintColor;
|
|
656
|
+
return _imageView.contentTintColor;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
- (void)setTintColor:(NSColor *)tintColor
|
|
660
660
|
{
|
|
661
|
-
|
|
662
|
-
_imageView.contentTintColor = tintColor;
|
|
663
|
-
}
|
|
661
|
+
_imageView.contentTintColor = tintColor;
|
|
664
662
|
}
|
|
665
663
|
#endif // ]TODO(macOS GH#774)
|
|
666
664
|
|
|
@@ -135,7 +135,7 @@ static NSUInteger RCTDeviceFreeMemory() {
|
|
|
135
135
|
- (NSOperationQueue *)fetchQueue
|
|
136
136
|
{
|
|
137
137
|
if (!_fetchQueue) {
|
|
138
|
-
_fetchQueue = [
|
|
138
|
+
_fetchQueue = [NSOperationQueue new];
|
|
139
139
|
_fetchQueue.maxConcurrentOperationCount = 1;
|
|
140
140
|
}
|
|
141
141
|
return _fetchQueue;
|
|
@@ -36,11 +36,11 @@ Pod::Spec.new do |s|
|
|
|
36
36
|
s.pod_target_xcconfig = {
|
|
37
37
|
"USE_HEADERMAP" => "YES",
|
|
38
38
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
|
|
39
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\""
|
|
39
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\""
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
s.dependency "RCT-Folly", folly_version
|
|
43
|
-
s.dependency "
|
|
43
|
+
s.dependency "React-Codegen", version
|
|
44
44
|
s.dependency "RCTTypeSafety", version
|
|
45
45
|
s.dependency "ReactCommon/turbomodule/core", version
|
|
46
46
|
s.dependency "React-jsi", version
|
|
@@ -19,7 +19,7 @@ type NativeImageSourceSpec = $ReadOnly<{|
|
|
|
19
19
|
default?: string,
|
|
20
20
|
|
|
21
21
|
// For more details on width and height, see
|
|
22
|
-
// https://reactnative.dev/docs/images
|
|
22
|
+
// https://reactnative.dev/docs/images#why-not-automatically-size-everything
|
|
23
23
|
height: number,
|
|
24
24
|
width: number,
|
|
25
25
|
|}>;
|
|
@@ -37,7 +37,7 @@ type NativeImageSourceSpec = $ReadOnly<{|
|
|
|
37
37
|
* automates measurements and allows adding new images without rebuilding the
|
|
38
38
|
* native app. For more details visit:
|
|
39
39
|
*
|
|
40
|
-
* https://reactnative.dev/docs/images
|
|
40
|
+
* https://reactnative.dev/docs/images
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
function nativeImageSource(spec: NativeImageSourceSpec): ImageURISource {
|
|
@@ -51,7 +51,8 @@ class ElementProperties extends React.Component<Props> {
|
|
|
51
51
|
openFileButton = (
|
|
52
52
|
<TouchableHighlight
|
|
53
53
|
style={styles.openButton}
|
|
54
|
-
onPress={openFileInEditor.bind(null, fileName, lineNumber)}
|
|
54
|
+
onPress={openFileInEditor.bind(null, fileName, lineNumber)}
|
|
55
|
+
>
|
|
55
56
|
<Text style={styles.openButtonTitle} numberOfLines={1}>
|
|
56
57
|
{fileNameShort}:{lineNumber}
|
|
57
58
|
</Text>
|
|
@@ -71,7 +72,8 @@ class ElementProperties extends React.Component<Props> {
|
|
|
71
72
|
key={'item-' + i}
|
|
72
73
|
style={[styles.breadItem, i === selection && styles.selected]}
|
|
73
74
|
// $FlowFixMe[not-a-function] found when converting React.createClass to ES6
|
|
74
|
-
onPress={() => this.props.setSelection(i)}
|
|
75
|
+
onPress={() => this.props.setSelection(i)}
|
|
76
|
+
>
|
|
75
77
|
<Text style={styles.breadItemText}>{hierarchyItem.name}</Text>
|
|
76
78
|
</TouchableHighlight>
|
|
77
79
|
),
|
|
@@ -57,7 +57,8 @@ class InspectorOverlay extends React.Component<Props> {
|
|
|
57
57
|
onStartShouldSetResponder={this.shouldSetResponser}
|
|
58
58
|
onResponderMove={this.findViewForTouchEvent}
|
|
59
59
|
nativeID="inspectorOverlay" /* TODO: T68258846. */
|
|
60
|
-
style={[styles.inspector, {height: Dimensions.get('window').height}]}
|
|
60
|
+
style={[styles.inspector, {height: Dimensions.get('window').height}]}
|
|
61
|
+
>
|
|
61
62
|
{content}
|
|
62
63
|
</View>
|
|
63
64
|
);
|
|
@@ -124,7 +124,8 @@ class InspectorPanelButton extends React.Component<InspectorPanelButtonProps> {
|
|
|
124
124
|
return (
|
|
125
125
|
<TouchableHighlight
|
|
126
126
|
onPress={() => this.props.onClick(!this.props.pressed)}
|
|
127
|
-
style={[styles.button, this.props.pressed && styles.buttonPressed]}
|
|
127
|
+
style={[styles.button, this.props.pressed && styles.buttonPressed]}
|
|
128
|
+
>
|
|
128
129
|
<Text style={styles.buttonText}>{this.props.title}</Text>
|
|
129
130
|
</TouchableHighlight>
|
|
130
131
|
);
|