react-native-navigation 8.7.4 → 8.7.5-snapshot.2301
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/android/ARCHITECTURE.md +458 -0
- package/android/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/IconBackgroundDrawable.kt +20 -17
- package/ios/ARCHITECTURE.md +416 -0
- package/ios/BottomTabsAfterInitialTabAttacher.mm +31 -0
- package/ios/RNNNavigationOptions.h +1 -0
- package/ios/RNNNavigationOptions.mm +4 -0
- package/ios/RNNOverlayManager.mm +4 -0
- package/ios/RNNScrollEdgeAppearanceOptions.h +2 -0
- package/ios/RNNScrollEdgeAppearanceOptions.mm +2 -0
- package/ios/ScreenAnimationController.mm +29 -24
- package/ios/StackControllerDelegate.mm +21 -3
- package/ios/TopBarAppearancePresenter.mm +35 -0
- package/lib/module/ARCHITECTURE.md +301 -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/interfaces/Options.js.map +1 -1
- package/lib/typescript/Mock/Application.d.ts.map +1 -1
- package/lib/typescript/Mock/ComponentProps.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/BottomTabs.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/ComponentScreen.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/LayoutComponent.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Modals.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/NavigationButton.d.ts +1 -1
- package/lib/typescript/Mock/Components/NavigationButton.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Overlays.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/SideMenu.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/Stack.d.ts.map +1 -1
- package/lib/typescript/Mock/Components/TopBar.d.ts +1 -1
- package/lib/typescript/Mock/Components/TopBar.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/BottomTabsNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/ComponentNode.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/ComponentNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/LayoutNodeFactory.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/Node.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/Node.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/ParentNode.d.ts +2 -2
- package/lib/typescript/Mock/Layouts/ParentNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts +1 -1
- package/lib/typescript/Mock/Layouts/SideMenu.d.ts.map +1 -1
- package/lib/typescript/Mock/Layouts/StackNode.d.ts.map +1 -1
- package/lib/typescript/Mock/Stores/EventsStore.d.ts +3 -3
- package/lib/typescript/Mock/Stores/EventsStore.d.ts.map +1 -1
- package/lib/typescript/Mock/Stores/LayoutStore.d.ts.map +1 -1
- package/lib/typescript/Mock/actions/layoutActions.d.ts.map +1 -1
- package/lib/typescript/Mock/connect.d.ts.map +1 -1
- package/lib/typescript/Mock/constants.d.ts.map +1 -1
- package/lib/typescript/Mock/index.d.ts.map +1 -1
- package/lib/typescript/Mock/mocks/AppRegistryService.d.ts.map +1 -1
- package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts +2 -2
- package/lib/typescript/Mock/mocks/NativeCommandsSender.d.ts.map +1 -1
- package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts +2 -2
- package/lib/typescript/Mock/mocks/NativeEventsReceiver.d.ts.map +1 -1
- package/lib/typescript/Navigation.d.ts.map +1 -0
- package/lib/typescript/NavigationDelegate.d.ts.map +1 -0
- package/lib/typescript/adapters/AppRegistryService.d.ts.map +1 -0
- package/lib/typescript/adapters/AssetResolver.d.ts.map +1 -0
- package/lib/typescript/adapters/ColorService.d.ts.map +1 -0
- package/lib/typescript/adapters/Constants.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeCommandsSender.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeEventsReceiver.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeEventsReceiver.mock.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeRNNTurboEventEmitter.d.ts.map +1 -0
- package/lib/typescript/adapters/NativeRNNTurboModule.d.ts.map +1 -0
- package/lib/typescript/adapters/TouchablePreview.d.ts.map +1 -0
- package/lib/typescript/adapters/UniqueIdProvider.d.ts.map +1 -0
- package/lib/typescript/commands/Commands.d.ts.map +1 -0
- package/lib/typescript/commands/Commands.test.d.ts.map +1 -0
- package/lib/typescript/commands/Deprecations.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeCrawler.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeCrawler.test.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeParser.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutTreeParser.test.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutType.d.ts.map +1 -0
- package/lib/typescript/commands/LayoutType.test.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsCrawler.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsCrawler.test.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsProcessor.d.ts.map +1 -0
- package/lib/typescript/commands/OptionsProcessor.test.d.ts.map +1 -0
- package/lib/typescript/components/ComponentRegistry.d.ts.map +1 -0
- package/lib/typescript/components/ComponentRegistry.test.d.ts.map +1 -0
- package/lib/typescript/components/ComponentWrapper.d.ts.map +1 -0
- package/lib/typescript/components/ComponentWrapper.test.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/Store.d.ts.map +1 -0
- package/lib/typescript/components/Store.test.d.ts.map +1 -0
- package/lib/typescript/events/CommandsObserver.d.ts.map +1 -0
- package/lib/typescript/events/CommandsObserver.test.d.ts.map +1 -0
- package/lib/typescript/events/ComponentEventsObserver.d.ts.map +1 -0
- package/lib/typescript/events/ComponentEventsObserver.test.d.ts.map +1 -0
- package/lib/typescript/events/EventsRegistry.d.ts.map +1 -0
- package/lib/typescript/events/EventsRegistry.test.d.ts.map +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/interfaces/CommandName.d.ts.map +1 -0
- package/lib/typescript/interfaces/ComponentEvents.d.ts.map +1 -0
- package/lib/typescript/interfaces/EventSubscription.d.ts.map +1 -0
- package/lib/typescript/interfaces/Events.d.ts.map +1 -0
- package/lib/typescript/interfaces/Layout.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponent.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponentListener.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationComponentProps.d.ts.map +1 -0
- package/lib/typescript/interfaces/NavigationFunctionComponent.d.ts.map +1 -0
- package/lib/typescript/{src/interfaces → interfaces}/Options.d.ts +29 -0
- package/lib/typescript/interfaces/Options.d.ts.map +1 -0
- package/lib/typescript/interfaces/ProcessorSubscription.d.ts.map +1 -0
- package/lib/typescript/interfaces/Processors.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessor.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessor.test.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/processors/LayoutProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/processors/OptionProcessorsStore.d.ts.map +1 -0
- package/lib/typescript/processors/OptionProcessorsStore.test.d.ts.map +1 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/package.json +12 -6
- package/src/ARCHITECTURE.md +301 -0
- package/src/Mock/Application.tsx +30 -0
- package/src/Mock/ComponentProps.tsx +6 -0
- package/src/Mock/Components/BottomTabs.tsx +14 -0
- package/src/Mock/Components/ComponentScreen.tsx +107 -0
- package/src/Mock/Components/LayoutComponent.tsx +37 -0
- package/src/Mock/Components/Modals.tsx +22 -0
- package/src/Mock/Components/NavigationButton.tsx +86 -0
- package/src/Mock/Components/Overlays.tsx +23 -0
- package/src/Mock/Components/SideMenu.tsx +27 -0
- package/src/Mock/Components/Stack.tsx +16 -0
- package/src/Mock/Components/TopBar.tsx +96 -0
- package/src/Mock/Layouts/BottomTabsNode.ts +34 -0
- package/src/Mock/Layouts/ComponentNode.ts +124 -0
- package/src/Mock/Layouts/LayoutNodeFactory.ts +31 -0
- package/src/Mock/Layouts/Node.ts +35 -0
- package/src/Mock/Layouts/ParentNode.ts +86 -0
- package/src/Mock/Layouts/SideMenu.ts +87 -0
- package/src/Mock/Layouts/StackNode.ts +11 -0
- package/src/Mock/Stores/EventsStore.ts +68 -0
- package/src/Mock/Stores/LayoutStore.ts +200 -0
- package/src/Mock/actions/layoutActions.ts +21 -0
- package/src/Mock/connect.ts +6 -0
- package/src/Mock/constants.ts +2 -0
- package/src/Mock/index.ts +16 -0
- package/src/Mock/mocks/AppRegistryService.ts +5 -0
- package/src/Mock/mocks/NativeCommandsSender.tsx +168 -0
- package/src/Mock/mocks/NativeEventsReceiver.ts +162 -0
- package/src/interfaces/Options.ts +30 -0
- package/lib/typescript/src/Navigation.d.ts.map +0 -1
- package/lib/typescript/src/NavigationDelegate.d.ts.map +0 -1
- package/lib/typescript/src/adapters/AppRegistryService.d.ts.map +0 -1
- package/lib/typescript/src/adapters/AssetResolver.d.ts.map +0 -1
- package/lib/typescript/src/adapters/ColorService.d.ts.map +0 -1
- package/lib/typescript/src/adapters/Constants.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeCommandsSender.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeEventsReceiver.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeEventsReceiver.mock.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeRNNTurboEventEmitter.d.ts.map +0 -1
- package/lib/typescript/src/adapters/NativeRNNTurboModule.d.ts.map +0 -1
- package/lib/typescript/src/adapters/TouchablePreview.d.ts.map +0 -1
- package/lib/typescript/src/adapters/UniqueIdProvider.d.ts.map +0 -1
- package/lib/typescript/src/commands/Commands.d.ts.map +0 -1
- package/lib/typescript/src/commands/Commands.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/Deprecations.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeCrawler.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeCrawler.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeParser.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutTreeParser.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutType.d.ts.map +0 -1
- package/lib/typescript/src/commands/LayoutType.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsCrawler.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsCrawler.test.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsProcessor.d.ts.map +0 -1
- package/lib/typescript/src/commands/OptionsProcessor.test.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentRegistry.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentRegistry.test.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentWrapper.d.ts.map +0 -1
- package/lib/typescript/src/components/ComponentWrapper.test.d.ts.map +0 -1
- package/lib/typescript/src/components/Modal.d.ts.map +0 -1
- package/lib/typescript/src/components/Store.d.ts.map +0 -1
- package/lib/typescript/src/components/Store.test.d.ts.map +0 -1
- package/lib/typescript/src/events/CommandsObserver.d.ts.map +0 -1
- package/lib/typescript/src/events/CommandsObserver.test.d.ts.map +0 -1
- package/lib/typescript/src/events/ComponentEventsObserver.d.ts.map +0 -1
- package/lib/typescript/src/events/ComponentEventsObserver.test.d.ts.map +0 -1
- package/lib/typescript/src/events/EventsRegistry.d.ts.map +0 -1
- package/lib/typescript/src/events/EventsRegistry.test.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/CommandName.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/ComponentEvents.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/EventSubscription.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Events.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Layout.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationComponent.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationComponentListener.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationComponentProps.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/NavigationFunctionComponent.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Options.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/ProcessorSubscription.d.ts.map +0 -1
- package/lib/typescript/src/interfaces/Processors.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessor.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessor.test.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessorsStore.d.ts.map +0 -1
- package/lib/typescript/src/processors/LayoutProcessorsStore.test.d.ts.map +0 -1
- package/lib/typescript/src/processors/OptionProcessorsStore.d.ts.map +0 -1
- package/lib/typescript/src/processors/OptionProcessorsStore.test.d.ts.map +0 -1
- package/lib/typescript/src/types.d.ts.map +0 -1
- /package/lib/typescript/{src/Navigation.d.ts → Navigation.d.ts} +0 -0
- /package/lib/typescript/{src/NavigationDelegate.d.ts → NavigationDelegate.d.ts} +0 -0
- /package/lib/typescript/{src/adapters → adapters}/AppRegistryService.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/AssetResolver.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/ColorService.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/Constants.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeCommandsSender.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeEventsReceiver.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeEventsReceiver.mock.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeRNNTurboEventEmitter.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/NativeRNNTurboModule.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/TouchablePreview.d.ts +0 -0
- /package/lib/typescript/{src/adapters → adapters}/UniqueIdProvider.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/Commands.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/Commands.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/Deprecations.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeCrawler.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeCrawler.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeParser.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutTreeParser.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutType.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/LayoutType.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsCrawler.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsCrawler.test.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsProcessor.d.ts +0 -0
- /package/lib/typescript/{src/commands → commands}/OptionsProcessor.test.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentRegistry.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentRegistry.test.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentWrapper.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/ComponentWrapper.test.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/Modal.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/Store.d.ts +0 -0
- /package/lib/typescript/{src/components → components}/Store.test.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/CommandsObserver.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/CommandsObserver.test.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/ComponentEventsObserver.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/ComponentEventsObserver.test.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/EventsRegistry.d.ts +0 -0
- /package/lib/typescript/{src/events → events}/EventsRegistry.test.d.ts +0 -0
- /package/lib/typescript/{src/index.d.ts → index.d.ts} +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/CommandName.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/ComponentEvents.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/EventSubscription.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Events.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Layout.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationComponent.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationComponentListener.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationComponentProps.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/NavigationFunctionComponent.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/ProcessorSubscription.d.ts +0 -0
- /package/lib/typescript/{src/interfaces → interfaces}/Processors.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessor.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessor.test.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessorsStore.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/LayoutProcessorsStore.test.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/OptionProcessorsStore.d.ts +0 -0
- /package/lib/typescript/{src/processors → processors}/OptionProcessorsStore.test.d.ts +0 -0
- /package/lib/typescript/{src/types.d.ts → types.d.ts} +0 -0
|
@@ -19,8 +19,15 @@
|
|
|
19
19
|
[self setBackgroundColor:[options.background.color withDefault:nil]];
|
|
20
20
|
[self setScrollEdgeAppearanceColor:[options.scrollEdgeAppearance.background.color
|
|
21
21
|
withDefault:nil]];
|
|
22
|
+
|
|
22
23
|
[self setTitleAttributes:options.title];
|
|
23
24
|
[self setLargeTitleAttributes:options.largeTitle];
|
|
25
|
+
if (options.scrollEdgeAppearance.title.hasValue) {
|
|
26
|
+
[self setScrollEdgeTitleAttributes:options.scrollEdgeAppearance.title];
|
|
27
|
+
} else {
|
|
28
|
+
[self setScrollEdgeTitleAttributes:options.title];
|
|
29
|
+
}
|
|
30
|
+
|
|
24
31
|
[self setBorderColor:[options.borderColor withDefault:nil]];
|
|
25
32
|
[self showBorder:![options.noBorder withDefault:NO]];
|
|
26
33
|
[self setBackButtonOptions:options.backButton];
|
|
@@ -48,6 +55,12 @@
|
|
|
48
55
|
if (options.scrollEdgeAppearance.noBorder.hasValue) {
|
|
49
56
|
[self showScrollEdgeBorder:!options.scrollEdgeAppearance.noBorder.get];
|
|
50
57
|
}
|
|
58
|
+
|
|
59
|
+
if (options.scrollEdgeAppearance.title.hasValue) {
|
|
60
|
+
[self setScrollEdgeTitleAttributes:defaultOptions.scrollEdgeAppearance.title];
|
|
61
|
+
} else if (options.title.hasValue && !defaultOptions.scrollEdgeAppearance.title.hasValue) {
|
|
62
|
+
[self setScrollEdgeTitleAttributes:defaultOptions.title];
|
|
63
|
+
}
|
|
51
64
|
}
|
|
52
65
|
|
|
53
66
|
- (void)setTranslucent:(BOOL)translucent {
|
|
@@ -155,6 +168,28 @@
|
|
|
155
168
|
}
|
|
156
169
|
|
|
157
170
|
self.getAppearance.titleTextAttributes = titleTextAttributes;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
- (void)setScrollEdgeTitleAttributes:(RNNTitleOptions *)titleOptions {
|
|
174
|
+
NSString *fontFamily = [titleOptions.fontFamily withDefault:nil];
|
|
175
|
+
NSString *fontWeight = [titleOptions.fontWeight withDefault:nil];
|
|
176
|
+
NSNumber *fontSize = [titleOptions.fontSize withDefault:nil];
|
|
177
|
+
UIColor *fontColor = [titleOptions.color withDefault:nil];
|
|
178
|
+
|
|
179
|
+
NSDictionary *titleTextAttributes =
|
|
180
|
+
[RNNFontAttributesCreator createFromDictionary:self.getScrollEdgeAppearance.titleTextAttributes
|
|
181
|
+
fontFamily:fontFamily
|
|
182
|
+
fontSize:fontSize
|
|
183
|
+
fontWeight:fontWeight
|
|
184
|
+
color:fontColor
|
|
185
|
+
centered:YES];
|
|
186
|
+
|
|
187
|
+
id attrib = titleTextAttributes[NSParagraphStyleAttributeName];
|
|
188
|
+
if ([attrib isKindOfClass:[NSMutableParagraphStyle class]]) {
|
|
189
|
+
((NSMutableParagraphStyle *)titleTextAttributes[NSParagraphStyleAttributeName]).lineBreakMode =
|
|
190
|
+
NSLineBreakByTruncatingTail;
|
|
191
|
+
}
|
|
192
|
+
|
|
158
193
|
self.getScrollEdgeAppearance.titleTextAttributes = titleTextAttributes;
|
|
159
194
|
}
|
|
160
195
|
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# JavaScript/TypeScript Architecture
|
|
2
|
+
|
|
3
|
+
The JavaScript layer provides the public API and orchestrates communication between React components and native navigation implementations.
|
|
4
|
+
|
|
5
|
+
## Entry Point
|
|
6
|
+
|
|
7
|
+
`index.ts` exports the `Navigation` singleton (a `NavigationDelegate` instance) along with re-exports from `Modal`, `EventsRegistry`, `Constants`, and all interfaces. Applications use `Navigation.*` for commands and `Navigation.events().*` for event subscriptions.
|
|
8
|
+
|
|
9
|
+
## Module Structure
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
src/
|
|
13
|
+
├── index.ts # Main entry point, exports Navigation singleton
|
|
14
|
+
├── Navigation.ts # NavigationRoot - core orchestrator
|
|
15
|
+
├── NavigationDelegate.ts # Public API facade
|
|
16
|
+
├── adapters/ # Native bridge layer
|
|
17
|
+
├── commands/ # Command processing
|
|
18
|
+
├── components/ # React component management
|
|
19
|
+
├── events/ # Event system
|
|
20
|
+
├── interfaces/ # TypeScript type definitions
|
|
21
|
+
└── processors/ # Extensibility hooks
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Core Classes
|
|
25
|
+
|
|
26
|
+
### NavigationDelegate (Public API)
|
|
27
|
+
**File**: `NavigationDelegate.ts`
|
|
28
|
+
|
|
29
|
+
Facade providing the public `Navigation` API. All methods proxy to `NavigationRoot`.
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
// Usage
|
|
33
|
+
import { Navigation } from 'react-native-navigation';
|
|
34
|
+
Navigation.setRoot({ root: { stack: { children: [...] } } });
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### NavigationRoot (Core Orchestrator)
|
|
38
|
+
**File**: `Navigation.ts`
|
|
39
|
+
|
|
40
|
+
Coordinates all subsystems. Constructed with dependencies:
|
|
41
|
+
- `NativeCommandsSender` - sends commands to native
|
|
42
|
+
- `NativeEventsReceiver` - receives events from native
|
|
43
|
+
- `AppRegistryService` - manages React Native component registry
|
|
44
|
+
|
|
45
|
+
Initializes and coordinates:
|
|
46
|
+
- `Store` - component instance & props storage
|
|
47
|
+
- `ComponentRegistry` - component registration
|
|
48
|
+
- `LayoutTreeParser` - converts layouts to internal nodes
|
|
49
|
+
- `LayoutTreeCrawler` - processes layout trees
|
|
50
|
+
- `Commands` - command execution
|
|
51
|
+
- `EventsRegistry` - event subscriptions
|
|
52
|
+
- `OptionsProcessor` - option processing
|
|
53
|
+
- `LayoutProcessor` - layout transformations
|
|
54
|
+
|
|
55
|
+
## Adapters Layer
|
|
56
|
+
|
|
57
|
+
Bridge between JavaScript and native/React Native APIs.
|
|
58
|
+
|
|
59
|
+
| Adapter | Purpose |
|
|
60
|
+
|---------|---------|
|
|
61
|
+
| `NativeCommandsSender` | Wraps TurboModule for command dispatch |
|
|
62
|
+
| `NativeEventsReceiver` | Wraps NativeEventEmitter for events |
|
|
63
|
+
| `NativeRNNTurboModule` | TurboModule spec interface |
|
|
64
|
+
| `NativeRNNTurboEventEmitter` | TurboModule event emitter spec |
|
|
65
|
+
| `UniqueIdProvider` | Generates unique component/command IDs |
|
|
66
|
+
| `ColorService` | Converts colors to native format |
|
|
67
|
+
| `AssetResolver` | Resolves require() image assets (class: AssetService) |
|
|
68
|
+
| `AppRegistryService` | Registers components with React Native |
|
|
69
|
+
| `Constants` | Platform dimension constants |
|
|
70
|
+
| `TouchablePreview` | 3D Touch / Haptic preview handling |
|
|
71
|
+
|
|
72
|
+
## Commands Layer
|
|
73
|
+
|
|
74
|
+
### Commands Class
|
|
75
|
+
**File**: `commands/Commands.ts`
|
|
76
|
+
|
|
77
|
+
Central command dispatcher. Each navigation command:
|
|
78
|
+
1. Validates input
|
|
79
|
+
2. Processes layout through pipeline
|
|
80
|
+
3. Sends to native via adapter
|
|
81
|
+
4. Returns promise with result
|
|
82
|
+
|
|
83
|
+
### Processing Pipeline
|
|
84
|
+
|
|
85
|
+
The pipeline executes in this exact order:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Input Layout (from API)
|
|
89
|
+
↓
|
|
90
|
+
1. OptionsCrawler.crawl() # Extract static options from component classes
|
|
91
|
+
↓
|
|
92
|
+
2. LayoutProcessor.process() # Apply registered layout processors
|
|
93
|
+
↓
|
|
94
|
+
3. LayoutTreeParser.parse() # Convert to internal LayoutNode tree
|
|
95
|
+
↓
|
|
96
|
+
4. LayoutTreeCrawler.crawl() # Process options, save props to Store
|
|
97
|
+
↓
|
|
98
|
+
5. OptionsProcessor (during crawl) # Resolve colors, assets, custom processors
|
|
99
|
+
↓
|
|
100
|
+
6. NativeCommandsSender # Send to native module
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### LayoutNode (Internal Tree)
|
|
104
|
+
```typescript
|
|
105
|
+
interface LayoutNode {
|
|
106
|
+
id: string; // Unique identifier
|
|
107
|
+
type: LayoutType; // Component|Stack|BottomTabs|etc
|
|
108
|
+
data: {
|
|
109
|
+
name?: string; // Component name
|
|
110
|
+
options?: any; // Processed options
|
|
111
|
+
passProps?: any; // Component props (cleared before native)
|
|
112
|
+
};
|
|
113
|
+
children: LayoutNode[];
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### LayoutType Enum
|
|
118
|
+
```typescript
|
|
119
|
+
enum LayoutType {
|
|
120
|
+
Component = 'Component',
|
|
121
|
+
Stack = 'Stack',
|
|
122
|
+
BottomTabs = 'BottomTabs',
|
|
123
|
+
SideMenuRoot = 'SideMenuRoot',
|
|
124
|
+
SideMenuCenter = 'SideMenuCenter',
|
|
125
|
+
SideMenuLeft = 'SideMenuLeft',
|
|
126
|
+
SideMenuRight = 'SideMenuRight',
|
|
127
|
+
TopTabs = 'TopTabs',
|
|
128
|
+
ExternalComponent = 'ExternalComponent',
|
|
129
|
+
SplitView = 'SplitView',
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Components Layer
|
|
134
|
+
|
|
135
|
+
### ComponentRegistry
|
|
136
|
+
**File**: `components/ComponentRegistry.ts`
|
|
137
|
+
|
|
138
|
+
Manages React component registration and wrapping.
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
Navigation.registerComponent('ScreenName', () => MyComponent);
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### ComponentWrapper
|
|
145
|
+
**File**: `components/ComponentWrapper.tsx`
|
|
146
|
+
|
|
147
|
+
Higher-order component that:
|
|
148
|
+
- Wraps original component with lifecycle management
|
|
149
|
+
- Stores instance in `Store` for event dispatch
|
|
150
|
+
- Injects `componentId` and `componentName` props
|
|
151
|
+
|
|
152
|
+
### Store
|
|
153
|
+
**File**: `components/Store.ts`
|
|
154
|
+
|
|
155
|
+
Centralized storage for:
|
|
156
|
+
- `componentsByName` - registered component providers
|
|
157
|
+
- `componentsInstancesById` - mounted component instances
|
|
158
|
+
- `propsById` - static props by component ID
|
|
159
|
+
- `pendingPropsById` - props awaiting component mount
|
|
160
|
+
- `wrappedComponents` - cached wrapped components
|
|
161
|
+
- `lazyRegistratorFn` - function for lazy component registration
|
|
162
|
+
|
|
163
|
+
## Events Layer
|
|
164
|
+
|
|
165
|
+
### EventsRegistry
|
|
166
|
+
**File**: `events/EventsRegistry.ts`
|
|
167
|
+
|
|
168
|
+
Public API for event subscriptions:
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
Navigation.events().registerComponentDidAppearListener(({ componentId }) => {});
|
|
172
|
+
Navigation.events().registerCommandCompletedListener(({ commandId }) => {});
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### ComponentEventsObserver
|
|
176
|
+
**File**: `events/ComponentEventsObserver.ts`
|
|
177
|
+
|
|
178
|
+
Dispatches events to component instance methods:
|
|
179
|
+
- `componentWillAppear()`
|
|
180
|
+
- `componentDidAppear()`
|
|
181
|
+
- `componentDidDisappear()`
|
|
182
|
+
- `navigationButtonPressed()`
|
|
183
|
+
- `screenPopped()`
|
|
184
|
+
|
|
185
|
+
### CommandsObserver
|
|
186
|
+
**File**: `events/CommandsObserver.ts`
|
|
187
|
+
|
|
188
|
+
Notifies listeners of command lifecycle (start, complete).
|
|
189
|
+
|
|
190
|
+
## Events (Native → JS)
|
|
191
|
+
|
|
192
|
+
| Event | Description |
|
|
193
|
+
|-------|-------------|
|
|
194
|
+
| `RNN.AppLaunched` | App initialization complete |
|
|
195
|
+
| `RNN.ComponentWillAppear` | Component about to appear |
|
|
196
|
+
| `RNN.ComponentDidAppear` | Component now visible |
|
|
197
|
+
| `RNN.ComponentDidDisappear` | Component hidden |
|
|
198
|
+
| `RNN.NavigationButtonPressed` | TopBar button tapped |
|
|
199
|
+
| `RNN.BottomTabPressed` | Tab pressed (even if selected) |
|
|
200
|
+
| `RNN.BottomTabSelected` | Tab selection changed |
|
|
201
|
+
| `RNN.BottomTabLongPressed` | Tab long-pressed |
|
|
202
|
+
| `RNN.ModalDismissed` | Modal was dismissed |
|
|
203
|
+
| `RNN.ModalAttemptedToDismiss` | Swipe-to-dismiss attempted |
|
|
204
|
+
| `RNN.ScreenPopped` | Screen removed from stack |
|
|
205
|
+
| `RNN.SearchBarUpdated` | Search text changed |
|
|
206
|
+
| `RNN.SearchBarCancelPressed` | Search cancelled |
|
|
207
|
+
| `RNN.PreviewCompleted` | 3D Touch preview completed |
|
|
208
|
+
| `RNN.CommandCompleted` | Navigation command finished |
|
|
209
|
+
|
|
210
|
+
## Processors Layer
|
|
211
|
+
|
|
212
|
+
### OptionProcessorsStore
|
|
213
|
+
**File**: `processors/OptionProcessorsStore.ts`
|
|
214
|
+
|
|
215
|
+
Registers custom option processors:
|
|
216
|
+
|
|
217
|
+
```typescript
|
|
218
|
+
Navigation.addOptionProcessor('topBar.title.text', (value, commandName) => {
|
|
219
|
+
return value.toUpperCase(); // Transform all titles
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### LayoutProcessorsStore
|
|
224
|
+
**File**: `processors/LayoutProcessorsStore.ts`
|
|
225
|
+
|
|
226
|
+
Registers layout transformers:
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
Navigation.addLayoutProcessor((layout, commandName) => {
|
|
230
|
+
// Add default options to all components
|
|
231
|
+
return layout;
|
|
232
|
+
});
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Interfaces
|
|
236
|
+
|
|
237
|
+
### Layout Types
|
|
238
|
+
**File**: `interfaces/Layout.ts`
|
|
239
|
+
|
|
240
|
+
```typescript
|
|
241
|
+
interface LayoutRoot {
|
|
242
|
+
root: Layout;
|
|
243
|
+
modals?: any[];
|
|
244
|
+
overlays?: any[];
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
type Layout = {
|
|
248
|
+
component?: LayoutComponent;
|
|
249
|
+
stack?: LayoutStack;
|
|
250
|
+
bottomTabs?: LayoutBottomTabs;
|
|
251
|
+
sideMenu?: LayoutSideMenu;
|
|
252
|
+
splitView?: LayoutSplitView;
|
|
253
|
+
topTabs?: LayoutTopTabs;
|
|
254
|
+
externalComponent?: ExternalComponent;
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Options Interface
|
|
259
|
+
**File**: `interfaces/Options.ts` (comprehensive)
|
|
260
|
+
|
|
261
|
+
Contains all configuration options for:
|
|
262
|
+
- Status bar, navigation bars
|
|
263
|
+
- Top bar (buttons, title, search)
|
|
264
|
+
- Bottom tabs
|
|
265
|
+
- Side menus
|
|
266
|
+
- Modals, overlays
|
|
267
|
+
- Animations
|
|
268
|
+
- Layout parameters
|
|
269
|
+
|
|
270
|
+
### NavigationComponent
|
|
271
|
+
**File**: `interfaces/NavigationComponent.ts`
|
|
272
|
+
|
|
273
|
+
Base class for navigation-aware components:
|
|
274
|
+
|
|
275
|
+
```typescript
|
|
276
|
+
class MyScreen extends NavigationComponent<Props> {
|
|
277
|
+
static options: Options = { ... };
|
|
278
|
+
|
|
279
|
+
componentDidAppear(event) { }
|
|
280
|
+
navigationButtonPressed(event) { }
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## Dependencies
|
|
285
|
+
|
|
286
|
+
**Production**:
|
|
287
|
+
- `lodash` - utility functions
|
|
288
|
+
- `hoist-non-react-statics` - HOC support
|
|
289
|
+
- `react-lifecycles-compat` - lifecycle polyfill
|
|
290
|
+
- `tslib` - TypeScript helpers
|
|
291
|
+
|
|
292
|
+
**Peer**:
|
|
293
|
+
- `react`, `react-native` (required)
|
|
294
|
+
- `remx` (optional state management)
|
|
295
|
+
|
|
296
|
+
## Build Output
|
|
297
|
+
|
|
298
|
+
Uses `react-native-builder-bob`:
|
|
299
|
+
- **Source**: `src/`
|
|
300
|
+
- **Output**: `lib/`
|
|
301
|
+
- **Targets**: ESM modules + TypeScript declarations
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { connect } from "./connect.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const Application = connect(class extends React.Component {
|
|
8
|
+
constructor(props) {
|
|
9
|
+
super(props);
|
|
10
|
+
props.entryPoint();
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
const {
|
|
14
|
+
LayoutComponent
|
|
15
|
+
} = require('./Components/LayoutComponent');
|
|
16
|
+
const {
|
|
17
|
+
LayoutStore
|
|
18
|
+
} = require('./Stores/LayoutStore');
|
|
19
|
+
const {
|
|
20
|
+
Modals
|
|
21
|
+
} = require('./Components/Modals');
|
|
22
|
+
const {
|
|
23
|
+
Overlays
|
|
24
|
+
} = require('./Components/Overlays');
|
|
25
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
26
|
+
testID: 'Application',
|
|
27
|
+
children: [/*#__PURE__*/_jsx(LayoutComponent, {
|
|
28
|
+
layoutNode: LayoutStore.getLayout()
|
|
29
|
+
}), /*#__PURE__*/_jsx(Modals, {}), /*#__PURE__*/_jsx(Overlays, {})]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=Application.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","connect","jsx","_jsx","jsxs","_jsxs","Application","Component","constructor","props","entryPoint","render","LayoutComponent","require","LayoutStore","Modals","Overlays","testID","children","layoutNode","getLayout"],"sourceRoot":"../../../src","sources":["Mock/Application.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,OAAO,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMpC,OAAO,MAAMC,WAAW,GAAGL,OAAO,CAChC,cAAcF,KAAK,CAACQ,SAAS,CAAmB;EAC9CC,WAAWA,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,CAAC;IACZA,KAAK,CAACC,UAAU,CAAC,CAAC;EACpB;EAEAC,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEC;IAAgB,CAAC,GAAGC,OAAO,CAAC,8BAA8B,CAAC;IACnE,MAAM;MAAEC;IAAY,CAAC,GAAGD,OAAO,CAAC,sBAAsB,CAAC;IACvD,MAAM;MAAEE;IAAO,CAAC,GAAGF,OAAO,CAAC,qBAAqB,CAAC;IACjD,MAAM;MAAEG;IAAS,CAAC,GAAGH,OAAO,CAAC,uBAAuB,CAAC;IACrD,oBACER,KAAA,CAACL,IAAI;MAACiB,MAAM,EAAE,aAAc;MAAAC,QAAA,gBAC1Bf,IAAA,CAACS,eAAe;QAACO,UAAU,EAAEL,WAAW,CAACM,SAAS,CAAC;MAAE,CAAE,CAAC,eACxDjB,IAAA,CAACY,MAAM,IAAE,CAAC,eACVZ,IAAA,CAACa,QAAQ,IAAE,CAAC;IAAA,CACR,CAAC;EAEX;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["Mock/ComponentProps.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
5
|
+
import { connect } from "../connect.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const BottomTabs = connect(class extends Component {
|
|
8
|
+
render() {
|
|
9
|
+
return this.props.layoutNode.children.map(child => {
|
|
10
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
11
|
+
layoutNode: child
|
|
12
|
+
}, child.nodeId);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=BottomTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","LayoutComponent","connect","jsx","_jsx","BottomTabs","render","props","layoutNode","children","map","child","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/BottomTabs.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,SAASC,OAAO,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,UAAU,GAAGH,OAAO,CAC/B,cAAcF,SAAS,CAAiB;EACtCM,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACC,KAAK,CAACC,UAAU,CAACC,QAAQ,CAACC,GAAG,CAAEC,KAAK,IAAK;MACnD,oBAAOP,IAAA,CAACH,eAAe;QAAoBO,UAAU,EAAEG;MAAM,GAAhCA,KAAK,CAACC,MAA4B,CAAC;IAClE,CAAC,CAAC;EACJ;AACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, Image } from 'react-native';
|
|
5
|
+
import { Navigation } from 'react-native-navigation';
|
|
6
|
+
import { VISIBLE_SCREEN_TEST_ID } from "../constants.js";
|
|
7
|
+
import { LayoutStore } from "../Stores/LayoutStore.js";
|
|
8
|
+
import { connect } from "../connect.js";
|
|
9
|
+
import { TopBar } from "./TopBar.js";
|
|
10
|
+
import { events } from "../Stores/EventsStore.js";
|
|
11
|
+
import _ from 'lodash';
|
|
12
|
+
import { switchTabByIndex } from "../actions/layoutActions.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
function isURISource(src) {
|
|
15
|
+
return !!src && typeof src === 'object' && 'uri' in src;
|
|
16
|
+
}
|
|
17
|
+
export const ComponentScreen = connect(class extends Component {
|
|
18
|
+
constructor(props) {
|
|
19
|
+
super(props);
|
|
20
|
+
}
|
|
21
|
+
componentDidMount() {
|
|
22
|
+
this.props.layoutNode.componentDidMount();
|
|
23
|
+
}
|
|
24
|
+
isVisible() {
|
|
25
|
+
const isVisible = LayoutStore.isVisibleLayout(this.props.layoutNode);
|
|
26
|
+
return isVisible;
|
|
27
|
+
}
|
|
28
|
+
renderTabBar() {
|
|
29
|
+
const bottomTabs = this.props.layoutNode.getBottomTabs();
|
|
30
|
+
if (!bottomTabs) return null;
|
|
31
|
+
const bottomTabsOptions = bottomTabs.resolveOptions().bottomTabs;
|
|
32
|
+
if (bottomTabsOptions?.visible === false) return null;
|
|
33
|
+
const buttons = bottomTabs.children.map((child, i) => {
|
|
34
|
+
const bottomTabOptions = child.resolveOptions().bottomTab;
|
|
35
|
+
const icon = bottomTabs.selectedIndex === i ? bottomTabOptions?.selectedIcon : bottomTabOptions?.icon;
|
|
36
|
+
const iconURI = isURISource(icon) ? icon.uri : undefined;
|
|
37
|
+
return /*#__PURE__*/_jsx(View, {
|
|
38
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
39
|
+
style: {
|
|
40
|
+
padding: 10
|
|
41
|
+
},
|
|
42
|
+
testID: bottomTabOptions?.testID,
|
|
43
|
+
onPress: () => {
|
|
44
|
+
events.invokeBottomTabPressed({
|
|
45
|
+
tabIndex: i
|
|
46
|
+
});
|
|
47
|
+
if (_.defaultTo(bottomTabOptions?.selectTabOnPress, true)) switchTabByIndex(this.props.layoutNode.getBottomTabs(), i);
|
|
48
|
+
},
|
|
49
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
50
|
+
style: {
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
alignItems: 'center'
|
|
53
|
+
},
|
|
54
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
55
|
+
children: bottomTabOptions?.badge
|
|
56
|
+
}), iconURI && /*#__PURE__*/_jsx(Image, {
|
|
57
|
+
style: {
|
|
58
|
+
width: 18,
|
|
59
|
+
height: 18,
|
|
60
|
+
marginBottom: 5
|
|
61
|
+
},
|
|
62
|
+
source: {
|
|
63
|
+
uri: iconURI
|
|
64
|
+
}
|
|
65
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
66
|
+
style: {
|
|
67
|
+
fontSize: 12
|
|
68
|
+
},
|
|
69
|
+
children: bottomTabOptions?.text || ''
|
|
70
|
+
})]
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
}, `tab-${i}`);
|
|
74
|
+
});
|
|
75
|
+
return /*#__PURE__*/_jsx(View, {
|
|
76
|
+
testID: bottomTabsOptions?.testID,
|
|
77
|
+
style: {
|
|
78
|
+
flexDirection: 'row',
|
|
79
|
+
justifyContent: 'center',
|
|
80
|
+
width: '100%',
|
|
81
|
+
backgroundColor: '#F0F2F5'
|
|
82
|
+
},
|
|
83
|
+
children: buttons
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const Component = Navigation.mock.store.getWrappedComponent(this.props.layoutNode.data.name);
|
|
88
|
+
if (!Component) throw new Error(`${this.props.layoutNode.data.name} has not been registered.`);
|
|
89
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
90
|
+
testID: this.isVisible() ? VISIBLE_SCREEN_TEST_ID : undefined,
|
|
91
|
+
children: [this.props.layoutNode.getStack() && /*#__PURE__*/_jsx(TopBar, {
|
|
92
|
+
layoutNode: this.props.layoutNode,
|
|
93
|
+
topBarOptions: this.props.layoutNode.resolveOptions().topBar,
|
|
94
|
+
backButtonOptions: this.props.layoutNode.resolveOptions().topBar?.backButton
|
|
95
|
+
}), /*#__PURE__*/_jsx(Component, {
|
|
96
|
+
componentId: this.props.layoutNode.nodeId
|
|
97
|
+
}), this.renderTabBar()]
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=ComponentScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","Text","TouchableOpacity","Image","Navigation","VISIBLE_SCREEN_TEST_ID","LayoutStore","connect","TopBar","events","_","switchTabByIndex","jsx","_jsx","jsxs","_jsxs","isURISource","src","ComponentScreen","constructor","props","componentDidMount","layoutNode","isVisible","isVisibleLayout","renderTabBar","bottomTabs","getBottomTabs","bottomTabsOptions","resolveOptions","visible","buttons","children","map","child","i","bottomTabOptions","bottomTab","icon","selectedIndex","selectedIcon","iconURI","uri","undefined","style","padding","testID","onPress","invokeBottomTabPressed","tabIndex","defaultTo","selectTabOnPress","justifyContent","alignItems","badge","width","height","marginBottom","source","fontSize","text","flexDirection","backgroundColor","render","mock","store","getWrappedComponent","data","name","Error","getStack","topBarOptions","topBar","backButtonOptions","backButton","componentId","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/ComponentScreen.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { BottomTabs } from "./BottomTabs.js";
|
|
6
|
+
import { ComponentScreen } from "./ComponentScreen.js";
|
|
7
|
+
import { Stack } from "./Stack.js";
|
|
8
|
+
import { SideMenuRoot, SideMenuCenter, SideMenuLeft, SideMenuRight } from "./SideMenu.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export const LayoutComponent = class extends Component {
|
|
11
|
+
render() {
|
|
12
|
+
switch (this.props.layoutNode.type) {
|
|
13
|
+
case 'BottomTabs':
|
|
14
|
+
return /*#__PURE__*/_jsx(BottomTabs, {
|
|
15
|
+
layoutNode: this.props.layoutNode
|
|
16
|
+
});
|
|
17
|
+
case 'Stack':
|
|
18
|
+
return /*#__PURE__*/_jsx(Stack, {
|
|
19
|
+
layoutNode: this.props.layoutNode
|
|
20
|
+
});
|
|
21
|
+
case 'Component':
|
|
22
|
+
return /*#__PURE__*/_jsx(ComponentScreen, {
|
|
23
|
+
layoutNode: this.props.layoutNode
|
|
24
|
+
});
|
|
25
|
+
case 'SideMenuRoot':
|
|
26
|
+
return /*#__PURE__*/_jsx(SideMenuRoot, {
|
|
27
|
+
layoutNode: this.props.layoutNode
|
|
28
|
+
});
|
|
29
|
+
case 'SideMenuLeft':
|
|
30
|
+
return /*#__PURE__*/_jsx(SideMenuLeft, {
|
|
31
|
+
layoutNode: this.props.layoutNode
|
|
32
|
+
});
|
|
33
|
+
case 'SideMenuCenter':
|
|
34
|
+
return /*#__PURE__*/_jsx(SideMenuCenter, {
|
|
35
|
+
layoutNode: this.props.layoutNode
|
|
36
|
+
});
|
|
37
|
+
case 'SideMenuRight':
|
|
38
|
+
return /*#__PURE__*/_jsx(SideMenuRight, {
|
|
39
|
+
layoutNode: this.props.layoutNode
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return /*#__PURE__*/_jsx(View, {});
|
|
43
|
+
}
|
|
44
|
+
componentDidCatch(error, errorInfo) {
|
|
45
|
+
const err = new Error(`Error while trying to render layout ${this.props.layoutNode.nodeId} of type ${this.props.layoutNode.type}: ${error}\n${errorInfo?.componentStack}`);
|
|
46
|
+
err.cause = error;
|
|
47
|
+
throw err;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=LayoutComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","BottomTabs","ComponentScreen","Stack","SideMenuRoot","SideMenuCenter","SideMenuLeft","SideMenuRight","jsx","_jsx","LayoutComponent","render","props","layoutNode","type","componentDidCatch","error","errorInfo","err","Error","nodeId","componentStack","cause"],"sourceRoot":"../../../../src","sources":["Mock/Components/LayoutComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,UAAU,QAAQ,iBAAc;AAEzC,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,KAAK,QAAQ,YAAS;AAC/B,SAASC,YAAY,EAAEC,cAAc,EAAEC,YAAY,EAAEC,aAAa,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvF,OAAO,MAAMC,eAAe,GAAG,cAAcX,SAAS,CAAiB;EACrEY,MAAMA,CAAA,EAAG;IACP,QAAQ,IAAI,CAACC,KAAK,CAACC,UAAU,CAACC,IAAI;MAChC,KAAK,YAAY;QACf,oBAAOL,IAAA,CAACR,UAAU;UAACY,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC1D,KAAK,OAAO;QACV,oBAAOJ,IAAA,CAACN,KAAK;UAACU,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MACrD,KAAK,WAAW;QACd,oBAAOJ,IAAA,CAACP,eAAe;UAACW,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC/D,KAAK,cAAc;QACjB,oBAAOJ,IAAA,CAACL,YAAY;UAACS,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC5D,KAAK,cAAc;QACjB,oBAAOJ,IAAA,CAACH,YAAY;UAACO,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC5D,KAAK,gBAAgB;QACnB,oBAAOJ,IAAA,CAACJ,cAAc;UAACQ,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;MAC9D,KAAK,eAAe;QAClB,oBAAOJ,IAAA,CAACF,aAAa;UAACM,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;QAAW,CAAE,CAAC;IAC/D;IAEA,oBAAOJ,IAAA,CAACT,IAAI,IAAE,CAAC;EACjB;EACAe,iBAAiBA,CAACC,KAAY,EAAEC,SAA0B,EAAE;IAC1D,MAAMC,GAAG,GAAG,IAAIC,KAAK,CACnB,uCAAuC,IAAI,CAACP,KAAK,CAACC,UAAU,CAACO,MAAM,YAAY,IAAI,CAACR,KAAK,CAACC,UAAU,CAACC,IAAI,KAAKE,KAAK,KAAKC,SAAS,EAAEI,cAAc,EACnJ,CAAC;IACAH,GAAG,CAASI,KAAK,GAAGN,KAAK;IAC1B,MAAME,GAAG;EACX;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { LayoutComponent } from "./LayoutComponent.js";
|
|
6
|
+
import { LayoutStore } from "../Stores/LayoutStore.js";
|
|
7
|
+
import { connect } from "../connect.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
export const Modals = connect(class extends Component {
|
|
10
|
+
render() {
|
|
11
|
+
const children = LayoutStore.getModals();
|
|
12
|
+
return /*#__PURE__*/_jsx(View, {
|
|
13
|
+
testID: 'MODALS',
|
|
14
|
+
children: children.map(child => {
|
|
15
|
+
return /*#__PURE__*/_jsx(LayoutComponent, {
|
|
16
|
+
layoutNode: child
|
|
17
|
+
}, child.nodeId);
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=Modals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","LayoutComponent","LayoutStore","connect","jsx","_jsx","Modals","render","children","getModals","testID","map","child","layoutNode","nodeId"],"sourceRoot":"../../../../src","sources":["Mock/Components/Modals.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,eAAe,QAAQ,sBAAmB;AAEnD,SAASC,WAAW,QAAQ,0BAAuB;AACnD,SAASC,OAAO,QAAQ,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErC,OAAO,MAAMC,MAAM,GAAGH,OAAO,CAC3B,cAAcJ,SAAS,CAAiB;EACtCQ,MAAMA,CAAA,EAAG;IACP,MAAMC,QAAQ,GAAGN,WAAW,CAACO,SAAS,CAAC,CAAC;IACxC,oBACEJ,IAAA,CAACL,IAAI;MAACU,MAAM,EAAE,QAAS;MAAAF,QAAA,EACpBA,QAAQ,CAACG,GAAG,CAAEC,KAAiB,IAAK;QACnC,oBAAOP,IAAA,CAACJ,eAAe;UAAoBY,UAAU,EAAED;QAAM,GAAhCA,KAAK,CAACE,MAA4B,CAAC;MAClE,CAAC;IAAC,CACE,CAAC;EAEX;AACF,CACF,CAAC","ignoreList":[]}
|