react-native-navigation 8.0.0 → 8.1.0-alpha01
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/ReactNativeNavigation.podspec +13 -12
- package/lib/android/app/src/main/java/com/reactnativenavigation/NavigationApplication.java +1 -1
- package/lib/android/app/src/main/java/com/reactnativenavigation/options/LayoutFactory.java +13 -14
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java +4 -6
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationPackage.kt +5 -4
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationReactInitializer.java +20 -21
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/ReactComponentViewCreator.java +1 -7
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/ReactView.java +38 -28
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalFrameLayout.kt +1 -1
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalLayoutController.kt +4 -6
- package/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/externalcomponent/ExternalComponentCreator.java +1 -1
- package/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/externalcomponent/ExternalComponentViewController.java +2 -4
- package/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/navigator/Navigator.java +2 -2
- package/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/viewcontroller/RootPresenter.java +1 -1
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/component/ComponentViewCreator.java +1 -8
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/TopBarBackgroundView.java +2 -2
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/TopBarBackgroundViewCreator.java +1 -7
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/TitleBarButtonCreator.java +1 -8
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/TitleBarReactButtonView.java +3 -3
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/TitleBarReactViewCreator.java +1 -7
- package/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/ReactGateway.java +10 -11
- package/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt +8 -42
- package/lib/android/app/src/reactNative71/java/com/reactnativenavigation/views/stack/topbar/titlebar/TitleBarReactView.kt +2 -2
- package/lib/dist/src/adapters/NativeCommandsSender.js +3 -2
- package/lib/dist/src/adapters/NativeEventsReceiver.js +4 -2
- package/lib/dist/src/adapters/NativeRNNTurboEventEmitter.d.ts +7 -0
- package/lib/dist/src/adapters/NativeRNNTurboEventEmitter.js +13 -0
- package/lib/dist/src/adapters/NativeRNNTurboModule.d.ts +28 -0
- package/lib/dist/src/adapters/NativeRNNTurboModule.js +16 -0
- package/lib/dist/src/commands/Deprecations.js +2 -2
- package/lib/dist/src/components/Modal.js +11 -2
- package/lib/ios/{AnimatedImageView.m → AnimatedImageView.mm} +1 -1
- package/lib/ios/{AnimatedReactView.m → AnimatedReactView.mm} +8 -1
- package/lib/ios/{AnimatedTextView.m → AnimatedTextView.mm} +21 -1
- package/lib/ios/BoolParser.h +1 -1
- package/lib/ios/{BottomTabsBasePresenter.m → BottomTabsBasePresenter.mm} +1 -1
- package/lib/ios/ColorParser.h +1 -1
- package/lib/ios/Constants.h +8 -0
- package/lib/ios/{Constants.m → Constants.mm} +12 -0
- package/lib/ios/NumberParser.h +1 -1
- package/lib/ios/RNNAppDelegate.h +8 -15
- package/lib/ios/RNNAppDelegate.mm +78 -81
- package/lib/ios/{RNNBottomTabsController.m → RNNBottomTabsController.mm} +1 -1
- package/lib/ios/RNNBridgeEventEmitter.h +4 -0
- package/lib/ios/RNNBridgeEventEmitter.mm +7 -0
- package/lib/ios/RNNBridgeManager.mm +71 -71
- package/lib/ios/{RNNButtonBuilder.m → RNNButtonBuilder.mm} +2 -2
- package/lib/ios/{RNNButtonOptions.m → RNNButtonOptions.mm} +2 -2
- package/lib/ios/{RNNButtonsParser.m → RNNButtonsParser.mm} +1 -1
- package/lib/ios/RNNCommandsHandler.h +8 -2
- package/lib/ios/{RNNCommandsHandler.m → RNNCommandsHandler.mm} +29 -10
- package/lib/ios/{RNNComponentOptions.m → RNNComponentOptions.mm} +3 -2
- package/lib/ios/{RNNComponentPresenter.m → RNNComponentPresenter.mm} +1 -1
- package/lib/ios/{RNNComponentViewController.m → RNNComponentViewController.mm} +0 -4
- package/lib/ios/RNNCustomTitleView.h +14 -4
- package/lib/ios/{RNNCustomTitleView.m → RNNCustomTitleView.mm} +8 -2
- package/lib/ios/RNNDotIndicatorPresenter.h +1 -1
- package/lib/ios/RNNElementFinder.h +2 -0
- package/lib/ios/RNNElementFinder.mm +44 -0
- package/lib/ios/RNNEventEmitter.h +1 -2
- package/lib/ios/{RNNEventEmitter.m → RNNEventEmitter.mm} +1 -5
- package/lib/ios/RNNExternalComponentStore.h +5 -0
- package/lib/ios/{RNNExternalComponentStore.m → RNNExternalComponentStore.mm} +12 -0
- package/lib/ios/{RNNFontAttributesCreator.m → RNNFontAttributesCreator.mm} +1 -1
- package/lib/ios/{RNNIconBackgroundOptions.m → RNNIconBackgroundOptions.mm} +1 -1
- package/lib/ios/{RNNInsetsOptions.m → RNNInsetsOptions.mm} +2 -2
- package/lib/ios/RNNModalManager.h +6 -0
- package/lib/ios/{RNNModalManager.m → RNNModalManager.mm} +71 -2
- package/lib/ios/{RNNNavigationOptions.m → RNNNavigationOptions.mm} +1 -1
- package/lib/ios/{RNNPushAnimation.m → RNNPushAnimation.mm} +1 -1
- package/lib/ios/RNNReactButtonView.h +4 -0
- package/lib/ios/RNNReactButtonView.mm +29 -0
- package/lib/ios/RNNReactRootViewCreator.h +4 -0
- package/lib/ios/{RNNReactRootViewCreator.m → RNNReactRootViewCreator.mm} +31 -8
- package/lib/ios/RNNReactView.h +64 -12
- package/lib/ios/RNNReactView.mm +119 -15
- package/lib/ios/{RNNScreenTransition.m → RNNScreenTransition.mm} +3 -2
- package/lib/ios/RNNSideMenu/MMDrawerController/{MMDrawerController.m → MMDrawerController.mm} +1 -1
- package/lib/ios/{RNNSideMenuChildVC.h → RNNSideMenuChildViewController.h} +1 -1
- package/lib/ios/{RNNSideMenuChildVC.m → RNNSideMenuChildViewController.mm} +4 -3
- package/lib/ios/{RNNSideMenuPresenter.m → RNNSideMenuPresenter.mm} +3 -3
- package/lib/ios/{RNNSideMenuController.h → RNNSideMenuViewController.h} +5 -5
- package/lib/ios/{RNNSideMenuController.m → RNNSideMenuViewController.mm} +8 -8
- package/lib/ios/{RNNSplashScreen.h → RNNSplashScreenViewController.h} +1 -1
- package/lib/ios/{RNNSplashScreen.m → RNNSplashScreenViewController.mm} +5 -5
- package/lib/ios/RNNSplitViewController.h +0 -1
- package/lib/ios/{RNNStackPresenter.m → RNNStackPresenter.mm} +2 -1
- package/lib/ios/RNNUIBarButtonItem.h +7 -1
- package/lib/ios/{RNNUIBarButtonItem.m → RNNUIBarButtonItem.mm} +17 -25
- package/lib/ios/RNNUtils.h +1 -0
- package/lib/ios/{RNNUtils.m → RNNUtils.mm} +8 -0
- package/lib/ios/{RNNControllerFactory.h → RNNViewControllerFactory.h} +10 -1
- package/lib/ios/{RNNControllerFactory.m → RNNViewControllerFactory.mm} +37 -7
- package/lib/ios/ReactNativeNavigation.h +13 -6
- package/lib/ios/ReactNativeNavigation.mm +117 -0
- package/lib/ios/ReactNativeNavigation.xcodeproj/project.pbxproj +976 -1166
- package/lib/ios/ScreenAnimationController.h +27 -9
- package/lib/ios/ScreenAnimationController.mm +180 -0
- package/lib/ios/SharedElementAnimator.mm +98 -0
- package/lib/ios/SideMenuOpenMode.h +1 -1
- package/lib/ios/StackControllerDelegate.h +10 -0
- package/lib/ios/{StackControllerDelegate.m → StackControllerDelegate.mm} +45 -1
- package/lib/ios/{TopBarTitlePresenter.m → TopBarTitlePresenter.mm} +2 -3
- package/lib/ios/{TransitionOptions.m → TransitionOptions.mm} +3 -2
- package/lib/ios/TurboModules/RNNTurboCommandsHandler.h +13 -0
- package/lib/ios/TurboModules/RNNTurboCommandsHandler.mm +16 -0
- package/lib/ios/TurboModules/RNNTurboEventEmitter.h +14 -0
- package/lib/ios/TurboModules/RNNTurboEventEmitter.mm +22 -0
- package/lib/ios/TurboModules/RNNTurboManager.h +23 -0
- package/lib/ios/TurboModules/RNNTurboManager.mm +114 -0
- package/lib/ios/TurboModules/RNNTurboModule.h +8 -0
- package/lib/ios/TurboModules/RNNTurboModule.mm +177 -0
- package/lib/ios/UISplitViewController+RNNOptions.h +1 -1
- package/lib/ios/{UISplitViewController+RNNOptions.m → UISplitViewController+RNNOptions.mm} +0 -1
- package/lib/ios/UIViewController+SideMenuController.h +2 -2
- package/lib/ios/{UIViewController+SideMenuController.m → UIViewController+SideMenuController.mm} +3 -3
- package/lib/ios/UIViewController+SideMenuViewController.h +8 -0
- package/lib/ios/Utils/{UIView+Utils.m → UIView+Utils.mm} +14 -0
- package/lib/src/adapters/NativeCommandsSender.ts +4 -2
- package/lib/src/adapters/NativeEventsReceiver.ts +6 -5
- package/lib/src/adapters/NativeRNNTurboEventEmitter.ts +18 -0
- package/lib/src/adapters/NativeRNNTurboModule.ts +47 -0
- package/lib/src/commands/Deprecations.ts +1 -1
- package/lib/src/components/Modal.tsx +23 -4
- package/metro.config.js +0 -1
- package/package.json +34 -6
- package/lib/ios/RNNElementFinder.m +0 -12
- package/lib/ios/RNNReactButtonView.m +0 -41
- package/lib/ios/RNNSwizzles.h +0 -13
- package/lib/ios/RNNSwizzles.m +0 -97
- package/lib/ios/ReactNativeNavigation.m +0 -85
- package/lib/ios/ScreenAnimationController.m +0 -139
- package/lib/ios/SharedElementAnimator.m +0 -83
- /package/lib/ios/{AnchorTransition.m → AnchorTransition.mm} +0 -0
- /package/lib/ios/{AnimatedUIImageView.m → AnimatedUIImageView.mm} +0 -0
- /package/lib/ios/{AnimatedViewFactory.m → AnimatedViewFactory.mm} +0 -0
- /package/lib/ios/{AnimationObserver.m → AnimationObserver.mm} +0 -0
- /package/lib/ios/{BaseAnimator.m → BaseAnimator.mm} +0 -0
- /package/lib/ios/{Bool.m → Bool.mm} +0 -0
- /package/lib/ios/{BoolParser.m → BoolParser.mm} +0 -0
- /package/lib/ios/{BottomTabPresenter.m → BottomTabPresenter.mm} +0 -0
- /package/lib/ios/{BottomTabPresenterCreator.m → BottomTabPresenterCreator.mm} +0 -0
- /package/lib/ios/{BottomTabsAfterInitialTabAttacher.m → BottomTabsAfterInitialTabAttacher.mm} +0 -0
- /package/lib/ios/{BottomTabsAppearancePresenter.m → BottomTabsAppearancePresenter.mm} +0 -0
- /package/lib/ios/{BottomTabsAttachMode.m → BottomTabsAttachMode.mm} +0 -0
- /package/lib/ios/{BottomTabsAttachModeFactory.m → BottomTabsAttachModeFactory.mm} +0 -0
- /package/lib/ios/{BottomTabsBaseAttacher.m → BottomTabsBaseAttacher.mm} +0 -0
- /package/lib/ios/{BottomTabsOnSwitchToTabAttacher.m → BottomTabsOnSwitchToTabAttacher.mm} +0 -0
- /package/lib/ios/{BottomTabsPresenterCreator.m → BottomTabsPresenterCreator.mm} +0 -0
- /package/lib/ios/{BottomTabsTogetherAttacher.m → BottomTabsTogetherAttacher.mm} +0 -0
- /package/lib/ios/{BoundsTransition.m → BoundsTransition.mm} +0 -0
- /package/lib/ios/{CenterTransition.m → CenterTransition.mm} +0 -0
- /package/lib/ios/{Color+Interpolation.m → Color+Interpolation.mm} +0 -0
- /package/lib/ios/{Color.m → Color.mm} +0 -0
- /package/lib/ios/{ColorParser.m → ColorParser.mm} +0 -0
- /package/lib/ios/{ColorTransition.m → ColorTransition.mm} +0 -0
- /package/lib/ios/{CornerRadiusTransition.m → CornerRadiusTransition.mm} +0 -0
- /package/lib/ios/{DeprecationOptions.m → DeprecationOptions.mm} +0 -0
- /package/lib/ios/{DictionaryParser.m → DictionaryParser.mm} +0 -0
- /package/lib/ios/{DisplayLinkAnimator.m → DisplayLinkAnimator.mm} +0 -0
- /package/lib/ios/{DotIndicatorOptions.m → DotIndicatorOptions.mm} +0 -0
- /package/lib/ios/{DotIndicatorParser.m → DotIndicatorParser.mm} +0 -0
- /package/lib/ios/{Double.m → Double.mm} +0 -0
- /package/lib/ios/{DoubleParser.m → DoubleParser.mm} +0 -0
- /package/lib/ios/{ElementAlphaTransition.m → ElementAlphaTransition.mm} +0 -0
- /package/lib/ios/{ElementAnimator.m → ElementAnimator.mm} +0 -0
- /package/lib/ios/{ElementBaseTransition.m → ElementBaseTransition.mm} +0 -0
- /package/lib/ios/{ElementFrameTransition.m → ElementFrameTransition.mm} +0 -0
- /package/lib/ios/{ElementHorizontalTransition.m → ElementHorizontalTransition.mm} +0 -0
- /package/lib/ios/{ElementTransitionOptions.m → ElementTransitionOptions.mm} +0 -0
- /package/lib/ios/{ElementTransitionsCreator.m → ElementTransitionsCreator.mm} +0 -0
- /package/lib/ios/{ElementVerticalTransition.m → ElementVerticalTransition.mm} +0 -0
- /package/lib/ios/{Enum.m → Enum.mm} +0 -0
- /package/lib/ios/{EnumParser.m → EnumParser.mm} +0 -0
- /package/lib/ios/{FloatTransition.m → FloatTransition.mm} +0 -0
- /package/lib/ios/{HorizontalScaleTransition.m → HorizontalScaleTransition.mm} +0 -0
- /package/lib/ios/{HorizontalTranslationTransition.m → HorizontalTranslationTransition.mm} +0 -0
- /package/lib/ios/{Image.m → Image.mm} +0 -0
- /package/lib/ios/{ImageParser.m → ImageParser.mm} +0 -0
- /package/lib/ios/{IntNumber.m → IntNumber.mm} +0 -0
- /package/lib/ios/{IntNumberParser.m → IntNumberParser.mm} +0 -0
- /package/lib/ios/{InteractivePopGestureDelegate.m → InteractivePopGestureDelegate.mm} +0 -0
- /package/lib/ios/Interpolators/{AccelerateDecelerateInterpolator.m → AccelerateDecelerateInterpolator.mm} +0 -0
- /package/lib/ios/Interpolators/{AccelerateInterpolator.m → AccelerateInterpolator.mm} +0 -0
- /package/lib/ios/Interpolators/{DecelerateAccelerateInterpolator.m → DecelerateAccelerateInterpolator.mm} +0 -0
- /package/lib/ios/Interpolators/{DecelerateInterpolator.m → DecelerateInterpolator.mm} +0 -0
- /package/lib/ios/Interpolators/{FastOutSlowIn.m → FastOutSlowIn.mm} +0 -0
- /package/lib/ios/Interpolators/{LinearInterpolator.m → LinearInterpolator.mm} +0 -0
- /package/lib/ios/Interpolators/{OvershootInterpolator.m → OvershootInterpolator.mm} +0 -0
- /package/lib/ios/Interpolators/{SpringInterpolator.m → SpringInterpolator.mm} +0 -0
- /package/lib/ios/{LNInterpolable.m → LNInterpolable.mm} +0 -0
- /package/lib/ios/{NSArray+utils.m → NSArray+utils.mm} +0 -0
- /package/lib/ios/{NoColor.m → NoColor.mm} +0 -0
- /package/lib/ios/{NullBool.m → NullBool.mm} +0 -0
- /package/lib/ios/{NullColor.m → NullColor.mm} +0 -0
- /package/lib/ios/{NullDictionary.m → NullDictionary.mm} +0 -0
- /package/lib/ios/{NullDouble.m → NullDouble.mm} +0 -0
- /package/lib/ios/{NullEnum.m → NullEnum.mm} +0 -0
- /package/lib/ios/{NullImage.m → NullImage.mm} +0 -0
- /package/lib/ios/{NullIntNumber.m → NullIntNumber.mm} +0 -0
- /package/lib/ios/{NullNumber.m → NullNumber.mm} +0 -0
- /package/lib/ios/{NullText.m → NullText.mm} +0 -0
- /package/lib/ios/{Number.m → Number.mm} +0 -0
- /package/lib/ios/{NumberParser.m → NumberParser.mm} +0 -0
- /package/lib/ios/{OptionsArrayParser.m → OptionsArrayParser.mm} +0 -0
- /package/lib/ios/{Param.m → Param.mm} +0 -0
- /package/lib/ios/{PathTransition.m → PathTransition.mm} +0 -0
- /package/lib/ios/{RCTConvert+Interpolation.m → RCTConvert+Interpolation.mm} +0 -0
- /package/lib/ios/{RCTConvert+SideMenuOpenGestureMode.m → RCTConvert+SideMenuOpenGestureMode.mm} +0 -0
- /package/lib/ios/{RCTConvert+UIBarButtonSystemItem.m → RCTConvert+UIBarButtonSystemItem.mm} +0 -0
- /package/lib/ios/{RCTConvert+UIFontWeight.m → RCTConvert+UIFontWeight.mm} +0 -0
- /package/lib/ios/{RCTHelpers.m → RCTHelpers.mm} +0 -0
- /package/lib/ios/{RNNAnimationsOptions.m → RNNAnimationsOptions.mm} +0 -0
- /package/lib/ios/{RNNBackButtonOptions.m → RNNBackButtonOptions.mm} +0 -0
- /package/lib/ios/{RNNBackgroundOptions.m → RNNBackgroundOptions.mm} +0 -0
- /package/lib/ios/{RNNBaseIconCreator.m → RNNBaseIconCreator.mm} +0 -0
- /package/lib/ios/{RNNBasePresenter.m → RNNBasePresenter.mm} +0 -0
- /package/lib/ios/{RNNBottomTabOptions.m → RNNBottomTabOptions.mm} +0 -0
- /package/lib/ios/{RNNBottomTabsOptions.m → RNNBottomTabsOptions.mm} +0 -0
- /package/lib/ios/{RNNBottomTabsPresenter.m → RNNBottomTabsPresenter.mm} +0 -0
- /package/lib/ios/{RNNBridgeModule.m → RNNBridgeModule.mm} +0 -0
- /package/lib/ios/{RNNButtonsPresenter.m → RNNButtonsPresenter.mm} +0 -0
- /package/lib/ios/{RNNComponentRootView.m → RNNComponentRootView.mm} +0 -0
- /package/lib/ios/{RNNComponentView.m → RNNComponentView.mm} +0 -0
- /package/lib/ios/{RNNConvert.m → RNNConvert.mm} +0 -0
- /package/lib/ios/{RNNDefaultOptionsHelper.m → RNNDefaultOptionsHelper.mm} +0 -0
- /package/lib/ios/{RNNDictionary.m → RNNDictionary.mm} +0 -0
- /package/lib/ios/{RNNDotIndicatorPresenter.m → RNNDotIndicatorPresenter.mm} +0 -0
- /package/lib/ios/{RNNDynamicIconCreator.m → RNNDynamicIconCreator.mm} +0 -0
- /package/lib/ios/{RNNElement.m → RNNElement.mm} +0 -0
- /package/lib/ios/{RNNElementView.m → RNNElementView.mm} +0 -0
- /package/lib/ios/{RNNEnterExitAnimation.m → RNNEnterExitAnimation.mm} +0 -0
- /package/lib/ios/{RNNErrorHandler.m → RNNErrorHandler.mm} +0 -0
- /package/lib/ios/{RNNExternalViewController.m → RNNExternalViewController.mm} +0 -0
- /package/lib/ios/{RNNIconCreator.m → RNNIconCreator.mm} +0 -0
- /package/lib/ios/{RNNIconDrawer.m → RNNIconDrawer.mm} +0 -0
- /package/lib/ios/{RNNInterpolator.m → RNNInterpolator.mm} +0 -0
- /package/lib/ios/{RNNLargeTitleOptions.m → RNNLargeTitleOptions.mm} +0 -0
- /package/lib/ios/{RNNLayoutInfo.m → RNNLayoutInfo.mm} +0 -0
- /package/lib/ios/{RNNLayoutManager.m → RNNLayoutManager.mm} +0 -0
- /package/lib/ios/{RNNLayoutNode.m → RNNLayoutNode.mm} +0 -0
- /package/lib/ios/{RNNLayoutOptions.m → RNNLayoutOptions.mm} +0 -0
- /package/lib/ios/{RNNModalHostViewManagerHandler.m → RNNModalHostViewManagerHandler.mm} +0 -0
- /package/lib/ios/{RNNModalManagerEventHandler.m → RNNModalManagerEventHandler.mm} +0 -0
- /package/lib/ios/{RNNModalOptions.m → RNNModalOptions.mm} +0 -0
- /package/lib/ios/{RNNOptions.m → RNNOptions.mm} +0 -0
- /package/lib/ios/{RNNOverlayManager.m → RNNOverlayManager.mm} +0 -0
- /package/lib/ios/{RNNOverlayOptions.m → RNNOverlayOptions.mm} +0 -0
- /package/lib/ios/{RNNOverlayWindow.m → RNNOverlayWindow.mm} +0 -0
- /package/lib/ios/{RNNPreviewOptions.m → RNNPreviewOptions.mm} +0 -0
- /package/lib/ios/{RNNReactBackgroundView.m → RNNReactBackgroundView.mm} +0 -0
- /package/lib/ios/{RNNReactComponentRegistry.m → RNNReactComponentRegistry.mm} +0 -0
- /package/lib/ios/{RNNReactTitleView.m → RNNReactTitleView.mm} +0 -0
- /package/lib/ios/{RNNScreenTransitionsCreator.m → RNNScreenTransitionsCreator.mm} +0 -0
- /package/lib/ios/{RNNScrollEdgeAppearanceBackgroundOptions.m → RNNScrollEdgeAppearanceBackgroundOptions.mm} +0 -0
- /package/lib/ios/{RNNScrollEdgeAppearanceOptions.m → RNNScrollEdgeAppearanceOptions.mm} +0 -0
- /package/lib/ios/{RNNSearchBarOptions.m → RNNSearchBarOptions.mm} +0 -0
- /package/lib/ios/{RNNSegmentedControl.m → RNNSegmentedControl.mm} +0 -0
- /package/lib/ios/{RNNSetRootAnimator.m → RNNSetRootAnimator.mm} +0 -0
- /package/lib/ios/{RNNShadowOptions.m → RNNShadowOptions.mm} +0 -0
- /package/lib/ios/{RNNSharedElementAnimationOptions.m → RNNSharedElementAnimationOptions.mm} +0 -0
- /package/lib/ios/RNNSideMenu/MMDrawerController/{MMDrawerBarButtonItem.m → MMDrawerBarButtonItem.mm} +0 -0
- /package/lib/ios/RNNSideMenu/MMDrawerController/{MMDrawerVisualState.m → MMDrawerVisualState.mm} +0 -0
- /package/lib/ios/RNNSideMenu/MMDrawerController/{MMExampleDrawerVisualStateManager.m → MMExampleDrawerVisualStateManager.mm} +0 -0
- /package/lib/ios/RNNSideMenu/MMDrawerController/{UIViewController+MMDrawerController.m → UIViewController+MMDrawerController.mm} +0 -0
- /package/lib/ios/{RNNSideMenuOptions.m → RNNSideMenuOptions.mm} +0 -0
- /package/lib/ios/{RNNSideMenuSideOptions.m → RNNSideMenuSideOptions.mm} +0 -0
- /package/lib/ios/{RNNSplitViewController.m → RNNSplitViewController.mm} +0 -0
- /package/lib/ios/{RNNSplitViewControllerPresenter.m → RNNSplitViewControllerPresenter.mm} +0 -0
- /package/lib/ios/{RNNSplitViewOptions.m → RNNSplitViewOptions.mm} +0 -0
- /package/lib/ios/{RNNStackController.m → RNNStackController.mm} +0 -0
- /package/lib/ios/{RNNStatusBarOptions.m → RNNStatusBarOptions.mm} +0 -0
- /package/lib/ios/{RNNSubtitleOptions.m → RNNSubtitleOptions.mm} +0 -0
- /package/lib/ios/{RNNTabBarItemCreator.m → RNNTabBarItemCreator.mm} +0 -0
- /package/lib/ios/{RNNTitleOptions.m → RNNTitleOptions.mm} +0 -0
- /package/lib/ios/{RNNTitleViewHelper.m → RNNTitleViewHelper.mm} +0 -0
- /package/lib/ios/{RNNTopBarOptions.m → RNNTopBarOptions.mm} +0 -0
- /package/lib/ios/{RNNTopTabOptions.m → RNNTopTabOptions.mm} +0 -0
- /package/lib/ios/{RNNTopTabsOptions.m → RNNTopTabsOptions.mm} +0 -0
- /package/lib/ios/{RNNTopTabsViewController.m → RNNTopTabsViewController.mm} +0 -0
- /package/lib/ios/{RNNTransitionStateHolder.m → RNNTransitionStateHolder.mm} +0 -0
- /package/lib/ios/{RNNUIBarBackButtonItem.m → RNNUIBarBackButtonItem.mm} +0 -0
- /package/lib/ios/{RNNViewLocation.m → RNNViewLocation.mm} +0 -0
- /package/lib/ios/{RectTransition.m → RectTransition.mm} +0 -0
- /package/lib/ios/{RotationTransition.m → RotationTransition.mm} +0 -0
- /package/lib/ios/{ScreenReversedAnimationController.m → ScreenReversedAnimationController.mm} +0 -0
- /package/lib/ios/{SharedElementTransition.m → SharedElementTransition.mm} +0 -0
- /package/lib/ios/{SharedElementTransitionOptions.m → SharedElementTransitionOptions.mm} +0 -0
- /package/lib/ios/{SideMenuOpenGestureModeParser.m → SideMenuOpenGestureModeParser.mm} +0 -0
- /package/lib/ios/{SideMenuOpenMode.m → SideMenuOpenMode.mm} +0 -0
- /package/lib/ios/{TabBarItemAppearanceCreator.m → TabBarItemAppearanceCreator.mm} +0 -0
- /package/lib/ios/{TabBarItemIOS15Creator.m → TabBarItemIOS15Creator.mm} +0 -0
- /package/lib/ios/{Text.m → Text.mm} +0 -0
- /package/lib/ios/{TextParser.m → TextParser.mm} +0 -0
- /package/lib/ios/{TextStorageTransition.m → TextStorageTransition.mm} +0 -0
- /package/lib/ios/{TimeInterval.m → TimeInterval.mm} +0 -0
- /package/lib/ios/{TimeIntervalParser.m → TimeIntervalParser.mm} +0 -0
- /package/lib/ios/{TopBarAppearancePresenter.m → TopBarAppearancePresenter.mm} +0 -0
- /package/lib/ios/{TopBarPresenter.m → TopBarPresenter.mm} +0 -0
- /package/lib/ios/{TopBarPresenterCreator.m → TopBarPresenterCreator.mm} +0 -0
- /package/lib/ios/{TransformRectTransition.m → TransformRectTransition.mm} +0 -0
- /package/lib/ios/{Transition.m → Transition.mm} +0 -0
- /package/lib/ios/{TransitionDetailsOptions.m → TransitionDetailsOptions.mm} +0 -0
- /package/lib/ios/{UIImage+utils.m → UIImage+utils.mm} +0 -0
- /package/lib/ios/{UIImageView+Transition.m → UIImageView+Transition.mm} +0 -0
- /package/lib/ios/{UINavigationController+RNNCommands.m → UINavigationController+RNNCommands.mm} +0 -0
- /package/lib/ios/{UINavigationController+RNNOptions.m → UINavigationController+RNNOptions.mm} +0 -0
- /package/lib/ios/{UITabBar+utils.m → UITabBar+utils.mm} +0 -0
- /package/lib/ios/{UITabBarController+RNNOptions.m → UITabBarController+RNNOptions.mm} +0 -0
- /package/lib/ios/{UIViewController+LayoutProtocol.m → UIViewController+LayoutProtocol.mm} +0 -0
- /package/lib/ios/{UIViewController+RNNOptions.m → UIViewController+RNNOptions.mm} +0 -0
- /package/lib/ios/Utils/{UIColor+RNNUtils.m → UIColor+RNNUtils.mm} +0 -0
- /package/lib/ios/Utils/{UITabBarController+RNNUtils.m → UITabBarController+RNNUtils.mm} +0 -0
- /package/lib/ios/Utils/{UIViewController+Utils.m → UIViewController+Utils.mm} +0 -0
- /package/lib/ios/{VICMAImageView.m → VICMAImageView.mm} +0 -0
- /package/lib/ios/{VerticalRotationTransition.m → VerticalRotationTransition.mm} +0 -0
- /package/lib/ios/{VerticalScaleTransition.m → VerticalScaleTransition.mm} +0 -0
- /package/lib/ios/{VerticalTranslationTransition.m → VerticalTranslationTransition.mm} +0 -0
- /package/lib/ios/{WindowOptions.m → WindowOptions.mm} +0 -0
|
@@ -7,14 +7,8 @@ import com.reactnativenavigation.viewcontrollers.viewcontroller.ReactViewCreator
|
|
|
7
7
|
|
|
8
8
|
public class TitleBarReactViewCreator implements ReactViewCreator {
|
|
9
9
|
|
|
10
|
-
protected ReactInstanceManager instanceManager;
|
|
11
|
-
|
|
12
|
-
public TitleBarReactViewCreator(ReactInstanceManager instanceManager) {
|
|
13
|
-
this.instanceManager = instanceManager;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
10
|
@Override
|
|
17
11
|
public TitleBarReactView create(Activity activity, String componentId, String componentName) {
|
|
18
|
-
return new TitleBarReactView(activity,
|
|
12
|
+
return new TitleBarReactView(activity, componentId, componentName);
|
|
19
13
|
}
|
|
20
14
|
}
|
package/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/ReactGateway.java
CHANGED
|
@@ -4,6 +4,7 @@ import android.app.Activity;
|
|
|
4
4
|
import android.content.Intent;
|
|
5
5
|
import android.content.res.Configuration;
|
|
6
6
|
|
|
7
|
+
import com.facebook.react.ReactHost;
|
|
7
8
|
import com.facebook.react.ReactNativeHost;
|
|
8
9
|
import com.reactnativenavigation.NavigationActivity;
|
|
9
10
|
|
|
@@ -11,14 +12,14 @@ import androidx.annotation.NonNull;
|
|
|
11
12
|
|
|
12
13
|
public class ReactGateway {
|
|
13
14
|
|
|
14
|
-
private final
|
|
15
|
+
private final ReactHost host;
|
|
15
16
|
private final NavigationReactInitializer initializer;
|
|
16
17
|
private final JsDevReloadHandler jsDevReloadHandler;
|
|
17
18
|
|
|
18
|
-
public ReactGateway(
|
|
19
|
+
public ReactGateway(ReactHost host, boolean isDebug) {
|
|
19
20
|
this.host = host;
|
|
20
|
-
initializer = new NavigationReactInitializer(host
|
|
21
|
-
jsDevReloadHandler = new JsDevReloadHandler(host.
|
|
21
|
+
initializer = new NavigationReactInitializer(host, isDebug);
|
|
22
|
+
jsDevReloadHandler = new JsDevReloadHandler(host.getDevSupportManager());
|
|
22
23
|
if (host instanceof BundleDownloadListenerProvider) {
|
|
23
24
|
((BundleDownloadListenerProvider) host).setBundleLoaderListener(jsDevReloadHandler);
|
|
24
25
|
}
|
|
@@ -35,17 +36,15 @@ public class ReactGateway {
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
public boolean onNewIntent(Intent intent) {
|
|
38
|
-
if (host.
|
|
39
|
-
host.
|
|
39
|
+
if (host.getCurrentReactContext() != null) {
|
|
40
|
+
host.onNewIntent(intent);
|
|
40
41
|
return true;
|
|
41
42
|
}
|
|
42
43
|
return false;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
public void onConfigurationChanged(NavigationActivity activity, @NonNull Configuration newConfig) {
|
|
46
|
-
|
|
47
|
-
host.getReactInstanceManager().onConfigurationChanged(activity, newConfig);
|
|
48
|
-
}
|
|
47
|
+
host.onConfigurationChanged(activity);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
public void onActivityPaused(NavigationActivity activity) {
|
|
@@ -63,10 +62,10 @@ public class ReactGateway {
|
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
public void onBackPressed() {
|
|
66
|
-
host.
|
|
65
|
+
host.onBackPressed();
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
|
|
70
|
-
host.
|
|
69
|
+
host.onActivityResult(activity, requestCode, resultCode, data);
|
|
71
70
|
}
|
|
72
71
|
}
|
|
@@ -3,52 +3,19 @@ package com.reactnativenavigation.react.modal
|
|
|
3
3
|
import android.content.Context
|
|
4
4
|
import android.view.MotionEvent
|
|
5
5
|
import android.view.View
|
|
6
|
-
import com.facebook.react.bridge
|
|
7
|
-
import com.facebook.react.uimanager
|
|
6
|
+
import com.facebook.react.bridge.ReactContext
|
|
7
|
+
import com.facebook.react.uimanager.JSTouchDispatcher
|
|
8
|
+
import com.facebook.react.uimanager.RootView
|
|
9
|
+
import com.facebook.react.uimanager.UIManagerHelper
|
|
10
|
+
import com.facebook.react.uimanager.common.UIManagerType
|
|
8
11
|
import com.facebook.react.uimanager.events.EventDispatcher
|
|
9
12
|
import com.facebook.react.views.view.ReactViewGroup
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
|
|
13
|
-
private var hasAdjustedSize = false
|
|
14
|
-
private var viewWidth = 0
|
|
15
|
-
private var viewHeight = 0
|
|
16
|
-
private val mJSTouchDispatcher = JSTouchDispatcher(this)
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
super.onSizeChanged(w, h, oldw, oldh)
|
|
20
|
-
viewWidth = w
|
|
21
|
-
viewHeight = h
|
|
22
|
-
this.updateFirstChildView()
|
|
23
|
-
}
|
|
24
|
-
private fun updateFirstChildView() {
|
|
25
|
-
if (this.childCount > 0) {
|
|
26
|
-
hasAdjustedSize = false
|
|
27
|
-
val viewTag = getChildAt(0).id
|
|
28
|
-
val reactContext: ReactContext = this.getReactContext()
|
|
29
|
-
reactContext.runOnNativeModulesQueueThread(object : GuardedRunnable(reactContext) {
|
|
30
|
-
override fun runGuarded() {
|
|
31
|
-
val uiManager = this@ModalContentLayout.getReactContext().getNativeModule(
|
|
32
|
-
UIManagerModule::class.java
|
|
33
|
-
) as UIManagerModule
|
|
34
|
-
uiManager.updateNodeSize(
|
|
35
|
-
viewTag,
|
|
36
|
-
this@ModalContentLayout.viewWidth,
|
|
37
|
-
this@ModalContentLayout.viewHeight
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
} else {
|
|
42
|
-
hasAdjustedSize = true
|
|
43
|
-
}
|
|
44
|
-
}
|
|
17
|
+
private val mJSTouchDispatcher = JSTouchDispatcher(this)
|
|
45
18
|
|
|
46
|
-
override fun addView(child: View?, index: Int, params: LayoutParams?) {
|
|
47
|
-
super.addView(child, index, params)
|
|
48
|
-
if (hasAdjustedSize) {
|
|
49
|
-
updateFirstChildView()
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
19
|
override fun onChildStartedNativeGesture(child: View, androidEvent: MotionEvent) {
|
|
53
20
|
mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, this.getEventDispatcher())
|
|
54
21
|
}
|
|
@@ -61,10 +28,9 @@ class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
|
|
|
61
28
|
override fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {}
|
|
62
29
|
private fun getEventDispatcher(): EventDispatcher {
|
|
63
30
|
val reactContext: ReactContext = this.getReactContext()
|
|
64
|
-
return
|
|
31
|
+
return UIManagerHelper.getEventDispatcher(reactContext, UIManagerType.FABRIC) ?: throw IllegalStateException("EventDispatcher for Fabric UI Manager is not found")
|
|
65
32
|
}
|
|
66
33
|
|
|
67
|
-
|
|
68
34
|
override fun handleException(t: Throwable?) {
|
|
69
35
|
getReactContext().handleException(RuntimeException(t))
|
|
70
36
|
}
|
|
@@ -84,4 +50,4 @@ class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
|
|
|
84
50
|
return true
|
|
85
51
|
}
|
|
86
52
|
|
|
87
|
-
}
|
|
53
|
+
}
|
|
@@ -9,8 +9,8 @@ import com.facebook.react.ReactInstanceManager
|
|
|
9
9
|
import com.reactnativenavigation.react.ReactView
|
|
10
10
|
|
|
11
11
|
@SuppressLint("ViewConstructor")
|
|
12
|
-
class TitleBarReactView(context: Context?,
|
|
13
|
-
componentName: String?) : ReactView(context,
|
|
12
|
+
class TitleBarReactView(context: Context?, componentId: String?,
|
|
13
|
+
componentName: String?) : ReactView(context, componentId, componentName) {
|
|
14
14
|
var centered: Boolean = false
|
|
15
15
|
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
|
|
16
16
|
var titleHeightMeasureSpec: Int
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NativeCommandsSender = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const NativeRNNTurboModule_1 = tslib_1.__importDefault(require("./NativeRNNTurboModule"));
|
|
5
6
|
class NativeCommandsSender {
|
|
6
7
|
nativeCommandsModule;
|
|
7
8
|
constructor() {
|
|
8
|
-
this.nativeCommandsModule =
|
|
9
|
+
this.nativeCommandsModule = NativeRNNTurboModule_1.default;
|
|
9
10
|
}
|
|
10
11
|
setRoot(commandId, layout) {
|
|
11
12
|
return this.nativeCommandsModule.setRoot(commandId, layout);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NativeEventsReceiver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const react_native_1 = require("react-native");
|
|
6
|
+
const NativeRNNTurboEventEmitter_1 = tslib_1.__importDefault(require("./NativeRNNTurboEventEmitter"));
|
|
5
7
|
class NativeEventsReceiver {
|
|
6
8
|
emitter;
|
|
7
9
|
constructor() {
|
|
8
10
|
try {
|
|
9
|
-
this.emitter = new react_native_1.NativeEventEmitter(
|
|
11
|
+
this.emitter = new react_native_1.NativeEventEmitter(NativeRNNTurboEventEmitter_1.default);
|
|
10
12
|
}
|
|
11
|
-
catch {
|
|
13
|
+
catch (e) {
|
|
12
14
|
this.emitter = {
|
|
13
15
|
addListener: () => {
|
|
14
16
|
return {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_native_1 = require("react-native");
|
|
4
|
+
let eventEmitter = null;
|
|
5
|
+
try {
|
|
6
|
+
// Running in bridge mode
|
|
7
|
+
eventEmitter = react_native_1.NativeModules.RNNBridgeEventEmitter;
|
|
8
|
+
}
|
|
9
|
+
catch (e) {
|
|
10
|
+
// Running in bridgeless, access to NativeModules is prohibited
|
|
11
|
+
eventEmitter = react_native_1.TurboModuleRegistry.get('RNNTurboEventEmitter');
|
|
12
|
+
}
|
|
13
|
+
exports.default = eventEmitter;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TurboModule } from 'react-native';
|
|
2
|
+
import { UnsafeObject, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
export interface Spec extends TurboModule {
|
|
4
|
+
readonly getConstants: () => {
|
|
5
|
+
topBarHeight: Double;
|
|
6
|
+
statusBarHeight: Double;
|
|
7
|
+
bottomTabsHeight: Double;
|
|
8
|
+
};
|
|
9
|
+
setRoot(commandId: string, layout: UnsafeObject): Promise<string>;
|
|
10
|
+
setDefaultOptions(options: UnsafeObject): void;
|
|
11
|
+
mergeOptions(componentId: string, options: UnsafeObject): void;
|
|
12
|
+
push(commandId: string, componentId: string, layout: UnsafeObject): Promise<string>;
|
|
13
|
+
pop(commandId: string, componentId: string, options: UnsafeObject): Promise<string>;
|
|
14
|
+
popTo(commandId: string, componentId: string, options: UnsafeObject): Promise<string>;
|
|
15
|
+
popToRoot(commandId: string, componentId: string, options: UnsafeObject): Promise<string>;
|
|
16
|
+
setStackRoot(commandId: string, componentId: string, layout: Array<UnsafeObject>): Promise<string>;
|
|
17
|
+
showModal(commandId: string, layout: UnsafeObject): Promise<string>;
|
|
18
|
+
dismissModal(commandId: string, componentId: string, options: UnsafeObject): Promise<string>;
|
|
19
|
+
dismissAllModals(commandId: string, options: UnsafeObject): Promise<void>;
|
|
20
|
+
showOverlay(commandId: string, layout: UnsafeObject): Promise<string>;
|
|
21
|
+
dismissOverlay(commandId: string, componentId: string): Promise<void>;
|
|
22
|
+
dismissAllOverlays(commandId: string): Promise<void>;
|
|
23
|
+
getLaunchArgs(commandId: string): Promise<Array<string>>;
|
|
24
|
+
}
|
|
25
|
+
declare const commands: any;
|
|
26
|
+
export declare const RCTAssertNewArchEnabled: () => void;
|
|
27
|
+
export declare const isRNNTurboModuleAvailable: boolean;
|
|
28
|
+
export default commands;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isRNNTurboModuleAvailable = exports.RCTAssertNewArchEnabled = void 0;
|
|
4
|
+
const react_native_1 = require("react-native");
|
|
5
|
+
const isTurboModuleEnabled = globalThis.__turboModuleProxy != null;
|
|
6
|
+
const commands = isTurboModuleEnabled && react_native_1.Platform.OS === 'ios'
|
|
7
|
+
? react_native_1.TurboModuleRegistry.get('RNNTurboModule')
|
|
8
|
+
: react_native_1.NativeModules.RNNBridgeModule;
|
|
9
|
+
const isNewArchWithBridgeless = isTurboModuleEnabled;
|
|
10
|
+
const RCTAssertNewArchEnabled = () => {
|
|
11
|
+
if (!isNewArchWithBridgeless)
|
|
12
|
+
throw new Error('Allowed only in New Architecture with Bridgeless!');
|
|
13
|
+
};
|
|
14
|
+
exports.RCTAssertNewArchEnabled = RCTAssertNewArchEnabled;
|
|
15
|
+
exports.isRNNTurboModuleAvailable = isNewArchWithBridgeless;
|
|
16
|
+
exports.default = commands;
|
|
@@ -4,7 +4,7 @@ exports.Deprecations = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const once_1 = tslib_1.__importDefault(require("lodash/once"));
|
|
6
6
|
const get_1 = tslib_1.__importDefault(require("lodash/get"));
|
|
7
|
-
const
|
|
7
|
+
const lodash_1 = require("lodash");
|
|
8
8
|
const react_native_1 = require("react-native");
|
|
9
9
|
class Deprecations {
|
|
10
10
|
deprecatedOptions = [
|
|
@@ -40,7 +40,7 @@ class Deprecations {
|
|
|
40
40
|
},
|
|
41
41
|
];
|
|
42
42
|
checkForDeprecatedOptions(options) {
|
|
43
|
-
(0,
|
|
43
|
+
(0, lodash_1.each)(this.deprecatedOptions, (option) => {
|
|
44
44
|
if ((0, get_1.default)(options, option.key, null)) {
|
|
45
45
|
option.showWarning(option.key, options);
|
|
46
46
|
}
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Modal = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_native_1 = require("react-native");
|
|
7
7
|
const RNNModalViewManager = (0, react_native_1.requireNativeComponent)('RNNModalViewManager');
|
|
8
|
+
const Container = (rnnProps) => {
|
|
9
|
+
const viewRef = (0, react_1.useRef)(null);
|
|
10
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
11
|
+
const windowWidth = react_native_1.Dimensions.get('window').width;
|
|
12
|
+
const windowHeight = react_native_1.Dimensions.get('window').height;
|
|
13
|
+
viewRef?.current?.setNativeProps({ width: windowWidth, height: windowHeight });
|
|
14
|
+
}, []);
|
|
15
|
+
return (react_1.default.createElement(react_native_1.View, { ref: viewRef, style: styles.container, collapsable: false }, rnnProps.children));
|
|
16
|
+
};
|
|
8
17
|
class Modal extends react_1.default.Component {
|
|
9
18
|
static defaultProps = {
|
|
10
19
|
transparent: false,
|
|
@@ -18,7 +27,7 @@ class Modal extends react_1.default.Component {
|
|
|
18
27
|
const processed = this.proccessProps();
|
|
19
28
|
if (this.props.visible) {
|
|
20
29
|
return (react_1.default.createElement(RNNModalViewManager, { ...processed },
|
|
21
|
-
react_1.default.createElement(
|
|
30
|
+
react_1.default.createElement(Container, { ...this.props })));
|
|
22
31
|
}
|
|
23
32
|
else {
|
|
24
33
|
return null;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
- (NSArray<id<DisplayLinkAnimation>> *)extraAnimations {
|
|
44
|
-
NSMutableArray *animations = NSMutableArray
|
|
44
|
+
NSMutableArray *animations = [NSMutableArray new];
|
|
45
45
|
CGFloat startDelay = [_transitionOptions.startDelay withDefault:0];
|
|
46
46
|
CGFloat duration = [_transitionOptions.duration withDefault:300];
|
|
47
47
|
id<Interpolator> interpolator = _transitionOptions.interpolator;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
#import "UIView+Utils.h"
|
|
3
3
|
#import <React/UIView+React.h>
|
|
4
4
|
|
|
5
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
6
|
+
#import <React/RCTImageComponentView.h>
|
|
7
|
+
#import <React/RCTParagraphComponentView.h>
|
|
8
|
+
#endif
|
|
9
|
+
|
|
5
10
|
@implementation AnimatedReactView {
|
|
6
11
|
UIView *_originalParent;
|
|
7
12
|
CGRect _originalFrame;
|
|
@@ -26,7 +31,9 @@
|
|
|
26
31
|
_toElement.hidden = YES;
|
|
27
32
|
_fromColor = element.backgroundColor;
|
|
28
33
|
_zIndex = toElement.reactZIndex;
|
|
29
|
-
|
|
34
|
+
if ([element isKindOfClass:[RCTImageComponentView class]] || [element isKindOfClass:[RCTParagraphComponentView class]]) {
|
|
35
|
+
[self hijackReactElement:element];
|
|
36
|
+
}
|
|
30
37
|
|
|
31
38
|
return self;
|
|
32
39
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
#import "AnimatedTextView.h"
|
|
2
2
|
|
|
3
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
4
|
+
#import <React/RCTParagraphComponentView.h>
|
|
5
|
+
#import <react/renderer/components/text/ParagraphComponentDescriptor.h>
|
|
6
|
+
#import <react/renderer/components/text/ParagraphProps.h>
|
|
7
|
+
#import <react/renderer/components/text/ParagraphState.h>
|
|
8
|
+
#endif
|
|
9
|
+
|
|
3
10
|
@implementation AnimatedTextView {
|
|
4
11
|
NSTextContainer *_fromTextContainer;
|
|
12
|
+
facebook::react::ParagraphShadowNode::ConcreteState::Shared _state;
|
|
5
13
|
CGSize _fromSize;
|
|
6
14
|
}
|
|
7
15
|
|
|
@@ -9,8 +17,21 @@
|
|
|
9
17
|
toElement:(UIView *)toElement
|
|
10
18
|
transitionOptions:(SharedElementTransitionOptions *)transitionOptions {
|
|
11
19
|
self = [super initElement:element toElement:toElement transitionOptions:transitionOptions];
|
|
20
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
21
|
+
auto castedElement = (RCTParagraphComponentView *)element;
|
|
22
|
+
auto castedToElement = (RCTParagraphComponentView *)toElement;
|
|
23
|
+
|
|
24
|
+
// Extract NSAttributedString from the view
|
|
25
|
+
NSAttributedString *fromAttributedText = castedElement.attributedText;
|
|
26
|
+
NSAttributedString *toAttributedText = castedToElement.attributedText;
|
|
27
|
+
|
|
28
|
+
// Convert to NSTextStorage
|
|
29
|
+
_fromTextStorage = [[NSTextStorage alloc] initWithAttributedString:fromAttributedText];
|
|
30
|
+
_toTextStorage = [[NSTextStorage alloc] initWithAttributedString:toAttributedText];
|
|
31
|
+
#else
|
|
12
32
|
_fromTextStorage = [element valueForKey:@"textStorage"];
|
|
13
33
|
_toTextStorage = [toElement valueForKey:@"textStorage"];
|
|
34
|
+
#endif
|
|
14
35
|
_fromTextContainer = [self container:_fromTextStorage];
|
|
15
36
|
_fromSize = _fromTextContainer.size;
|
|
16
37
|
return self;
|
|
@@ -24,7 +45,6 @@
|
|
|
24
45
|
|
|
25
46
|
- (void)reset {
|
|
26
47
|
[super reset];
|
|
27
|
-
_fromTextContainer.size = _fromSize;
|
|
28
48
|
}
|
|
29
49
|
|
|
30
50
|
- (NSTextContainer *)container:(NSTextStorage *)fromTextStorage {
|
package/lib/ios/BoolParser.h
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
|
|
106
106
|
- (void)applyTabBarBorder:(RNNBottomTabsOptions *)options {
|
|
107
107
|
if (options.borderColor.hasValue || options.borderWidth.hasValue) {
|
|
108
|
-
self.tabBar.backgroundImage = UIImage
|
|
108
|
+
self.tabBar.backgroundImage = [UIImage new];
|
|
109
109
|
self.tabBar.shadowImage = [UIImage
|
|
110
110
|
imageWithSize:CGSizeMake(1, [[options.borderWidth withDefault:@(1)] floatValue])
|
|
111
111
|
color:[options.borderColor withDefault:UIColor.blackColor]];
|
package/lib/ios/ColorParser.h
CHANGED
package/lib/ios/Constants.h
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
#import <Foundation/Foundation.h>
|
|
2
2
|
#import <UIKit/UIKit.h>
|
|
3
3
|
|
|
4
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
5
|
+
#import <rnnavigation/rnnavigation.h>
|
|
6
|
+
#endif
|
|
7
|
+
|
|
4
8
|
@interface Constants : NSObject
|
|
5
9
|
|
|
6
10
|
+ (NSDictionary *)getConstants;
|
|
7
11
|
|
|
12
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
13
|
+
+ (JS::NativeRNNTurboModule::Constants::Builder::Input)getTurboConstants;
|
|
14
|
+
#endif
|
|
15
|
+
|
|
8
16
|
@end
|
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
#ifdef RCT_NEW_ARCH_ENABLED
|
|
15
|
+
+ (JS::NativeRNNTurboModule::Constants::Builder::Input)getTurboConstants {
|
|
16
|
+
JS::NativeRNNTurboModule::Constants::Builder::Input input = {
|
|
17
|
+
[self topBarHeight],
|
|
18
|
+
[self statusBarHeight],
|
|
19
|
+
[self bottomTabsHeight]
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
return input;
|
|
23
|
+
}
|
|
24
|
+
#endif
|
|
25
|
+
|
|
14
26
|
+ (CGFloat)topBarHeight {
|
|
15
27
|
return [RCTPresentedViewController() getTopBarHeight];
|
|
16
28
|
}
|
package/lib/ios/NumberParser.h
CHANGED
package/lib/ios/RNNAppDelegate.h
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
#import <Foundation/Foundation.h>
|
|
2
|
-
#import <React/
|
|
3
|
-
#import <React/RCTBridgeDelegate.h>
|
|
4
|
-
|
|
5
|
-
@class RCTSurfacePresenterBridgeAdapter;
|
|
6
|
-
@class RCTTurboModuleManager;
|
|
7
|
-
|
|
8
|
-
@interface RNNAppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
|
|
9
|
-
|
|
10
|
-
@property(nonatomic, strong) UIWindow *window;
|
|
11
|
-
|
|
12
|
-
#if RCT_NEW_ARCH_ENABLED
|
|
13
|
-
|
|
14
|
-
/// The TurboModule manager
|
|
15
|
-
@property(nonatomic, strong) RCTTurboModuleManager *turboModuleManager;
|
|
16
|
-
@property(nonatomic, strong) RCTSurfacePresenterBridgeAdapter *bridgeAdapter;
|
|
2
|
+
#import <React/CoreModulesPlugins.h>
|
|
17
3
|
|
|
4
|
+
#if __has_include(<React-RCTAppDelegate/RCTAppDelegate.h>)
|
|
5
|
+
#import <React-RCTAppDelegate/RCTAppDelegate.h>
|
|
6
|
+
#elif __has_include(<React_RCTAppDelegate/RCTAppDelegate.h>)
|
|
7
|
+
// for importing the header from framework, the dash will be transformed to underscore
|
|
8
|
+
#import <React_RCTAppDelegate/RCTAppDelegate.h>
|
|
18
9
|
#endif
|
|
19
10
|
|
|
11
|
+
@interface RNNAppDelegate : RCTAppDelegate
|
|
12
|
+
|
|
20
13
|
@end
|