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
|
@@ -30,12 +30,10 @@
|
|
|
30
30
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
31
31
|
{
|
|
32
32
|
if (self = [super initWithFrame:frame]) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
|
38
|
-
}
|
|
33
|
+
// We set the default behavior to "never" so that iOS
|
|
34
|
+
// doesn't do weird things to UIScrollView insets automatically
|
|
35
|
+
// and keeps it as an opt-in behavior.
|
|
36
|
+
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
|
39
37
|
|
|
40
38
|
// We intentionally force `UIScrollView`s `semanticContentAttribute` to `LTR` here
|
|
41
39
|
// because this attribute affects a position of vertical scrollbar; we don't want this
|
package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTPullToRefreshViewComponentView.mm
CHANGED
|
@@ -39,7 +39,7 @@ using namespace facebook::react;
|
|
|
39
39
|
static auto const defaultProps = std::make_shared<PullToRefreshViewProps const>();
|
|
40
40
|
_props = defaultProps;
|
|
41
41
|
|
|
42
|
-
_refreshControl = [
|
|
42
|
+
_refreshControl = [UIRefreshControl new];
|
|
43
43
|
[_refreshControl addTarget:self
|
|
44
44
|
action:@selector(handleUIControlEventValueChanged)
|
|
45
45
|
forControlEvents:UIControlEventValueChanged];
|
|
@@ -87,8 +87,6 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
87
87
|
BOOL _isUserTriggeredScrolling;
|
|
88
88
|
|
|
89
89
|
CGPoint _contentOffsetWhenClipped;
|
|
90
|
-
NSMutableArray<UIView<RCTComponentViewProtocol> *> *_childComponentViews;
|
|
91
|
-
BOOL _subviewClippingEnabled;
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
+ (RCTScrollViewComponentView *_Nullable)findScrollViewComponentViewForView:(UIView *)view
|
|
@@ -105,15 +103,12 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
105
103
|
static const auto defaultProps = std::make_shared<const ScrollViewProps>();
|
|
106
104
|
_props = defaultProps;
|
|
107
105
|
|
|
108
|
-
_childComponentViews = [[NSMutableArray alloc] init];
|
|
109
|
-
|
|
110
106
|
_scrollView = [[RCTEnhancedScrollView alloc] initWithFrame:self.bounds];
|
|
111
107
|
_scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
112
108
|
_scrollView.delaysContentTouches = NO;
|
|
113
109
|
((RCTEnhancedScrollView *)_scrollView).overridingDelegate = self;
|
|
114
110
|
_isUserTriggeredScrolling = NO;
|
|
115
111
|
[self addSubview:_scrollView];
|
|
116
|
-
_subviewClippingEnabled = RCTGetRemoveClippedSubviewsEnabled();
|
|
117
112
|
|
|
118
113
|
_containerView = [[UIView alloc] initWithFrame:CGRectZero];
|
|
119
114
|
[_scrollView addSubview:_containerView];
|
|
@@ -258,18 +253,16 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
258
253
|
}
|
|
259
254
|
}
|
|
260
255
|
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAlways;
|
|
272
|
-
}
|
|
256
|
+
if (oldScrollViewProps.contentInsetAdjustmentBehavior != newScrollViewProps.contentInsetAdjustmentBehavior) {
|
|
257
|
+
auto const contentInsetAdjustmentBehavior = newScrollViewProps.contentInsetAdjustmentBehavior;
|
|
258
|
+
if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::Never) {
|
|
259
|
+
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
|
260
|
+
} else if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::Automatic) {
|
|
261
|
+
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
|
|
262
|
+
} else if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::ScrollableAxes) {
|
|
263
|
+
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
|
|
264
|
+
} else if (contentInsetAdjustmentBehavior == ContentInsetAdjustmentBehavior::Always) {
|
|
265
|
+
scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAlways;
|
|
273
266
|
}
|
|
274
267
|
}
|
|
275
268
|
|
|
@@ -326,24 +319,11 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
326
319
|
|
|
327
320
|
- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
|
|
328
321
|
{
|
|
329
|
-
|
|
330
|
-
[_containerView insertSubview:childComponentView atIndex:index];
|
|
331
|
-
} else {
|
|
332
|
-
[_childComponentViews insertObject:childComponentView atIndex:index];
|
|
333
|
-
}
|
|
322
|
+
[_containerView insertSubview:childComponentView atIndex:index];
|
|
334
323
|
}
|
|
335
324
|
|
|
336
325
|
- (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
|
|
337
326
|
{
|
|
338
|
-
if (!_subviewClippingEnabled) {
|
|
339
|
-
RCTAssert(
|
|
340
|
-
[_childComponentViews objectAtIndex:index] == childComponentView,
|
|
341
|
-
@"Attempt to unmount improperly mounted component view.");
|
|
342
|
-
[_childComponentViews removeObjectAtIndex:index];
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
// In addition to removing a view from `_childComponentViews`,
|
|
346
|
-
// we have to unmount views immediately to not mess with recycling.
|
|
347
327
|
[childComponentView removeFromSuperview];
|
|
348
328
|
}
|
|
349
329
|
|
|
@@ -498,6 +478,11 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
498
478
|
}
|
|
499
479
|
|
|
500
480
|
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
|
|
481
|
+
{
|
|
482
|
+
[self _handleFinishedScrolling:scrollView];
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
- (void)_handleFinishedScrolling:(UIScrollView *)scrollView
|
|
501
486
|
{
|
|
502
487
|
[self _forceDispatchNextScrollEvent];
|
|
503
488
|
[self scrollViewDidScroll:scrollView];
|
|
@@ -602,6 +587,11 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
602
587
|
|
|
603
588
|
#pragma mark - Child views mounting
|
|
604
589
|
|
|
590
|
+
- (void)updateClippedSubviewsWithClipRect:(CGRect)clipRect relativeToView:(UIView *)clipView
|
|
591
|
+
{
|
|
592
|
+
// Do nothing. ScrollView manages its subview clipping individually in `_remountChildren`.
|
|
593
|
+
}
|
|
594
|
+
|
|
605
595
|
- (void)_remountChildrenIfNeeded
|
|
606
596
|
{
|
|
607
597
|
CGPoint contentOffset = _scrollView.contentOffset;
|
|
@@ -618,68 +608,8 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
618
608
|
|
|
619
609
|
- (void)_remountChildren
|
|
620
610
|
{
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
relativeToView:_scrollView];
|
|
624
|
-
} else {
|
|
625
|
-
CGRect visibleFrame = [_scrollView convertRect:_scrollView.bounds toView:_containerView];
|
|
626
|
-
visibleFrame = CGRectInset(visibleFrame, -kClippingLeeway, -kClippingLeeway);
|
|
627
|
-
|
|
628
|
-
// `zoomScale` is negative in RTL. Absolute value is needed.
|
|
629
|
-
CGFloat scale = 1.0 / std::abs(_scrollView.zoomScale);
|
|
630
|
-
visibleFrame.origin.x *= scale;
|
|
631
|
-
visibleFrame.origin.y *= scale;
|
|
632
|
-
visibleFrame.size.width *= scale;
|
|
633
|
-
visibleFrame.size.height *= scale;
|
|
634
|
-
#ifndef NDEBUG
|
|
635
|
-
NSMutableArray<UIView<RCTComponentViewProtocol> *> *expectedSubviews = [NSMutableArray new];
|
|
636
|
-
#endif
|
|
637
|
-
|
|
638
|
-
NSInteger mountedIndex = 0;
|
|
639
|
-
for (UIView *componentView in _childComponentViews) {
|
|
640
|
-
BOOL shouldBeMounted = YES;
|
|
641
|
-
BOOL isMounted = componentView.superview != nil;
|
|
642
|
-
|
|
643
|
-
// It's simpler and faster to not mess with views that are not `RCTViewComponentView` subclasses.
|
|
644
|
-
if ([componentView isKindOfClass:[RCTViewComponentView class]]) {
|
|
645
|
-
RCTViewComponentView *viewComponentView = (RCTViewComponentView *)componentView;
|
|
646
|
-
auto layoutMetrics = viewComponentView->_layoutMetrics;
|
|
647
|
-
|
|
648
|
-
if (layoutMetrics.overflowInset == EdgeInsets{}) {
|
|
649
|
-
shouldBeMounted = CGRectIntersectsRect(visibleFrame, componentView.frame);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
if (shouldBeMounted != isMounted) {
|
|
654
|
-
if (shouldBeMounted) {
|
|
655
|
-
[_containerView insertSubview:componentView atIndex:mountedIndex];
|
|
656
|
-
} else {
|
|
657
|
-
[componentView removeFromSuperview];
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
if (shouldBeMounted) {
|
|
662
|
-
mountedIndex++;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
#ifndef NDEBUG
|
|
666
|
-
if (shouldBeMounted) {
|
|
667
|
-
[expectedSubviews addObject:componentView];
|
|
668
|
-
}
|
|
669
|
-
#endif
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
#ifndef NDEBUG
|
|
673
|
-
RCTAssert(
|
|
674
|
-
_containerView.subviews.count == expectedSubviews.count,
|
|
675
|
-
@"-[RCTScrollViewComponentView _remountChildren]: Inconsistency detected.");
|
|
676
|
-
for (NSInteger i = 0; i < expectedSubviews.count; i++) {
|
|
677
|
-
RCTAssert(
|
|
678
|
-
[_containerView.subviews objectAtIndex:i] == [expectedSubviews objectAtIndex:i],
|
|
679
|
-
@"-[RCTScrollViewComponentView _remountChildren]: Inconsistency detected.");
|
|
680
|
-
}
|
|
681
|
-
#endif
|
|
682
|
-
}
|
|
611
|
+
[_scrollView updateClippedSubviewsWithClipRect:CGRectInset(_scrollView.bounds, -kClippingLeeway, -kClippingLeeway)
|
|
612
|
+
relativeToView:_scrollView];
|
|
683
613
|
}
|
|
684
614
|
|
|
685
615
|
#pragma mark - RCTScrollableProtocol
|
|
@@ -705,6 +635,12 @@ static void RCTSendPaperScrollEvent_DEPRECATED(UIScrollView *scrollView, NSInteg
|
|
|
705
635
|
}
|
|
706
636
|
|
|
707
637
|
[_scrollView setContentOffset:offset animated:animated];
|
|
638
|
+
|
|
639
|
+
if (!animated) {
|
|
640
|
+
// When not animated, the expected workflow in ``scrollViewDidEndScrollingAnimation`` after scrolling is not going
|
|
641
|
+
// to get triggered. We will need to manually execute here.
|
|
642
|
+
[self _handleFinishedScrolling:_scrollView];
|
|
643
|
+
}
|
|
708
644
|
}
|
|
709
645
|
|
|
710
646
|
- (void)zoomToRect:(CGRect)rect animated:(BOOL)animated
|
|
@@ -67,7 +67,7 @@ using namespace facebook::react;
|
|
|
67
67
|
_props = defaultProps;
|
|
68
68
|
auto &props = *defaultProps;
|
|
69
69
|
|
|
70
|
-
_backedTextInputView = props.traits.multiline ? [
|
|
70
|
+
_backedTextInputView = props.traits.multiline ? [RCTUITextView new] : [RCTUITextField new];
|
|
71
71
|
_backedTextInputView.textInputDelegate = self;
|
|
72
72
|
_ignoreNextTextInputCall = NO;
|
|
73
73
|
_comingFromJS = NO;
|
|
@@ -394,6 +394,15 @@ using namespace facebook::react;
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
+
#pragma mark - RCTBackedTextInputDelegate (UIScrollViewDelegate)
|
|
398
|
+
|
|
399
|
+
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
|
|
400
|
+
{
|
|
401
|
+
if (_eventEmitter) {
|
|
402
|
+
std::static_pointer_cast<TextInputEventEmitter const>(_eventEmitter)->onScroll([self _textInputMetrics]);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
397
406
|
#pragma mark - Native Commands
|
|
398
407
|
|
|
399
408
|
- (void)handleCommand:(const NSString *)commandName args:(const NSArray *)args
|
|
@@ -420,7 +429,7 @@ using namespace facebook::react;
|
|
|
420
429
|
return;
|
|
421
430
|
}
|
|
422
431
|
_comingFromJS = YES;
|
|
423
|
-
if (![value isEqualToString:_backedTextInputView.attributedText.string]) {
|
|
432
|
+
if (value && ![value isEqualToString:_backedTextInputView.attributedText.string]) {
|
|
424
433
|
NSAttributedString *attributedString =
|
|
425
434
|
[[NSAttributedString alloc] initWithString:value attributes:_backedTextInputView.defaultTextAttributes];
|
|
426
435
|
[self _setAttributedString:attributedString];
|
|
@@ -465,7 +474,7 @@ using namespace facebook::react;
|
|
|
465
474
|
}
|
|
466
475
|
|
|
467
476
|
if (shouldHaveInputAccesoryView) {
|
|
468
|
-
UIToolbar *toolbarView = [
|
|
477
|
+
UIToolbar *toolbarView = [UIToolbar new];
|
|
469
478
|
[toolbarView sizeToFit];
|
|
470
479
|
UIBarButtonItem *flexibleSpace =
|
|
471
480
|
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
|
|
@@ -499,6 +508,22 @@ using namespace facebook::react;
|
|
|
499
508
|
metrics.text = RCTStringFromNSString(_backedTextInputView.attributedText.string);
|
|
500
509
|
metrics.selectionRange = [self _selectionRange];
|
|
501
510
|
metrics.eventCount = _mostRecentEventCount;
|
|
511
|
+
|
|
512
|
+
CGPoint contentOffset = _backedTextInputView.contentOffset;
|
|
513
|
+
metrics.contentOffset = {contentOffset.x, contentOffset.y};
|
|
514
|
+
|
|
515
|
+
UIEdgeInsets contentInset = _backedTextInputView.contentInset;
|
|
516
|
+
metrics.contentInset = {contentInset.left, contentInset.top, contentInset.right, contentInset.bottom};
|
|
517
|
+
|
|
518
|
+
CGSize contentSize = _backedTextInputView.contentSize;
|
|
519
|
+
metrics.contentSize = {contentSize.width, contentSize.height};
|
|
520
|
+
|
|
521
|
+
CGSize layoutMeasurement = _backedTextInputView.bounds.size;
|
|
522
|
+
metrics.layoutMeasurement = {layoutMeasurement.width, layoutMeasurement.height};
|
|
523
|
+
|
|
524
|
+
CGFloat zoomScale = _backedTextInputView.zoomScale;
|
|
525
|
+
metrics.zoomScale = zoomScale;
|
|
526
|
+
|
|
502
527
|
return metrics;
|
|
503
528
|
}
|
|
504
529
|
|
|
@@ -565,8 +590,7 @@ using namespace facebook::react;
|
|
|
565
590
|
- (void)_setMultiline:(BOOL)multiline
|
|
566
591
|
{
|
|
567
592
|
[_backedTextInputView removeFromSuperview];
|
|
568
|
-
UIView<RCTBackedTextInputViewProtocol> *backedTextInputView =
|
|
569
|
-
multiline ? [[RCTUITextView alloc] init] : [[RCTUITextField alloc] init];
|
|
593
|
+
UIView<RCTBackedTextInputViewProtocol> *backedTextInputView = multiline ? [RCTUITextView new] : [RCTUITextField new];
|
|
570
594
|
backedTextInputView.frame = _backedTextInputView.frame;
|
|
571
595
|
RCTCopyBackedTextInput(_backedTextInputView, backedTextInputView);
|
|
572
596
|
_backedTextInputView = backedTextInputView;
|
|
@@ -210,13 +210,10 @@ UITextContentType RCTUITextContentTypeFromString(std::string const &contentType)
|
|
|
210
210
|
@"streetAddressLine2" : UITextContentTypeStreetAddressLine2,
|
|
211
211
|
@"sublocality" : UITextContentTypeSublocality,
|
|
212
212
|
@"telephoneNumber" : UITextContentTypeTelephoneNumber,
|
|
213
|
+
@"username" : UITextContentTypeUsername,
|
|
214
|
+
@"password" : UITextContentTypePassword,
|
|
213
215
|
} mutableCopy];
|
|
214
216
|
|
|
215
|
-
if (@available(iOS 11.0, *)) {
|
|
216
|
-
[mutableContentTypeMap
|
|
217
|
-
addEntriesFromDictionary:@{@"username" : UITextContentTypeUsername, @"password" : UITextContentTypePassword}];
|
|
218
|
-
}
|
|
219
|
-
|
|
220
217
|
if (@available(iOS 12.0, *)) {
|
|
221
218
|
[mutableContentTypeMap addEntriesFromDictionary:@{
|
|
222
219
|
@"newPassword" : UITextContentTypeNewPassword,
|
|
@@ -69,6 +69,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
69
69
|
*/
|
|
70
70
|
@property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Flag indicating if subview clipping is enabled for the view.
|
|
74
|
+
* If subview clipping is enabled, subviews that are outside of the viewport may be removed from the view hierachy.
|
|
75
|
+
*/
|
|
76
|
+
@property (nonatomic, readonly) BOOL removeClippedSubviews;
|
|
77
|
+
|
|
72
78
|
/**
|
|
73
79
|
* Enforcing `call super` semantic for overridden methods from `RCTComponentViewProtocol`.
|
|
74
80
|
* The methods update the instance variables.
|
|
@@ -29,6 +29,8 @@ using namespace facebook::react;
|
|
|
29
29
|
NSSet<NSString *> *_Nullable _propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
@synthesize removeClippedSubviews = _removeClippedSubviews;
|
|
33
|
+
|
|
32
34
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
33
35
|
{
|
|
34
36
|
if (self = [super initWithFrame:frame]) {
|
|
@@ -191,8 +193,7 @@ using namespace facebook::react;
|
|
|
191
193
|
needsInvalidateLayer = YES;
|
|
192
194
|
}
|
|
193
195
|
|
|
194
|
-
if (
|
|
195
|
-
oldViewProps.removeClippedSubviews != newViewProps.removeClippedSubviews) {
|
|
196
|
+
if (oldViewProps.removeClippedSubviews != newViewProps.removeClippedSubviews) {
|
|
196
197
|
_removeClippedSubviews = newViewProps.removeClippedSubviews;
|
|
197
198
|
if (_removeClippedSubviews && self.subviews.count > 0) {
|
|
198
199
|
_reactSubviews = [NSMutableArray arrayWithArray:self.subviews];
|
|
@@ -329,11 +330,7 @@ using namespace facebook::react;
|
|
|
329
330
|
|
|
330
331
|
// `accessibilityIgnoresInvertColors`
|
|
331
332
|
if (oldViewProps.accessibilityIgnoresInvertColors != newViewProps.accessibilityIgnoresInvertColors) {
|
|
332
|
-
|
|
333
|
-
if (@available(iOS 11.0, *)) {
|
|
334
|
-
self.accessibilityIgnoresInvertColors = newViewProps.accessibilityIgnoresInvertColors;
|
|
335
|
-
}
|
|
336
|
-
#endif
|
|
333
|
+
self.accessibilityIgnoresInvertColors = newViewProps.accessibilityIgnoresInvertColors;
|
|
337
334
|
}
|
|
338
335
|
|
|
339
336
|
// `accessibilityValue`
|
|
@@ -580,7 +577,7 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle)
|
|
|
580
577
|
layer.backgroundColor = _backgroundColor.CGColor;
|
|
581
578
|
} else {
|
|
582
579
|
if (!_borderLayer) {
|
|
583
|
-
_borderLayer = [
|
|
580
|
+
_borderLayer = [CALayer new];
|
|
584
581
|
_borderLayer.zPosition = -1024.0f;
|
|
585
582
|
_borderLayer.frame = layer.bounds;
|
|
586
583
|
_borderLayer.magnificationFilter = kCAFilterNearest;
|
|
@@ -68,7 +68,7 @@ static Class<RCTComponentViewProtocol> RCTComponentViewClassWithName(const char
|
|
|
68
68
|
static RCTComponentViewFactory *componentViewFactory;
|
|
69
69
|
|
|
70
70
|
dispatch_once(&onceToken, ^{
|
|
71
|
-
componentViewFactory = [
|
|
71
|
+
componentViewFactory = [RCTComponentViewFactory new];
|
|
72
72
|
[componentViewFactory registerComponentViewClass:[RCTRootComponentView class]];
|
|
73
73
|
[componentViewFactory registerComponentViewClass:[RCTViewComponentView class]];
|
|
74
74
|
[componentViewFactory registerComponentViewClass:[RCTParagraphComponentView class]];
|
|
@@ -183,7 +183,7 @@ static Class<RCTComponentViewProtocol> RCTComponentViewClassWithName(const char
|
|
|
183
183
|
Class viewClass = componentViewClassDescriptor.viewClass;
|
|
184
184
|
|
|
185
185
|
return RCTComponentViewDescriptor{
|
|
186
|
-
.view = [
|
|
186
|
+
.view = [viewClass new],
|
|
187
187
|
.observesMountingTransactionWillMount = componentViewClassDescriptor.observesMountingTransactionWillMount,
|
|
188
188
|
.observesMountingTransactionDidMount = componentViewClassDescriptor.observesMountingTransactionDidMount,
|
|
189
189
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
#import <better/map.h>
|
|
11
11
|
|
|
12
12
|
#import <React/RCTAssert.h>
|
|
13
|
+
#import <React/RCTComponent.h>
|
|
13
14
|
#import <React/RCTFollyConvert.h>
|
|
14
15
|
#import <React/RCTLog.h>
|
|
15
16
|
#import <React/RCTUtils.h>
|
|
@@ -26,6 +27,18 @@
|
|
|
26
27
|
|
|
27
28
|
using namespace facebook::react;
|
|
28
29
|
|
|
30
|
+
static SurfaceId RCTSurfaceIdForView(UIView *view)
|
|
31
|
+
{
|
|
32
|
+
do {
|
|
33
|
+
if (RCTIsReactRootView(@(view.tag))) {
|
|
34
|
+
return view.tag;
|
|
35
|
+
}
|
|
36
|
+
view = view.superview;
|
|
37
|
+
} while (view != nil);
|
|
38
|
+
|
|
39
|
+
return -1;
|
|
40
|
+
}
|
|
41
|
+
|
|
29
42
|
static void RCTPerformMountInstructions(
|
|
30
43
|
ShadowViewMutationList const &mutations,
|
|
31
44
|
RCTComponentViewRegistry *registry,
|
|
@@ -142,7 +155,7 @@ static void RCTPerformMountInstructions(
|
|
|
142
155
|
- (instancetype)init
|
|
143
156
|
{
|
|
144
157
|
if (self = [super init]) {
|
|
145
|
-
_componentViewRegistry = [
|
|
158
|
+
_componentViewRegistry = [RCTComponentViewRegistry new];
|
|
146
159
|
}
|
|
147
160
|
|
|
148
161
|
return self;
|
|
@@ -282,9 +295,10 @@ static void RCTPerformMountInstructions(
|
|
|
282
295
|
{
|
|
283
296
|
RCTAssertMainQueue();
|
|
284
297
|
UIView<RCTComponentViewProtocol> *componentView = [_componentViewRegistry findComponentViewWithTag:reactTag];
|
|
298
|
+
SurfaceId surfaceId = RCTSurfaceIdForView(componentView);
|
|
285
299
|
SharedProps oldProps = [componentView props];
|
|
286
300
|
SharedProps newProps = componentDescriptor.cloneProps(
|
|
287
|
-
PropsParserContext{
|
|
301
|
+
PropsParserContext{surfaceId, *_contextContainer.get()}, oldProps, RawProps(convertIdToFollyDynamic(props)));
|
|
288
302
|
|
|
289
303
|
NSSet<NSString *> *propKeys = componentView.propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN ?: [NSSet new];
|
|
290
304
|
propKeys = [propKeys setByAddingObjectsFromArray:props.allKeys];
|
|
@@ -110,7 +110,6 @@ class LayoutAnimationDelegateProxy : public LayoutAnimationStatusDelegate, publi
|
|
|
110
110
|
std::shared_ptr<SchedulerDelegateProxy> _delegateProxy;
|
|
111
111
|
std::shared_ptr<LayoutAnimationDelegateProxy> _layoutAnimationDelegateProxy;
|
|
112
112
|
RunLoopObserver::Unique _uiRunLoopObserver;
|
|
113
|
-
BOOL _layoutAnimationsEnabled;
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
- (instancetype)initWithToolbox:(SchedulerToolbox)toolbox
|
|
@@ -118,14 +117,22 @@ class LayoutAnimationDelegateProxy : public LayoutAnimationStatusDelegate, publi
|
|
|
118
117
|
if (self = [super init]) {
|
|
119
118
|
auto reactNativeConfig =
|
|
120
119
|
toolbox.contextContainer->at<std::shared_ptr<const ReactNativeConfig>>("ReactNativeConfig");
|
|
121
|
-
_layoutAnimationsEnabled = reactNativeConfig->getBool("react_fabric:enabled_layout_animations_ios");
|
|
122
120
|
|
|
123
121
|
_delegateProxy = std::make_shared<SchedulerDelegateProxy>((__bridge void *)self);
|
|
124
122
|
|
|
125
|
-
if (
|
|
123
|
+
if (reactNativeConfig->getBool("react_fabric:enabled_layout_animations_ios")) {
|
|
126
124
|
_layoutAnimationDelegateProxy = std::make_shared<LayoutAnimationDelegateProxy>((__bridge void *)self);
|
|
127
|
-
_animationDriver =
|
|
128
|
-
|
|
125
|
+
_animationDriver = std::make_shared<LayoutAnimationDriver>(
|
|
126
|
+
toolbox.runtimeExecutor, toolbox.contextContainer, _layoutAnimationDelegateProxy.get());
|
|
127
|
+
if (reactNativeConfig->getBool("react_fabric:enabled_skip_invalidated_key_frames_ios")) {
|
|
128
|
+
_animationDriver->enableSkipInvalidatedKeyFrames();
|
|
129
|
+
}
|
|
130
|
+
if (reactNativeConfig->getBool("react_fabric:enable_crash_on_missing_component_descriptor")) {
|
|
131
|
+
_animationDriver->enableCrashOnMissingComponentDescriptor();
|
|
132
|
+
}
|
|
133
|
+
if (reactNativeConfig->getBool("react_fabric:enable_simulate_image_props_memory_access")) {
|
|
134
|
+
_animationDriver->enableSimulateImagePropsMemoryAccess();
|
|
135
|
+
}
|
|
129
136
|
_uiRunLoopObserver =
|
|
130
137
|
toolbox.mainRunLoopObserverFactory(RunLoopObserver::Activity::BeforeWaiting, _layoutAnimationDelegateProxy);
|
|
131
138
|
_uiRunLoopObserver->setDelegate(_layoutAnimationDelegateProxy.get());
|
|
@@ -93,8 +93,8 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
|
|
93
93
|
_runtimeExecutor = runtimeExecutor;
|
|
94
94
|
_contextContainer = contextContainer;
|
|
95
95
|
|
|
96
|
-
_surfaceRegistry = [
|
|
97
|
-
_mountingManager = [
|
|
96
|
+
_surfaceRegistry = [RCTSurfaceRegistry new];
|
|
97
|
+
_mountingManager = [RCTMountingManager new];
|
|
98
98
|
_mountingManager.contextContainer = contextContainer;
|
|
99
99
|
_mountingManager.delegate = self;
|
|
100
100
|
|
|
@@ -257,14 +257,6 @@ static BackgroundExecutor RCTGetBackgroundExecutor()
|
|
|
257
257
|
RCTExperimentSetPreemptiveViewAllocationDisabled(YES);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
if (reactNativeConfig && reactNativeConfig->getBool("react_fabric:enable_remove_clipped_subviews_ios")) {
|
|
261
|
-
RCTSetRemoveClippedSubviewsEnabled(YES);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
if (reactNativeConfig && reactNativeConfig->getBool("react_fabric:enable_initial_max_size_ios")) {
|
|
265
|
-
RCTSetInitialMaxSizeEnabled(YES);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
260
|
auto componentRegistryFactory =
|
|
269
261
|
[factory = wrapManagedObject(_mountingManager.componentViewRegistry.componentViewFactory)](
|
|
270
262
|
EventDispatcher::Weak const &eventDispatcher, ContextContainer::Shared const &contextContainer) {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
#import <React/RCTUtils.h>
|
|
11
11
|
#import <React/RCTViewComponentView.h>
|
|
12
12
|
#import <UIKit/UIGestureRecognizerSubclass.h>
|
|
13
|
-
#import <UIKit/UIKit.h>
|
|
14
13
|
|
|
15
14
|
#import "RCTConversions.h"
|
|
16
15
|
#import "RCTTouchableComponentViewProtocol.h"
|
|
@@ -83,8 +82,7 @@ static void UpdateActiveTouchWithUITouch(
|
|
|
83
82
|
ActiveTouch &activeTouch,
|
|
84
83
|
UITouch *uiTouch,
|
|
85
84
|
UIView *rootComponentView,
|
|
86
|
-
CGPoint rootViewOriginOffset
|
|
87
|
-
NSTimeInterval unixTimestampBasis)
|
|
85
|
+
CGPoint rootViewOriginOffset)
|
|
88
86
|
{
|
|
89
87
|
CGPoint offsetPoint = [uiTouch locationInView:activeTouch.componentView];
|
|
90
88
|
CGPoint screenPoint = [uiTouch locationInView:uiTouch.window];
|
|
@@ -95,18 +93,14 @@ static void UpdateActiveTouchWithUITouch(
|
|
|
95
93
|
activeTouch.touch.screenPoint = RCTPointFromCGPoint(screenPoint);
|
|
96
94
|
activeTouch.touch.pagePoint = RCTPointFromCGPoint(pagePoint);
|
|
97
95
|
|
|
98
|
-
activeTouch.touch.timestamp =
|
|
96
|
+
activeTouch.touch.timestamp = uiTouch.timestamp;
|
|
99
97
|
|
|
100
98
|
if (RCTForceTouchAvailable()) {
|
|
101
99
|
activeTouch.touch.force = RCTZeroIfNaN(uiTouch.force / uiTouch.maximumPossibleForce);
|
|
102
100
|
}
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
static ActiveTouch CreateTouchWithUITouch(
|
|
106
|
-
UITouch *uiTouch,
|
|
107
|
-
UIView *rootComponentView,
|
|
108
|
-
CGPoint rootViewOriginOffset,
|
|
109
|
-
NSTimeInterval unixTimestampBasis)
|
|
103
|
+
static ActiveTouch CreateTouchWithUITouch(UITouch *uiTouch, UIView *rootComponentView, CGPoint rootViewOriginOffset)
|
|
110
104
|
{
|
|
111
105
|
ActiveTouch activeTouch = {};
|
|
112
106
|
|
|
@@ -123,7 +117,7 @@ static ActiveTouch CreateTouchWithUITouch(
|
|
|
123
117
|
componentView = componentView.superview;
|
|
124
118
|
}
|
|
125
119
|
|
|
126
|
-
UpdateActiveTouchWithUITouch(activeTouch, uiTouch, rootComponentView, rootViewOriginOffset
|
|
120
|
+
UpdateActiveTouchWithUITouch(activeTouch, uiTouch, rootComponentView, rootViewOriginOffset);
|
|
127
121
|
return activeTouch;
|
|
128
122
|
}
|
|
129
123
|
|
|
@@ -173,12 +167,6 @@ struct PointerHasher {
|
|
|
173
167
|
*/
|
|
174
168
|
__weak UIView *_rootComponentView;
|
|
175
169
|
IdentifierPool<11> _identifierPool;
|
|
176
|
-
|
|
177
|
-
/*
|
|
178
|
-
* See Touch.h and usage. This gives us a time-basis for a monotonic
|
|
179
|
-
* clock that acts like a timestamp of milliseconds elapsed since UNIX epoch.
|
|
180
|
-
*/
|
|
181
|
-
NSTimeInterval _unixEpochBasisTime;
|
|
182
170
|
}
|
|
183
171
|
|
|
184
172
|
- (instancetype)init
|
|
@@ -193,8 +181,6 @@ struct PointerHasher {
|
|
|
193
181
|
self.delaysTouchesEnded = NO;
|
|
194
182
|
|
|
195
183
|
self.delegate = self;
|
|
196
|
-
|
|
197
|
-
_unixEpochBasisTime = [[NSDate date] timeIntervalSince1970] - [NSProcessInfo processInfo].systemUptime;
|
|
198
184
|
}
|
|
199
185
|
|
|
200
186
|
return self;
|
|
@@ -222,7 +208,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithTarget : (id)target action : (SEL)act
|
|
|
222
208
|
- (void)_registerTouches:(NSSet<UITouch *> *)touches
|
|
223
209
|
{
|
|
224
210
|
for (UITouch *touch in touches) {
|
|
225
|
-
auto activeTouch = CreateTouchWithUITouch(touch, _rootComponentView, _viewOriginOffset
|
|
211
|
+
auto activeTouch = CreateTouchWithUITouch(touch, _rootComponentView, _viewOriginOffset);
|
|
226
212
|
activeTouch.touch.identifier = _identifierPool.dequeue();
|
|
227
213
|
_activeTouches.emplace(touch, activeTouch);
|
|
228
214
|
}
|
|
@@ -237,7 +223,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithTarget : (id)target action : (SEL)act
|
|
|
237
223
|
continue;
|
|
238
224
|
}
|
|
239
225
|
|
|
240
|
-
UpdateActiveTouchWithUITouch(iterator->second, touch, _rootComponentView, _viewOriginOffset
|
|
226
|
+
UpdateActiveTouchWithUITouch(iterator->second, touch, _rootComponentView, _viewOriginOffset);
|
|
241
227
|
}
|
|
242
228
|
}
|
|
243
229
|
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
#import <React/RCTSurfaceProtocol.h>
|
|
9
|
-
#import <React/RCTSurfaceStage.h>
|
|
10
|
-
#import <react/renderer/mounting/MountingCoordinator.h>
|
|
11
9
|
#import <react/renderer/scheduler/SurfaceHandler.h>
|
|
12
10
|
|
|
13
11
|
NS_ASSUME_NONNULL_BEGIN
|
|
@@ -15,7 +13,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
15
13
|
@class RCTBridge;
|
|
16
14
|
@class RCTSurfaceView;
|
|
17
15
|
@class RCTSurfacePresenter;
|
|
18
|
-
@protocol RCTSurfaceDelegate;
|
|
19
16
|
|
|
20
17
|
/**
|
|
21
18
|
* (This is Fabric-compatible RCTSurface implementation.)
|
|
@@ -41,6 +38,15 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
41
38
|
moduleName:(NSString *)moduleName
|
|
42
39
|
initialProperties:(NSDictionary *)initialProperties;
|
|
43
40
|
|
|
41
|
+
#pragma mark - Surface presenter
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* EXPERIMENTAL
|
|
45
|
+
* Reset's the Surface to it's initial stage.
|
|
46
|
+
* It uses the passed in surface presenter, and whatever else was passed in init.
|
|
47
|
+
*/
|
|
48
|
+
- (void)resetWithSurfacePresenter:(RCTSurfacePresenter *)surfacePresenter;
|
|
49
|
+
|
|
44
50
|
#pragma mark - Dealing with UIView representation, the Main thread only access
|
|
45
51
|
|
|
46
52
|
/**
|
|
@@ -57,27 +63,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
57
63
|
*/
|
|
58
64
|
- (RCTSurfaceView *)view;
|
|
59
65
|
|
|
60
|
-
#pragma mark - Start & Stop
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Starts or stops the Surface.
|
|
64
|
-
* A Surface object can be stopped and then restarted.
|
|
65
|
-
* The starting process includes initializing all underlying React Native
|
|
66
|
-
* infrastructure and running React app.
|
|
67
|
-
* Surface stops itself on deallocation automatically.
|
|
68
|
-
* Returns YES in case of success. Returns NO if the Surface is already
|
|
69
|
-
* started or stopped.
|
|
70
|
-
*/
|
|
71
|
-
- (BOOL)start;
|
|
72
|
-
- (BOOL)stop;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* EXPERIMENTAL
|
|
76
|
-
* Reset's the Surface to it's initial stage.
|
|
77
|
-
* It uses the passed in surface presenter, and whatever else was passed in init.
|
|
78
|
-
*/
|
|
79
|
-
- (void)resetWithSurfacePresenter:(RCTSurfacePresenter *)surfacePresenter;
|
|
80
|
-
|
|
81
66
|
#pragma mark - Layout: Setting the size constrains
|
|
82
67
|
|
|
83
68
|
/**
|