@ohos-ports/react-native-navigation 8.9.0-beta.0
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/LICENSE +21 -0
- package/README.md +37 -0
- package/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/statusbar/StatusBarPresenter.kt +212 -0
- package/lib/module/ARCHITECTURE.md +331 -0
- package/lib/module/Mock/Application.js +33 -0
- package/lib/module/Mock/Application.js.map +1 -0
- package/lib/module/Mock/ComponentProps.js +4 -0
- package/lib/module/Mock/ComponentProps.js.map +1 -0
- package/lib/module/Mock/Components/BottomTabs.js +16 -0
- package/lib/module/Mock/Components/BottomTabs.js.map +1 -0
- package/lib/module/Mock/Components/ComponentScreen.js +101 -0
- package/lib/module/Mock/Components/ComponentScreen.js.map +1 -0
- package/lib/module/Mock/Components/LayoutComponent.js +50 -0
- package/lib/module/Mock/Components/LayoutComponent.js.map +1 -0
- package/lib/module/Mock/Components/Modals.js +22 -0
- package/lib/module/Mock/Components/Modals.js.map +1 -0
- package/lib/module/Mock/Components/NavigationButton.js +72 -0
- package/lib/module/Mock/Components/NavigationButton.js.map +1 -0
- package/lib/module/Mock/Components/Overlays.js +23 -0
- package/lib/module/Mock/Components/Overlays.js.map +1 -0
- package/lib/module/Mock/Components/SideMenu.js +29 -0
- package/lib/module/Mock/Components/SideMenu.js.map +1 -0
- package/lib/module/Mock/Components/Stack.js +18 -0
- package/lib/module/Mock/Components/Stack.js.map +1 -0
- package/lib/module/Mock/Components/TopBar.js +81 -0
- package/lib/module/Mock/Components/TopBar.js.map +1 -0
- package/lib/module/Mock/Layouts/BottomTabsNode.js +30 -0
- package/lib/module/Mock/Layouts/BottomTabsNode.js.map +1 -0
- package/lib/module/Mock/Layouts/ComponentNode.js +102 -0
- package/lib/module/Mock/Layouts/ComponentNode.js.map +1 -0
- package/lib/module/Mock/Layouts/LayoutNodeFactory.js +28 -0
- package/lib/module/Mock/Layouts/LayoutNodeFactory.js.map +1 -0
- package/lib/module/Mock/Layouts/Node.js +14 -0
- package/lib/module/Mock/Layouts/Node.js.map +1 -0
- package/lib/module/Mock/Layouts/ParentNode.js +66 -0
- package/lib/module/Mock/Layouts/ParentNode.js.map +1 -0
- package/lib/module/Mock/Layouts/SideMenu.js +72 -0
- package/lib/module/Mock/Layouts/SideMenu.js.map +1 -0
- package/lib/module/Mock/Layouts/StackNode.js +12 -0
- package/lib/module/Mock/Layouts/StackNode.js.map +1 -0
- package/lib/module/Mock/Stores/EventsStore.js +53 -0
- package/lib/module/Mock/Stores/EventsStore.js.map +1 -0
- package/lib/module/Mock/Stores/LayoutStore.js +176 -0
- package/lib/module/Mock/Stores/LayoutStore.js.map +1 -0
- package/lib/module/Mock/actions/layoutActions.js +19 -0
- package/lib/module/Mock/actions/layoutActions.js.map +1 -0
- package/lib/module/Mock/connect.js +8 -0
- package/lib/module/Mock/connect.js.map +1 -0
- package/lib/module/Mock/constants.js +5 -0
- package/lib/module/Mock/constants.js.map +1 -0
- package/lib/module/Mock/index.js +20 -0
- package/lib/module/Mock/index.js.map +1 -0
- package/lib/module/Mock/mocks/AppRegistryService.js +6 -0
- package/lib/module/Mock/mocks/AppRegistryService.js.map +1 -0
- package/lib/module/Mock/mocks/NativeCommandsSender.js +146 -0
- package/lib/module/Mock/mocks/NativeCommandsSender.js.map +1 -0
- package/lib/module/Mock/mocks/NativeEventsReceiver.js +103 -0
- package/lib/module/Mock/mocks/NativeEventsReceiver.js.map +1 -0
- package/lib/module/Navigation.js +250 -0
- package/lib/module/Navigation.js.map +1 -0
- package/lib/module/NavigationDelegate.js +210 -0
- package/lib/module/NavigationDelegate.js.map +1 -0
- package/lib/module/adapters/AndroidCustomRowForwarder.js +75 -0
- package/lib/module/adapters/AndroidCustomRowForwarder.js.map +1 -0
- package/lib/module/adapters/AppRegistryService.js +9 -0
- package/lib/module/adapters/AppRegistryService.js.map +1 -0
- package/lib/module/adapters/AssetResolver.js +9 -0
- package/lib/module/adapters/AssetResolver.js.map +1 -0
- package/lib/module/adapters/ColorService.js +9 -0
- package/lib/module/adapters/ColorService.js.map +1 -0
- package/lib/module/adapters/Constants.js +19 -0
- package/lib/module/adapters/Constants.js.map +1 -0
- package/lib/module/adapters/NativeCommandsSender.js +60 -0
- package/lib/module/adapters/NativeCommandsSender.js.map +1 -0
- package/lib/module/adapters/NativeEventsReceiver.js +65 -0
- package/lib/module/adapters/NativeEventsReceiver.js.map +1 -0
- package/lib/module/adapters/NativeEventsReceiver.mock.js +6 -0
- package/lib/module/adapters/NativeEventsReceiver.mock.js.map +1 -0
- package/lib/module/adapters/NativeRNNTurboEventEmitter.js +7 -0
- package/lib/module/adapters/NativeRNNTurboEventEmitter.js.map +1 -0
- package/lib/module/adapters/NativeRNNTurboModule.js +6 -0
- package/lib/module/adapters/NativeRNNTurboModule.js.map +1 -0
- package/lib/module/adapters/TouchablePreview.js +115 -0
- package/lib/module/adapters/TouchablePreview.js.map +1 -0
- package/lib/module/adapters/UniqueIdProvider.js +9 -0
- package/lib/module/adapters/UniqueIdProvider.js.map +1 -0
- package/lib/module/commands/Commands.js +241 -0
- package/lib/module/commands/Commands.js.map +1 -0
- package/lib/module/commands/Commands.test.js +759 -0
- package/lib/module/commands/Commands.test.js.map +1 -0
- package/lib/module/commands/Deprecations.js +66 -0
- package/lib/module/commands/Deprecations.js.map +1 -0
- package/lib/module/commands/LayoutTreeCrawler.js +32 -0
- package/lib/module/commands/LayoutTreeCrawler.js.map +1 -0
- package/lib/module/commands/LayoutTreeCrawler.test.js +82 -0
- package/lib/module/commands/LayoutTreeCrawler.test.js.map +1 -0
- package/lib/module/commands/LayoutTreeParser.js +130 -0
- package/lib/module/commands/LayoutTreeParser.js.map +1 -0
- package/lib/module/commands/LayoutTreeParser.test.js +359 -0
- package/lib/module/commands/LayoutTreeParser.test.js.map +1 -0
- package/lib/module/commands/LayoutType.js +16 -0
- package/lib/module/commands/LayoutType.js.map +1 -0
- package/lib/module/commands/LayoutType.test.js +12 -0
- package/lib/module/commands/LayoutType.test.js.map +1 -0
- package/lib/module/commands/OptionsCrawler.js +72 -0
- package/lib/module/commands/OptionsCrawler.js.map +1 -0
- package/lib/module/commands/OptionsCrawler.test.js +351 -0
- package/lib/module/commands/OptionsCrawler.test.js.map +1 -0
- package/lib/module/commands/OptionsProcessor.js +300 -0
- package/lib/module/commands/OptionsProcessor.js.map +1 -0
- package/lib/module/commands/OptionsProcessor.test.js +1234 -0
- package/lib/module/commands/OptionsProcessor.test.js.map +1 -0
- package/lib/module/components/ComponentRegistry.js +25 -0
- package/lib/module/components/ComponentRegistry.js.map +1 -0
- package/lib/module/components/ComponentRegistry.test.js +57 -0
- package/lib/module/components/ComponentRegistry.test.js.map +1 -0
- package/lib/module/components/ComponentWrapper.js +80 -0
- package/lib/module/components/ComponentWrapper.js.map +1 -0
- package/lib/module/components/ComponentWrapper.test.js +333 -0
- package/lib/module/components/ComponentWrapper.test.js.map +1 -0
- package/lib/module/components/Modal.js +125 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/Store.js +71 -0
- package/lib/module/components/Store.js.map +1 -0
- package/lib/module/components/Store.test.js +148 -0
- package/lib/module/components/Store.test.js.map +1 -0
- package/lib/module/events/CommandsObserver.js +19 -0
- package/lib/module/events/CommandsObserver.js.map +1 -0
- package/lib/module/events/CommandsObserver.test.js +43 -0
- package/lib/module/events/CommandsObserver.test.js.map +1 -0
- package/lib/module/events/ComponentEventsObserver.js +94 -0
- package/lib/module/events/ComponentEventsObserver.js.map +1 -0
- package/lib/module/events/ComponentEventsObserver.test.js +391 -0
- package/lib/module/events/ComponentEventsObserver.test.js.map +1 -0
- package/lib/module/events/EventsRegistry.js +64 -0
- package/lib/module/events/EventsRegistry.js.map +1 -0
- package/lib/module/events/EventsRegistry.test.js +131 -0
- package/lib/module/events/EventsRegistry.test.js.map +1 -0
- package/lib/module/index.js +22 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/interfaces/CommandName.js +22 -0
- package/lib/module/interfaces/CommandName.js.map +1 -0
- package/lib/module/interfaces/ComponentEvents.js +2 -0
- package/lib/module/interfaces/ComponentEvents.js.map +1 -0
- package/lib/module/interfaces/EventSubscription.js +2 -0
- package/lib/module/interfaces/EventSubscription.js.map +1 -0
- package/lib/module/interfaces/Events.js +2 -0
- package/lib/module/interfaces/Events.js.map +1 -0
- package/lib/module/interfaces/Layout.js +4 -0
- package/lib/module/interfaces/Layout.js.map +1 -0
- package/lib/module/interfaces/NavigationComponent.js +21 -0
- package/lib/module/interfaces/NavigationComponent.js.map +1 -0
- package/lib/module/interfaces/NavigationComponentListener.js +4 -0
- package/lib/module/interfaces/NavigationComponentListener.js.map +1 -0
- package/lib/module/interfaces/NavigationComponentProps.js +2 -0
- package/lib/module/interfaces/NavigationComponentProps.js.map +1 -0
- package/lib/module/interfaces/NavigationFunctionComponent.js +4 -0
- package/lib/module/interfaces/NavigationFunctionComponent.js.map +1 -0
- package/lib/module/interfaces/Options.js +47 -0
- package/lib/module/interfaces/Options.js.map +1 -0
- package/lib/module/interfaces/ProcessorSubscription.js +2 -0
- package/lib/module/interfaces/ProcessorSubscription.js.map +1 -0
- package/lib/module/interfaces/Processors.js +4 -0
- package/lib/module/interfaces/Processors.js.map +1 -0
- package/lib/module/linking/DeferredLinkQueue.js +52 -0
- package/lib/module/linking/DeferredLinkQueue.js.map +1 -0
- package/lib/module/linking/DeferredLinkQueue.test.js +54 -0
- package/lib/module/linking/DeferredLinkQueue.test.js.map +1 -0
- package/lib/module/linking/LinkingHandler.js +139 -0
- package/lib/module/linking/LinkingHandler.js.map +1 -0
- package/lib/module/linking/LinkingHandler.test.js +384 -0
- package/lib/module/linking/LinkingHandler.test.js.map +1 -0
- package/lib/module/linking/ModalLayoutBuilder.js +56 -0
- package/lib/module/linking/ModalLayoutBuilder.js.map +1 -0
- package/lib/module/linking/ModalLayoutBuilder.test.js +154 -0
- package/lib/module/linking/ModalLayoutBuilder.test.js.map +1 -0
- package/lib/module/linking/RouteMatcher.js +104 -0
- package/lib/module/linking/RouteMatcher.js.map +1 -0
- package/lib/module/linking/RouteMatcher.test.js +164 -0
- package/lib/module/linking/RouteMatcher.test.js.map +1 -0
- package/lib/module/linking/URLParser.js +56 -0
- package/lib/module/linking/URLParser.js.map +1 -0
- package/lib/module/linking/URLParser.test.js +100 -0
- package/lib/module/linking/URLParser.test.js.map +1 -0
- package/lib/module/linking/types.js +4 -0
- package/lib/module/linking/types.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/processors/LayoutProcessor.js +15 -0
- package/lib/module/processors/LayoutProcessor.js.map +1 -0
- package/lib/module/processors/LayoutProcessor.test.js +53 -0
- package/lib/module/processors/LayoutProcessor.test.js.map +1 -0
- package/lib/module/processors/LayoutProcessorsStore.js +18 -0
- package/lib/module/processors/LayoutProcessorsStore.js.map +1 -0
- package/lib/module/processors/LayoutProcessorsStore.test.js +31 -0
- package/lib/module/processors/LayoutProcessorsStore.test.js.map +1 -0
- package/lib/module/processors/OptionProcessorsStore.js +19 -0
- package/lib/module/processors/OptionProcessorsStore.js.map +1 -0
- package/lib/module/processors/OptionProcessorsStore.test.js +31 -0
- package/lib/module/processors/OptionProcessorsStore.test.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/Mock/Application.d.ts +30 -0
- package/lib/typescript/Mock/Application.d.ts.map +1 -0
- package/lib/typescript/Mock/ComponentProps.d.ts +6 -0
- package/lib/typescript/Mock/ComponentProps.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/BottomTabs.d.ts +47 -0
- package/lib/typescript/Mock/Components/BottomTabs.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/ComponentScreen.d.ts +29 -0
- package/lib/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/LayoutComponent.d.ts +47 -0
- package/lib/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/Modals.d.ts +47 -0
- package/lib/typescript/Mock/Components/Modals.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/NavigationButton.d.ts +58 -0
- package/lib/typescript/Mock/Components/NavigationButton.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/Overlays.d.ts +47 -0
- package/lib/typescript/Mock/Components/Overlays.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/SideMenu.d.ts +179 -0
- package/lib/typescript/Mock/Components/SideMenu.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/Stack.d.ts +47 -0
- package/lib/typescript/Mock/Components/Stack.d.ts.map +1 -0
- package/lib/typescript/Mock/Components/TopBar.d.ts +37 -0
- package/lib/typescript/Mock/Components/TopBar.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts +9 -0
- package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/ComponentNode.d.ts +16 -0
- package/lib/typescript/Mock/Layouts/ComponentNode.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/LayoutNodeFactory.d.ts +9 -0
- package/lib/typescript/Mock/Layouts/LayoutNodeFactory.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/Node.d.ts +16 -0
- package/lib/typescript/Mock/Layouts/Node.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/ParentNode.d.ts +21 -0
- package/lib/typescript/Mock/Layouts/ParentNode.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts +32 -0
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -0
- package/lib/typescript/Mock/Layouts/StackNode.d.ts +6 -0
- package/lib/typescript/Mock/Layouts/StackNode.d.ts.map +1 -0
- package/lib/typescript/Mock/Stores/EventsStore.d.ts +22 -0
- package/lib/typescript/Mock/Stores/EventsStore.d.ts.map +1 -0
- package/lib/typescript/Mock/Stores/LayoutStore.d.ts +2 -0
- package/lib/typescript/Mock/Stores/LayoutStore.d.ts.map +1 -0
- package/lib/typescript/Mock/actions/layoutActions.d.ts +6 -0
- package/lib/typescript/Mock/actions/layoutActions.d.ts.map +1 -0
- package/lib/typescript/Mock/connect.d.ts +2 -0
- package/lib/typescript/Mock/connect.d.ts.map +1 -0
- package/lib/typescript/Mock/constants.d.ts +3 -0
- package/lib/typescript/Mock/constants.d.ts.map +1 -0
- package/lib/typescript/Mock/index.d.ts +4 -0
- package/lib/typescript/Mock/index.d.ts.map +1 -0
- package/lib/typescript/Mock/mocks/AppRegistryService.d.ts +5 -0
- package/lib/typescript/Mock/mocks/AppRegistryService.d.ts.map +1 -0
- package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts +28 -0
- package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts.map +1 -0
- package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts +21 -0
- package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts.map +1 -0
- package/lib/typescript/Navigation.d.ts +152 -0
- package/lib/typescript/Navigation.d.ts.map +1 -0
- package/lib/typescript/NavigationDelegate.d.ts +128 -0
- package/lib/typescript/NavigationDelegate.d.ts.map +1 -0
- package/lib/typescript/adapters/AndroidCustomRowForwarder.d.ts +23 -0
- package/lib/typescript/adapters/AndroidCustomRowForwarder.d.ts.map +1 -0
- package/lib/typescript/adapters/AppRegistryService.d.ts +5 -0
- package/lib/typescript/adapters/AppRegistryService.d.ts.map +1 -0
- package/lib/typescript/adapters/AssetResolver.d.ts +5 -0
- package/lib/typescript/adapters/AssetResolver.d.ts.map +1 -0
- package/lib/typescript/adapters/ColorService.d.ts +4 -0
- package/lib/typescript/adapters/ColorService.d.ts.map +1 -0
- package/lib/typescript/adapters/Constants.d.ts +17 -0
- package/lib/typescript/adapters/Constants.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeCommandsSender.d.ts +62 -0
- package/lib/typescript/adapters/NativeCommandsSender.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeEventsReceiver.d.ts +23 -0
- package/lib/typescript/adapters/NativeEventsReceiver.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeEventsReceiver.mock.d.ts +2 -0
- package/lib/typescript/adapters/NativeEventsReceiver.mock.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeRNNTurboEventEmitter.d.ts +8 -0
- package/lib/typescript/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeRNNTurboModule.d.ts +28 -0
- package/lib/typescript/adapters/NativeRNNTurboModule.d.ts.map +1 -0
- package/lib/typescript/adapters/TouchablePreview.d.ts +44 -0
- package/lib/typescript/adapters/TouchablePreview.d.ts.map +1 -0
- package/lib/typescript/adapters/UniqueIdProvider.d.ts +4 -0
- package/lib/typescript/adapters/UniqueIdProvider.d.ts.map +1 -0
- package/lib/typescript/commands/Commands.d.ts +41 -0
- package/lib/typescript/commands/Commands.d.ts.map +1 -0
- package/lib/typescript/commands/Commands.test.d.ts +2 -0
- package/lib/typescript/commands/Commands.test.d.ts.map +1 -0
- package/lib/typescript/commands/Deprecations.d.ts +10 -0
- package/lib/typescript/commands/Deprecations.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeCrawler.d.ts +25 -0
- package/lib/typescript/commands/LayoutTreeCrawler.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeCrawler.test.d.ts +2 -0
- package/lib/typescript/commands/LayoutTreeCrawler.test.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeParser.d.ts +17 -0
- package/lib/typescript/commands/LayoutTreeParser.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeParser.test.d.ts +2 -0
- package/lib/typescript/commands/LayoutTreeParser.test.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutType.d.ts +13 -0
- package/lib/typescript/commands/LayoutType.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutType.test.d.ts +2 -0
- package/lib/typescript/commands/LayoutType.test.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsCrawler.d.ts +20 -0
- package/lib/typescript/commands/OptionsCrawler.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsCrawler.test.d.ts +2 -0
- package/lib/typescript/commands/OptionsCrawler.test.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsProcessor.d.ts +40 -0
- package/lib/typescript/commands/OptionsProcessor.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsProcessor.test.d.ts +2 -0
- package/lib/typescript/commands/OptionsProcessor.test.d.ts.map +1 -0
- package/lib/typescript/components/ComponentRegistry.d.ts +14 -0
- package/lib/typescript/components/ComponentRegistry.d.ts.map +1 -0
- package/lib/typescript/components/ComponentRegistry.test.d.ts +2 -0
- package/lib/typescript/components/ComponentRegistry.test.d.ts.map +1 -0
- package/lib/typescript/components/ComponentWrapper.d.ts +13 -0
- package/lib/typescript/components/ComponentWrapper.d.ts.map +1 -0
- package/lib/typescript/components/ComponentWrapper.test.d.ts +2 -0
- package/lib/typescript/components/ComponentWrapper.test.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +21 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/Store.d.ts +27 -0
- package/lib/typescript/components/Store.d.ts.map +1 -0
- package/lib/typescript/components/Store.test.d.ts +2 -0
- package/lib/typescript/components/Store.test.d.ts.map +1 -0
- package/lib/typescript/events/CommandsObserver.d.ts +11 -0
- package/lib/typescript/events/CommandsObserver.d.ts.map +1 -0
- package/lib/typescript/events/CommandsObserver.test.d.ts +2 -0
- package/lib/typescript/events/CommandsObserver.test.d.ts.map +1 -0
- package/lib/typescript/events/ComponentEventsObserver.d.ts +29 -0
- package/lib/typescript/events/ComponentEventsObserver.d.ts.map +1 -0
- package/lib/typescript/events/ComponentEventsObserver.test.d.ts +2 -0
- package/lib/typescript/events/ComponentEventsObserver.test.d.ts.map +1 -0
- package/lib/typescript/events/EventsRegistry.d.ts +34 -0
- package/lib/typescript/events/EventsRegistry.d.ts.map +1 -0
- package/lib/typescript/events/EventsRegistry.test.d.ts +2 -0
- package/lib/typescript/events/EventsRegistry.test.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +19 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/interfaces/CommandName.d.ts +19 -0
- package/lib/typescript/interfaces/CommandName.d.ts.map +1 -0
- package/lib/typescript/interfaces/ComponentEvents.d.ts +43 -0
- package/lib/typescript/interfaces/ComponentEvents.d.ts.map +1 -0
- package/lib/typescript/interfaces/EventSubscription.d.ts +4 -0
- package/lib/typescript/interfaces/EventSubscription.d.ts.map +1 -0
- package/lib/typescript/interfaces/Events.d.ts +16 -0
- package/lib/typescript/interfaces/Events.d.ts.map +1 -0
- package/lib/typescript/interfaces/Layout.d.ts +190 -0
- package/lib/typescript/interfaces/Layout.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponent.d.ts +22 -0
- package/lib/typescript/interfaces/NavigationComponent.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponentListener.d.ts +14 -0
- package/lib/typescript/interfaces/NavigationComponentListener.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponentProps.d.ts +11 -0
- package/lib/typescript/interfaces/NavigationComponentProps.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationFunctionComponent.d.ts +7 -0
- package/lib/typescript/interfaces/NavigationFunctionComponent.d.ts.map +1 -0
- package/lib/typescript/interfaces/Options.d.ts +1738 -0
- package/lib/typescript/interfaces/Options.d.ts.map +1 -0
- package/lib/typescript/interfaces/ProcessorSubscription.d.ts +4 -0
- package/lib/typescript/interfaces/ProcessorSubscription.d.ts.map +1 -0
- package/lib/typescript/interfaces/Processors.d.ts +9 -0
- package/lib/typescript/interfaces/Processors.d.ts.map +1 -0
- package/lib/typescript/linking/DeferredLinkQueue.d.ts +26 -0
- package/lib/typescript/linking/DeferredLinkQueue.d.ts.map +1 -0
- package/lib/typescript/linking/DeferredLinkQueue.test.d.ts +2 -0
- package/lib/typescript/linking/DeferredLinkQueue.test.d.ts.map +1 -0
- package/lib/typescript/linking/LinkingHandler.d.ts +71 -0
- package/lib/typescript/linking/LinkingHandler.d.ts.map +1 -0
- package/lib/typescript/linking/LinkingHandler.test.d.ts +2 -0
- package/lib/typescript/linking/LinkingHandler.test.d.ts.map +1 -0
- package/lib/typescript/linking/ModalLayoutBuilder.d.ts +21 -0
- package/lib/typescript/linking/ModalLayoutBuilder.d.ts.map +1 -0
- package/lib/typescript/linking/ModalLayoutBuilder.test.d.ts +2 -0
- package/lib/typescript/linking/ModalLayoutBuilder.test.d.ts.map +1 -0
- package/lib/typescript/linking/RouteMatcher.d.ts +23 -0
- package/lib/typescript/linking/RouteMatcher.d.ts.map +1 -0
- package/lib/typescript/linking/RouteMatcher.test.d.ts +2 -0
- package/lib/typescript/linking/RouteMatcher.test.d.ts.map +1 -0
- package/lib/typescript/linking/URLParser.d.ts +16 -0
- package/lib/typescript/linking/URLParser.d.ts.map +1 -0
- package/lib/typescript/linking/URLParser.test.d.ts +2 -0
- package/lib/typescript/linking/URLParser.test.d.ts.map +1 -0
- package/lib/typescript/linking/types.d.ts +107 -0
- package/lib/typescript/linking/types.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/processors/LayoutProcessor.d.ts +9 -0
- package/lib/typescript/processors/LayoutProcessor.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessor.test.d.ts +2 -0
- package/lib/typescript/processors/LayoutProcessor.test.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessorsStore.d.ts +9 -0
- package/lib/typescript/processors/LayoutProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessorsStore.test.d.ts +2 -0
- package/lib/typescript/processors/LayoutProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/processors/OptionProcessorsStore.d.ts +9 -0
- package/lib/typescript/processors/OptionProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/processors/OptionProcessorsStore.test.d.ts +2 -0
- package/lib/typescript/processors/OptionProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +5 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Application.d.ts +30 -0
- package/lib/typescript/typescript/Mock/Application.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/ComponentProps.d.ts +6 -0
- package/lib/typescript/typescript/Mock/ComponentProps.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/BottomTabs.d.ts +47 -0
- package/lib/typescript/typescript/Mock/Components/BottomTabs.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/ComponentScreen.d.ts +29 -0
- package/lib/typescript/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/LayoutComponent.d.ts +47 -0
- package/lib/typescript/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/Modals.d.ts +47 -0
- package/lib/typescript/typescript/Mock/Components/Modals.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/NavigationButton.d.ts +58 -0
- package/lib/typescript/typescript/Mock/Components/NavigationButton.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/Overlays.d.ts +47 -0
- package/lib/typescript/typescript/Mock/Components/Overlays.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/SideMenu.d.ts +179 -0
- package/lib/typescript/typescript/Mock/Components/SideMenu.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/Stack.d.ts +47 -0
- package/lib/typescript/typescript/Mock/Components/Stack.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Components/TopBar.d.ts +37 -0
- package/lib/typescript/typescript/Mock/Components/TopBar.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/BottomTabsNode.d.ts +9 -0
- package/lib/typescript/typescript/Mock/Layouts/BottomTabsNode.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/ComponentNode.d.ts +16 -0
- package/lib/typescript/typescript/Mock/Layouts/ComponentNode.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/LayoutNodeFactory.d.ts +9 -0
- package/lib/typescript/typescript/Mock/Layouts/LayoutNodeFactory.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/Node.d.ts +16 -0
- package/lib/typescript/typescript/Mock/Layouts/Node.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/ParentNode.d.ts +21 -0
- package/lib/typescript/typescript/Mock/Layouts/ParentNode.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/SideMenu.d.ts +32 -0
- package/lib/typescript/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Layouts/StackNode.d.ts +6 -0
- package/lib/typescript/typescript/Mock/Layouts/StackNode.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Stores/EventsStore.d.ts +22 -0
- package/lib/typescript/typescript/Mock/Stores/EventsStore.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/Stores/LayoutStore.d.ts +2 -0
- package/lib/typescript/typescript/Mock/Stores/LayoutStore.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/actions/layoutActions.d.ts +6 -0
- package/lib/typescript/typescript/Mock/actions/layoutActions.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/connect.d.ts +2 -0
- package/lib/typescript/typescript/Mock/connect.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/constants.d.ts +3 -0
- package/lib/typescript/typescript/Mock/constants.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/index.d.ts +4 -0
- package/lib/typescript/typescript/Mock/index.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/mocks/AppRegistryService.d.ts +5 -0
- package/lib/typescript/typescript/Mock/mocks/AppRegistryService.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/mocks/NativeCommandsSender.d.ts +28 -0
- package/lib/typescript/typescript/Mock/mocks/NativeCommandsSender.d.ts.map +1 -0
- package/lib/typescript/typescript/Mock/mocks/NativeEventsReceiver.d.ts +21 -0
- package/lib/typescript/typescript/Mock/mocks/NativeEventsReceiver.d.ts.map +1 -0
- package/lib/typescript/typescript/Navigation.d.ts +152 -0
- package/lib/typescript/typescript/Navigation.d.ts.map +1 -0
- package/lib/typescript/typescript/NavigationDelegate.d.ts +128 -0
- package/lib/typescript/typescript/NavigationDelegate.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/AndroidCustomRowForwarder.d.ts +23 -0
- package/lib/typescript/typescript/adapters/AndroidCustomRowForwarder.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/AppRegistryService.d.ts +5 -0
- package/lib/typescript/typescript/adapters/AppRegistryService.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/AssetResolver.d.ts +5 -0
- package/lib/typescript/typescript/adapters/AssetResolver.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/ColorService.d.ts +4 -0
- package/lib/typescript/typescript/adapters/ColorService.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/Constants.d.ts +17 -0
- package/lib/typescript/typescript/adapters/Constants.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/NativeCommandsSender.d.ts +62 -0
- package/lib/typescript/typescript/adapters/NativeCommandsSender.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/NativeEventsReceiver.d.ts +23 -0
- package/lib/typescript/typescript/adapters/NativeEventsReceiver.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/NativeEventsReceiver.mock.d.ts +2 -0
- package/lib/typescript/typescript/adapters/NativeEventsReceiver.mock.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/NativeRNNTurboEventEmitter.d.ts +8 -0
- package/lib/typescript/typescript/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/NativeRNNTurboModule.d.ts +28 -0
- package/lib/typescript/typescript/adapters/NativeRNNTurboModule.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/TouchablePreview.d.ts +44 -0
- package/lib/typescript/typescript/adapters/TouchablePreview.d.ts.map +1 -0
- package/lib/typescript/typescript/adapters/UniqueIdProvider.d.ts +4 -0
- package/lib/typescript/typescript/adapters/UniqueIdProvider.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/Commands.d.ts +41 -0
- package/lib/typescript/typescript/commands/Commands.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/Commands.test.d.ts +2 -0
- package/lib/typescript/typescript/commands/Commands.test.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/Deprecations.d.ts +10 -0
- package/lib/typescript/typescript/commands/Deprecations.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/LayoutTreeCrawler.d.ts +25 -0
- package/lib/typescript/typescript/commands/LayoutTreeCrawler.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/LayoutTreeCrawler.test.d.ts +2 -0
- package/lib/typescript/typescript/commands/LayoutTreeCrawler.test.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/LayoutTreeParser.d.ts +17 -0
- package/lib/typescript/typescript/commands/LayoutTreeParser.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/LayoutTreeParser.test.d.ts +2 -0
- package/lib/typescript/typescript/commands/LayoutTreeParser.test.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/LayoutType.d.ts +13 -0
- package/lib/typescript/typescript/commands/LayoutType.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/LayoutType.test.d.ts +2 -0
- package/lib/typescript/typescript/commands/LayoutType.test.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/OptionsCrawler.d.ts +20 -0
- package/lib/typescript/typescript/commands/OptionsCrawler.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/OptionsCrawler.test.d.ts +2 -0
- package/lib/typescript/typescript/commands/OptionsCrawler.test.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/OptionsProcessor.d.ts +40 -0
- package/lib/typescript/typescript/commands/OptionsProcessor.d.ts.map +1 -0
- package/lib/typescript/typescript/commands/OptionsProcessor.test.d.ts +2 -0
- package/lib/typescript/typescript/commands/OptionsProcessor.test.d.ts.map +1 -0
- package/lib/typescript/typescript/components/ComponentRegistry.d.ts +14 -0
- package/lib/typescript/typescript/components/ComponentRegistry.d.ts.map +1 -0
- package/lib/typescript/typescript/components/ComponentRegistry.test.d.ts +2 -0
- package/lib/typescript/typescript/components/ComponentRegistry.test.d.ts.map +1 -0
- package/lib/typescript/typescript/components/ComponentWrapper.d.ts +13 -0
- package/lib/typescript/typescript/components/ComponentWrapper.d.ts.map +1 -0
- package/lib/typescript/typescript/components/ComponentWrapper.test.d.ts +2 -0
- package/lib/typescript/typescript/components/ComponentWrapper.test.d.ts.map +1 -0
- package/lib/typescript/typescript/components/Modal.d.ts +21 -0
- package/lib/typescript/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/typescript/components/Store.d.ts +27 -0
- package/lib/typescript/typescript/components/Store.d.ts.map +1 -0
- package/lib/typescript/typescript/components/Store.test.d.ts +2 -0
- package/lib/typescript/typescript/components/Store.test.d.ts.map +1 -0
- package/lib/typescript/typescript/events/CommandsObserver.d.ts +11 -0
- package/lib/typescript/typescript/events/CommandsObserver.d.ts.map +1 -0
- package/lib/typescript/typescript/events/CommandsObserver.test.d.ts +2 -0
- package/lib/typescript/typescript/events/CommandsObserver.test.d.ts.map +1 -0
- package/lib/typescript/typescript/events/ComponentEventsObserver.d.ts +29 -0
- package/lib/typescript/typescript/events/ComponentEventsObserver.d.ts.map +1 -0
- package/lib/typescript/typescript/events/ComponentEventsObserver.test.d.ts +2 -0
- package/lib/typescript/typescript/events/ComponentEventsObserver.test.d.ts.map +1 -0
- package/lib/typescript/typescript/events/EventsRegistry.d.ts +34 -0
- package/lib/typescript/typescript/events/EventsRegistry.d.ts.map +1 -0
- package/lib/typescript/typescript/events/EventsRegistry.test.d.ts +2 -0
- package/lib/typescript/typescript/events/EventsRegistry.test.d.ts.map +1 -0
- package/lib/typescript/typescript/index.d.ts +19 -0
- package/lib/typescript/typescript/index.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/CommandName.d.ts +19 -0
- package/lib/typescript/typescript/interfaces/CommandName.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/ComponentEvents.d.ts +43 -0
- package/lib/typescript/typescript/interfaces/ComponentEvents.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/EventSubscription.d.ts +4 -0
- package/lib/typescript/typescript/interfaces/EventSubscription.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/Events.d.ts +16 -0
- package/lib/typescript/typescript/interfaces/Events.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/Layout.d.ts +190 -0
- package/lib/typescript/typescript/interfaces/Layout.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/NavigationComponent.d.ts +22 -0
- package/lib/typescript/typescript/interfaces/NavigationComponent.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/NavigationComponentListener.d.ts +14 -0
- package/lib/typescript/typescript/interfaces/NavigationComponentListener.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/NavigationComponentProps.d.ts +11 -0
- package/lib/typescript/typescript/interfaces/NavigationComponentProps.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/NavigationFunctionComponent.d.ts +7 -0
- package/lib/typescript/typescript/interfaces/NavigationFunctionComponent.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/Options.d.ts +1738 -0
- package/lib/typescript/typescript/interfaces/Options.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/ProcessorSubscription.d.ts +4 -0
- package/lib/typescript/typescript/interfaces/ProcessorSubscription.d.ts.map +1 -0
- package/lib/typescript/typescript/interfaces/Processors.d.ts +9 -0
- package/lib/typescript/typescript/interfaces/Processors.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/DeferredLinkQueue.d.ts +26 -0
- package/lib/typescript/typescript/linking/DeferredLinkQueue.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/DeferredLinkQueue.test.d.ts +2 -0
- package/lib/typescript/typescript/linking/DeferredLinkQueue.test.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/LinkingHandler.d.ts +71 -0
- package/lib/typescript/typescript/linking/LinkingHandler.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/LinkingHandler.test.d.ts +2 -0
- package/lib/typescript/typescript/linking/LinkingHandler.test.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/ModalLayoutBuilder.d.ts +21 -0
- package/lib/typescript/typescript/linking/ModalLayoutBuilder.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/ModalLayoutBuilder.test.d.ts +2 -0
- package/lib/typescript/typescript/linking/ModalLayoutBuilder.test.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/RouteMatcher.d.ts +23 -0
- package/lib/typescript/typescript/linking/RouteMatcher.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/RouteMatcher.test.d.ts +2 -0
- package/lib/typescript/typescript/linking/RouteMatcher.test.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/URLParser.d.ts +16 -0
- package/lib/typescript/typescript/linking/URLParser.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/URLParser.test.d.ts +2 -0
- package/lib/typescript/typescript/linking/URLParser.test.d.ts.map +1 -0
- package/lib/typescript/typescript/linking/types.d.ts +107 -0
- package/lib/typescript/typescript/linking/types.d.ts.map +1 -0
- package/lib/typescript/typescript/package.json +1 -0
- package/lib/typescript/typescript/processors/LayoutProcessor.d.ts +9 -0
- package/lib/typescript/typescript/processors/LayoutProcessor.d.ts.map +1 -0
- package/lib/typescript/typescript/processors/LayoutProcessor.test.d.ts +2 -0
- package/lib/typescript/typescript/processors/LayoutProcessor.test.d.ts.map +1 -0
- package/lib/typescript/typescript/processors/LayoutProcessorsStore.d.ts +9 -0
- package/lib/typescript/typescript/processors/LayoutProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/typescript/processors/LayoutProcessorsStore.test.d.ts +2 -0
- package/lib/typescript/typescript/processors/LayoutProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/typescript/processors/OptionProcessorsStore.d.ts +9 -0
- package/lib/typescript/typescript/processors/OptionProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/typescript/processors/OptionProcessorsStore.test.d.ts +2 -0
- package/lib/typescript/typescript/processors/OptionProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/typescript/types.d.ts +5 -0
- package/lib/typescript/typescript/types.d.ts.map +1 -0
- package/package.json +56 -0
- package/scripts/setup-esm-shim.js +102 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { LayoutStore } from "../Stores/LayoutStore.js";
|
|
4
|
+
import LayoutNodeFactory from "../Layouts/LayoutNodeFactory.js";
|
|
5
|
+
import { events } from "../Stores/EventsStore.js";
|
|
6
|
+
import _ from 'lodash';
|
|
7
|
+
import { CommandName } from "../../interfaces/CommandName.js";
|
|
8
|
+
export class NativeCommandsSender {
|
|
9
|
+
constructor() {}
|
|
10
|
+
setRoot(commandId, layout) {
|
|
11
|
+
return new Promise(resolve => {
|
|
12
|
+
if (LayoutStore.getVisibleLayout()) {
|
|
13
|
+
LayoutStore.getVisibleLayout().componentDidDisappear();
|
|
14
|
+
LayoutStore.setRoot({});
|
|
15
|
+
}
|
|
16
|
+
const layoutNode = LayoutNodeFactory.create(layout.root);
|
|
17
|
+
LayoutStore.setRoot(layoutNode);
|
|
18
|
+
layoutNode.getVisibleLayout().componentDidAppear();
|
|
19
|
+
resolve(layout.root.nodeId);
|
|
20
|
+
this.reportCommandCompletion(CommandName.SetRoot, commandId);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
setDefaultOptions(options) {
|
|
24
|
+
LayoutStore.setDefaultOptions(options);
|
|
25
|
+
}
|
|
26
|
+
mergeOptions(componentId, options) {
|
|
27
|
+
LayoutStore.mergeOptions(componentId, options);
|
|
28
|
+
}
|
|
29
|
+
push(commandId, onComponentId, layout) {
|
|
30
|
+
return new Promise(resolve => {
|
|
31
|
+
const stack = LayoutStore.getLayoutById(onComponentId).getStack();
|
|
32
|
+
const layoutNode = LayoutNodeFactory.create(layout, stack);
|
|
33
|
+
stack.getVisibleLayout().componentDidDisappear();
|
|
34
|
+
LayoutStore.push(layoutNode, stack);
|
|
35
|
+
LayoutStore.applyOptions(layoutNode.nodeId, layoutNode.data.options);
|
|
36
|
+
stack.getVisibleLayout().componentDidAppear();
|
|
37
|
+
resolve(stack.getVisibleLayout().nodeId);
|
|
38
|
+
this.reportCommandCompletion(CommandName.Push, commandId);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
pop(commandId, componentId, _options) {
|
|
42
|
+
return new Promise((resolve, reject) => {
|
|
43
|
+
if (!LayoutStore.getLayoutById(componentId)) {
|
|
44
|
+
reject(`Popping component failed - componentId '${componentId}' not found`);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const poppedChild = _.last(LayoutStore.getLayoutById(componentId).getStack().children);
|
|
48
|
+
LayoutStore.pop(componentId);
|
|
49
|
+
events.invokeScreenPopped({
|
|
50
|
+
componentId
|
|
51
|
+
});
|
|
52
|
+
resolve(poppedChild.nodeId);
|
|
53
|
+
this.reportCommandCompletion(CommandName.Pop, commandId);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
popTo(commandId, componentId, _options) {
|
|
57
|
+
return new Promise(resolve => {
|
|
58
|
+
LayoutStore.popTo(componentId);
|
|
59
|
+
resolve(componentId);
|
|
60
|
+
this.reportCommandCompletion(CommandName.PopTo, commandId);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
popToRoot(commandId, componentId, _options) {
|
|
64
|
+
LayoutStore.popToRoot(componentId);
|
|
65
|
+
this.reportCommandCompletion(CommandName.PopToRoot, commandId);
|
|
66
|
+
}
|
|
67
|
+
setStackRoot(commandId, onComponentId, layout) {
|
|
68
|
+
LayoutStore.setStackRoot(onComponentId, layout);
|
|
69
|
+
this.reportCommandCompletion(CommandName.SetStackRoot, commandId);
|
|
70
|
+
}
|
|
71
|
+
showModal(commandId, layout) {
|
|
72
|
+
return new Promise(resolve => {
|
|
73
|
+
const layoutNode = LayoutNodeFactory.create(layout);
|
|
74
|
+
LayoutStore.getVisibleLayout().componentDidDisappear();
|
|
75
|
+
LayoutStore.showModal(layoutNode);
|
|
76
|
+
layoutNode.componentDidAppear();
|
|
77
|
+
resolve(layoutNode.nodeId);
|
|
78
|
+
this.reportCommandCompletion(CommandName.ShowModal, commandId);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
dismissModal(commandId, componentId, _options) {
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
const modal = LayoutStore.getModalById(componentId);
|
|
84
|
+
if (modal) {
|
|
85
|
+
const modalTopParent = modal.getTopParent();
|
|
86
|
+
modalTopParent.componentDidDisappear();
|
|
87
|
+
LayoutStore.dismissModal(componentId);
|
|
88
|
+
events.invokeModalDismissed({
|
|
89
|
+
componentName: modalTopParent.data.name,
|
|
90
|
+
componentId: modalTopParent.nodeId,
|
|
91
|
+
modalsDismissed: 1
|
|
92
|
+
});
|
|
93
|
+
resolve(modalTopParent.nodeId);
|
|
94
|
+
LayoutStore.getVisibleLayout().componentDidAppear();
|
|
95
|
+
this.reportCommandCompletion(CommandName.DismissModal, commandId);
|
|
96
|
+
} else {
|
|
97
|
+
reject(`component with id: ${componentId} is not a modal`);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
dismissAllModals(commandId, _options) {
|
|
102
|
+
LayoutStore.dismissAllModals();
|
|
103
|
+
this.reportCommandCompletion(CommandName.DismissAllModals, commandId);
|
|
104
|
+
}
|
|
105
|
+
showOverlay(commandId, layout) {
|
|
106
|
+
const layoutNode = LayoutNodeFactory.create(layout);
|
|
107
|
+
LayoutStore.showOverlay(layoutNode);
|
|
108
|
+
layoutNode.componentDidAppear();
|
|
109
|
+
this.reportCommandCompletion(CommandName.ShowOverlay, commandId);
|
|
110
|
+
}
|
|
111
|
+
dismissOverlay(commandId, componentId) {
|
|
112
|
+
LayoutStore.dismissOverlay(componentId);
|
|
113
|
+
this.reportCommandCompletion(CommandName.DismissOverlay, commandId);
|
|
114
|
+
}
|
|
115
|
+
dismissAllOverlays(commandId) {
|
|
116
|
+
LayoutStore.dismissAllOverlays();
|
|
117
|
+
this.reportCommandCompletion(CommandName.DismissAllOverlays, commandId);
|
|
118
|
+
}
|
|
119
|
+
getLaunchArgs(commandId) {
|
|
120
|
+
this.reportCommandCompletion(CommandName.GetLaunchArgs, commandId);
|
|
121
|
+
}
|
|
122
|
+
getNavigationConstants() {
|
|
123
|
+
return Promise.resolve({
|
|
124
|
+
topBarHeight: 0,
|
|
125
|
+
backButtonId: 'RNN.back',
|
|
126
|
+
bottomTabsHeight: 0,
|
|
127
|
+
statusBarHeight: 0
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
getNavigationConstantsSync() {
|
|
131
|
+
return {
|
|
132
|
+
topBarHeight: 0,
|
|
133
|
+
backButtonId: 'RNN.back',
|
|
134
|
+
bottomTabsHeight: 0,
|
|
135
|
+
statusBarHeight: 0
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
reportCommandCompletion(commandName, commandId) {
|
|
139
|
+
events.invokeCommandCompleted({
|
|
140
|
+
commandName,
|
|
141
|
+
commandId,
|
|
142
|
+
completionTime: 0
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=NativeCommandsSender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LayoutStore","LayoutNodeFactory","events","_","CommandName","NativeCommandsSender","constructor","setRoot","commandId","layout","Promise","resolve","getVisibleLayout","componentDidDisappear","layoutNode","create","root","componentDidAppear","nodeId","reportCommandCompletion","SetRoot","setDefaultOptions","options","mergeOptions","componentId","push","onComponentId","stack","getLayoutById","getStack","applyOptions","data","Push","pop","_options","reject","poppedChild","last","children","invokeScreenPopped","Pop","popTo","PopTo","popToRoot","PopToRoot","setStackRoot","SetStackRoot","showModal","ShowModal","dismissModal","modal","getModalById","modalTopParent","getTopParent","invokeModalDismissed","componentName","name","modalsDismissed","DismissModal","dismissAllModals","DismissAllModals","showOverlay","ShowOverlay","dismissOverlay","DismissOverlay","dismissAllOverlays","DismissAllOverlays","getLaunchArgs","GetLaunchArgs","getNavigationConstants","topBarHeight","backButtonId","bottomTabsHeight","statusBarHeight","getNavigationConstantsSync","commandName","invokeCommandCompleted","completionTime"],"sourceRoot":"../../../../src","sources":["Mock/mocks/NativeCommandsSender.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,0BAAuB;AACnD,OAAOC,iBAAiB,MAAM,iCAA8B;AAE5D,SAASC,MAAM,QAAQ,0BAAuB;AAC9C,OAAOC,CAAC,MAAM,QAAQ;AAGtB,SAASC,WAAW,QAAQ,iCAA8B;AAE1D,OAAO,MAAMC,oBAAoB,CAAC;EAChCC,WAAWA,CAAA,EAAG,CAAC;EAEfC,OAAOA,CAACC,SAAiB,EAAEC,MAAqD,EAAE;IAChF,OAAO,IAAIC,OAAO,CAAEC,OAAO,IAAK;MAC9B,IAAIX,WAAW,CAACY,gBAAgB,CAAC,CAAC,EAAE;QAClCZ,WAAW,CAACY,gBAAgB,CAAC,CAAC,CAACC,qBAAqB,CAAC,CAAC;QACtDb,WAAW,CAACO,OAAO,CAAC,CAAC,CAAC,CAAC;MACzB;MAEA,MAAMO,UAAU,GAAGb,iBAAiB,CAACc,MAAM,CAACN,MAAM,CAACO,IAAI,CAAC;MACxDhB,WAAW,CAACO,OAAO,CAACO,UAAU,CAAC;MAC/BA,UAAU,CAACF,gBAAgB,CAAC,CAAC,CAACK,kBAAkB,CAAC,CAAC;MAClDN,OAAO,CAACF,MAAM,CAACO,IAAI,CAACE,MAAM,CAAC;MAC3B,IAAI,CAACC,uBAAuB,CAACf,WAAW,CAACgB,OAAO,EAAEZ,SAAS,CAAC;IAC9D,CAAC,CAAC;EACJ;EAEAa,iBAAiBA,CAACC,OAAe,EAAE;IACjCtB,WAAW,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EACJ;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
import { events } from "../Stores/EventsStore.js";
|
|
5
|
+
export class NativeEventsReceiver {
|
|
6
|
+
registerAppLaunchedListener(callback) {
|
|
7
|
+
callback();
|
|
8
|
+
return {
|
|
9
|
+
remove: () => {}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
registerComponentWillAppearListener(callback) {
|
|
13
|
+
events.componentWillAppear.push(callback);
|
|
14
|
+
return {
|
|
15
|
+
remove: () => {
|
|
16
|
+
_.remove(events.componentWillAppear, value => value === callback);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
registerComponentDidAppearListener(callback) {
|
|
21
|
+
events.componentDidAppear.push(callback);
|
|
22
|
+
return {
|
|
23
|
+
remove: () => {
|
|
24
|
+
_.remove(events.componentDidAppear, value => value === callback);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
registerComponentDidDisappearListener(callback) {
|
|
29
|
+
events.componentDidDisappear.push(callback);
|
|
30
|
+
return {
|
|
31
|
+
remove: () => {
|
|
32
|
+
_.remove(events.componentDidDisappear, value => value === callback);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
registerNavigationButtonPressedListener(callback) {
|
|
37
|
+
events.navigationButtonPressed.push(callback);
|
|
38
|
+
return {
|
|
39
|
+
remove: () => {
|
|
40
|
+
_.remove(events.navigationButtonPressed, value => value === callback);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
registerBottomTabPressedListener(callback) {
|
|
45
|
+
events.bottomTabPressed.push(callback);
|
|
46
|
+
return {
|
|
47
|
+
remove: () => {
|
|
48
|
+
_.remove(events.bottomTabPressed, value => value === callback);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
registerModalDismissedListener(callback) {
|
|
53
|
+
events.modalDismissed.push(callback);
|
|
54
|
+
return {
|
|
55
|
+
remove: () => {
|
|
56
|
+
_.remove(events.modalDismissed, value => value === callback);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
registerModalAttemptedToDismissListener(_callback) {
|
|
61
|
+
return {
|
|
62
|
+
remove: () => {}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
registerSearchBarUpdatedListener(_callback) {
|
|
66
|
+
return {
|
|
67
|
+
remove: () => {}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
registerSearchBarCancelPressedListener(_callback) {
|
|
71
|
+
return {
|
|
72
|
+
remove: () => {}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
registerPreviewCompletedListener(_callback) {
|
|
76
|
+
return {
|
|
77
|
+
remove: () => {}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
registerCommandCompletedListener(callback) {
|
|
81
|
+
events.commandCompleted.push(callback);
|
|
82
|
+
return {
|
|
83
|
+
remove: () => {}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
registerBottomTabSelectedListener(_callback) {
|
|
87
|
+
return {
|
|
88
|
+
remove: () => {}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
registerBottomTabLongPressedListener(_callback) {
|
|
92
|
+
return {
|
|
93
|
+
remove: () => {}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
registerScreenPoppedListener(callback) {
|
|
97
|
+
events.screenPopped.push(callback);
|
|
98
|
+
return {
|
|
99
|
+
remove: () => {}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=NativeEventsReceiver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_","events","NativeEventsReceiver","registerAppLaunchedListener","callback","remove","registerComponentWillAppearListener","componentWillAppear","push","value","registerComponentDidAppearListener","componentDidAppear","registerComponentDidDisappearListener","componentDidDisappear","registerNavigationButtonPressedListener","navigationButtonPressed","registerBottomTabPressedListener","bottomTabPressed","registerModalDismissedListener","modalDismissed","registerModalAttemptedToDismissListener","_callback","registerSearchBarUpdatedListener","registerSearchBarCancelPressedListener","registerPreviewCompletedListener","registerCommandCompletedListener","commandCompleted","registerBottomTabSelectedListener","registerBottomTabLongPressedListener","registerScreenPoppedListener","screenPopped"],"sourceRoot":"../../../../src","sources":["Mock/mocks/NativeEventsReceiver.ts"],"mappings":";;AAAA,OAAOA,CAAC,MAAM,QAAQ;AAoBtB,SAASC,MAAM,QAAQ,0BAAuB;AAE9C,OAAO,MAAMC,oBAAoB,CAAC;EACzBC,2BAA2BA,CAACC,QAAoB,EAAuB;IAC5EA,QAAQ,CAAC,CAAC;IACV,OAAO;MACLC,MAAM,EAAEA,CAAA,KAAM,CAAC;IACjB,CAAC;EACH;EAEOC,mCAAmCA,CACxCF,QAAmD,EAC9B;IACrBH,MAAM,CAACM,mBAAmB,CAACC,IAAI,CAACJ,QAAQ,CAAC;IACzC,OAAO;MACLC,MAAM,EAAEA,CAAA,KAAM;QACZL,CAAC,CAACK,MAAM,CAACJ,MAAM,CAACM,mBAAmB,EAAGE,KAAK,IAAKA,KAAK,KAAKL,QAAQ,CAAC;MACrE;IACF,CAAC;EACH;EAEOM,kCAAkCA,CACvCN,QAAkD,EAC7B;IACrBH,MAAM,CAACU,kBAAkB,CAACH,IAAI,CAACJ,QAAQ,CAAC;IACxC,OAAO;MACLC,MAAM,EAAEA,CAAA,KAAM;QACZL,CAAC,CAACK,MAAM,CAACJ,MAAM,CAACU,kBAAkB,EAAGF,KAAK,IAAKA,KAAK,KAAKL,QAAQ,CAAC;MACpE;IACF,CAAC;EACH;EAEOQ,qCAAqCA,CAC1CR,QAAqD,EAChC;IACrBH,MAAM,CAACY,qBAAqB,CAACL,IAAI,CAACJ,QAAQ,CAAC;IAC3C,OAAO;MACLC,MAAM,EAAEA,CAAA,K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ACH;EAEOmB,gCAAgCA,CACrCH,SAAiD,EAC5B;IACrB,OAAO;MACLhB,MAAM,EAAEA,CAAA,KAAM,CAAC;IACjB,CAAC;EACH;EAEOoB,gCAAgCA,CACrCrB,QAA+C,EAC1B;IACrBH,MAAM,CAACyB,gBAAgB,CAAClB,IAAI,CAACJ,QAAQ,CAAC;IACtC,OAAO;MACLC,MAAM,EAAEA,CAAA,KAAM,CAAC;IACjB,CAAC;EACH;EAEOsB,iCAAiCA,CACtCN,SAAiD,EAC5B;IACrB,OAAO;MACLhB,MAAM,EAAEA,CAAA,KAAM,CAAC;IACjB,CAAC;EACH;EAEOuB,oCAAoCA,CACzCP,SAAoD,EAC/B;IACrB,OAAO;MACLhB,MAAM,EAAEA,CAAA,KAAM,CAAC;IACjB,CAAC;EACH;EAEOwB,4BAA4BA,CACjCzB,QAA4C,EACvB;IACrBH,MAAM,CAAC6B,YAAY,CAACtB,IAAI,CAACJ,QAAQ,CAAC;IAClC,OAAO;MACLC,MAAM,EAAEA,CAAA,KAAM,CAAC;IACjB,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import isArray from 'lodash/isArray.js';
|
|
4
|
+
import { UniqueIdProvider } from "./adapters/UniqueIdProvider.js";
|
|
5
|
+
import { Store } from "./components/Store.js";
|
|
6
|
+
import { OptionProcessorsStore } from "./processors/OptionProcessorsStore.js";
|
|
7
|
+
import { ComponentRegistry } from "./components/ComponentRegistry.js";
|
|
8
|
+
import { Commands } from "./commands/Commands.js";
|
|
9
|
+
import { LayoutTreeParser } from "./commands/LayoutTreeParser.js";
|
|
10
|
+
import { LayoutTreeCrawler } from "./commands/LayoutTreeCrawler.js";
|
|
11
|
+
import { EventsRegistry } from "./events/EventsRegistry.js";
|
|
12
|
+
import { CommandsObserver } from "./events/CommandsObserver.js";
|
|
13
|
+
import { Constants } from "./adapters/Constants.js";
|
|
14
|
+
import { ComponentEventsObserver } from "./events/ComponentEventsObserver.js";
|
|
15
|
+
import { TouchablePreview } from "./adapters/TouchablePreview.js";
|
|
16
|
+
import { ComponentWrapper } from "./components/ComponentWrapper.js";
|
|
17
|
+
import { OptionsProcessor } from "./commands/OptionsProcessor.js";
|
|
18
|
+
import { ColorService } from "./adapters/ColorService.js";
|
|
19
|
+
import { AssetService } from "./adapters/AssetResolver.js";
|
|
20
|
+
import { Deprecations } from "./commands/Deprecations.js";
|
|
21
|
+
import { LayoutProcessor } from "./processors/LayoutProcessor.js";
|
|
22
|
+
import { LayoutProcessorsStore } from "./processors/LayoutProcessorsStore.js";
|
|
23
|
+
import { OptionsCrawler } from "./commands/OptionsCrawler.js";
|
|
24
|
+
import { LinkingHandler } from "./linking/LinkingHandler.js";
|
|
25
|
+
export class NavigationRoot {
|
|
26
|
+
TouchablePreview = TouchablePreview;
|
|
27
|
+
constructor(nativeCommandsSender, nativeEventsReceiver, appRegistryService) {
|
|
28
|
+
this.nativeCommandsSender = nativeCommandsSender;
|
|
29
|
+
this.nativeEventsReceiver = nativeEventsReceiver;
|
|
30
|
+
this.appRegistryService = appRegistryService;
|
|
31
|
+
this.componentWrapper = new ComponentWrapper();
|
|
32
|
+
this.store = new Store();
|
|
33
|
+
this.optionProcessorsStore = new OptionProcessorsStore();
|
|
34
|
+
this.layoutProcessorsStore = new LayoutProcessorsStore();
|
|
35
|
+
this.uniqueIdProvider = new UniqueIdProvider();
|
|
36
|
+
this.componentEventsObserver = new ComponentEventsObserver(this.nativeEventsReceiver, this.store);
|
|
37
|
+
this.componentRegistry = new ComponentRegistry(this.store, this.componentEventsObserver, this.componentWrapper, this.appRegistryService);
|
|
38
|
+
this.layoutTreeParser = new LayoutTreeParser(this.uniqueIdProvider);
|
|
39
|
+
const optionsProcessor = new OptionsProcessor(this.store, this.uniqueIdProvider, this.optionProcessorsStore, new ColorService(), new AssetService(), new Deprecations());
|
|
40
|
+
const layoutProcessor = new LayoutProcessor(this.layoutProcessorsStore);
|
|
41
|
+
this.layoutTreeCrawler = new LayoutTreeCrawler(this.store, optionsProcessor);
|
|
42
|
+
this.commandsObserver = new CommandsObserver(this.uniqueIdProvider);
|
|
43
|
+
this.optionsCrawler = new OptionsCrawler(this.store, this.uniqueIdProvider);
|
|
44
|
+
this.commands = new Commands(this.store, this.nativeCommandsSender, this.layoutTreeParser, this.layoutTreeCrawler, this.commandsObserver, this.uniqueIdProvider, optionsProcessor, layoutProcessor, this.optionsCrawler);
|
|
45
|
+
this.eventsRegistry = new EventsRegistry(this.nativeEventsReceiver, this.commandsObserver, this.componentEventsObserver);
|
|
46
|
+
this.linkingHandler = new LinkingHandler(layout => this.commands.showModal(layout));
|
|
47
|
+
this.componentEventsObserver.registerOnceForAllComponentEvents();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Every navigation component in your app must be registered with a unique name.
|
|
52
|
+
* The component itself is a traditional React component extending React.Component.
|
|
53
|
+
*/
|
|
54
|
+
registerComponent(componentName, componentProvider, concreteComponentProvider) {
|
|
55
|
+
return this.componentRegistry.registerComponent(componentName, componentProvider, concreteComponentProvider);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Adds an option processor which allows option interpolation by optionPath.
|
|
60
|
+
*/
|
|
61
|
+
addOptionProcessor(optionPath, processor) {
|
|
62
|
+
return this.optionProcessorsStore.addProcessor(optionPath, processor);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Method to be invoked when a layout is processed and is about to be created. This can be used to change layout options or even inject props to components.
|
|
67
|
+
*/
|
|
68
|
+
addLayoutProcessor(processor) {
|
|
69
|
+
return this.layoutProcessorsStore.addProcessor(processor);
|
|
70
|
+
}
|
|
71
|
+
setLazyComponentRegistrator(lazyRegistratorFn) {
|
|
72
|
+
this.store.setLazyComponentRegistrator(lazyRegistratorFn);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Utility helper function like registerComponent,
|
|
77
|
+
* wraps the provided component with a react-redux Provider with the passed redux store
|
|
78
|
+
* @deprecated
|
|
79
|
+
*/
|
|
80
|
+
registerComponentWithRedux(componentName, getComponentClassFunc, ReduxProvider, reduxStore) {
|
|
81
|
+
console.warn('registerComponentWithRedux is deprecated and will be removed in the next version! Please use Navigation.registerComponent instead. Visit the docs for more information https://wix.github.io/react-native-navigation/api/component#registering-a-component-wrapped-with-providers');
|
|
82
|
+
return this.componentRegistry.registerComponent(componentName, getComponentClassFunc, undefined, ReduxProvider, reduxStore);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Reset the app to a new layout
|
|
87
|
+
*/
|
|
88
|
+
setRoot(layout) {
|
|
89
|
+
const result = this.commands.setRoot(layout);
|
|
90
|
+
result.then(() => this.linkingHandler.setRootReady()).catch(() => {});
|
|
91
|
+
return result;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Set default options to all screens. Useful for declaring a consistent style across the app.
|
|
96
|
+
*/
|
|
97
|
+
setDefaultOptions(options) {
|
|
98
|
+
this.commands.setDefaultOptions(options);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Change a component's navigation options
|
|
103
|
+
*/
|
|
104
|
+
mergeOptions(componentId, options) {
|
|
105
|
+
this.commands.mergeOptions(componentId, options);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Update a mounted component's props
|
|
110
|
+
*/
|
|
111
|
+
updateProps(componentId, props, callback) {
|
|
112
|
+
this.commands.updateProps(componentId, props, callback);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Show a screen as a modal.
|
|
117
|
+
*/
|
|
118
|
+
showModal(layout) {
|
|
119
|
+
return this.commands.showModal(layout);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Dismiss a modal by componentId. The dismissed modal can be anywhere in the stack.
|
|
124
|
+
*/
|
|
125
|
+
dismissModal(componentId, mergeOptions) {
|
|
126
|
+
return this.commands.dismissModal(componentId, mergeOptions);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Dismiss all Modals
|
|
131
|
+
*/
|
|
132
|
+
dismissAllModals(mergeOptions) {
|
|
133
|
+
return this.commands.dismissAllModals(mergeOptions);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Push a new layout into this screen's navigation stack.
|
|
138
|
+
*/
|
|
139
|
+
push(componentId, layout) {
|
|
140
|
+
return this.commands.push(componentId, layout);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Pop a component from the stack, regardless of it's position.
|
|
145
|
+
*/
|
|
146
|
+
pop(componentId, mergeOptions) {
|
|
147
|
+
return this.commands.pop(componentId, mergeOptions);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Pop the stack to a given component
|
|
152
|
+
*/
|
|
153
|
+
popTo(componentId, mergeOptions) {
|
|
154
|
+
return this.commands.popTo(componentId, mergeOptions);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Pop the component's stack to root.
|
|
159
|
+
*/
|
|
160
|
+
popToRoot(componentId, mergeOptions) {
|
|
161
|
+
return this.commands.popToRoot(componentId, mergeOptions);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Sets new root component to stack.
|
|
166
|
+
*/
|
|
167
|
+
setStackRoot(componentId, layout) {
|
|
168
|
+
const children = isArray(layout) ? layout : [layout];
|
|
169
|
+
return this.commands.setStackRoot(componentId, children);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Show overlay on top of the entire app
|
|
174
|
+
*/
|
|
175
|
+
showOverlay(layout) {
|
|
176
|
+
return this.commands.showOverlay(layout);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* dismiss overlay by componentId
|
|
181
|
+
*/
|
|
182
|
+
dismissOverlay(componentId) {
|
|
183
|
+
return this.commands.dismissOverlay(componentId);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* dismiss all overlays
|
|
188
|
+
*/
|
|
189
|
+
dismissAllOverlays() {
|
|
190
|
+
return this.commands.dismissAllOverlays();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Resolves arguments passed on launch
|
|
195
|
+
*/
|
|
196
|
+
getLaunchArgs() {
|
|
197
|
+
return this.commands.getLaunchArgs();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Configure deep link handling. Maps URL prefixes and path patterns to
|
|
202
|
+
* RNN components. By default each matched link is presented as a modal
|
|
203
|
+
* (wrapped in a stack so a topBar close button can be configured); supply
|
|
204
|
+
* `getModal` to customize the modal layout or `onLink` to bypass the
|
|
205
|
+
* default behavior entirely.
|
|
206
|
+
*/
|
|
207
|
+
setLinking(config) {
|
|
208
|
+
this.linkingHandler.configure(config);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Manually run a URL through the deep link pipeline as if it had been
|
|
213
|
+
* delivered by the OS. Useful for URLs received from push notifications
|
|
214
|
+
* or other non-`Linking` sources.
|
|
215
|
+
*/
|
|
216
|
+
handleDeepLink(url) {
|
|
217
|
+
this.linkingHandler.handleURL(url);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Signal that the app is ready to process deep links (e.g. after the
|
|
222
|
+
* user has authenticated). When set to `true`, any links that were
|
|
223
|
+
* queued while not ready are replayed in order.
|
|
224
|
+
*/
|
|
225
|
+
setLinkingReady(ready) {
|
|
226
|
+
this.linkingHandler.setLinkingReady(ready);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Obtain the events registry instance
|
|
231
|
+
*/
|
|
232
|
+
events() {
|
|
233
|
+
return this.eventsRegistry;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Constants coming from native
|
|
238
|
+
*/
|
|
239
|
+
async constants() {
|
|
240
|
+
return await Constants.get(this.nativeCommandsSender);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Constants coming from native (synchronized call)
|
|
245
|
+
*/
|
|
246
|
+
constantsSync() {
|
|
247
|
+
return Constants.getSync(this.nativeCommandsSender);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
//# sourceMappingURL=Navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isArray","UniqueIdProvider","Store","OptionProcessorsStore","ComponentRegistry","Commands","LayoutTreeParser","LayoutTreeCrawler","EventsRegistry","CommandsObserver","Constants","ComponentEventsObserver","TouchablePreview","ComponentWrapper","OptionsProcessor","ColorService","AssetService","Deprecations","LayoutProcessor","LayoutProcessorsStore","OptionsCrawler","LinkingHandler","NavigationRoot","constructor","nativeCommandsSender","nativeEventsReceiver","appRegistryService","componentWrapper","store","optionProcessorsStore","layoutProcessorsStore","uniqueIdProvider","componentEventsObserver","componentRegistry","layoutTreeParser","optionsProcessor","layoutProcessor","layoutTreeCrawler","commandsObserver","optionsCrawler","commands","eventsRegistry","linkingHandler","layout","showModal","registerOnceForAllComponentEvents","registerComponent","componentName","componentProvider","concreteComponentProvider","addOptionProcessor","optionPath","processor","addProcessor","addLayoutProcessor","setLazyComponentRegistrator","lazyRegistratorFn","registerComponentWithRedux","getComponentClassFunc","ReduxProvider","reduxStore","console","warn","undefined","setRoot","result","then","setRootReady","catch","setDefaultOptions","options","mergeOptions","componentId","updateProps","props","callback","dismissModal","dismissAllModals","push","pop","popTo","popToRoot","setStackRoot","children","showOverlay","dismissOverlay","dismissAllOverlays","getLaunchArgs","setLinking","config","configure","handleDeepLink","url","handleURL","setLinking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