react-native-macos 0.0.0-ec1a9f2b9 → 0.0.0-ee807d01a
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/Alert/Alert.js +10 -10
- package/Libraries/Alert/NativeAlertManager.js +2 -2
- package/Libraries/Alert/RCTAlertManager.macos.js +1 -1
- package/Libraries/Animated/AnimatedMock.js +2 -2
- package/Libraries/Animated/NativeAnimatedHelper.js +13 -1
- package/Libraries/Animated/NativeAnimatedModule.js +1 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +2 -7
- package/Libraries/Animated/nodes/AnimatedColor.js +84 -23
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +2 -2
- package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +14 -14
- package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +2 -2
- package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.macos.js +1 -1
- package/Libraries/Components/Button.js +24 -26
- package/Libraries/Components/DatePicker/DatePickerIOS.macos.js +1 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.macos.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.android.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.ios.js +1 -1
- package/Libraries/Components/DatePickerMacOS/DatePickerMacOS.macos.js +1 -1
- package/Libraries/Components/DatePickerMacOS/RCTDatePickerNativeComponentMacOS.js +1 -1
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.macos.js +1 -1
- package/Libraries/Components/Keyboard/Keyboard.js +1 -1
- package/Libraries/Components/MaskedView/MaskedViewIOS.macos.js +1 -1
- package/Libraries/Components/Picker/PickerAndroid.macos.js +1 -1
- package/Libraries/Components/Picker/PickerIOS.macos.js +1 -1
- package/Libraries/Components/Pressable/Pressable.js +19 -20
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.macos.js +1 -1
- package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.macos.js +1 -1
- package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -1
- package/Libraries/Components/ScrollView/ScrollView.js +23 -31
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +13 -0
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.macos.js +1 -1
- package/Libraries/Components/Slider/Slider.js +3 -5
- package/Libraries/Components/Slider/SliderNativeComponent.js +0 -1
- package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +2 -2
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +24 -2
- package/Libraries/Components/TextInput/TextInput.js +66 -73
- package/Libraries/Components/TextInput/TextInputState.js +2 -8
- package/Libraries/Components/ToastAndroid/ToastAndroid.macos.js +1 -1
- package/Libraries/Components/Touchable/TouchableBounce.js +4 -4
- package/Libraries/Components/Touchable/TouchableHighlight.js +4 -4
- package/Libraries/Components/Touchable/TouchableOpacity.js +12 -7
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +11 -11
- package/Libraries/Components/View/DraggedType.js +1 -1
- package/Libraries/Components/View/ReactNativeViewAttributes.js +2 -3
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +1 -2
- package/Libraries/Components/View/View.js +0 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Components/View/ViewNativeComponent.js +64 -7
- package/Libraries/Components/View/ViewPropTypes.js +12 -22
- package/Libraries/Core/NativeExceptionsManager.js +1 -1
- package/Libraries/Core/RawEventEmitter.js +38 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/setUpReactDevTools.js +3 -2
- package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.macos.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +4 -7
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -3
- package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
- package/Libraries/Image/Image.android.js +0 -6
- package/Libraries/Image/Image.ios.js +0 -6
- package/Libraries/Image/Image.macos.js +1 -1
- package/Libraries/Image/ImageViewNativeComponent.js +9 -0
- package/Libraries/Image/RCTAnimatedImage.h +3 -3
- package/Libraries/Image/RCTAnimatedImage.m +10 -10
- package/Libraries/Image/RCTDisplayWeakRefreshable.h +3 -3
- package/Libraries/Image/RCTDisplayWeakRefreshable.m +3 -3
- package/Libraries/Image/RCTImageBlurUtils.h +1 -1
- package/Libraries/Image/RCTImageBlurUtils.m +12 -12
- package/Libraries/Image/RCTImageCache.h +1 -1
- package/Libraries/Image/RCTImageCache.m +4 -4
- package/Libraries/Image/RCTImageDataDecoder.h +1 -1
- package/Libraries/Image/RCTImageEditingManager.mm +3 -3
- package/Libraries/Image/RCTImageLoader.h +2 -2
- package/Libraries/Image/RCTImageLoader.mm +38 -32
- package/Libraries/Image/RCTImageLoaderProtocol.h +1 -1
- package/Libraries/Image/RCTImageLoaderWithAttributionProtocol.h +2 -2
- package/Libraries/Image/RCTImageStoreManager.h +1 -1
- package/Libraries/Image/RCTImageStoreManager.mm +4 -4
- package/Libraries/Image/RCTImageURLLoader.h +1 -1
- package/Libraries/Image/RCTImageURLLoaderWithAttribution.h +2 -2
- package/Libraries/Image/RCTImageUtils.h +2 -2
- package/Libraries/Image/RCTImageUtils.m +22 -22
- package/Libraries/Image/RCTImageView.h +3 -11
- package/Libraries/Image/RCTImageView.mm +55 -55
- package/Libraries/Image/RCTImageViewManager.mm +2 -2
- package/Libraries/Image/RCTResizeMode.h +3 -3
- package/Libraries/Image/RCTUIImageViewAnimated.h +4 -4
- package/Libraries/Image/RCTUIImageViewAnimated.m +11 -11
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/Image/nativeImageSource.js +2 -2
- package/Libraries/Inspector/Inspector.js +2 -4
- package/Libraries/Linking/Linking.js +2 -2
- package/Libraries/LinkingIOS/RCTLinkingManager.h +6 -6
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +3 -3
- package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +1 -1
- package/Libraries/Lists/FlatList.js +7 -7
- package/Libraries/Lists/SectionList.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +53 -55
- package/Libraries/Lists/VirtualizedSectionList.js +22 -21
- package/Libraries/NativeAnimation/Drivers/RCTDecayAnimation.m +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTFrameAnimation.m +1 -1
- package/Libraries/NativeAnimation/Drivers/RCTSpringAnimation.m +1 -1
- package/Libraries/NativeAnimation/Nodes/RCTValueAnimatedNode.h +1 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +10 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h +5 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.m +9 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +8 -0
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +566 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +7 -42
- package/Libraries/NativeComponent/ViewConfig.js +4 -4
- package/Libraries/NativeComponent/ViewConfigIgnore.js +53 -0
- package/Libraries/NativeModules/specs/NativeDevSettings.js +3 -1
- package/Libraries/Network/RCTFileRequestHandler.mm +3 -3
- package/Libraries/Network/RCTNetworking.macos.js +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +2 -2
- package/Libraries/NewAppScreen/components/DebugInstructions.js +2 -2
- package/Libraries/NewAppScreen/components/ReloadInstructions.js +2 -2
- package/Libraries/Pressability/HoverState.js +2 -2
- package/Libraries/Pressability/Pressability.js +26 -3
- package/Libraries/Pressability/PressabilityDebug.js +5 -9
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/PushNotificationIOS/PushNotificationIOS.js +2 -2
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.h +8 -8
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +81 -73
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/RCTRequired/RCTRequired.podspec +1 -1
- package/Libraries/ReactNative/DummyUIManager.js +5 -3
- package/Libraries/ReactNative/PaperUIManager.js +1 -1
- package/Libraries/ReactNative/UIManager.js +1 -2
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +4 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +177 -68
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +219 -208
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +161 -144
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +149 -67
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +207 -195
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +149 -131
- package/Libraries/Settings/RCTSettingsManager.mm +6 -6
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/Settings/Settings.macos.js +1 -1
- package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +3 -2
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +3 -2
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +3 -2
- package/Libraries/StyleSheet/StyleSheetTypes.js +2 -2
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/processTransform.js +1 -1
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.m +7 -7
- package/Libraries/Text/RCTConvert+Text.h +2 -2
- package/Libraries/Text/RCTTextAttributes.h +17 -17
- package/Libraries/Text/RCTTextAttributes.m +28 -30
- package/Libraries/Text/RCTTextUIKit.h +2 -0
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -2
- package/Libraries/Text/RawText/RCTRawTextViewManager.m +2 -2
- package/Libraries/Text/React-RCTText.podspec +2 -2
- package/Libraries/Text/Text/NSTextStorage+FontScaling.h +1 -1
- package/Libraries/Text/Text/NSTextStorage+FontScaling.m +1 -1
- package/Libraries/Text/Text/RCTDynamicTypeRamp.h +3 -3
- package/Libraries/Text/Text/RCTDynamicTypeRamp.m +3 -3
- package/Libraries/Text/Text/RCTTextShadowView.m +15 -15
- package/Libraries/Text/Text/RCTTextView.h +5 -5
- package/Libraries/Text/Text/RCTTextView.m +117 -90
- package/Libraries/Text/Text/RCTTextViewManager.m +6 -6
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +2 -2
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +15 -15
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +6 -6
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +10 -10
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +79 -114
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +7 -7
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.h +9 -9
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +41 -41
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +20 -21
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.m +7 -7
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +9 -9
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +73 -68
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +33 -33
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.m +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryView.h +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryView.m +3 -3
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +2 -2
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +7 -7
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.m +1 -1
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m +7 -7
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.m +2 -2
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.h +11 -11
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +79 -59
- package/Libraries/Text/TextInput/Singleline/macOS/RCTUISecureTextField.h +1 -1
- package/Libraries/Text/TextInput/Singleline/macOS/RCTUISecureTextField.m +1 -1
- package/Libraries/Text/TextNativeComponent.js +1 -1
- package/Libraries/Text/TextProps.js +1 -1
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.m +2 -2
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/Types/CoreEventTypes.js +6 -6
- package/Libraries/Utilities/Appearance.js +2 -2
- package/Libraries/Utilities/BackHandler.macos.js +1 -1
- package/Libraries/Utilities/DevSettings.js +1 -1
- package/Libraries/Utilities/HMRClient.js +2 -6
- package/Libraries/Utilities/LoadingView.macos.js +1 -1
- package/Libraries/Utilities/Platform.macos.js +1 -1
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +3 -3
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/WebSocket/RCTSRWebSocket.m +9 -10
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/WebSocket/WebSocketInterceptor.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +1 -1
- package/Libraries/vendor/emitter/_EventEmitter.js +1 -1
- package/Libraries/vendor/emitter/_EventSubscription.js +1 -1
- package/README.md +1 -1
- package/React/AppSetup/RCTAppSetupUtils.h +1 -1
- package/React/AppSetup/RCTAppSetupUtils.mm +1 -1
- package/React/Base/RCTBridge+Cxx.h +1 -1
- package/React/Base/RCTBridge+Cxx.mm +1 -1
- package/React/Base/RCTBridge.h +1 -1
- package/React/Base/RCTBridge.m +1 -1
- package/React/Base/RCTBridgeModule.h +4 -4
- package/React/Base/RCTBundleURLProvider.h +1 -1
- package/React/Base/RCTBundleURLProvider.mm +4 -4
- package/React/Base/RCTConvert.h +14 -14
- package/React/Base/RCTConvert.m +149 -153
- package/React/Base/RCTDisplayLink.m +8 -8
- package/React/Base/RCTEventDispatcherProtocol.h +1 -1
- package/React/Base/RCTFrameUpdate.h +2 -2
- package/React/Base/RCTFrameUpdate.m +2 -2
- package/React/Base/RCTImageSource.m +2 -2
- package/React/Base/RCTJSStackFrame.m +2 -2
- package/React/Base/RCTJSThread.h +1 -1
- package/React/Base/RCTJavaScriptLoader.h +1 -1
- package/React/Base/RCTJavaScriptLoader.mm +2 -2
- package/React/Base/RCTKeyCommands.m +2 -2
- package/React/Base/RCTModuleData.mm +2 -2
- package/React/Base/RCTModuleMethod.mm +2 -2
- package/React/Base/RCTMultipartDataTask.m +2 -20
- package/React/Base/RCTPlatformDisplayLink.h +1 -1
- package/React/Base/RCTRedBoxSetEnabled.m +1 -1
- package/React/Base/RCTReloadCommand.m +4 -4
- package/React/Base/RCTRootContentView.h +1 -1
- package/React/Base/RCTRootContentView.m +10 -10
- package/React/Base/RCTRootView.h +4 -4
- package/React/Base/RCTRootView.m +26 -26
- package/React/Base/RCTTouchEvent.m +2 -2
- package/React/Base/RCTTouchHandler.h +11 -6
- package/React/Base/RCTTouchHandler.m +100 -69
- package/React/Base/RCTUIKit.h +51 -29
- package/React/Base/RCTUtils.h +12 -12
- package/React/Base/RCTUtils.m +38 -38
- package/React/Base/RCTUtilsUIOverride.h +1 -1
- package/React/Base/RCTUtilsUIOverride.m +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/RCTViewRegistry.m +2 -2
- package/React/Base/Surface/RCTSurfaceDelegate.h +1 -1
- package/React/Base/Surface/RCTSurfaceProtocol.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootShadowViewDelegate.h +1 -1
- package/React/Base/Surface/RCTSurfaceRootView.h +1 -1
- package/React/Base/Surface/RCTSurfaceView.h +1 -1
- package/React/Base/Surface/RCTSurfaceView.mm +2 -2
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +3 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +5 -5
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h +3 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +14 -14
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.mm +1 -1
- package/React/Base/macOS/RCTPlatform.m +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +1 -1
- package/React/Base/macOS/RCTUIKit.m +9 -15
- package/React/CoreModules/CoreModulesPlugins.mm +6 -6
- package/React/CoreModules/RCTAccessibilityManager.h +1 -1
- package/React/CoreModules/RCTAccessibilityManager.mm +2 -2
- package/React/CoreModules/RCTActionSheetManager.h +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +31 -31
- package/React/CoreModules/RCTAlertController.h +7 -7
- package/React/CoreModules/RCTAlertController.m +6 -6
- package/React/CoreModules/RCTAlertManager.h +1 -1
- package/React/CoreModules/RCTAlertManager.mm +9 -9
- package/React/CoreModules/RCTAppState.mm +6 -6
- package/React/CoreModules/RCTAppearance.h +4 -4
- package/React/CoreModules/RCTAppearance.mm +16 -16
- package/React/CoreModules/RCTAsyncLocalStorage.mm +5 -6
- package/React/CoreModules/RCTClipboard.mm +7 -7
- package/React/CoreModules/RCTDevLoadingView.h +1 -1
- package/React/CoreModules/RCTDevLoadingView.mm +31 -31
- package/React/CoreModules/RCTDevMenu.h +3 -3
- package/React/CoreModules/RCTDevMenu.mm +40 -42
- package/React/CoreModules/RCTDevSettings.h +4 -4
- package/React/CoreModules/RCTDevSettings.mm +18 -18
- package/React/CoreModules/RCTDevSplitBundleLoader.h +1 -1
- package/React/CoreModules/RCTDeviceInfo.h +2 -2
- package/React/CoreModules/RCTDeviceInfo.mm +22 -22
- package/React/CoreModules/RCTFPSGraph.h +3 -3
- package/React/CoreModules/RCTFPSGraph.m +2 -2
- package/React/CoreModules/RCTKeyboardObserver.mm +8 -8
- package/React/CoreModules/RCTLogBox.h +1 -1
- package/React/CoreModules/RCTLogBox.mm +12 -12
- package/React/CoreModules/RCTLogBoxView.h +5 -5
- package/React/CoreModules/RCTLogBoxView.mm +5 -5
- package/React/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/CoreModules/RCTPlatform.mm +1 -1
- package/React/CoreModules/RCTRedBox.h +1 -1
- package/React/CoreModules/RCTRedBox.mm +24 -24
- package/React/CoreModules/RCTStatusBarManager.h +3 -3
- package/React/CoreModules/RCTStatusBarManager.mm +4 -4
- package/React/CoreModules/RCTTiming.mm +2 -2
- package/React/CoreModules/RCTWebSocketModule.mm +3 -3
- package/React/CoreModules/React-CoreModules.podspec +3 -3
- package/React/CxxBridge/RCTCxxBridge.mm +9 -9
- package/React/CxxModule/RCTCxxMethod.mm +2 -2
- package/React/DevSupport/RCTDevLoadingViewProtocol.h +2 -2
- package/React/DevSupport/RCTInspectorDevServerHelper.h +1 -1
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +8 -8
- package/React/DevSupport/RCTPackagerConnection.mm +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +1 -1
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ActivityIndicator/RCTActivityIndicatorViewComponentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryComponentView.mm +12 -8
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.h +2 -2
- package/React/Fabric/Mounting/ComponentViews/InputAccessory/RCTInputAccessoryContentView.mm +3 -3
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropComponentView.mm +8 -8
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/LegacyViewManagerInterop/RCTLegacyViewManagerInteropCoordinatorAdapter.mm +1 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +3 -1
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +2 -0
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +2 -2
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +8 -8
- package/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/SafeAreaView/RCTSafeAreaViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.h +3 -3
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm +13 -13
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +4 -4
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +64 -64
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Slider/RCTSliderComponentView.mm +5 -5
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +15 -6
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.h +5 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTAccessibilityElement.mm +3 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.h +4 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentAccessibilityProvider.mm +6 -2
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +23 -5
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +44 -37
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.h +5 -5
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputUtils.mm +13 -13
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedComponent/RCTUnimplementedNativeComponentView.mm +5 -5
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/UnimplementedView/RCTUnimplementedViewComponentView.mm +12 -12
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +4 -4
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +31 -21
- package/React/Fabric/Mounting/RCTComponentViewClassDescriptor.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewDescriptor.h +3 -3
- package/React/Fabric/Mounting/RCTComponentViewFactory.h +1 -1
- package/React/Fabric/Mounting/RCTComponentViewProtocol.h +3 -3
- package/React/Fabric/Mounting/RCTComponentViewRegistry.h +2 -2
- package/React/Fabric/Mounting/RCTComponentViewRegistry.mm +13 -3
- package/React/Fabric/Mounting/RCTMountingManager.h +3 -3
- package/React/Fabric/Mounting/RCTMountingManager.mm +11 -9
- package/React/Fabric/Mounting/RCTMountingManagerDelegate.h +1 -1
- package/React/Fabric/Mounting/RCTMountingTransactionObserving.h +1 -1
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +5 -5
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +11 -5
- package/React/Fabric/RCTConversions.h +8 -6
- package/React/Fabric/RCTImageResponseDelegate.h +1 -1
- package/React/Fabric/RCTLocalizationProvider.h +1 -1
- package/React/Fabric/RCTScheduler.h +1 -1
- package/React/Fabric/RCTSurfacePresenter.h +2 -2
- package/React/Fabric/RCTSurfacePresenter.mm +16 -3
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.h +3 -3
- package/React/Fabric/RCTSurfaceTouchHandler.mm +49 -26
- package/React/Fabric/RCTTouchableComponentViewProtocol.h +1 -1
- package/React/Fabric/Utils/RCTGenericDelegateSplitter.h +1 -1
- package/React/Modules/RCTEventEmitter.h +7 -7
- package/React/Modules/RCTI18nUtil.m +1 -1
- package/React/Modules/RCTLayoutAnimation.h +1 -1
- package/React/Modules/RCTLayoutAnimation.m +14 -14
- package/React/Modules/RCTLayoutAnimationGroup.h +1 -1
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -2
- package/React/Modules/RCTSurfacePresenterStub.h +2 -2
- package/React/Modules/RCTUIManager.h +12 -12
- package/React/Modules/RCTUIManager.m +98 -98
- package/React/Modules/RCTUIManagerObserverCoordinator.h +1 -1
- package/React/Modules/RCTUIManagerUtils.h +1 -1
- package/React/Profiler/RCTProfile.m +23 -23
- package/React/React-RCTFabric.podspec +1 -1
- package/React/UIUtils/RCTUIUtils.h +6 -6
- package/React/UIUtils/RCTUIUtils.m +3 -3
- package/React/Views/RCTActivityIndicatorView.h +4 -4
- package/React/Views/RCTActivityIndicatorView.m +4 -4
- package/React/Views/RCTActivityIndicatorViewManager.m +4 -4
- package/React/Views/RCTAnimationType.h +4 -4
- package/React/Views/RCTAutoInsetsProtocol.h +1 -1
- package/React/Views/RCTBorderDrawing.h +2 -2
- package/React/Views/RCTBorderDrawing.m +22 -22
- package/React/Views/RCTComponentData.h +3 -3
- package/React/Views/RCTComponentData.m +4 -4
- package/React/Views/RCTCursor.h +2 -2
- package/React/Views/RCTCursor.m +2 -2
- package/React/Views/RCTDatePicker.h +4 -4
- package/React/Views/RCTDatePicker.m +12 -12
- package/React/Views/RCTDatePickerManager.h +3 -3
- package/React/Views/RCTDatePickerManager.m +16 -16
- package/React/Views/RCTFont.h +1 -1
- package/React/Views/RCTFont.mm +9 -9
- package/React/Views/RCTFontSmoothing.h +1 -1
- package/React/Views/RCTLayout.h +1 -1
- package/React/Views/RCTMaskedView.h +1 -1
- package/React/Views/RCTModalHostView.h +2 -2
- package/React/Views/RCTModalHostViewController.h +1 -1
- package/React/Views/RCTModalManager.h +1 -1
- package/React/Views/RCTProgressView.h +6 -6
- package/React/Views/RCTProgressView.m +1 -1
- package/React/Views/RCTProgressViewManager.m +13 -13
- package/React/Views/RCTSegmentedControl.h +6 -6
- package/React/Views/RCTSegmentedControl.m +16 -16
- package/React/Views/RCTSegmentedControlManager.m +3 -3
- package/React/Views/RCTShadowView+Internal.h +1 -1
- package/React/Views/RCTShadowView+Layout.h +1 -1
- package/React/Views/RCTShadowView.h +4 -4
- package/React/Views/RCTShadowView.m +8 -8
- package/React/Views/RCTSlider.h +14 -10
- package/React/Views/RCTSlider.m +38 -38
- package/React/Views/RCTSliderManager.m +9 -9
- package/React/Views/RCTSwitch.h +1 -1
- package/React/Views/RCTSwitchManager.m +8 -8
- package/React/Views/RCTView.h +15 -15
- package/React/Views/RCTView.m +151 -133
- package/React/Views/RCTViewKeyboardEvent.h +2 -2
- package/React/Views/RCTViewKeyboardEvent.m +4 -2
- package/React/Views/RCTViewManager.h +5 -5
- package/React/Views/RCTViewManager.m +73 -81
- package/React/Views/RCTViewUtils.h +2 -2
- package/React/Views/RCTViewUtils.m +3 -3
- package/React/Views/RCTWeakViewHolder.h +1 -1
- package/React/Views/RCTWrapperViewController.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshControl.h +2 -2
- package/React/Views/RefreshControl/RCTRefreshableProtocol.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -1
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -2
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -1
- package/React/Views/ScrollView/RCTScrollContentShadowView.h +1 -1
- package/React/Views/ScrollView/RCTScrollContentShadowView.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.h +3 -3
- package/React/Views/ScrollView/RCTScrollContentView.m +13 -14
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +1 -1
- package/React/Views/ScrollView/RCTScrollEvent.m +3 -3
- package/React/Views/ScrollView/RCTScrollView.h +9 -8
- package/React/Views/ScrollView/RCTScrollView.m +162 -154
- package/React/Views/ScrollView/RCTScrollViewManager.h +2 -2
- package/React/Views/ScrollView/RCTScrollViewManager.m +28 -27
- package/React/Views/ScrollView/RCTScrollableProtocol.h +5 -5
- package/React/Views/UIView+Private.h +4 -4
- package/React/Views/UIView+React.h +12 -12
- package/React/Views/UIView+React.m +55 -55
- package/React-Core.podspec +5 -5
- package/React.podspec +1 -1
- package/ReactAndroid/build.gradle +6 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/proguard-rules.pro +4 -6
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +1 -22
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -3
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNodeWithUpdateableConfig.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ColorAnimatedNode.java +131 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +26 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.java +14 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/StyleAnimatedNode.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/common/SurfaceDelegate.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +40 -50
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DisabledDevSupportManager.java +17 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DoubleTapReloadRecognizer.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/{RedBoxDialog.java → RedBoxContentView.java} +38 -29
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialogSurfaceDelegate.java +117 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.java +0 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/{RedBoxHandler.java → interfaces/RedBoxHandler.java} +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/{AsyncEventBeatV2.cpp → AsyncEventBeat.cpp} +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeat.h +8 -40
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +39 -34
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.cpp +0 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/EventEmitterWrapper.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.cpp +3 -17
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/FabricMountingManager.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java +20 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BUCK +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +91 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +0 -11
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +0 -90
- package/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ResourceDrawableIdHelper.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.java +4 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +13 -16
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +4 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ColorUtil.java +19 -0
- package/ReactAndroid/src/main/res/shell/values/styles.xml +3 -2
- package/ReactAndroid/src/test/java/com/facebook/react/views/BUCK +5 -2
- package/ReactAndroid/src/test/java/com/facebook/react/views/view/ColorUtilTest.java +9 -0
- package/ReactCommon/React-Fabric.podspec +1 -1
- package/ReactCommon/React-rncore.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 +1 -1
- package/ReactCommon/hermes/inspector/Exceptions.h +6 -0
- package/ReactCommon/hermes/inspector/Inspector.cpp +5 -2
- package/ReactCommon/hermes/inspector/Inspector.h +14 -0
- package/ReactCommon/hermes/inspector/InspectorState.cpp +16 -8
- package/ReactCommon/hermes/inspector/chrome/Connection.cpp +319 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.cpp +79 -1
- package/ReactCommon/hermes/inspector/chrome/MessageTypes.h +43 -1
- package/ReactCommon/hermes/inspector/chrome/tests/ConnectionTests.cpp +251 -7
- package/ReactCommon/hermes/inspector/chrome/tests/MessageTests.cpp +1068 -1
- package/ReactCommon/hermes/inspector/tools/message_types.txt +1 -0
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +3 -3
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsi/jsi/jsi.cpp +2 -0
- package/ReactCommon/jsi/jsi/jsi.h +7 -3
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/jsinspector/React-jsinspector.podspec +1 -1
- package/ReactCommon/logger/React-logger.podspec +1 -1
- package/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm +4 -4
- package/ReactCommon/react/renderer/attributedstring/conversions.h +10 -8
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.h +3 -3
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/RCTLegacyViewManagerInteropCoordinator.mm +3 -3
- package/ReactCommon/react/renderer/components/modal/ModalHostViewComponentDescriptor.h +1 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/modal/ModalHostViewState.h +1 -1
- package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/conversions.h +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +6 -6
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +1 -18
- package/ReactCommon/react/renderer/components/view/ViewProps.h +1 -5
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +2 -2
- package/ReactCommon/react/renderer/components/view/primitives.h +41 -0
- package/ReactCommon/react/renderer/components/view/propsConversions.h +136 -0
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +12 -0
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
- package/ReactCommon/react/renderer/graphics/conversions.h +1 -11
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +9 -9
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImageManager.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTImagePrimitivesConversions.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.h +1 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +5 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +5 -3
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +7 -5
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +1 -1
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +38 -33
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +10 -1
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +45 -19
- package/ReactCommon/react/renderer/runtimescheduler/tests/StubQueue.h +9 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +21 -2
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/NSTextStorage+FontScaling.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +7 -7
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontProperties.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTFontUtils.mm +4 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextLayoutManager.h +1 -1
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTTextPrimitivesConversions.h +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +8 -9
- package/ReactCommon/react/renderer/uimanager/UIManager.h +3 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +5 -4
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/index.js +21 -22
- package/package.json +7 -42
- package/react.gradle +14 -0
- package/scripts/generate-artifacts.js +12 -12
- package/scripts/react_native_pods.rb +2 -2
- package/template/Gemfile +1 -1
- package/template/Gemfile.lock +5 -5
- package/template/_flowconfig +2 -2
- package/template/_ruby-version +1 -1
- package/template/android/app/build.gradle +0 -5
- package/template/android/app/src/main/java/com/helloworld/MainActivity.java +2 -1
- package/template/android/build.gradle +1 -1
- package/template/android/gradle.properties +2 -2
- package/template/package.json +1 -2
- package/third-party-podspecs/DoubleConversion.podspec +1 -1
- package/third-party-podspecs/RCT-Folly.podspec +1 -1
- package/third-party-podspecs/boost.podspec +1 -1
- package/third-party-podspecs/glog.podspec +1 -1
- package/Libraries/Components/View/PlatformViewPropTypes.macos.js +0 -16
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -374
- package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
- package/Libraries/ReactNative/UIManagerInjection.js +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/AsyncEventBeatV2.h +0 -40
|
@@ -545,11 +545,7 @@ void FabricMountingManager::executeMount(
|
|
|
545
545
|
mountItem.newChildShadowView.eventEmitter;
|
|
546
546
|
auto javaEventEmitter = EventEmitterWrapper::newObjectJavaArgs();
|
|
547
547
|
EventEmitterWrapper *cEventEmitter = cthis(javaEventEmitter);
|
|
548
|
-
|
|
549
|
-
cEventEmitter->eventEmitterPointer = eventEmitter.get();
|
|
550
|
-
} else {
|
|
551
|
-
cEventEmitter->eventEmitter = eventEmitter;
|
|
552
|
-
}
|
|
548
|
+
cEventEmitter->eventEmitter = eventEmitter;
|
|
553
549
|
temp[0] = mountItem.newChildShadowView.tag;
|
|
554
550
|
temp[1] = isLayoutable;
|
|
555
551
|
env->SetIntArrayRegion(intBufferArray, intBufferPosition, 2, temp);
|
|
@@ -729,11 +725,7 @@ void FabricMountingManager::executeMount(
|
|
|
729
725
|
// Do not hold a reference to javaEventEmitter from the C++ side.
|
|
730
726
|
auto javaEventEmitter = EventEmitterWrapper::newObjectJavaArgs();
|
|
731
727
|
EventEmitterWrapper *cEventEmitter = cthis(javaEventEmitter);
|
|
732
|
-
|
|
733
|
-
cEventEmitter->eventEmitterPointer = eventEmitter.get();
|
|
734
|
-
} else {
|
|
735
|
-
cEventEmitter->eventEmitter = eventEmitter;
|
|
736
|
-
}
|
|
728
|
+
cEventEmitter->eventEmitter = eventEmitter;
|
|
737
729
|
|
|
738
730
|
(*objBufferArray)[objBufferPosition++] = javaEventEmitter.get();
|
|
739
731
|
}
|
|
@@ -830,11 +822,7 @@ void FabricMountingManager::preallocateShadowView(
|
|
|
830
822
|
if (eventEmitter != nullptr) {
|
|
831
823
|
javaEventEmitter = EventEmitterWrapper::newObjectJavaArgs();
|
|
832
824
|
EventEmitterWrapper *cEventEmitter = cthis(javaEventEmitter);
|
|
833
|
-
|
|
834
|
-
cEventEmitter->eventEmitterPointer = eventEmitter.get();
|
|
835
|
-
} else {
|
|
836
|
-
cEventEmitter->eventEmitter = eventEmitter;
|
|
837
|
-
}
|
|
825
|
+
cEventEmitter->eventEmitter = eventEmitter;
|
|
838
826
|
}
|
|
839
827
|
}
|
|
840
828
|
|
|
@@ -947,8 +935,6 @@ FabricMountingManager::FabricMountingManager(
|
|
|
947
935
|
: javaUIManager_(javaUIManager) {
|
|
948
936
|
enableEarlyEventEmitterUpdate_ =
|
|
949
937
|
config->getBool("react_fabric:enable_early_event_emitter_update");
|
|
950
|
-
enableEventEmitterRawPointer_ =
|
|
951
|
-
config->getBool("react_fabric:enable_event_emitter_wrapper_raw_pointer");
|
|
952
938
|
disablePreallocateViews_ =
|
|
953
939
|
config->getBool("react_fabric:disabled_view_preallocation_android");
|
|
954
940
|
disableRevisionCheckForPreallocation_ =
|
|
@@ -71,7 +71,6 @@ class FabricMountingManager {
|
|
|
71
71
|
butter::map<SurfaceId, butter::set<Tag>> allocatedViewRegistry_{};
|
|
72
72
|
std::recursive_mutex allocatedViewsMutex_;
|
|
73
73
|
|
|
74
|
-
bool enableEventEmitterRawPointer_{false};
|
|
75
74
|
bool enableEarlyEventEmitterUpdate_{false};
|
|
76
75
|
bool disablePreallocateViews_{false};
|
|
77
76
|
bool disableRevisionCheckForPreallocation_{false};
|
package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java
CHANGED
|
@@ -548,7 +548,8 @@ public class SurfaceMountingManager {
|
|
|
548
548
|
// generated.
|
|
549
549
|
// This represents a perf issue only, not a correctness issue. In the future we need to
|
|
550
550
|
// refactor View preallocation to correct the currently incorrect assumptions.
|
|
551
|
-
|
|
551
|
+
ViewState viewState = getNullableViewState(reactTag);
|
|
552
|
+
if (viewState != null && viewState.mView != null) {
|
|
552
553
|
return;
|
|
553
554
|
}
|
|
554
555
|
|
|
@@ -30,6 +30,7 @@ import java.nio.charset.Charset;
|
|
|
30
30
|
import java.util.ArrayList;
|
|
31
31
|
import java.util.HashSet;
|
|
32
32
|
import java.util.List;
|
|
33
|
+
import java.util.Locale;
|
|
33
34
|
import java.util.Set;
|
|
34
35
|
import java.util.concurrent.TimeUnit;
|
|
35
36
|
import okhttp3.Call;
|
|
@@ -376,7 +377,9 @@ public final class NetworkingModule extends NativeNetworkingAndroidSpec {
|
|
|
376
377
|
}
|
|
377
378
|
|
|
378
379
|
RequestBody requestBody;
|
|
379
|
-
if (data == null
|
|
380
|
+
if (data == null
|
|
381
|
+
|| method.toLowerCase(Locale.ROOT).equals("get")
|
|
382
|
+
|| method.toLowerCase(Locale.ROOT).equals("head")) {
|
|
380
383
|
requestBody = RequestBodyUtil.getEmptyBody(method);
|
|
381
384
|
} else if (handler != null) {
|
|
382
385
|
requestBody = handler.toRequestBody(data, contentType);
|
package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java
CHANGED
|
@@ -15,6 +15,7 @@ import android.content.Context;
|
|
|
15
15
|
import android.os.Build;
|
|
16
16
|
import android.view.View;
|
|
17
17
|
import android.view.WindowInsets;
|
|
18
|
+
import android.view.WindowInsetsController;
|
|
18
19
|
import android.view.WindowManager;
|
|
19
20
|
import androidx.annotation.Nullable;
|
|
20
21
|
import androidx.core.view.ViewCompat;
|
|
@@ -184,12 +185,23 @@ public class StatusBarModule extends NativeStatusBarManagerAndroidSpec {
|
|
|
184
185
|
return;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
UiThreadUtil.runOnUiThread(
|
|
189
|
+
new Runnable() {
|
|
190
|
+
@TargetApi(Build.VERSION_CODES.R)
|
|
191
|
+
@Override
|
|
192
|
+
public void run() {
|
|
193
|
+
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) {
|
|
194
|
+
WindowInsetsController insetsController = activity.getWindow().getInsetsController();
|
|
195
|
+
if ("dark-content".equals(style)) {
|
|
196
|
+
// dark-content means dark icons on a light status bar
|
|
197
|
+
insetsController.setSystemBarsAppearance(
|
|
198
|
+
WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS,
|
|
199
|
+
WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS);
|
|
200
|
+
} else {
|
|
201
|
+
insetsController.setSystemBarsAppearance(
|
|
202
|
+
0, WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS);
|
|
203
|
+
}
|
|
204
|
+
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
193
205
|
View decorView = activity.getWindow().getDecorView();
|
|
194
206
|
int systemUiVisibilityFlags = decorView.getSystemUiVisibility();
|
|
195
207
|
if ("dark-content".equals(style)) {
|
|
@@ -199,7 +211,7 @@ public class StatusBarModule extends NativeStatusBarManagerAndroidSpec {
|
|
|
199
211
|
}
|
|
200
212
|
decorView.setSystemUiVisibility(systemUiVisibilityFlags);
|
|
201
213
|
}
|
|
202
|
-
}
|
|
203
|
-
|
|
214
|
+
}
|
|
215
|
+
});
|
|
204
216
|
}
|
|
205
217
|
}
|
|
@@ -14,10 +14,12 @@ rn_android_library(
|
|
|
14
14
|
],
|
|
15
15
|
),
|
|
16
16
|
autoglob = False,
|
|
17
|
+
exported_provided_deps = [
|
|
18
|
+
react_native_dep("third-party/android/androidx:annotation"),
|
|
19
|
+
],
|
|
17
20
|
is_androidx = True,
|
|
18
21
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
19
22
|
provided_deps = [
|
|
20
|
-
react_native_dep("third-party/android/androidx:annotation"),
|
|
21
23
|
react_native_dep("third-party/android/androidx:core"),
|
|
22
24
|
react_native_dep("third-party/android/androidx:fragment"),
|
|
23
25
|
react_native_dep("third-party/android/androidx:legacy-support-core-ui"),
|
|
@@ -51,7 +53,6 @@ rn_android_library(
|
|
|
51
53
|
],
|
|
52
54
|
exported_deps = [
|
|
53
55
|
":DisplayMetrics",
|
|
54
|
-
react_native_dep("third-party/android/androidx:annotation"),
|
|
55
56
|
react_native_dep("third-party/java/jsr-305:jsr-305"),
|
|
56
57
|
react_native_target("java/com/facebook/react/uimanager/common:common"),
|
|
57
58
|
react_native_target("java/com/facebook/react/uimanager/interfaces:interfaces"),
|
|
@@ -76,7 +77,6 @@ rn_android_library(
|
|
|
76
77
|
deps = [
|
|
77
78
|
react_native_dep("libraries/fbcore/src/main/java/com/facebook/common/logging:logging"),
|
|
78
79
|
react_native_dep("third-party/java/infer-annotations:infer-annotations"),
|
|
79
|
-
react_native_dep("third-party/android/androidx:annotation"),
|
|
80
80
|
react_native_dep("third-party/java/jsr-305:jsr-305"),
|
|
81
81
|
react_native_target("java/com/facebook/react/bridge:bridge"),
|
|
82
82
|
react_native_target("java/com/facebook/react/common:common"),
|
|
@@ -486,18 +486,103 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
|
|
|
486
486
|
FLog.w(ReactConstants.TAG, "%s doesn't support property '%s'", getName(), propName);
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
@ReactProp(name = "
|
|
490
|
-
public void setPointerEnter(@NonNull T view,
|
|
489
|
+
@ReactProp(name = "onPointerEnter")
|
|
490
|
+
public void setPointerEnter(@NonNull T view, boolean value) {
|
|
491
491
|
view.setTag(R.id.pointer_enter, value);
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
@ReactProp(name = "
|
|
495
|
-
public void setPointerLeave(@NonNull T view,
|
|
494
|
+
@ReactProp(name = "onPointerLeave")
|
|
495
|
+
public void setPointerLeave(@NonNull T view, boolean value) {
|
|
496
496
|
view.setTag(R.id.pointer_leave, value);
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
@ReactProp(name = "
|
|
500
|
-
public void setPointerMove(@NonNull T view,
|
|
499
|
+
@ReactProp(name = "onPointerMove")
|
|
500
|
+
public void setPointerMove(@NonNull T view, boolean value) {
|
|
501
501
|
view.setTag(R.id.pointer_move, value);
|
|
502
502
|
}
|
|
503
|
+
|
|
504
|
+
@ReactProp(name = "onMoveShouldSetResponder")
|
|
505
|
+
public void setMoveShouldSetResponder(@NonNull T view, boolean value) {
|
|
506
|
+
// no-op, handled by JSResponder
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
@ReactProp(name = "onMoveShouldSetResponderCapture")
|
|
510
|
+
public void setMoveShouldSetResponderCapture(@NonNull T view, boolean value) {
|
|
511
|
+
// no-op, handled by JSResponder
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
@ReactProp(name = "onStartShouldSetResponder")
|
|
515
|
+
public void setStartShouldSetResponder(@NonNull T view, boolean value) {
|
|
516
|
+
// no-op, handled by JSResponder
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@ReactProp(name = "onStartShouldSetResponderCapture")
|
|
520
|
+
public void setStartShouldSetResponderCapture(@NonNull T view, boolean value) {
|
|
521
|
+
// no-op, handled by JSResponder
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@ReactProp(name = "onResponderGrant")
|
|
525
|
+
public void setResponderGrant(@NonNull T view, boolean value) {
|
|
526
|
+
// no-op, handled by JSResponder
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
@ReactProp(name = "onResponderReject")
|
|
530
|
+
public void setResponderReject(@NonNull T view, boolean value) {
|
|
531
|
+
// no-op, handled by JSResponder
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@ReactProp(name = "onResponderStart")
|
|
535
|
+
public void setResponderStart(@NonNull T view, boolean value) {
|
|
536
|
+
// no-op, handled by JSResponder
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
@ReactProp(name = "onResponderEnd")
|
|
540
|
+
public void setResponderEnd(@NonNull T view, boolean value) {
|
|
541
|
+
// no-op, handled by JSResponder
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@ReactProp(name = "onResponderRelease")
|
|
545
|
+
public void setResponderRelease(@NonNull T view, boolean value) {
|
|
546
|
+
// no-op, handled by JSResponder
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
@ReactProp(name = "onResponderMove")
|
|
550
|
+
public void setResponderMove(@NonNull T view, boolean value) {
|
|
551
|
+
// no-op, handled by JSResponder
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@ReactProp(name = "onResponderTerminate")
|
|
555
|
+
public void setResponderTerminate(@NonNull T view, boolean value) {
|
|
556
|
+
// no-op, handled by JSResponder
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
@ReactProp(name = "onResponderTerminationRequest")
|
|
560
|
+
public void setResponderTerminationRequest(@NonNull T view, boolean value) {
|
|
561
|
+
// no-op, handled by JSResponder
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
@ReactProp(name = "onShouldBlockNativeResponder")
|
|
565
|
+
public void setShouldBlockNativeResponder(@NonNull T view, boolean value) {
|
|
566
|
+
// no-op, handled by JSResponder
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
@ReactProp(name = "onTouchStart")
|
|
570
|
+
public void setTouchStart(@NonNull T view, boolean value) {
|
|
571
|
+
// no-op, handled by JSResponder
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@ReactProp(name = "onTouchMove")
|
|
575
|
+
public void setTouchMove(@NonNull T view, boolean value) {
|
|
576
|
+
// no-op, handled by JSResponder
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
@ReactProp(name = "onTouchEnd")
|
|
580
|
+
public void setTouchEnd(@NonNull T view, boolean value) {
|
|
581
|
+
// no-op, handled by JSResponder
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@ReactProp(name = "onTouchCancel")
|
|
585
|
+
public void setTouchCancel(@NonNull T view, boolean value) {
|
|
586
|
+
// no-op, handled by JSResponder
|
|
587
|
+
}
|
|
503
588
|
}
|
|
@@ -808,19 +808,19 @@ public class LayoutShadowNode extends ReactShadowNodeImpl {
|
|
|
808
808
|
super.setShouldNotifyOnLayout(shouldNotifyOnLayout);
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
-
@ReactProp(name = "
|
|
811
|
+
@ReactProp(name = "onPointerEnter")
|
|
812
812
|
public void setShouldNotifyPointerEnter(boolean value) {
|
|
813
813
|
// This method exists to inject Native View configs in RN Android VR
|
|
814
814
|
// DO NOTHING
|
|
815
815
|
}
|
|
816
816
|
|
|
817
|
-
@ReactProp(name = "
|
|
817
|
+
@ReactProp(name = "onPointerLeave")
|
|
818
818
|
public void setShouldNotifyPointerLeave(boolean value) {
|
|
819
819
|
// This method exists to inject Native View configs in RN Android VR
|
|
820
820
|
// DO NOTHING
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
@ReactProp(name = "
|
|
823
|
+
@ReactProp(name = "onPointerMove")
|
|
824
824
|
public void setShouldNotifyPointerMove(boolean value) {
|
|
825
825
|
// This method exists to inject Native View configs in RN Android VR
|
|
826
826
|
// DO NOTHING
|
|
@@ -65,11 +65,6 @@ public interface ReactRoot {
|
|
|
65
65
|
@Nullable
|
|
66
66
|
String getSurfaceID();
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* This API is likely to change once the fix of T78832286 is confirmed TODO: T78832286 revisit
|
|
70
|
-
* this API
|
|
71
|
-
*
|
|
72
|
-
* @return an {@link AtomicInteger} that represents the state of the ReactRoot object. WARNING:
|
|
73
|
-
*/
|
|
68
|
+
/** @return an {@link AtomicInteger} that represents the state of the ReactRoot object. */
|
|
74
69
|
AtomicInteger getState();
|
|
75
70
|
}
|
|
@@ -40,7 +40,6 @@ import com.facebook.react.bridge.UiThreadUtil;
|
|
|
40
40
|
import com.facebook.react.bridge.WritableMap;
|
|
41
41
|
import com.facebook.react.common.MapBuilder;
|
|
42
42
|
import com.facebook.react.common.ReactConstants;
|
|
43
|
-
import com.facebook.react.config.ReactFeatureFlags;
|
|
44
43
|
import com.facebook.react.module.annotations.ReactModule;
|
|
45
44
|
import com.facebook.react.uimanager.common.ViewUtil;
|
|
46
45
|
import com.facebook.react.uimanager.debug.NotThreadSafeViewHierarchyUpdateDebugListener;
|
|
@@ -288,16 +287,6 @@ public class UIManagerModule extends ReactContextBaseJavaModule
|
|
|
288
287
|
@Deprecated
|
|
289
288
|
@Override
|
|
290
289
|
public void preInitializeViewManagers(List<String> viewManagerNames) {
|
|
291
|
-
if (ReactFeatureFlags.enableExperimentalStaticViewConfigs) {
|
|
292
|
-
for (String viewManagerName : viewManagerNames) {
|
|
293
|
-
mUIImplementation.resolveViewManager(viewManagerName);
|
|
294
|
-
}
|
|
295
|
-
// When Static view configs are enabled it is not necessary to pre-compute the constants for
|
|
296
|
-
// viewManagers, although the pre-initialization of viewManager objects is still necessary
|
|
297
|
-
// for performance reasons.
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
290
|
Map<String, WritableMap> constantsMap = new ArrayMap<>();
|
|
302
291
|
for (String viewManagerName : viewManagerNames) {
|
|
303
292
|
WritableMap constants = computeConstantsForViewManager(viewManagerName);
|
package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstants.java
CHANGED
|
@@ -59,9 +59,9 @@ import java.util.Map;
|
|
|
59
59
|
return MapBuilder.builder()
|
|
60
60
|
.put("topContentSizeChange", MapBuilder.of(rn, "onContentSizeChange"))
|
|
61
61
|
.put("topLayout", MapBuilder.of(rn, "onLayout"))
|
|
62
|
-
.put("topPointerEnter", MapBuilder.of(rn, "
|
|
63
|
-
.put("topPointerLeave", MapBuilder.of(rn, "
|
|
64
|
-
.put("topPointerMove", MapBuilder.of(rn, "
|
|
62
|
+
.put("topPointerEnter", MapBuilder.of(rn, "onPointerEnter"))
|
|
63
|
+
.put("topPointerLeave", MapBuilder.of(rn, "onPointerLeave"))
|
|
64
|
+
.put("topPointerMove", MapBuilder.of(rn, "onPointerMove"))
|
|
65
65
|
.put("topLoadingError", MapBuilder.of(rn, "onLoadingError"))
|
|
66
66
|
.put("topLoadingFinish", MapBuilder.of(rn, "onLoadingFinish"))
|
|
67
67
|
.put("topLoadingStart", MapBuilder.of(rn, "onLoadingStart"))
|
|
@@ -55,7 +55,6 @@ rn_android_library(
|
|
|
55
55
|
react_native_dep("third-party/java/jsr-305:jsr-305"),
|
|
56
56
|
react_native_target("java/com/facebook/react/bridge:bridge"),
|
|
57
57
|
react_native_target("java/com/facebook/react/common:common"),
|
|
58
|
-
react_native_target("java/com/facebook/react/config:config"),
|
|
59
58
|
react_native_target("java/com/facebook/react/module/annotations:annotations"),
|
|
60
59
|
react_native_target("java/com/facebook/react/uimanager:uimanager"),
|
|
61
60
|
react_native_target("java/com/facebook/react/modules/fresco:fresco"),
|
|
@@ -14,9 +14,7 @@ import android.graphics.Canvas;
|
|
|
14
14
|
import android.graphics.Color;
|
|
15
15
|
import android.graphics.Matrix;
|
|
16
16
|
import android.graphics.Paint;
|
|
17
|
-
import android.graphics.Path;
|
|
18
17
|
import android.graphics.Rect;
|
|
19
|
-
import android.graphics.RectF;
|
|
20
18
|
import android.graphics.Shader;
|
|
21
19
|
import android.graphics.drawable.Animatable;
|
|
22
20
|
import android.graphics.drawable.Drawable;
|
|
@@ -48,7 +46,6 @@ import com.facebook.react.bridge.ReactContext;
|
|
|
48
46
|
import com.facebook.react.bridge.ReadableArray;
|
|
49
47
|
import com.facebook.react.bridge.ReadableMap;
|
|
50
48
|
import com.facebook.react.common.build.ReactBuildConfig;
|
|
51
|
-
import com.facebook.react.config.ReactFeatureFlags;
|
|
52
49
|
import com.facebook.react.modules.fresco.ReactNetworkImageRequest;
|
|
53
50
|
import com.facebook.react.uimanager.FloatUtil;
|
|
54
51
|
import com.facebook.react.uimanager.PixelUtil;
|
|
@@ -70,25 +67,11 @@ import java.util.List;
|
|
|
70
67
|
public class ReactImageView extends GenericDraweeView {
|
|
71
68
|
|
|
72
69
|
public static final int REMOTE_IMAGE_FADE_DURATION_MS = 300;
|
|
73
|
-
|
|
74
70
|
public static final String REMOTE_TRANSPARENT_BITMAP_URI =
|
|
75
71
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
|
76
72
|
|
|
77
73
|
private static float[] sComputedCornerRadii = new float[4];
|
|
78
74
|
|
|
79
|
-
/*
|
|
80
|
-
* Implementation note re rounded corners:
|
|
81
|
-
*
|
|
82
|
-
* Fresco's built-in rounded corners only work for 'cover' resize mode -
|
|
83
|
-
* this is a limitation in Android itself. Fresco has a workaround for this, but
|
|
84
|
-
* it requires knowing the background color.
|
|
85
|
-
*
|
|
86
|
-
* So for the other modes, we use a postprocessor.
|
|
87
|
-
* Because the postprocessor uses a modified bitmap, that would just get cropped in
|
|
88
|
-
* 'cover' mode, so we fall back to Fresco's normal implementation.
|
|
89
|
-
*/
|
|
90
|
-
private static final Matrix sMatrix = new Matrix();
|
|
91
|
-
private static final Matrix sInverse = new Matrix();
|
|
92
75
|
private ImageResizeMethod mResizeMethod = ImageResizeMethod.AUTO;
|
|
93
76
|
|
|
94
77
|
public void updateCallerContext(@Nullable Object callerContext) {
|
|
@@ -98,61 +81,6 @@ public class ReactImageView extends GenericDraweeView {
|
|
|
98
81
|
}
|
|
99
82
|
}
|
|
100
83
|
|
|
101
|
-
private class RoundedCornerPostprocessor extends BasePostprocessor {
|
|
102
|
-
|
|
103
|
-
void getRadii(Bitmap source, float[] computedCornerRadii, float[] mappedRadii) {
|
|
104
|
-
mScaleType.getTransform(
|
|
105
|
-
sMatrix,
|
|
106
|
-
new Rect(0, 0, source.getWidth(), source.getHeight()),
|
|
107
|
-
source.getWidth(),
|
|
108
|
-
source.getHeight(),
|
|
109
|
-
0.0f,
|
|
110
|
-
0.0f);
|
|
111
|
-
sMatrix.invert(sInverse);
|
|
112
|
-
|
|
113
|
-
mappedRadii[0] = sInverse.mapRadius(computedCornerRadii[0]);
|
|
114
|
-
mappedRadii[1] = mappedRadii[0];
|
|
115
|
-
|
|
116
|
-
mappedRadii[2] = sInverse.mapRadius(computedCornerRadii[1]);
|
|
117
|
-
mappedRadii[3] = mappedRadii[2];
|
|
118
|
-
|
|
119
|
-
mappedRadii[4] = sInverse.mapRadius(computedCornerRadii[2]);
|
|
120
|
-
mappedRadii[5] = mappedRadii[4];
|
|
121
|
-
|
|
122
|
-
mappedRadii[6] = sInverse.mapRadius(computedCornerRadii[3]);
|
|
123
|
-
mappedRadii[7] = mappedRadii[6];
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@Override
|
|
127
|
-
public void process(Bitmap output, Bitmap source) {
|
|
128
|
-
getCornerRadii(sComputedCornerRadii);
|
|
129
|
-
|
|
130
|
-
output.setHasAlpha(true);
|
|
131
|
-
if (FloatUtil.floatsEqual(sComputedCornerRadii[0], 0f)
|
|
132
|
-
&& FloatUtil.floatsEqual(sComputedCornerRadii[1], 0f)
|
|
133
|
-
&& FloatUtil.floatsEqual(sComputedCornerRadii[2], 0f)
|
|
134
|
-
&& FloatUtil.floatsEqual(sComputedCornerRadii[3], 0f)) {
|
|
135
|
-
super.process(output, source);
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
Paint paint = new Paint();
|
|
139
|
-
paint.setAntiAlias(true);
|
|
140
|
-
paint.setShader(new BitmapShader(source, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));
|
|
141
|
-
Canvas canvas = new Canvas(output);
|
|
142
|
-
|
|
143
|
-
float[] radii = new float[8];
|
|
144
|
-
|
|
145
|
-
getRadii(source, sComputedCornerRadii, radii);
|
|
146
|
-
|
|
147
|
-
Path pathForBorderRadius = new Path();
|
|
148
|
-
|
|
149
|
-
pathForBorderRadius.addRoundRect(
|
|
150
|
-
new RectF(0, 0, source.getWidth(), source.getHeight()), radii, Path.Direction.CW);
|
|
151
|
-
|
|
152
|
-
canvas.drawPath(pathForBorderRadius, paint);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
84
|
// Fresco lacks support for repeating images, see https://github.com/facebook/fresco/issues/1575
|
|
157
85
|
// We implement it here as a postprocessing step.
|
|
158
86
|
private static final Matrix sTileMatrix = new Matrix();
|
|
@@ -198,7 +126,6 @@ public class ReactImageView extends GenericDraweeView {
|
|
|
198
126
|
private Shader.TileMode mTileMode = ImageResizeMode.defaultTileMode();
|
|
199
127
|
private boolean mIsDirty;
|
|
200
128
|
private final AbstractDraweeControllerBuilder mDraweeControllerBuilder;
|
|
201
|
-
private @Nullable RoundedCornerPostprocessor mRoundedCornerPostprocessor;
|
|
202
129
|
private @Nullable TilePostprocessor mTilePostprocessor;
|
|
203
130
|
private @Nullable IterativeBoxBlurPostProcessor mIterativeBoxBlurPostProcessor;
|
|
204
131
|
private @Nullable ReactImageDownloadListener mDownloadListener;
|
|
@@ -353,11 +280,6 @@ public class ReactImageView extends GenericDraweeView {
|
|
|
353
280
|
public void setScaleType(ScalingUtils.ScaleType scaleType) {
|
|
354
281
|
if (mScaleType != scaleType) {
|
|
355
282
|
mScaleType = scaleType;
|
|
356
|
-
if (shouldUseRoundedCornerPostprocessing()) {
|
|
357
|
-
mRoundedCornerPostprocessor = new RoundedCornerPostprocessor();
|
|
358
|
-
} else {
|
|
359
|
-
mRoundedCornerPostprocessor = null;
|
|
360
|
-
}
|
|
361
283
|
mIsDirty = true;
|
|
362
284
|
}
|
|
363
285
|
}
|
|
@@ -530,9 +452,6 @@ public class ReactImageView extends GenericDraweeView {
|
|
|
530
452
|
mBackgroundImageDrawable.setRadii(roundingParams.getCornersRadii());
|
|
531
453
|
hierarchy.setBackgroundImage(mBackgroundImageDrawable);
|
|
532
454
|
}
|
|
533
|
-
if (shouldUseRoundedCornerPostprocessing()) {
|
|
534
|
-
roundingParams.setCornersRadius(0);
|
|
535
|
-
}
|
|
536
455
|
roundingParams.setBorder(mBorderColor, mBorderWidth);
|
|
537
456
|
if (mOverlayColor != Color.TRANSPARENT) {
|
|
538
457
|
roundingParams.setOverlayColor(mOverlayColor);
|
|
@@ -547,9 +466,6 @@ public class ReactImageView extends GenericDraweeView {
|
|
|
547
466
|
: mImageSource.isResource() ? 0 : REMOTE_IMAGE_FADE_DURATION_MS);
|
|
548
467
|
|
|
549
468
|
List<Postprocessor> postprocessors = new LinkedList<>();
|
|
550
|
-
if (mRoundedCornerPostprocessor != null) {
|
|
551
|
-
postprocessors.add(mRoundedCornerPostprocessor);
|
|
552
|
-
}
|
|
553
469
|
if (mIterativeBoxBlurPostProcessor != null) {
|
|
554
470
|
postprocessors.add(mIterativeBoxBlurPostProcessor);
|
|
555
471
|
}
|
|
@@ -647,12 +563,6 @@ public class ReactImageView extends GenericDraweeView {
|
|
|
647
563
|
return mTileMode != Shader.TileMode.CLAMP;
|
|
648
564
|
}
|
|
649
565
|
|
|
650
|
-
private boolean shouldUseRoundedCornerPostprocessing() {
|
|
651
|
-
return mScaleType != ScalingUtils.ScaleType.CENTER_CROP
|
|
652
|
-
&& mScaleType != ScalingUtils.ScaleType.FOCUS_CROP
|
|
653
|
-
&& ReactFeatureFlags.enableRoundedCornerPostprocessing;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
566
|
private void setSourceImage() {
|
|
657
567
|
mImageSource = null;
|
|
658
568
|
if (mSources.isEmpty()) {
|
|
@@ -12,6 +12,7 @@ import android.graphics.drawable.Drawable;
|
|
|
12
12
|
import android.net.Uri;
|
|
13
13
|
import androidx.annotation.Nullable;
|
|
14
14
|
import java.util.HashMap;
|
|
15
|
+
import java.util.Locale;
|
|
15
16
|
import java.util.Map;
|
|
16
17
|
import javax.annotation.concurrent.ThreadSafe;
|
|
17
18
|
|
|
@@ -47,7 +48,7 @@ public class ResourceDrawableIdHelper {
|
|
|
47
48
|
if (name == null || name.isEmpty()) {
|
|
48
49
|
return 0;
|
|
49
50
|
}
|
|
50
|
-
name = name.toLowerCase().replace("-", "_");
|
|
51
|
+
name = name.toLowerCase(Locale.ROOT).replace("-", "_");
|
|
51
52
|
|
|
52
53
|
// name could be a resource id.
|
|
53
54
|
try {
|
|
@@ -8,13 +8,11 @@
|
|
|
8
8
|
package com.facebook.react.views.scroll;
|
|
9
9
|
|
|
10
10
|
import android.graphics.Color;
|
|
11
|
-
import android.util.DisplayMetrics;
|
|
12
11
|
import androidx.annotation.Nullable;
|
|
13
12
|
import androidx.core.view.ViewCompat;
|
|
14
13
|
import com.facebook.react.bridge.ReadableArray;
|
|
15
14
|
import com.facebook.react.bridge.ReadableMap;
|
|
16
15
|
import com.facebook.react.module.annotations.ReactModule;
|
|
17
|
-
import com.facebook.react.uimanager.DisplayMetricsHolder;
|
|
18
16
|
import com.facebook.react.uimanager.PixelUtil;
|
|
19
17
|
import com.facebook.react.uimanager.PointerEvents;
|
|
20
18
|
import com.facebook.react.uimanager.ReactClippingViewGroupHelper;
|
|
@@ -99,8 +97,8 @@ public class ReactHorizontalScrollViewManager extends ViewGroupManager<ReactHori
|
|
|
99
97
|
@ReactProp(name = "snapToInterval")
|
|
100
98
|
public void setSnapToInterval(ReactHorizontalScrollView view, float snapToInterval) {
|
|
101
99
|
// snapToInterval needs to be exposed as a float because of the Javascript interface.
|
|
102
|
-
|
|
103
|
-
view.setSnapInterval((int) (snapToInterval *
|
|
100
|
+
float density = PixelUtil.getDisplayMetricDensity();
|
|
101
|
+
view.setSnapInterval((int) (snapToInterval * density));
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
@ReactProp(name = "snapToAlignment")
|
|
@@ -116,10 +114,10 @@ public class ReactHorizontalScrollViewManager extends ViewGroupManager<ReactHori
|
|
|
116
114
|
return;
|
|
117
115
|
}
|
|
118
116
|
|
|
119
|
-
|
|
117
|
+
float density = PixelUtil.getDisplayMetricDensity();
|
|
120
118
|
List<Integer> offsets = new ArrayList<Integer>();
|
|
121
119
|
for (int i = 0; i < snapToOffsets.size(); i++) {
|
|
122
|
-
offsets.add((int) (snapToOffsets.getDouble(i) *
|
|
120
|
+
offsets.add((int) (snapToOffsets.getDouble(i) * density));
|
|
123
121
|
}
|
|
124
122
|
view.setSnapOffsets(offsets);
|
|
125
123
|
}
|
|
@@ -254,8 +254,8 @@ public class ReactScrollView extends ScrollView
|
|
|
254
254
|
@Override
|
|
255
255
|
protected void onLayout(boolean changed, int l, int t, int r, int b) {
|
|
256
256
|
// Call with the present values in order to re-layout if necessary
|
|
257
|
-
// If a "pending" value has been set, we restore that value.
|
|
258
|
-
//
|
|
257
|
+
// If a "pending" content offset value has been set, we restore that value.
|
|
258
|
+
// Upon call to scrollTo, the "pending" values will be re-set.
|
|
259
259
|
int scrollToX =
|
|
260
260
|
pendingContentOffsetX != UNSET_CONTENT_OFFSET ? pendingContentOffsetX : getScrollX();
|
|
261
261
|
int scrollToY =
|
|
@@ -954,23 +954,21 @@ public class ReactScrollView extends ScrollView
|
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
/**
|
|
957
|
-
* Calls `
|
|
957
|
+
* Calls `updateFabricScrollState` and updates state.
|
|
958
958
|
*
|
|
959
|
-
* <p>`
|
|
960
|
-
* scroll view and state. Calling
|
|
961
|
-
*
|
|
962
|
-
* <p>Note that while we can override scrollTo, we *cannot* override `smoothScrollTo` because it
|
|
963
|
-
* is final. See `reactSmoothScrollTo`.
|
|
959
|
+
* <p>`scrollTo` changes `contentOffset` and we need to keep `contentOffset` in sync between
|
|
960
|
+
* scroll view and state. Calling ScrollView's `scrollTo` doesn't update state.
|
|
964
961
|
*/
|
|
965
962
|
@Override
|
|
966
963
|
public void scrollTo(int x, int y) {
|
|
967
964
|
super.scrollTo(x, y);
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
965
|
+
ReactScrollViewHelper.updateFabricScrollState(this);
|
|
966
|
+
setPendingContentOffsets(x, y);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
private boolean isContentReady() {
|
|
970
|
+
View child = getChildAt(0);
|
|
971
|
+
return child != null && child.getWidth() != 0 && child.getHeight() != 0;
|
|
974
972
|
}
|
|
975
973
|
|
|
976
974
|
/**
|
|
@@ -981,8 +979,7 @@ public class ReactScrollView extends ScrollView
|
|
|
981
979
|
* @param y
|
|
982
980
|
*/
|
|
983
981
|
private void setPendingContentOffsets(int x, int y) {
|
|
984
|
-
|
|
985
|
-
if (child != null && child.getWidth() != 0 && child.getHeight() != 0) {
|
|
982
|
+
if (isContentReady()) {
|
|
986
983
|
pendingContentOffsetX = UNSET_CONTENT_OFFSET;
|
|
987
984
|
pendingContentOffsetY = UNSET_CONTENT_OFFSET;
|
|
988
985
|
} else {
|