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
|
@@ -94,7 +94,7 @@ export type PushNotificationEventName = $Keys<{
|
|
|
94
94
|
* Handle push notifications for your app, including permission handling and
|
|
95
95
|
* icon badge number.
|
|
96
96
|
*
|
|
97
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
97
|
+
* See https://reactnative.dev/docs/pushnotificationios
|
|
98
98
|
*/
|
|
99
99
|
class PushNotificationIOS {
|
|
100
100
|
_data: Object;
|
|
@@ -117,7 +117,7 @@ class PushNotificationIOS {
|
|
|
117
117
|
/**
|
|
118
118
|
* Schedules the localNotification for immediate presentation.
|
|
119
119
|
*
|
|
120
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
120
|
+
* See https://reactnative.dev/docs/pushnotificationios#presentlocalnotification
|
|
121
121
|
*/
|
|
122
122
|
static presentLocalNotification(details: Object) {
|
|
123
123
|
invariant(
|
|
@@ -130,7 +130,7 @@ class PushNotificationIOS {
|
|
|
130
130
|
/**
|
|
131
131
|
* Schedules the localNotification for future presentation.
|
|
132
132
|
*
|
|
133
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
133
|
+
* See https://reactnative.dev/docs/pushnotificationios#schedulelocalnotification
|
|
134
134
|
*/
|
|
135
135
|
static scheduleLocalNotification(details: Object) {
|
|
136
136
|
invariant(
|
|
@@ -143,7 +143,7 @@ class PushNotificationIOS {
|
|
|
143
143
|
/**
|
|
144
144
|
* Cancels all scheduled localNotifications.
|
|
145
145
|
*
|
|
146
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
146
|
+
* See https://reactnative.dev/docs/pushnotificationios#cancelalllocalnotifications
|
|
147
147
|
*/
|
|
148
148
|
static cancelAllLocalNotifications() {
|
|
149
149
|
invariant(
|
|
@@ -156,7 +156,7 @@ class PushNotificationIOS {
|
|
|
156
156
|
/**
|
|
157
157
|
* Remove all delivered notifications from Notification Center.
|
|
158
158
|
*
|
|
159
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
159
|
+
* See https://reactnative.dev/docs/pushnotificationios#removealldeliverednotifications
|
|
160
160
|
*/
|
|
161
161
|
static removeAllDeliveredNotifications(): void {
|
|
162
162
|
invariant(
|
|
@@ -169,7 +169,7 @@ class PushNotificationIOS {
|
|
|
169
169
|
/**
|
|
170
170
|
* Provides you with a list of the app’s notifications that are still displayed in Notification Center.
|
|
171
171
|
*
|
|
172
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
172
|
+
* See https://reactnative.dev/docs/pushnotificationios#getdeliverednotifications
|
|
173
173
|
*/
|
|
174
174
|
static getDeliveredNotifications(
|
|
175
175
|
callback: (notifications: Array<Object>) => void,
|
|
@@ -184,7 +184,7 @@ class PushNotificationIOS {
|
|
|
184
184
|
/**
|
|
185
185
|
* Removes the specified notifications from Notification Center
|
|
186
186
|
*
|
|
187
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
187
|
+
* See https://reactnative.dev/docs/pushnotificationios#removedeliverednotifications
|
|
188
188
|
*/
|
|
189
189
|
static removeDeliveredNotifications(identifiers: Array<string>): void {
|
|
190
190
|
invariant(
|
|
@@ -197,7 +197,7 @@ class PushNotificationIOS {
|
|
|
197
197
|
/**
|
|
198
198
|
* Sets the badge number for the app icon on the home screen.
|
|
199
199
|
*
|
|
200
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
200
|
+
* See https://reactnative.dev/docs/pushnotificationios#setapplicationiconbadgenumber
|
|
201
201
|
*/
|
|
202
202
|
static setApplicationIconBadgeNumber(number: number) {
|
|
203
203
|
invariant(
|
|
@@ -210,7 +210,7 @@ class PushNotificationIOS {
|
|
|
210
210
|
/**
|
|
211
211
|
* Gets the current badge number for the app icon on the home screen.
|
|
212
212
|
*
|
|
213
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
213
|
+
* See https://reactnative.dev/docs/pushnotificationios#getapplicationiconbadgenumber
|
|
214
214
|
*/
|
|
215
215
|
static getApplicationIconBadgeNumber(callback: Function) {
|
|
216
216
|
invariant(
|
|
@@ -223,7 +223,7 @@ class PushNotificationIOS {
|
|
|
223
223
|
/**
|
|
224
224
|
* Cancel local notifications.
|
|
225
225
|
*
|
|
226
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
226
|
+
* See https://reactnative.dev/docs/pushnotificationios#cancellocalnotification
|
|
227
227
|
*/
|
|
228
228
|
static cancelLocalNotifications(userInfo: Object) {
|
|
229
229
|
invariant(
|
|
@@ -236,7 +236,7 @@ class PushNotificationIOS {
|
|
|
236
236
|
/**
|
|
237
237
|
* Gets the local notifications that are currently scheduled.
|
|
238
238
|
*
|
|
239
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
239
|
+
* See https://reactnative.dev/docs/pushnotificationios#getscheduledlocalnotifications
|
|
240
240
|
*/
|
|
241
241
|
static getScheduledLocalNotifications(callback: Function) {
|
|
242
242
|
invariant(
|
|
@@ -250,7 +250,7 @@ class PushNotificationIOS {
|
|
|
250
250
|
* Attaches a listener to remote or local notification events while the app
|
|
251
251
|
* is running in the foreground or the background.
|
|
252
252
|
*
|
|
253
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
253
|
+
* See https://reactnative.dev/docs/pushnotificationios#addeventlistener
|
|
254
254
|
*/
|
|
255
255
|
static addEventListener(type: PushNotificationEventName, handler: Function) {
|
|
256
256
|
invariant(
|
|
@@ -297,7 +297,7 @@ class PushNotificationIOS {
|
|
|
297
297
|
* Removes the event listener. Do this in `componentWillUnmount` to prevent
|
|
298
298
|
* memory leaks.
|
|
299
299
|
*
|
|
300
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
300
|
+
* See https://reactnative.dev/docs/pushnotificationios#removeeventlistener
|
|
301
301
|
*/
|
|
302
302
|
static removeEventListener(
|
|
303
303
|
type: PushNotificationEventName,
|
|
@@ -324,7 +324,7 @@ class PushNotificationIOS {
|
|
|
324
324
|
* a subset of these can be requested by passing a map of requested
|
|
325
325
|
* permissions.
|
|
326
326
|
*
|
|
327
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
327
|
+
* See https://reactnative.dev/docs/pushnotificationios#requestpermissions
|
|
328
328
|
*/
|
|
329
329
|
static requestPermissions(permissions?: {
|
|
330
330
|
alert?: boolean,
|
|
@@ -361,7 +361,7 @@ class PushNotificationIOS {
|
|
|
361
361
|
/**
|
|
362
362
|
* Unregister for all remote notifications received via Apple Push Notification service.
|
|
363
363
|
*
|
|
364
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
364
|
+
* See https://reactnative.dev/docs/pushnotificationios#abandonpermissions
|
|
365
365
|
*/
|
|
366
366
|
static abandonPermissions() {
|
|
367
367
|
invariant(
|
|
@@ -375,7 +375,7 @@ class PushNotificationIOS {
|
|
|
375
375
|
* See what push permissions are currently enabled. `callback` will be
|
|
376
376
|
* invoked with a `permissions` object.
|
|
377
377
|
*
|
|
378
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
378
|
+
* See https://reactnative.dev/docs/pushnotificationios#checkpermissions
|
|
379
379
|
*/
|
|
380
380
|
static checkPermissions(callback: Function) {
|
|
381
381
|
invariant(typeof callback === 'function', 'Must provide a valid callback');
|
|
@@ -390,7 +390,7 @@ class PushNotificationIOS {
|
|
|
390
390
|
* This method returns a promise that resolves to either the notification
|
|
391
391
|
* object if the app was launched by a push notification, or `null` otherwise.
|
|
392
392
|
*
|
|
393
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
393
|
+
* See https://reactnative.dev/docs/pushnotificationios#getinitialnotification
|
|
394
394
|
*/
|
|
395
395
|
static getInitialNotification(): Promise<?PushNotificationIOS> {
|
|
396
396
|
invariant(
|
|
@@ -434,7 +434,7 @@ class PushNotificationIOS {
|
|
|
434
434
|
|
|
435
435
|
if (nativeNotif.remote) {
|
|
436
436
|
// Extract data from Apple's `aps` dict as defined:
|
|
437
|
-
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService
|
|
437
|
+
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService
|
|
438
438
|
Object.keys(nativeNotif).forEach(notifKey => {
|
|
439
439
|
const notifVal = nativeNotif[notifKey];
|
|
440
440
|
if (notifKey === 'aps') {
|
|
@@ -462,7 +462,7 @@ class PushNotificationIOS {
|
|
|
462
462
|
* This method is available for remote notifications that have been received via:
|
|
463
463
|
* `application:didReceiveRemoteNotification:fetchCompletionHandler:`
|
|
464
464
|
*
|
|
465
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
465
|
+
* See https://reactnative.dev/docs/pushnotificationios#finish
|
|
466
466
|
*/
|
|
467
467
|
finish(fetchResult: string) {
|
|
468
468
|
if (
|
|
@@ -496,7 +496,7 @@ class PushNotificationIOS {
|
|
|
496
496
|
/**
|
|
497
497
|
* Gets the sound string from the `aps` object
|
|
498
498
|
*
|
|
499
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
499
|
+
* See https://reactnative.dev/docs/pushnotificationios#getsound
|
|
500
500
|
*/
|
|
501
501
|
getSound(): ?string {
|
|
502
502
|
return this._sound;
|
|
@@ -505,7 +505,7 @@ class PushNotificationIOS {
|
|
|
505
505
|
/**
|
|
506
506
|
* Gets the category string from the `aps` object
|
|
507
507
|
*
|
|
508
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
508
|
+
* See https://reactnative.dev/docs/pushnotificationios#getcategory
|
|
509
509
|
*/
|
|
510
510
|
getCategory(): ?string {
|
|
511
511
|
return this._category;
|
|
@@ -514,7 +514,7 @@ class PushNotificationIOS {
|
|
|
514
514
|
/**
|
|
515
515
|
* Gets the notification's main message from the `aps` object
|
|
516
516
|
*
|
|
517
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
517
|
+
* See https://reactnative.dev/docs/pushnotificationios#getalert
|
|
518
518
|
*/
|
|
519
519
|
getAlert(): ?string | ?Object {
|
|
520
520
|
return this._alert;
|
|
@@ -523,7 +523,7 @@ class PushNotificationIOS {
|
|
|
523
523
|
/**
|
|
524
524
|
* Gets the content-available number from the `aps` object
|
|
525
525
|
*
|
|
526
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
526
|
+
* See https://reactnative.dev/docs/pushnotificationios#getcontentavailable
|
|
527
527
|
*/
|
|
528
528
|
getContentAvailable(): ContentAvailable {
|
|
529
529
|
return this._contentAvailable;
|
|
@@ -532,7 +532,7 @@ class PushNotificationIOS {
|
|
|
532
532
|
/**
|
|
533
533
|
* Gets the badge count number from the `aps` object
|
|
534
534
|
*
|
|
535
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
535
|
+
* See https://reactnative.dev/docs/pushnotificationios#getbadgecount
|
|
536
536
|
*/
|
|
537
537
|
getBadgeCount(): ?number {
|
|
538
538
|
return this._badgeCount;
|
|
@@ -541,7 +541,7 @@ class PushNotificationIOS {
|
|
|
541
541
|
/**
|
|
542
542
|
* Gets the data object on the notif
|
|
543
543
|
*
|
|
544
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
544
|
+
* See https://reactnative.dev/docs/pushnotificationios#getdata
|
|
545
545
|
*/
|
|
546
546
|
getData(): ?Object {
|
|
547
547
|
return this._data;
|
|
@@ -550,7 +550,7 @@ class PushNotificationIOS {
|
|
|
550
550
|
/**
|
|
551
551
|
* Gets the thread ID on the notif
|
|
552
552
|
*
|
|
553
|
-
* See https://reactnative.dev/docs/pushnotificationios
|
|
553
|
+
* See https://reactnative.dev/docs/pushnotificationios#getthreadid
|
|
554
554
|
*/
|
|
555
555
|
getThreadID(): ?string {
|
|
556
556
|
return this._threadID;
|
|
@@ -88,7 +88,7 @@ RCT_ENUM_CONVERTER(NSCalendarUnit,
|
|
|
88
88
|
|
|
89
89
|
NSCalendarUnit calendarUnit = [RCTConvert NSCalendarUnit:details[@"repeatInterval"]];
|
|
90
90
|
if (calendarUnit > 0) {
|
|
91
|
-
NSDateComponents *dateComponents = [
|
|
91
|
+
NSDateComponents *dateComponents = [NSDateComponents new];
|
|
92
92
|
[dateComponents setValue:1 forComponent:calendarUnit];
|
|
93
93
|
notification.deliveryRepeatInterval = dateComponents;
|
|
94
94
|
}
|
|
@@ -142,7 +142,6 @@ static NSDictionary *RCTFormatLocalNotification(UILocalNotification *notificatio
|
|
|
142
142
|
return formattedLocalNotification;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
API_AVAILABLE(ios(10.0))
|
|
146
145
|
static NSDictionary *RCTFormatUNNotification(UNNotification *notification)
|
|
147
146
|
{
|
|
148
147
|
NSMutableDictionary *formattedNotification = [NSMutableDictionary dictionary];
|
|
@@ -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
|
s.framework = "UserNotifications"
|
|
42
42
|
|
|
43
|
-
s.dependency "
|
|
43
|
+
s.dependency "React-Codegen", version
|
|
44
44
|
s.dependency "RCTTypeSafety", version
|
|
45
45
|
s.dependency "React-Core/RCTPushNotificationHeaders", version
|
|
46
46
|
s.dependency "ReactCommon/turbomodule/core", version
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// In UI tests it is usually best to stop immediately when a failure occurs.
|
|
23
23
|
self.continueAfterFailure = NO;
|
|
24
24
|
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
|
|
25
|
-
[[
|
|
25
|
+
[[XCUIApplication new] launch];
|
|
26
26
|
|
|
27
27
|
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
|
28
28
|
}
|
|
@@ -96,7 +96,8 @@ class AppContainer extends React.Component<Props, State> {
|
|
|
96
96
|
style={styles.appContainer}
|
|
97
97
|
ref={ref => {
|
|
98
98
|
this._mainRef = ref;
|
|
99
|
-
}}
|
|
99
|
+
}}
|
|
100
|
+
>
|
|
100
101
|
{this.props.children}
|
|
101
102
|
</View>
|
|
102
103
|
);
|
|
@@ -109,7 +110,8 @@ class AppContainer extends React.Component<Props, State> {
|
|
|
109
110
|
fabric={this.props.fabric === true}
|
|
110
111
|
showArchitectureIndicator={
|
|
111
112
|
this.props.showArchitectureIndicator === true
|
|
112
|
-
}
|
|
113
|
+
}
|
|
114
|
+
>
|
|
113
115
|
{innerView}
|
|
114
116
|
</Wrapper>
|
|
115
117
|
);
|
|
@@ -69,7 +69,7 @@ let showArchitectureIndicator = false;
|
|
|
69
69
|
/**
|
|
70
70
|
* `AppRegistry` is the JavaScript entry point to running all React Native apps.
|
|
71
71
|
*
|
|
72
|
-
* See https://reactnative.dev/docs/appregistry
|
|
72
|
+
* See https://reactnative.dev/docs/appregistry
|
|
73
73
|
*/
|
|
74
74
|
const AppRegistry = {
|
|
75
75
|
setWrapperComponentProvider(provider: WrapperComponentProvider) {
|
|
@@ -103,7 +103,7 @@ const AppRegistry = {
|
|
|
103
103
|
/**
|
|
104
104
|
* Registers an app's root component.
|
|
105
105
|
*
|
|
106
|
-
* See https://reactnative.dev/docs/appregistry
|
|
106
|
+
* See https://reactnative.dev/docs/appregistry#registercomponent
|
|
107
107
|
*/
|
|
108
108
|
registerComponent(
|
|
109
109
|
appKey: string,
|
|
@@ -181,7 +181,7 @@ const AppRegistry = {
|
|
|
181
181
|
/**
|
|
182
182
|
* Loads the JavaScript bundle and runs the app.
|
|
183
183
|
*
|
|
184
|
-
* See https://reactnative.dev/docs/appregistry
|
|
184
|
+
* See https://reactnative.dev/docs/appregistry#runapplication
|
|
185
185
|
*/
|
|
186
186
|
runApplication(
|
|
187
187
|
appKey: string,
|
|
@@ -189,8 +189,10 @@ const AppRegistry = {
|
|
|
189
189
|
displayMode?: number,
|
|
190
190
|
): void {
|
|
191
191
|
if (appKey !== 'LogBox') {
|
|
192
|
-
const
|
|
193
|
-
|
|
192
|
+
const logParams = __DEV__
|
|
193
|
+
? '" with ' + JSON.stringify(appParameters)
|
|
194
|
+
: '';
|
|
195
|
+
const msg = 'Running "' + appKey + logParams;
|
|
194
196
|
infoLog(msg);
|
|
195
197
|
BugReporting.addSource(
|
|
196
198
|
'AppRegistry.runApplication' + runCount++,
|
|
@@ -243,7 +245,7 @@ const AppRegistry = {
|
|
|
243
245
|
/**
|
|
244
246
|
* Stops an application when a view should be destroyed.
|
|
245
247
|
*
|
|
246
|
-
* See https://reactnative.dev/docs/appregistry
|
|
248
|
+
* See https://reactnative.dev/docs/appregistry#unmountapplicationcomponentatroottag
|
|
247
249
|
*/
|
|
248
250
|
unmountApplicationComponentAtRootTag(rootTag: RootTag): void {
|
|
249
251
|
// NOTE: RootTag type
|
|
@@ -254,7 +256,7 @@ const AppRegistry = {
|
|
|
254
256
|
/**
|
|
255
257
|
* Register a headless task. A headless task is a bit of code that runs without a UI.
|
|
256
258
|
*
|
|
257
|
-
* See https://reactnative.dev/docs/appregistry
|
|
259
|
+
* See https://reactnative.dev/docs/appregistry#registerheadlesstask
|
|
258
260
|
*/
|
|
259
261
|
registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void {
|
|
260
262
|
// $FlowFixMe[object-this-reference]
|
|
@@ -266,7 +268,7 @@ const AppRegistry = {
|
|
|
266
268
|
/**
|
|
267
269
|
* Register a cancellable headless task. A headless task is a bit of code that runs without a UI.
|
|
268
270
|
*
|
|
269
|
-
* See https://reactnative.dev/docs/appregistry
|
|
271
|
+
* See https://reactnative.dev/docs/appregistry#registercancellableheadlesstask
|
|
270
272
|
*/
|
|
271
273
|
registerCancellableHeadlessTask(
|
|
272
274
|
taskKey: string,
|
|
@@ -285,7 +287,7 @@ const AppRegistry = {
|
|
|
285
287
|
/**
|
|
286
288
|
* Only called from native code. Starts a headless task.
|
|
287
289
|
*
|
|
288
|
-
* See https://reactnative.dev/docs/appregistry
|
|
290
|
+
* See https://reactnative.dev/docs/appregistry#startheadlesstask
|
|
289
291
|
*/
|
|
290
292
|
startHeadlessTask(taskId: number, taskKey: string, data: any): void {
|
|
291
293
|
const taskProvider = taskProviders.get(taskKey);
|
|
@@ -323,7 +325,7 @@ const AppRegistry = {
|
|
|
323
325
|
/**
|
|
324
326
|
* Only called from native code. Cancels a headless task.
|
|
325
327
|
*
|
|
326
|
-
* See https://reactnative.dev/docs/appregistry
|
|
328
|
+
* See https://reactnative.dev/docs/appregistry#cancelheadlesstask
|
|
327
329
|
*/
|
|
328
330
|
cancelHeadlessTask(taskId: number, taskKey: string): void {
|
|
329
331
|
const taskCancelProvider = taskCancelProviders.get(taskKey);
|
|
@@ -23,7 +23,9 @@ export default function getCachedComponentWithDisplayName(
|
|
|
23
23
|
let ComponentWithDisplayName = cache.get(displayName);
|
|
24
24
|
|
|
25
25
|
if (!ComponentWithDisplayName) {
|
|
26
|
-
ComponentWithDisplayName = ({
|
|
26
|
+
ComponentWithDisplayName = ({
|
|
27
|
+
children,
|
|
28
|
+
}: $TEMPORARY$object<{children: Node}>) => children;
|
|
27
29
|
ComponentWithDisplayName.displayName = displayName;
|
|
28
30
|
cache.set(displayName, ComponentWithDisplayName);
|
|
29
31
|
}
|
|
@@ -35,6 +35,10 @@ function getNativeComponentAttributes(uiViewClassName: string): any {
|
|
|
35
35
|
// native component that can be either avoided or simplified.
|
|
36
36
|
let {baseModuleName, bubblingEventTypes, directEventTypes} = viewConfig;
|
|
37
37
|
let nativeProps = viewConfig.NativeProps;
|
|
38
|
+
|
|
39
|
+
bubblingEventTypes = bubblingEventTypes ?? {};
|
|
40
|
+
directEventTypes = directEventTypes ?? {};
|
|
41
|
+
|
|
38
42
|
while (baseModuleName) {
|
|
39
43
|
const baseModule = UIManager.getViewManagerConfig(baseModuleName);
|
|
40
44
|
if (!baseModule) {
|
|
@@ -63,8 +67,18 @@ function getNativeComponentAttributes(uiViewClassName: string): any {
|
|
|
63
67
|
const diff = getDifferForType(typeName);
|
|
64
68
|
const process = getProcessorForType(typeName);
|
|
65
69
|
|
|
70
|
+
// If diff or process == null, omit the corresponding property from the Attribute
|
|
71
|
+
// Why:
|
|
72
|
+
// 1. Consistency with AttributeType flow type
|
|
73
|
+
// 2. Consistency with Static View Configs, which omit the null properties
|
|
66
74
|
validAttributes[key] =
|
|
67
|
-
diff == null
|
|
75
|
+
diff == null
|
|
76
|
+
? process == null
|
|
77
|
+
? true
|
|
78
|
+
: {process}
|
|
79
|
+
: process == null
|
|
80
|
+
? {diff}
|
|
81
|
+
: {diff, process};
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
// Unfortunately, the current setup declares style properties as top-level
|
|
@@ -46,7 +46,8 @@ function renderApplication<Props: Object>(
|
|
|
46
46
|
showArchitectureIndicator={showArchitectureIndicator}
|
|
47
47
|
WrapperComponent={WrapperComponent}
|
|
48
48
|
initialProps={initialProps ?? Object.freeze({})}
|
|
49
|
-
internal_excludeLogBox={isLogBox}
|
|
49
|
+
internal_excludeLogBox={isLogBox}
|
|
50
|
+
>
|
|
50
51
|
<RootComponent {...initialProps} rootTag={rootTag} />
|
|
51
52
|
</AppContainer>
|
|
52
53
|
</PerformanceLoggerContext.Provider>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c0c71a868560b3042847722659579418bfe2d7e1
|