@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,1738 @@
|
|
|
1
|
+
import { ImageRequireSource, ImageSourcePropType, Insets, OpaqueColorValue } from 'react-native';
|
|
2
|
+
export declare type Color = string | symbol | ThemeColor | OpaqueColorValue | null;
|
|
3
|
+
type FontFamily = string;
|
|
4
|
+
type FontStyle = 'normal' | 'italic';
|
|
5
|
+
type FontWeightIOS = 'normal' | 'ultralight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'demibold' | 'extrabold' | 'ultrabold' | 'bold' | 'heavy' | 'black';
|
|
6
|
+
type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | FontWeightIOS;
|
|
7
|
+
export type LayoutOrientation = 'all' | 'default' | 'portrait' | 'landscape' | 'upsideDown' | 'sensor' | 'sensorLandscape' | 'sensorPortrait';
|
|
8
|
+
type AndroidDensityNumber = number;
|
|
9
|
+
export type SystemItemIcon = 'done' | 'cancel' | 'edit' | 'save' | 'add' | 'flexibleSpace' | 'fixedSpace' | 'compose' | 'reply' | 'action' | 'organize' | 'bookmarks' | 'search' | 'refresh' | 'stop' | 'camera' | 'trash' | 'play' | 'pause' | 'rewind' | 'fastForward' | 'undo' | 'redo';
|
|
10
|
+
export type Interpolation = {
|
|
11
|
+
type: 'accelerate';
|
|
12
|
+
factor?: number;
|
|
13
|
+
} | {
|
|
14
|
+
type: 'decelerate';
|
|
15
|
+
factor?: number;
|
|
16
|
+
} | {
|
|
17
|
+
type: 'decelerateAccelerate';
|
|
18
|
+
} | {
|
|
19
|
+
type: 'accelerateDecelerate';
|
|
20
|
+
} | {
|
|
21
|
+
type: 'fastOutSlowIn';
|
|
22
|
+
} | {
|
|
23
|
+
type: 'linear';
|
|
24
|
+
} | {
|
|
25
|
+
type: 'overshoot';
|
|
26
|
+
tension?: number;
|
|
27
|
+
} | {
|
|
28
|
+
type: 'spring';
|
|
29
|
+
mass?: number;
|
|
30
|
+
damping?: number;
|
|
31
|
+
stiffness?: number;
|
|
32
|
+
allowsOverdamping?: boolean;
|
|
33
|
+
initialVelocity?: number;
|
|
34
|
+
};
|
|
35
|
+
interface ThemeColor {
|
|
36
|
+
light?: string | symbol;
|
|
37
|
+
dark?: string | symbol;
|
|
38
|
+
}
|
|
39
|
+
export interface OptionsSplitView {
|
|
40
|
+
/**
|
|
41
|
+
* Master view display mode
|
|
42
|
+
* @default 'auto'
|
|
43
|
+
*/
|
|
44
|
+
displayMode?: 'auto' | 'visible' | 'hidden' | 'overlay';
|
|
45
|
+
/**
|
|
46
|
+
* Master view side. Leading is left. Trailing is right.
|
|
47
|
+
* @default 'leading'
|
|
48
|
+
*/
|
|
49
|
+
primaryEdge?: 'leading' | 'trailing';
|
|
50
|
+
/**
|
|
51
|
+
* Set the minimum width of master view
|
|
52
|
+
*/
|
|
53
|
+
minWidth?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Set the maximum width of master view
|
|
56
|
+
*/
|
|
57
|
+
maxWidth?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Set background style of sidebar. Currently works for Mac Catalyst apps only.
|
|
60
|
+
* @default 'none'
|
|
61
|
+
*/
|
|
62
|
+
primaryBackgroundStyle?: 'none' | 'sidebar';
|
|
63
|
+
}
|
|
64
|
+
export interface OptionsStatusBar {
|
|
65
|
+
/**
|
|
66
|
+
* Set the status bar visibility
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
visible?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Set the text color of the status bar
|
|
72
|
+
* @default 'light'
|
|
73
|
+
*/
|
|
74
|
+
style?: 'light' | 'dark';
|
|
75
|
+
/**
|
|
76
|
+
* Set the background color of the status bar
|
|
77
|
+
* #### (Android specific)
|
|
78
|
+
*/
|
|
79
|
+
backgroundColor?: Color;
|
|
80
|
+
/**
|
|
81
|
+
* Draw screen behind the status bar
|
|
82
|
+
* #### (Android specific)
|
|
83
|
+
*/
|
|
84
|
+
drawBehind?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Allows the StatusBar to be translucent (blurred)
|
|
87
|
+
* #### (Android specific)
|
|
88
|
+
*/
|
|
89
|
+
translucent?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Animate StatusBar style changes.
|
|
92
|
+
* #### (iOS specific)
|
|
93
|
+
*/
|
|
94
|
+
animate?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Automatically hide the StatusBar when the TopBar hides.
|
|
97
|
+
* #### (iOS specific)
|
|
98
|
+
*/
|
|
99
|
+
hideWithTopBar?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Blur content beneath the StatusBar.
|
|
102
|
+
* #### (iOS specific)
|
|
103
|
+
*/
|
|
104
|
+
blur?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface OptionsLayout {
|
|
107
|
+
fitSystemWindows?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Set the screen background color
|
|
110
|
+
*/
|
|
111
|
+
backgroundColor?: Color;
|
|
112
|
+
/**
|
|
113
|
+
* Set background color only for components, helps reduce overdraw if background color is set in default options.
|
|
114
|
+
* #### (Android specific)
|
|
115
|
+
*/
|
|
116
|
+
componentBackgroundColor?: Color;
|
|
117
|
+
/**
|
|
118
|
+
* Set the allowed orientations
|
|
119
|
+
*/
|
|
120
|
+
orientation?: LayoutOrientation[];
|
|
121
|
+
/**
|
|
122
|
+
* Layout top margin
|
|
123
|
+
* #### (Android specific)
|
|
124
|
+
*/
|
|
125
|
+
topMargin?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Set language direction.
|
|
128
|
+
* only works with DefaultOptions
|
|
129
|
+
*/
|
|
130
|
+
direction?: 'rtl' | 'ltr' | 'locale';
|
|
131
|
+
/**
|
|
132
|
+
* Controls the application's preferred home indicator auto-hiding.
|
|
133
|
+
* #### (iOS specific)
|
|
134
|
+
*/
|
|
135
|
+
autoHideHomeIndicator?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Add insets to the top layout
|
|
138
|
+
*/
|
|
139
|
+
insets?: Insets;
|
|
140
|
+
/**
|
|
141
|
+
* Resizes the layout when keyboard is visible
|
|
142
|
+
* @default true
|
|
143
|
+
* #### (Android specific)
|
|
144
|
+
*/
|
|
145
|
+
adjustResize?: boolean;
|
|
146
|
+
}
|
|
147
|
+
export declare enum OptionsModalPresentationStyle {
|
|
148
|
+
formSheet = "formSheet",
|
|
149
|
+
pageSheet = "pageSheet",
|
|
150
|
+
overFullScreen = "overFullScreen",
|
|
151
|
+
overCurrentContext = "overCurrentContext",
|
|
152
|
+
currentContext = "currentContext",
|
|
153
|
+
popover = "popover",
|
|
154
|
+
fullScreen = "fullScreen",
|
|
155
|
+
none = "none"
|
|
156
|
+
}
|
|
157
|
+
export declare enum OptionsModalTransitionStyle {
|
|
158
|
+
coverVertical = "coverVertical",
|
|
159
|
+
crossDissolve = "crossDissolve",
|
|
160
|
+
flipHorizontal = "flipHorizontal",
|
|
161
|
+
partialCurl = "partialCurl"
|
|
162
|
+
}
|
|
163
|
+
export interface OptionsTopBarLargeTitle {
|
|
164
|
+
/**
|
|
165
|
+
* Enable large titles
|
|
166
|
+
*/
|
|
167
|
+
visible?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Set the font size of large title's text
|
|
170
|
+
*/
|
|
171
|
+
fontSize?: number;
|
|
172
|
+
/**
|
|
173
|
+
* Set the color of large title's text
|
|
174
|
+
*/
|
|
175
|
+
color?: Color;
|
|
176
|
+
/**
|
|
177
|
+
* Set the font family of the large title text
|
|
178
|
+
*/
|
|
179
|
+
fontFamily?: FontFamily;
|
|
180
|
+
/**
|
|
181
|
+
* Set the font style of the large title text
|
|
182
|
+
*/
|
|
183
|
+
fontStyle?: FontStyle;
|
|
184
|
+
/**
|
|
185
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
186
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
187
|
+
* values, in that case the closest one is chosen.
|
|
188
|
+
*/
|
|
189
|
+
fontWeight?: FontWeight;
|
|
190
|
+
}
|
|
191
|
+
export interface OptionsTopBarTitle {
|
|
192
|
+
/**
|
|
193
|
+
* Text to display in the title area
|
|
194
|
+
*/
|
|
195
|
+
text?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Font size
|
|
198
|
+
*/
|
|
199
|
+
fontSize?: number;
|
|
200
|
+
/**
|
|
201
|
+
* Text color
|
|
202
|
+
*/
|
|
203
|
+
color?: Color;
|
|
204
|
+
/**
|
|
205
|
+
* Set the font family for the title
|
|
206
|
+
*/
|
|
207
|
+
fontFamily?: FontFamily;
|
|
208
|
+
/**
|
|
209
|
+
* Set the font style for the title
|
|
210
|
+
*/
|
|
211
|
+
fontStyle?: FontStyle;
|
|
212
|
+
/**
|
|
213
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
214
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
215
|
+
* values, in that case the closest one is chosen.
|
|
216
|
+
*/
|
|
217
|
+
fontWeight?: FontWeight;
|
|
218
|
+
/**
|
|
219
|
+
* Custom component as the title view
|
|
220
|
+
*/
|
|
221
|
+
component?: {
|
|
222
|
+
/**
|
|
223
|
+
* Component reference id, Auto generated if empty
|
|
224
|
+
*/
|
|
225
|
+
id?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Name of your component
|
|
228
|
+
*/
|
|
229
|
+
name: string;
|
|
230
|
+
/**
|
|
231
|
+
* Set component alignment
|
|
232
|
+
*/
|
|
233
|
+
alignment?: 'center' | 'fill';
|
|
234
|
+
/**
|
|
235
|
+
* Properties to pass down to the component
|
|
236
|
+
*/
|
|
237
|
+
passProps?: object;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Top Bar title height in densitiy pixels
|
|
241
|
+
* #### (Android specific)
|
|
242
|
+
*/
|
|
243
|
+
height?: number;
|
|
244
|
+
/**
|
|
245
|
+
* Title alignment
|
|
246
|
+
* #### (Android specific)
|
|
247
|
+
*/
|
|
248
|
+
alignment?: 'center' | 'fill';
|
|
249
|
+
}
|
|
250
|
+
export interface OptionsTopBarSubtitle {
|
|
251
|
+
/**
|
|
252
|
+
* Set subtitle text
|
|
253
|
+
*/
|
|
254
|
+
text?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Set subtitle font size
|
|
257
|
+
*/
|
|
258
|
+
fontSize?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Set subtitle color
|
|
261
|
+
*/
|
|
262
|
+
color?: Color;
|
|
263
|
+
/**
|
|
264
|
+
* Set the font family for the subtitle
|
|
265
|
+
*/
|
|
266
|
+
fontFamily?: FontFamily;
|
|
267
|
+
/**
|
|
268
|
+
* Set the font style for a text
|
|
269
|
+
*/
|
|
270
|
+
fontStyle?: FontStyle;
|
|
271
|
+
/**
|
|
272
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
273
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
274
|
+
* values, in that case the closest one is chosen.
|
|
275
|
+
*/
|
|
276
|
+
fontWeight?: FontWeight;
|
|
277
|
+
/**
|
|
278
|
+
* Set subtitle alignment
|
|
279
|
+
*/
|
|
280
|
+
alignment?: 'center';
|
|
281
|
+
}
|
|
282
|
+
export interface OptionsTopBarBackButton {
|
|
283
|
+
/**
|
|
284
|
+
* Overrides the text that's read by the screen reader when the user interacts with the back button
|
|
285
|
+
* #### (Android specific)
|
|
286
|
+
*/
|
|
287
|
+
accessibilityLabel?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Button id for reference press event
|
|
290
|
+
*/
|
|
291
|
+
id?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Image to show as the back button
|
|
294
|
+
*/
|
|
295
|
+
icon?: ImageResource;
|
|
296
|
+
/**
|
|
297
|
+
* SF Symbol to show as the back button
|
|
298
|
+
* #### (iOS 13+ specific)
|
|
299
|
+
*/
|
|
300
|
+
sfSymbol?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Weither the back button is visible or not
|
|
303
|
+
* @default true
|
|
304
|
+
*/
|
|
305
|
+
visible?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Set the back button title
|
|
308
|
+
* #### (iOS specific)
|
|
309
|
+
*/
|
|
310
|
+
title?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Show title or just the icon
|
|
313
|
+
* #### (iOS specific)
|
|
314
|
+
*/
|
|
315
|
+
showTitle?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Back button icon and text color
|
|
318
|
+
*/
|
|
319
|
+
color?: Color;
|
|
320
|
+
/**
|
|
321
|
+
* Set subtitle font size
|
|
322
|
+
*/
|
|
323
|
+
fontSize?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Set the font family for the back button
|
|
326
|
+
* #### (iOS specific)
|
|
327
|
+
*/
|
|
328
|
+
fontFamily?: FontFamily;
|
|
329
|
+
/**
|
|
330
|
+
* Set the font style for a text
|
|
331
|
+
*/
|
|
332
|
+
fontStyle?: FontStyle;
|
|
333
|
+
/**
|
|
334
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
335
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
336
|
+
* values, in that case the closest one is chosen.
|
|
337
|
+
*/
|
|
338
|
+
fontWeight?: FontWeight;
|
|
339
|
+
/**
|
|
340
|
+
* Set icon background style
|
|
341
|
+
*/
|
|
342
|
+
iconBackground?: IconBackgroundOptions;
|
|
343
|
+
/**
|
|
344
|
+
* Set testID for reference in E2E tests
|
|
345
|
+
*/
|
|
346
|
+
testID?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Enables iOS 14 back button menu display
|
|
349
|
+
* #### (iOS specific)
|
|
350
|
+
* @default true
|
|
351
|
+
*/
|
|
352
|
+
enableMenu?: boolean;
|
|
353
|
+
/**
|
|
354
|
+
* Allows the NavBar to be translucent (blurred)
|
|
355
|
+
* #### (iOS specific)
|
|
356
|
+
*/
|
|
357
|
+
displayMode?: 'default' | 'generic' | 'minimal';
|
|
358
|
+
/**
|
|
359
|
+
* Controls whether the default back button should pop the Stack or not
|
|
360
|
+
* @default true
|
|
361
|
+
*/
|
|
362
|
+
popStackOnPress?: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* (iOS 26+ only) Hide the shared Liquid-Glass / Platter background that
|
|
365
|
+
* UIKit draws behind the back button. Defaults to true to avoid
|
|
366
|
+
* double-decorating a back button whose icon already carries its own
|
|
367
|
+
* iconBackground. Set to false to keep the system-drawn background.
|
|
368
|
+
* @default true
|
|
369
|
+
*/
|
|
370
|
+
hideSharedBackground?: boolean;
|
|
371
|
+
}
|
|
372
|
+
export interface HardwareBackButtonOptions {
|
|
373
|
+
/**
|
|
374
|
+
* Controls whether the hardware back button should dismiss modal or not
|
|
375
|
+
* #### (Android specific)
|
|
376
|
+
* @default true
|
|
377
|
+
*/
|
|
378
|
+
dismissModalOnPress?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Controls whether the hardware back button should pop the Stack or not
|
|
381
|
+
* #### (Android specific)
|
|
382
|
+
* @default true
|
|
383
|
+
*/
|
|
384
|
+
popStackOnPress?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Controls hardware back button bottom tab selection behaviour
|
|
387
|
+
*/
|
|
388
|
+
bottomTabsOnPress?: 'exit' | 'first' | 'previous';
|
|
389
|
+
}
|
|
390
|
+
export interface OptionsTopBarScrollEdgeAppearanceBackground {
|
|
391
|
+
/**
|
|
392
|
+
* Background color of the top bar
|
|
393
|
+
*/
|
|
394
|
+
color?: Color;
|
|
395
|
+
/**
|
|
396
|
+
* Allows the NavBar to be translucent (blurred)
|
|
397
|
+
* #### (iOS specific)
|
|
398
|
+
*/
|
|
399
|
+
translucent?: boolean;
|
|
400
|
+
}
|
|
401
|
+
export interface OptionsTopBarScrollEdgeAppearanceTitle {
|
|
402
|
+
/**
|
|
403
|
+
* Font size
|
|
404
|
+
*/
|
|
405
|
+
fontSize?: number;
|
|
406
|
+
/**
|
|
407
|
+
* Text color
|
|
408
|
+
*/
|
|
409
|
+
color?: Color;
|
|
410
|
+
/**
|
|
411
|
+
* Set the font family for the title
|
|
412
|
+
*/
|
|
413
|
+
fontFamily?: FontFamily;
|
|
414
|
+
/**
|
|
415
|
+
* Set the font style for the title
|
|
416
|
+
*/
|
|
417
|
+
fontStyle?: FontStyle;
|
|
418
|
+
/**
|
|
419
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
420
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
421
|
+
* values, in that case the closest one is chosen.
|
|
422
|
+
*/
|
|
423
|
+
fontWeight?: FontWeight;
|
|
424
|
+
}
|
|
425
|
+
export interface OptionsTopBarScrollEdgeAppearance {
|
|
426
|
+
/**
|
|
427
|
+
* Title configuration applied when the scroll view reaches the edge
|
|
428
|
+
* ### (iOS specific)
|
|
429
|
+
*/
|
|
430
|
+
title?: OptionsTopBarScrollEdgeAppearanceTitle;
|
|
431
|
+
background?: OptionsTopBarScrollEdgeAppearanceBackground;
|
|
432
|
+
active: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* Disable the border on bottom of the navbar
|
|
435
|
+
* #### (iOS specific)
|
|
436
|
+
* @default false
|
|
437
|
+
*/
|
|
438
|
+
noBorder?: boolean;
|
|
439
|
+
/**
|
|
440
|
+
* Change the navbar border color
|
|
441
|
+
*/
|
|
442
|
+
borderColor?: Color;
|
|
443
|
+
}
|
|
444
|
+
export interface OptionsTopBarBackground {
|
|
445
|
+
/**
|
|
446
|
+
* Background color of the top bar
|
|
447
|
+
*/
|
|
448
|
+
color?: Color;
|
|
449
|
+
/**
|
|
450
|
+
* Clip the top bar background to bounds if set to true.
|
|
451
|
+
* #### (iOS specific)
|
|
452
|
+
*/
|
|
453
|
+
clipToBounds?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Set a custom component for the Top Bar background
|
|
456
|
+
*/
|
|
457
|
+
component?: {
|
|
458
|
+
name?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Properties to pass down to the component
|
|
461
|
+
*/
|
|
462
|
+
passProps?: object;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Allows the NavBar to be translucent (blurred)
|
|
466
|
+
* #### (iOS specific)
|
|
467
|
+
*/
|
|
468
|
+
translucent?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* Enable background blur
|
|
471
|
+
* #### (iOS specific)
|
|
472
|
+
*/
|
|
473
|
+
blur?: boolean;
|
|
474
|
+
}
|
|
475
|
+
export interface OptionsTopBarButton {
|
|
476
|
+
/**
|
|
477
|
+
* (Android only) Sets a textual button to be ALL CAPS. default value is true
|
|
478
|
+
*/
|
|
479
|
+
allCaps?: boolean;
|
|
480
|
+
/**
|
|
481
|
+
* Button id for reference press event
|
|
482
|
+
*/
|
|
483
|
+
id: string;
|
|
484
|
+
/**
|
|
485
|
+
* Set the button icon
|
|
486
|
+
*/
|
|
487
|
+
icon?: ImageResource;
|
|
488
|
+
/**
|
|
489
|
+
* Set the SF symbol as icon (will be used primarily)
|
|
490
|
+
* #### (iOS 13+ specific)
|
|
491
|
+
*/
|
|
492
|
+
sfSymbol?: string;
|
|
493
|
+
/**
|
|
494
|
+
* Set the button icon insets
|
|
495
|
+
*/
|
|
496
|
+
iconInsets?: IconInsets;
|
|
497
|
+
/**
|
|
498
|
+
* Set the button as a custom component
|
|
499
|
+
*/
|
|
500
|
+
component?: {
|
|
501
|
+
/**
|
|
502
|
+
* Component reference id, Auto generated if empty
|
|
503
|
+
*/
|
|
504
|
+
id?: string;
|
|
505
|
+
/**
|
|
506
|
+
* Name of your component
|
|
507
|
+
*/
|
|
508
|
+
name: string;
|
|
509
|
+
/**
|
|
510
|
+
* Properties to pass down to the component
|
|
511
|
+
*/
|
|
512
|
+
passProps?: object;
|
|
513
|
+
/**
|
|
514
|
+
* (Android only) component width
|
|
515
|
+
*/
|
|
516
|
+
width?: number;
|
|
517
|
+
/**
|
|
518
|
+
* (Android only) component height
|
|
519
|
+
*/
|
|
520
|
+
height?: number;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* (iOS only) Set the button as an iOS system icon
|
|
524
|
+
*/
|
|
525
|
+
systemItem?: SystemItemIcon;
|
|
526
|
+
/**
|
|
527
|
+
* Set the button text
|
|
528
|
+
*/
|
|
529
|
+
text?: string;
|
|
530
|
+
/**
|
|
531
|
+
* Overrides the text that's read by the screen reader when the user interacts with the element
|
|
532
|
+
*/
|
|
533
|
+
accessibilityLabel?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Set the font family for the button's text
|
|
536
|
+
*/
|
|
537
|
+
fontFamily?: FontFamily;
|
|
538
|
+
/**
|
|
539
|
+
* Set the font style for the button's text
|
|
540
|
+
*/
|
|
541
|
+
fontStyle?: FontStyle;
|
|
542
|
+
/**
|
|
543
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
544
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
545
|
+
* values, in that case the closest one is chosen.
|
|
546
|
+
*/
|
|
547
|
+
fontWeight?: FontWeight;
|
|
548
|
+
/**
|
|
549
|
+
* Set the font size in dp
|
|
550
|
+
*/
|
|
551
|
+
fontSize?: number;
|
|
552
|
+
/**
|
|
553
|
+
* Set the button enabled or disabled
|
|
554
|
+
* @default true
|
|
555
|
+
*/
|
|
556
|
+
enabled?: boolean;
|
|
557
|
+
/**
|
|
558
|
+
* Disable icon tinting
|
|
559
|
+
*/
|
|
560
|
+
disableIconTint?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* Set text color
|
|
563
|
+
*/
|
|
564
|
+
color?: Color;
|
|
565
|
+
/**
|
|
566
|
+
* Set text color in disabled state
|
|
567
|
+
*/
|
|
568
|
+
disabledColor?: Color;
|
|
569
|
+
/**
|
|
570
|
+
* Set icon background style
|
|
571
|
+
*/
|
|
572
|
+
iconBackground?: IconBackgroundOptions;
|
|
573
|
+
/**
|
|
574
|
+
* Set testID for reference in E2E tests
|
|
575
|
+
*/
|
|
576
|
+
testID?: string;
|
|
577
|
+
/**
|
|
578
|
+
* (iOS 26+ only) Hide the shared Liquid-Glass / Platter background that
|
|
579
|
+
* UIKit draws behind every bar button item. Defaults to true to avoid
|
|
580
|
+
* double-decorating React-rendered custom views and icons that already
|
|
581
|
+
* carry their own background. Set to false to keep the system-drawn
|
|
582
|
+
* background.
|
|
583
|
+
* @default true
|
|
584
|
+
*/
|
|
585
|
+
hideSharedBackground?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* (Android only) Set showAsAction value
|
|
588
|
+
* @see {@link https://developer.android.com/guide/topics/resources/menu-resource|Android developer guide: Menu resource}
|
|
589
|
+
*/
|
|
590
|
+
showAsAction?: 'ifRoom' | 'withText' | 'always' | 'never';
|
|
591
|
+
}
|
|
592
|
+
export interface OptionsSearchBar {
|
|
593
|
+
visible?: boolean;
|
|
594
|
+
focus?: boolean;
|
|
595
|
+
hideOnScroll?: boolean;
|
|
596
|
+
hideTopBarOnFocus?: boolean;
|
|
597
|
+
obscuresBackgroundDuringPresentation?: boolean;
|
|
598
|
+
backgroundColor?: Color;
|
|
599
|
+
tintColor?: Color;
|
|
600
|
+
placeholder?: string;
|
|
601
|
+
cancelText?: string;
|
|
602
|
+
/**
|
|
603
|
+
* iOS 26+ only. Controls where the search bar is placed.
|
|
604
|
+
* - 'stacked': Below the navigation bar title (default, legacy behavior)
|
|
605
|
+
* - 'integrated': Inside the navigation bar
|
|
606
|
+
*/
|
|
607
|
+
placement?: 'stacked' | 'integrated';
|
|
608
|
+
}
|
|
609
|
+
export interface OptionsTopBar {
|
|
610
|
+
/**
|
|
611
|
+
* Show or hide the top bar
|
|
612
|
+
*/
|
|
613
|
+
visible?: boolean;
|
|
614
|
+
/**
|
|
615
|
+
* Controls whether TopBar visibility changes should be animated
|
|
616
|
+
*/
|
|
617
|
+
animate?: boolean;
|
|
618
|
+
/**
|
|
619
|
+
* Top bar will hide and show based on users scroll direction
|
|
620
|
+
*/
|
|
621
|
+
hideOnScroll?: boolean;
|
|
622
|
+
/**
|
|
623
|
+
* Change button colors in the top bar
|
|
624
|
+
*/
|
|
625
|
+
leftButtonColor?: Color;
|
|
626
|
+
rightButtonColor?: Color;
|
|
627
|
+
leftButtonBackgroundColor?: Color;
|
|
628
|
+
rightButtonBackgroundColor?: Color;
|
|
629
|
+
leftButtonDisabledColor?: Color;
|
|
630
|
+
rightButtonDisabledColor?: Color;
|
|
631
|
+
/**
|
|
632
|
+
* Draw behind the navbar
|
|
633
|
+
*/
|
|
634
|
+
drawBehind?: boolean;
|
|
635
|
+
/**
|
|
636
|
+
* Can be used to reference the top bar in E2E tests
|
|
637
|
+
*/
|
|
638
|
+
testID?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Title configuration
|
|
641
|
+
*/
|
|
642
|
+
title?: OptionsTopBarTitle;
|
|
643
|
+
/**
|
|
644
|
+
* Subtitle configuration
|
|
645
|
+
*/
|
|
646
|
+
subtitle?: OptionsTopBarSubtitle;
|
|
647
|
+
/**
|
|
648
|
+
* Back button configuration
|
|
649
|
+
*/
|
|
650
|
+
backButton?: OptionsTopBarBackButton;
|
|
651
|
+
/**
|
|
652
|
+
* List of buttons to the left
|
|
653
|
+
*/
|
|
654
|
+
leftButtons?: OptionsTopBarButton[];
|
|
655
|
+
/**
|
|
656
|
+
* List of buttons to the right
|
|
657
|
+
*/
|
|
658
|
+
rightButtons?: OptionsTopBarButton[];
|
|
659
|
+
/**
|
|
660
|
+
* Background configuration
|
|
661
|
+
*/
|
|
662
|
+
background?: OptionsTopBarBackground;
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
*/
|
|
666
|
+
scrollEdgeAppearance?: OptionsTopBarScrollEdgeAppearance;
|
|
667
|
+
/**
|
|
668
|
+
* Control the NavBar blur style
|
|
669
|
+
* #### (iOS specific)
|
|
670
|
+
* @requires translucent: true
|
|
671
|
+
* @default 'default'
|
|
672
|
+
*/
|
|
673
|
+
barStyle?: 'default' | 'black';
|
|
674
|
+
/**
|
|
675
|
+
* Disable the border on bottom of the navbar
|
|
676
|
+
* #### (iOS specific)
|
|
677
|
+
* @default false
|
|
678
|
+
*/
|
|
679
|
+
noBorder?: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* Show a UISearchBar in the Top Bar
|
|
682
|
+
* #### (iOS 11+ specific)
|
|
683
|
+
*/
|
|
684
|
+
searchBar?: OptionsSearchBar;
|
|
685
|
+
/**
|
|
686
|
+
* Hides the UISearchBar when scrolling
|
|
687
|
+
* #### (iOS 11+ specific)
|
|
688
|
+
*/
|
|
689
|
+
searchBarHiddenWhenScrolling?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* The placeholder value in the UISearchBar
|
|
692
|
+
* #### (iOS 11+ specific)
|
|
693
|
+
*/
|
|
694
|
+
searchBarPlaceholder?: string;
|
|
695
|
+
/**
|
|
696
|
+
* The background color of the UISearchBar's TextField
|
|
697
|
+
* #### (iOS 13+ specific)
|
|
698
|
+
*/
|
|
699
|
+
searchBarBackgroundColor?: string;
|
|
700
|
+
/**
|
|
701
|
+
* The tint color of the UISearchBar
|
|
702
|
+
* #### (iOS 11+ specific)
|
|
703
|
+
*/
|
|
704
|
+
searchBarTintColor?: string;
|
|
705
|
+
/**
|
|
706
|
+
* Controls Hiding NavBar on focus UISearchBar
|
|
707
|
+
* #### (iOS 11+ specific)
|
|
708
|
+
*/
|
|
709
|
+
hideNavBarOnFocusSearchBar?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Control the Large Title configuration
|
|
712
|
+
* #### (iOS 11+ specific)
|
|
713
|
+
*/
|
|
714
|
+
largeTitle?: OptionsTopBarLargeTitle;
|
|
715
|
+
/**
|
|
716
|
+
* Set the height of the navbar in dp
|
|
717
|
+
* #### (Android specific)
|
|
718
|
+
*/
|
|
719
|
+
height?: AndroidDensityNumber;
|
|
720
|
+
/**
|
|
721
|
+
* Change the navbar border color
|
|
722
|
+
*/
|
|
723
|
+
borderColor?: Color;
|
|
724
|
+
/**
|
|
725
|
+
* Set the border height of the navbar in dp
|
|
726
|
+
* #### (Android specific)
|
|
727
|
+
*/
|
|
728
|
+
borderHeight?: AndroidDensityNumber;
|
|
729
|
+
/**
|
|
730
|
+
* Set the elevation of the navbar in dp
|
|
731
|
+
* #### (Android specific)
|
|
732
|
+
*/
|
|
733
|
+
elevation?: AndroidDensityNumber;
|
|
734
|
+
/**
|
|
735
|
+
* Layout top margin
|
|
736
|
+
* #### (Android specific)
|
|
737
|
+
*/
|
|
738
|
+
topMargin?: number;
|
|
739
|
+
/**
|
|
740
|
+
* Toggles animation on left buttons bar upon changes
|
|
741
|
+
*/
|
|
742
|
+
animateLeftButtons?: boolean;
|
|
743
|
+
/**
|
|
744
|
+
* Toggles animation on right buttons bar upon changes
|
|
745
|
+
*/
|
|
746
|
+
animateRightButtons?: boolean;
|
|
747
|
+
}
|
|
748
|
+
export interface SharedElementTransition {
|
|
749
|
+
fromId: string;
|
|
750
|
+
toId: string;
|
|
751
|
+
duration?: number;
|
|
752
|
+
interpolation?: Interpolation;
|
|
753
|
+
}
|
|
754
|
+
export interface ElementTransition {
|
|
755
|
+
id: string;
|
|
756
|
+
alpha?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
757
|
+
translationX?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
758
|
+
translationY?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
759
|
+
scaleX?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
760
|
+
scaleY?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
761
|
+
rotationX?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
762
|
+
rotationY?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
763
|
+
x?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
764
|
+
y?: AppearingElementAnimation | DisappearingElementAnimation;
|
|
765
|
+
}
|
|
766
|
+
export interface AppearingElementAnimation extends ElementAnimation {
|
|
767
|
+
from: number;
|
|
768
|
+
}
|
|
769
|
+
export interface DisappearingElementAnimation extends ElementAnimation {
|
|
770
|
+
to: number;
|
|
771
|
+
}
|
|
772
|
+
export interface ElementAnimation {
|
|
773
|
+
duration: number;
|
|
774
|
+
startDelay?: number;
|
|
775
|
+
interpolation?: Interpolation;
|
|
776
|
+
}
|
|
777
|
+
export interface OptionsFab {
|
|
778
|
+
id: string;
|
|
779
|
+
backgroundColor?: Color;
|
|
780
|
+
clickColor?: Color;
|
|
781
|
+
rippleColor?: Color;
|
|
782
|
+
visible?: boolean;
|
|
783
|
+
icon?: ImageResource;
|
|
784
|
+
iconColor?: Color;
|
|
785
|
+
alignHorizontally?: 'left' | 'right';
|
|
786
|
+
hideOnScroll?: boolean;
|
|
787
|
+
size?: 'mini' | 'regular';
|
|
788
|
+
}
|
|
789
|
+
export interface OptionsBottomTabs {
|
|
790
|
+
/**
|
|
791
|
+
* Show or hide the bottom tabs
|
|
792
|
+
*/
|
|
793
|
+
visible?: boolean;
|
|
794
|
+
/**
|
|
795
|
+
* Enable animations when toggling visibility
|
|
796
|
+
*/
|
|
797
|
+
animate?: boolean;
|
|
798
|
+
/**
|
|
799
|
+
* Controls whether tab selection is animated or not
|
|
800
|
+
* #### (android specific)
|
|
801
|
+
* @default true
|
|
802
|
+
*/
|
|
803
|
+
animateTabSelection?: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* Use large icons when possible, even when three tabs without titles are displayed
|
|
806
|
+
* #### (android specific)
|
|
807
|
+
* @default false
|
|
808
|
+
*/
|
|
809
|
+
preferLargeIcons?: boolean;
|
|
810
|
+
/**
|
|
811
|
+
* Switch to another screen within the bottom tabs via index (starting from 0)
|
|
812
|
+
*/
|
|
813
|
+
currentTabIndex?: number;
|
|
814
|
+
/**
|
|
815
|
+
* Switch to another screen within the bottom tabs via screen name
|
|
816
|
+
*/
|
|
817
|
+
currentTabId?: string;
|
|
818
|
+
/**
|
|
819
|
+
* Set a testID to reference the bottom tabs
|
|
820
|
+
*/
|
|
821
|
+
testID?: string;
|
|
822
|
+
/**
|
|
823
|
+
* Overrides the text that's read by the screen reader when the user interacts with the element
|
|
824
|
+
* #### (iOS specific)
|
|
825
|
+
*/
|
|
826
|
+
accessibilityLabel?: string;
|
|
827
|
+
/**
|
|
828
|
+
* Draw screen component under the tab bar
|
|
829
|
+
*/
|
|
830
|
+
drawBehind?: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* Set a background color for the bottom tabs.<br/>
|
|
833
|
+
* On Android - also applicable when translucence is applied, but a semi-transparent
|
|
834
|
+
* color should be used (e.g. `rgba(255, 0, 0, 0.25)`).
|
|
835
|
+
*/
|
|
836
|
+
backgroundColor?: Color;
|
|
837
|
+
/**
|
|
838
|
+
* Set when tabs are attached to hierarchy consequently when the
|
|
839
|
+
* RootView's constructor is called.
|
|
840
|
+
*/
|
|
841
|
+
tabsAttachMode?: 'together' | 'afterInitialTab' | 'onSwitchToTab';
|
|
842
|
+
/**
|
|
843
|
+
* Control the Bottom Tabs blur style
|
|
844
|
+
* #### (iOS specific)
|
|
845
|
+
* @requires translucent: true
|
|
846
|
+
* @default 'default'
|
|
847
|
+
*/
|
|
848
|
+
barStyle?: 'default' | 'black';
|
|
849
|
+
/**
|
|
850
|
+
* Control the way the bottom tabs are laid out.
|
|
851
|
+
* - `stretch`: Fill the entire width of the screen.
|
|
852
|
+
* - `compact`: Occupy the minimum width needed to hold tab buttons. Recommended for
|
|
853
|
+
* usage in conjunction with `drawBehind: true`.
|
|
854
|
+
*
|
|
855
|
+
* #### (Android specific)
|
|
856
|
+
* @default 'stretch'
|
|
857
|
+
*/
|
|
858
|
+
layoutStyle?: 'stretch' | 'compact';
|
|
859
|
+
/**
|
|
860
|
+
* Specify a corner-radius (in dip) in order to apply round corners to the tabs container.<br/>
|
|
861
|
+
* Mainly suitable when used in conjunction with `layoutStyle: 'compact'`
|
|
862
|
+
* #### (Android specific)
|
|
863
|
+
*/
|
|
864
|
+
cornerRadius?: AndroidDensityNumber;
|
|
865
|
+
/**
|
|
866
|
+
* Bottom-margin to set in order to apply a "hover" effect.
|
|
867
|
+
* Works best when used in conjunction with `layoutStyle: 'compact'` and `drawBehind: true`.
|
|
868
|
+
* #### (Android specific)
|
|
869
|
+
*/
|
|
870
|
+
bottomMargin?: AndroidDensityNumber;
|
|
871
|
+
/**
|
|
872
|
+
* Allows the bottom tabs to be translucent (blurred). Doesn't necessarily play
|
|
873
|
+
* nice with shadow effects on Android.
|
|
874
|
+
* #### Android: experimental, turn on using native toggle `TAB_BAR_TRANSLUCENCE`.
|
|
875
|
+
*/
|
|
876
|
+
translucent?: boolean;
|
|
877
|
+
/**
|
|
878
|
+
* Set a custom radius to be used in the blur effect. Higher is blurrier, but
|
|
879
|
+
* also more CPU-intensive.<br/>
|
|
880
|
+
* Note: The blurring is performed following a bitmap downscale of x4.0, so
|
|
881
|
+
* ultimately the actual radius is (4*blurRadius).
|
|
882
|
+
* #### (Android specific)
|
|
883
|
+
* @defaultValue 1.0
|
|
884
|
+
*/
|
|
885
|
+
blurRadius?: AndroidDensityNumber;
|
|
886
|
+
/**
|
|
887
|
+
* Hide the top line of the Tab Bar
|
|
888
|
+
* #### (iOS specific)
|
|
889
|
+
*/
|
|
890
|
+
hideShadow?: boolean;
|
|
891
|
+
/**
|
|
892
|
+
* Control the text display mode below the tab icon
|
|
893
|
+
* #### (Android specific)
|
|
894
|
+
*/
|
|
895
|
+
titleDisplayMode?: 'alwaysShow' | 'showWhenActive' | 'alwaysHide' | 'showWhenActiveForce';
|
|
896
|
+
/**
|
|
897
|
+
* Set the elevation of the Bottom Tabs in dp
|
|
898
|
+
* #### (Android specific)
|
|
899
|
+
*/
|
|
900
|
+
elevation?: AndroidDensityNumber;
|
|
901
|
+
/**
|
|
902
|
+
* Hides the BottomTabs on scroll to increase the amount of content visible to the user.
|
|
903
|
+
* The options requires that the scrollable view will be the root view of the screen and that it specifies `nestedScrollEnabled: true`.
|
|
904
|
+
* #### (Android specific)
|
|
905
|
+
*/
|
|
906
|
+
hideOnScroll?: boolean;
|
|
907
|
+
/**
|
|
908
|
+
* Control the top border color of the Bottom tabs bar
|
|
909
|
+
*/
|
|
910
|
+
borderColor?: Color;
|
|
911
|
+
/**
|
|
912
|
+
* Control the top border width of the Bottom tabs bar
|
|
913
|
+
*/
|
|
914
|
+
borderWidth?: number;
|
|
915
|
+
/**
|
|
916
|
+
* Control the shadow of the Bottom tabs bar
|
|
917
|
+
*/
|
|
918
|
+
shadow?: ShadowOptions;
|
|
919
|
+
/**
|
|
920
|
+
* Visual options for the floating row that hosts custom React-component
|
|
921
|
+
* bottom tab cells. Only takes effect when every `bottomTab.component`
|
|
922
|
+
* is set on that `bottomTabs` layout.
|
|
923
|
+
*
|
|
924
|
+
* Same JS shape on iOS and Android. iOS applies options via the native
|
|
925
|
+
* parser; Android receives them through `RNNBottomTabsCustomRowModule`.
|
|
926
|
+
*/
|
|
927
|
+
customRow?: BottomTabsCustomRowOptions;
|
|
928
|
+
}
|
|
929
|
+
export interface BottomTabsCustomRowOptions {
|
|
930
|
+
/**
|
|
931
|
+
* Content height of the row in points (iOS) / dp (Android). Excludes
|
|
932
|
+
* safe-area inset. Total row height = `height` + safe bottom + `bottomMargin`.
|
|
933
|
+
*
|
|
934
|
+
* Default: native tab content height; on iOS 26+ an extra 18pt when omitted.
|
|
935
|
+
*/
|
|
936
|
+
height?: number;
|
|
937
|
+
/**
|
|
938
|
+
* Solid background color for the row. When set, overrides
|
|
939
|
+
* `backgroundEffect`.
|
|
940
|
+
*/
|
|
941
|
+
backgroundColor?: Color;
|
|
942
|
+
/**
|
|
943
|
+
* Visual effect for the row background.
|
|
944
|
+
* - `glass`: iOS 26+ `UIGlassEffect`.
|
|
945
|
+
* - `blur`: `UIBlurEffect` with `systemChromeMaterial`.
|
|
946
|
+
* - `none`: fully transparent.
|
|
947
|
+
*
|
|
948
|
+
* Default: `glass` on iOS 26+, `blur` on older versions.
|
|
949
|
+
*/
|
|
950
|
+
backgroundEffect?: 'glass' | 'blur' | 'none';
|
|
951
|
+
/**
|
|
952
|
+
* Corner radius applied to the row's background.
|
|
953
|
+
* Default: 28 on iOS 26+, 0 below.
|
|
954
|
+
*/
|
|
955
|
+
cornerRadius?: number;
|
|
956
|
+
/**
|
|
957
|
+
* Horizontal inset from the screen edges.
|
|
958
|
+
* Default: 16 on iOS 26+, 0 below.
|
|
959
|
+
*/
|
|
960
|
+
horizontalMargin?: number;
|
|
961
|
+
/**
|
|
962
|
+
* Distance between the row's bottom edge and the safe-area bottom.
|
|
963
|
+
* Default: 0.
|
|
964
|
+
*/
|
|
965
|
+
bottomMargin?: number;
|
|
966
|
+
}
|
|
967
|
+
export interface ShadowOptions {
|
|
968
|
+
/**
|
|
969
|
+
* The opacity of the shadow
|
|
970
|
+
*/
|
|
971
|
+
opacity?: number;
|
|
972
|
+
/**
|
|
973
|
+
* The color of the shadow
|
|
974
|
+
*/
|
|
975
|
+
color?: Color;
|
|
976
|
+
/**
|
|
977
|
+
* The blur radius used to create the shadow
|
|
978
|
+
*/
|
|
979
|
+
radius?: number;
|
|
980
|
+
}
|
|
981
|
+
export interface DotIndicatorOptions {
|
|
982
|
+
color?: Color;
|
|
983
|
+
size?: number;
|
|
984
|
+
visible?: boolean;
|
|
985
|
+
}
|
|
986
|
+
export interface ImageSystemSource {
|
|
987
|
+
system: string;
|
|
988
|
+
fallback?: ImageRequireSource | string;
|
|
989
|
+
}
|
|
990
|
+
export type ImageResource = ImageSourcePropType | string | ImageSystemSource;
|
|
991
|
+
export interface OptionsBottomTab {
|
|
992
|
+
dotIndicator?: DotIndicatorOptions;
|
|
993
|
+
/**
|
|
994
|
+
* Render a React component as the tab item content (icon + text area).
|
|
995
|
+
*
|
|
996
|
+
* When set, the native icon, text and font props (`text`, `icon`,
|
|
997
|
+
* `selectedIcon`, `sfSymbol`, `sfSelectedSymbol`, `iconColor`,
|
|
998
|
+
* `selectedIconColor`, `iconWidth`, `iconHeight`, `iconInsets`,
|
|
999
|
+
* `fontFamily`, `fontWeight`, `fontSize`, `selectedFontSize`,
|
|
1000
|
+
* `textColor`, `selectedTextColor`) are ignored for that tab.
|
|
1001
|
+
*
|
|
1002
|
+
* For the custom rendering to take effect every tab in the
|
|
1003
|
+
* `bottomTabs` layout must declare a `component`. If only some
|
|
1004
|
+
* tabs declare one a warning is logged and native rendering is
|
|
1005
|
+
* used for all tabs.
|
|
1006
|
+
*
|
|
1007
|
+
* The component receives the following initial props and
|
|
1008
|
+
* subsequent prop updates:
|
|
1009
|
+
* - `componentId`: stable id for this tab item instance
|
|
1010
|
+
* - `tabIndex`: position of the tab (0-based)
|
|
1011
|
+
* - `selected`: whether this tab is currently selected
|
|
1012
|
+
* - `badge`: current badge text (mirrors `bottomTab.badge`)
|
|
1013
|
+
*
|
|
1014
|
+
* Native still owns selection, hide/show, drawBehind, animations
|
|
1015
|
+
* and the dot indicator. To switch tabs from inside the component
|
|
1016
|
+
* use `Navigation.mergeOptions(parentId, { bottomTabs: { currentTabIndex } })`.
|
|
1017
|
+
*/
|
|
1018
|
+
component?: {
|
|
1019
|
+
/**
|
|
1020
|
+
* The registered name of the component (passed to
|
|
1021
|
+
* `Navigation.registerComponent`).
|
|
1022
|
+
*/
|
|
1023
|
+
name: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Props passed once when the component is created. Updates from
|
|
1026
|
+
* native (`selected`, `badge`) are delivered as separate prop
|
|
1027
|
+
* updates.
|
|
1028
|
+
*/
|
|
1029
|
+
passProps?: object;
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* Set the text to display below the icon
|
|
1033
|
+
*/
|
|
1034
|
+
text?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Set the text in a badge that is overlayed over the component
|
|
1037
|
+
*/
|
|
1038
|
+
badge?: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* Set the background color of the badge that is overlayed over the component
|
|
1041
|
+
*/
|
|
1042
|
+
badgeColor?: Color;
|
|
1043
|
+
/**
|
|
1044
|
+
* Show the badge with the animation.
|
|
1045
|
+
* #### (Android specific)
|
|
1046
|
+
*/
|
|
1047
|
+
animateBadge?: boolean;
|
|
1048
|
+
/**
|
|
1049
|
+
* Set a testID to reference the tab in E2E tests
|
|
1050
|
+
*/
|
|
1051
|
+
testID?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Set the tab icon
|
|
1054
|
+
*/
|
|
1055
|
+
icon?: ImageResource;
|
|
1056
|
+
/**
|
|
1057
|
+
* Set the icon tint
|
|
1058
|
+
*/
|
|
1059
|
+
iconColor?: Color;
|
|
1060
|
+
/**
|
|
1061
|
+
* Set the icon width
|
|
1062
|
+
* #### (Android specific)
|
|
1063
|
+
*/
|
|
1064
|
+
iconWidth?: number;
|
|
1065
|
+
/**
|
|
1066
|
+
* Set the icon height
|
|
1067
|
+
* #### (Android specific)
|
|
1068
|
+
*/
|
|
1069
|
+
iconHeight?: number;
|
|
1070
|
+
/**
|
|
1071
|
+
* Set the text color
|
|
1072
|
+
*/
|
|
1073
|
+
textColor?: Color;
|
|
1074
|
+
/**
|
|
1075
|
+
* Set the selected icon tint
|
|
1076
|
+
*/
|
|
1077
|
+
selectedIconColor?: Color;
|
|
1078
|
+
/**
|
|
1079
|
+
* Set the selected text color
|
|
1080
|
+
*/
|
|
1081
|
+
selectedTextColor?: Color;
|
|
1082
|
+
/**
|
|
1083
|
+
* Set the font family for the tab's text
|
|
1084
|
+
*/
|
|
1085
|
+
fontFamily?: FontFamily;
|
|
1086
|
+
/**
|
|
1087
|
+
* Set the font style for the tab's text
|
|
1088
|
+
*/
|
|
1089
|
+
fontStyle?: FontStyle;
|
|
1090
|
+
/**
|
|
1091
|
+
* Specifies font weight. The values 'normal' and 'bold' are supported
|
|
1092
|
+
* for most fonts. Not all fonts have a variant for each of the numeric
|
|
1093
|
+
* values, in that case the closest one is chosen.
|
|
1094
|
+
*/
|
|
1095
|
+
fontWeight?: FontWeight;
|
|
1096
|
+
/**
|
|
1097
|
+
* Set the text font size
|
|
1098
|
+
*/
|
|
1099
|
+
fontSize?: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* Set the insets of the icon
|
|
1102
|
+
*/
|
|
1103
|
+
iconInsets?: Insets;
|
|
1104
|
+
/**
|
|
1105
|
+
* Set selected icon image
|
|
1106
|
+
* #### (iOS specific)
|
|
1107
|
+
*/
|
|
1108
|
+
selectedIcon?: ImageResource;
|
|
1109
|
+
/**
|
|
1110
|
+
* Set true if you want to disable the icon tinting
|
|
1111
|
+
* #### (iOS specific)
|
|
1112
|
+
*/
|
|
1113
|
+
disableIconTint?: boolean;
|
|
1114
|
+
/**
|
|
1115
|
+
* Set true if you want to disable the text tinting
|
|
1116
|
+
* #### (iOS specific)
|
|
1117
|
+
*/
|
|
1118
|
+
disableSelectedIconTint?: boolean;
|
|
1119
|
+
/**
|
|
1120
|
+
* Set the font size for selected tabs
|
|
1121
|
+
* #### (Android specific)
|
|
1122
|
+
*/
|
|
1123
|
+
selectedFontSize?: number;
|
|
1124
|
+
/**
|
|
1125
|
+
* If it's set to false, pressing a tab won't select the tab
|
|
1126
|
+
* instead it will emit a bottomTabPressedEvent
|
|
1127
|
+
*/
|
|
1128
|
+
selectTabOnPress?: boolean;
|
|
1129
|
+
/**
|
|
1130
|
+
* Pop to root of stack by tapping on already selected tab
|
|
1131
|
+
* #### (Android specific)
|
|
1132
|
+
*/
|
|
1133
|
+
popToRoot?: boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Set the SF symbol as icon (will be used primarily)
|
|
1136
|
+
* #### (iOS 13+ specific)
|
|
1137
|
+
*/
|
|
1138
|
+
sfSymbol?: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* Set the SF symbol as selected icon (will be used primarily)
|
|
1141
|
+
* #### (iOS 13+ specific)
|
|
1142
|
+
*/
|
|
1143
|
+
sfSelectedSymbol?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* Set the tab bar item to a system-provided role.
|
|
1146
|
+
* Uses `UITabBarItem(tabBarSystemItem:)` on iOS.
|
|
1147
|
+
*
|
|
1148
|
+
* By default the system provides the icon and title. You can
|
|
1149
|
+
* override the icon by providing `icon`, `selectedIcon`,
|
|
1150
|
+
* `sfSymbol`, or `sfSelectedSymbol` — they are applied after
|
|
1151
|
+
* creation and replace the system-provided image.
|
|
1152
|
+
* `iconColor` and `selectedIconColor` are applied as a tint
|
|
1153
|
+
* to the custom icon when one is provided.
|
|
1154
|
+
*
|
|
1155
|
+
* **`'search'`** — on iOS 26+ this renders as a floating
|
|
1156
|
+
* Liquid Glass button. Only one tab per `bottomTabs` layout
|
|
1157
|
+
* may use this role; duplicates fall back to a normal tab.
|
|
1158
|
+
*
|
|
1159
|
+
* **`'more'`** — activates UIKit's built-in "More" navigation
|
|
1160
|
+
* controller. Tabs beyond the visible limit are moved into
|
|
1161
|
+
* it automatically.
|
|
1162
|
+
*
|
|
1163
|
+
* Properties that remain ignored for role tabs: `text`,
|
|
1164
|
+
* `fontSize`, `fontFamily`, `fontWeight`, `iconInsets`.
|
|
1165
|
+
*
|
|
1166
|
+
* #### (iOS specific)
|
|
1167
|
+
*/
|
|
1168
|
+
role?: 'search' | 'bookmarks' | 'contacts' | 'downloads' | 'favorites' | 'featured' | 'history' | 'more' | 'mostRecent' | 'mostViewed' | 'recents' | 'topRated';
|
|
1169
|
+
}
|
|
1170
|
+
export interface SideMenuSide {
|
|
1171
|
+
/**
|
|
1172
|
+
* Show or hide the side menu
|
|
1173
|
+
*/
|
|
1174
|
+
visible?: boolean;
|
|
1175
|
+
/**
|
|
1176
|
+
* Enable or disable the side menu
|
|
1177
|
+
*/
|
|
1178
|
+
enabled?: boolean;
|
|
1179
|
+
/**
|
|
1180
|
+
* Set the width of the side menu
|
|
1181
|
+
*/
|
|
1182
|
+
width?: number;
|
|
1183
|
+
/**
|
|
1184
|
+
* Set the height of the side menu
|
|
1185
|
+
*/
|
|
1186
|
+
height?: number;
|
|
1187
|
+
/**
|
|
1188
|
+
* Stretch sideMenu contents when opened past the width
|
|
1189
|
+
*
|
|
1190
|
+
* **Not applicable when `openMode` is `aboveContent`**
|
|
1191
|
+
*
|
|
1192
|
+
* #### (iOS specific)
|
|
1193
|
+
* @default true
|
|
1194
|
+
*/
|
|
1195
|
+
shouldStretchDrawer?: boolean;
|
|
1196
|
+
/**
|
|
1197
|
+
* Configure the opening mode of the side menu
|
|
1198
|
+
* #### (iOS specific)
|
|
1199
|
+
* @default 'pushContent'
|
|
1200
|
+
*/
|
|
1201
|
+
openMode?: 'pushContent' | 'aboveContent';
|
|
1202
|
+
}
|
|
1203
|
+
export interface OptionsSideMenu {
|
|
1204
|
+
/**
|
|
1205
|
+
* Configure the left side menu
|
|
1206
|
+
*/
|
|
1207
|
+
left?: SideMenuSide;
|
|
1208
|
+
/**
|
|
1209
|
+
* Configure the right side menu
|
|
1210
|
+
*/
|
|
1211
|
+
right?: SideMenuSide;
|
|
1212
|
+
/**
|
|
1213
|
+
* Configure how a user is allowed to open a drawer using gestures
|
|
1214
|
+
* #### (iOS specific)
|
|
1215
|
+
* @default 'entireScreen'
|
|
1216
|
+
*/
|
|
1217
|
+
openGestureMode?: 'entireScreen' | 'bezel';
|
|
1218
|
+
}
|
|
1219
|
+
export interface OverlayOptions {
|
|
1220
|
+
/**
|
|
1221
|
+
* Capture touches outside of the Component View
|
|
1222
|
+
*/
|
|
1223
|
+
interceptTouchOutside?: boolean;
|
|
1224
|
+
/**
|
|
1225
|
+
* Control whether this Overlay should handle Keyboard events.
|
|
1226
|
+
* Set this to true if your Overlay contains a TextInput.
|
|
1227
|
+
*/
|
|
1228
|
+
handleKeyboardEvents?: boolean;
|
|
1229
|
+
}
|
|
1230
|
+
export interface ModalOptions {
|
|
1231
|
+
/**
|
|
1232
|
+
* Control whether this modal should be dismiss using swipe gesture when the modalPresentationStyle = 'pageSheet'
|
|
1233
|
+
* #### (iOS specific)
|
|
1234
|
+
*/
|
|
1235
|
+
swipeToDismiss?: boolean;
|
|
1236
|
+
}
|
|
1237
|
+
export interface OptionsPreviewAction {
|
|
1238
|
+
/**
|
|
1239
|
+
* Reference ID to get callbacks from
|
|
1240
|
+
*/
|
|
1241
|
+
id: string;
|
|
1242
|
+
/**
|
|
1243
|
+
* Action text
|
|
1244
|
+
*/
|
|
1245
|
+
title: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* Action style
|
|
1248
|
+
*/
|
|
1249
|
+
style?: 'default' | 'selected' | 'destructive';
|
|
1250
|
+
/**
|
|
1251
|
+
* Subactions that will be shown when this action is pressed.
|
|
1252
|
+
*/
|
|
1253
|
+
actions?: OptionsPreviewAction[];
|
|
1254
|
+
}
|
|
1255
|
+
export interface OptionsPreview {
|
|
1256
|
+
/**
|
|
1257
|
+
* Pass a react node tag to mark a SourceRect for a specific
|
|
1258
|
+
* peek and pop preview element.
|
|
1259
|
+
*/
|
|
1260
|
+
reactTag?: number;
|
|
1261
|
+
/**
|
|
1262
|
+
* You can set this property specify the width of the preview.
|
|
1263
|
+
* If the width is greater than the device width, it will be zoomed in.
|
|
1264
|
+
*/
|
|
1265
|
+
width?: number;
|
|
1266
|
+
/**
|
|
1267
|
+
* Height of the preview
|
|
1268
|
+
*/
|
|
1269
|
+
height?: number;
|
|
1270
|
+
/**
|
|
1271
|
+
* You can control if the users gesture will result in pushing
|
|
1272
|
+
* the preview screen into the stack.
|
|
1273
|
+
*/
|
|
1274
|
+
commit?: boolean;
|
|
1275
|
+
/**
|
|
1276
|
+
* List of actions that will appear underneath the preview window.
|
|
1277
|
+
* They can be nested for sub actions.
|
|
1278
|
+
*/
|
|
1279
|
+
actions?: OptionsPreviewAction[];
|
|
1280
|
+
}
|
|
1281
|
+
export interface OptionsAnimationPropertyConfig {
|
|
1282
|
+
/**
|
|
1283
|
+
* Animate from this value, ex. 0
|
|
1284
|
+
*/
|
|
1285
|
+
from?: number;
|
|
1286
|
+
/**
|
|
1287
|
+
* Animate to this value, ex. 1
|
|
1288
|
+
*/
|
|
1289
|
+
to?: number;
|
|
1290
|
+
/**
|
|
1291
|
+
* Animation duration
|
|
1292
|
+
* @default 300
|
|
1293
|
+
*/
|
|
1294
|
+
duration?: number;
|
|
1295
|
+
/**
|
|
1296
|
+
* Animation delay
|
|
1297
|
+
* @default 0
|
|
1298
|
+
*/
|
|
1299
|
+
startDelay?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* Animation interplation
|
|
1302
|
+
*/
|
|
1303
|
+
interpolation?: Interpolation;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Used to animate the actual content added to the hierarchy.
|
|
1307
|
+
* Content can be a React component (component) or any other layout (Stack, BottomTabs etc)
|
|
1308
|
+
*/
|
|
1309
|
+
export interface ScreenAnimationOptions {
|
|
1310
|
+
/**
|
|
1311
|
+
* Animate the element over x value
|
|
1312
|
+
*/
|
|
1313
|
+
x?: OptionsAnimationPropertyConfig;
|
|
1314
|
+
/**
|
|
1315
|
+
* Animate the element over y value
|
|
1316
|
+
*/
|
|
1317
|
+
y?: OptionsAnimationPropertyConfig;
|
|
1318
|
+
/**
|
|
1319
|
+
* Animate the element over translateX
|
|
1320
|
+
*/
|
|
1321
|
+
translationX?: OptionsAnimationPropertyConfig;
|
|
1322
|
+
/**
|
|
1323
|
+
* Animate the element over translateY
|
|
1324
|
+
*/
|
|
1325
|
+
translationY?: OptionsAnimationPropertyConfig;
|
|
1326
|
+
/**
|
|
1327
|
+
* Animate the element over opacity
|
|
1328
|
+
*/
|
|
1329
|
+
alpha?: OptionsAnimationPropertyConfig;
|
|
1330
|
+
/**
|
|
1331
|
+
* Animate the element over scaleX
|
|
1332
|
+
*/
|
|
1333
|
+
scaleX?: OptionsAnimationPropertyConfig;
|
|
1334
|
+
/**
|
|
1335
|
+
* Animate the element over scaleY
|
|
1336
|
+
*/
|
|
1337
|
+
scaleY?: OptionsAnimationPropertyConfig;
|
|
1338
|
+
/**
|
|
1339
|
+
* Animate the element over rotationX
|
|
1340
|
+
*/
|
|
1341
|
+
rotationX?: OptionsAnimationPropertyConfig;
|
|
1342
|
+
/**
|
|
1343
|
+
* Animate the element over rotationY
|
|
1344
|
+
*/
|
|
1345
|
+
rotationY?: OptionsAnimationPropertyConfig;
|
|
1346
|
+
/**
|
|
1347
|
+
* Animate the element over rotation
|
|
1348
|
+
*/
|
|
1349
|
+
rotation?: OptionsAnimationPropertyConfig;
|
|
1350
|
+
/**
|
|
1351
|
+
* Wait for the root view to render before start animation
|
|
1352
|
+
*/
|
|
1353
|
+
waitForRender?: boolean;
|
|
1354
|
+
/**
|
|
1355
|
+
* Enable or disable the animation
|
|
1356
|
+
* @default true
|
|
1357
|
+
*/
|
|
1358
|
+
enabled?: boolean;
|
|
1359
|
+
}
|
|
1360
|
+
export interface IconInsets {
|
|
1361
|
+
/**
|
|
1362
|
+
* Configure top inset
|
|
1363
|
+
*/
|
|
1364
|
+
top?: number;
|
|
1365
|
+
/**
|
|
1366
|
+
* Configure left inset
|
|
1367
|
+
*/
|
|
1368
|
+
left?: number;
|
|
1369
|
+
/**
|
|
1370
|
+
* Configure bottom inset
|
|
1371
|
+
*/
|
|
1372
|
+
bottom?: number;
|
|
1373
|
+
/**
|
|
1374
|
+
* Configure right inset
|
|
1375
|
+
*/
|
|
1376
|
+
right?: number;
|
|
1377
|
+
}
|
|
1378
|
+
export interface ColorAnimationOptions {
|
|
1379
|
+
/**
|
|
1380
|
+
* Color duration time; Default is as determined by the OS
|
|
1381
|
+
*/
|
|
1382
|
+
duration?: number;
|
|
1383
|
+
}
|
|
1384
|
+
export interface ViewAnimationOptions extends ScreenAnimationOptions {
|
|
1385
|
+
/**
|
|
1386
|
+
* ID of the Top Bar we want to animate
|
|
1387
|
+
*/
|
|
1388
|
+
id?: string;
|
|
1389
|
+
}
|
|
1390
|
+
export interface TopBarAnimationOptions extends ViewAnimationOptions {
|
|
1391
|
+
/**
|
|
1392
|
+
* Animation of the top-bar's background color, in case the top-bar background color
|
|
1393
|
+
* has been explicitly specified.
|
|
1394
|
+
*
|
|
1395
|
+
* Applicable only in transition of screens with color (non-component) backgrounds.
|
|
1396
|
+
*/
|
|
1397
|
+
bkgColor?: ColorAnimationOptions;
|
|
1398
|
+
}
|
|
1399
|
+
export interface StatusBarAnimationOptions extends ViewAnimationOptions {
|
|
1400
|
+
/**
|
|
1401
|
+
* Animation of the status-bar's background color, in case its background color
|
|
1402
|
+
* has been explicitly specified.
|
|
1403
|
+
*/
|
|
1404
|
+
bkgColor?: ColorAnimationOptions;
|
|
1405
|
+
}
|
|
1406
|
+
export interface EnterExitAnimationOptions {
|
|
1407
|
+
/**
|
|
1408
|
+
* Animate opening component
|
|
1409
|
+
*/
|
|
1410
|
+
enter?: ViewAnimationOptions;
|
|
1411
|
+
/**
|
|
1412
|
+
* Animate closing component
|
|
1413
|
+
*/
|
|
1414
|
+
exit?: ViewAnimationOptions;
|
|
1415
|
+
}
|
|
1416
|
+
export interface OldModalAnimationOptions extends ViewAnimationOptions {
|
|
1417
|
+
/**
|
|
1418
|
+
* Animations to be applied on elements which are shared between the appearing and disappearing screens
|
|
1419
|
+
*/
|
|
1420
|
+
sharedElementTransitions?: SharedElementTransition[];
|
|
1421
|
+
/**
|
|
1422
|
+
* Animations to be applied on views in the appearing or disappearing screens
|
|
1423
|
+
*/
|
|
1424
|
+
elementTransitions?: ElementTransition[];
|
|
1425
|
+
}
|
|
1426
|
+
export interface ModalAnimationOptions {
|
|
1427
|
+
/**
|
|
1428
|
+
* Animate opening modal
|
|
1429
|
+
*/
|
|
1430
|
+
enter?: ViewAnimationOptions;
|
|
1431
|
+
/**
|
|
1432
|
+
* Animate closing modal
|
|
1433
|
+
*/
|
|
1434
|
+
exit?: ViewAnimationOptions;
|
|
1435
|
+
/**
|
|
1436
|
+
* Animations to be applied on elements which are shared between the appearing and disappearing screens
|
|
1437
|
+
*/
|
|
1438
|
+
sharedElementTransitions?: SharedElementTransition[];
|
|
1439
|
+
/**
|
|
1440
|
+
* Animations to be applied on views in the appearing or disappearing screens
|
|
1441
|
+
*/
|
|
1442
|
+
elementTransitions?: ElementTransition[];
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* Used for describing stack commands animations.
|
|
1446
|
+
*/
|
|
1447
|
+
export interface StackAnimationOptions {
|
|
1448
|
+
/**
|
|
1449
|
+
* Wait for the View to render before start animation
|
|
1450
|
+
*/
|
|
1451
|
+
waitForRender?: boolean;
|
|
1452
|
+
/**
|
|
1453
|
+
* Enable or disable the animation
|
|
1454
|
+
* @default true
|
|
1455
|
+
*/
|
|
1456
|
+
enabled?: boolean;
|
|
1457
|
+
/**
|
|
1458
|
+
* Configure animations for the top bar
|
|
1459
|
+
*/
|
|
1460
|
+
topBar?: TopBarAnimationOptions | {
|
|
1461
|
+
enter?: TopBarAnimationOptions;
|
|
1462
|
+
exit?: TopBarAnimationOptions;
|
|
1463
|
+
};
|
|
1464
|
+
/**
|
|
1465
|
+
* Configure animations for the status bar (typically aligned
|
|
1466
|
+
* with the top-bar's)
|
|
1467
|
+
*/
|
|
1468
|
+
statusBar?: StatusBarAnimationOptions | {
|
|
1469
|
+
enter?: StatusBarAnimationOptions;
|
|
1470
|
+
exit?: StatusBarAnimationOptions;
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* Configure animations for the bottom tabs
|
|
1474
|
+
*/
|
|
1475
|
+
bottomTabs?: ViewAnimationOptions | {
|
|
1476
|
+
enter?: ViewAnimationOptions;
|
|
1477
|
+
exit?: ViewAnimationOptions;
|
|
1478
|
+
};
|
|
1479
|
+
/**
|
|
1480
|
+
* Configure animations for the content (Screen)
|
|
1481
|
+
*/
|
|
1482
|
+
content?: ViewAnimationOptions | {
|
|
1483
|
+
enter?: ViewAnimationOptions;
|
|
1484
|
+
exit?: ViewAnimationOptions;
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* Animations to be applied on elements which are shared between the appearing and disappearing screens
|
|
1488
|
+
*/
|
|
1489
|
+
sharedElementTransitions?: SharedElementTransition[];
|
|
1490
|
+
/**
|
|
1491
|
+
* Animations to be applied on views in the appearing or disappearing screens
|
|
1492
|
+
*/
|
|
1493
|
+
elementTransitions?: ElementTransition[];
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Used for configuring command animations
|
|
1497
|
+
*/
|
|
1498
|
+
export interface AnimationOptions {
|
|
1499
|
+
/**
|
|
1500
|
+
* Configure the setStackRoot animation
|
|
1501
|
+
*/
|
|
1502
|
+
setStackRoot?: ViewAnimationOptions | StackAnimationOptions;
|
|
1503
|
+
/**
|
|
1504
|
+
* Configure the setRoot animation
|
|
1505
|
+
*/
|
|
1506
|
+
setRoot?: ViewAnimationOptions | EnterExitAnimationOptions;
|
|
1507
|
+
/**
|
|
1508
|
+
* Configure the animation of the pushed screen
|
|
1509
|
+
* #### (Android specific)
|
|
1510
|
+
*/
|
|
1511
|
+
push?: StackAnimationOptions;
|
|
1512
|
+
/**
|
|
1513
|
+
* Configure what animates when a screen is popped
|
|
1514
|
+
*/
|
|
1515
|
+
pop?: StackAnimationOptions;
|
|
1516
|
+
/**
|
|
1517
|
+
* Configure what animates when modal is shown
|
|
1518
|
+
*/
|
|
1519
|
+
showModal?: OldModalAnimationOptions | ModalAnimationOptions;
|
|
1520
|
+
/**
|
|
1521
|
+
* Configure what animates when modal is dismissed
|
|
1522
|
+
*/
|
|
1523
|
+
dismissModal?: OldModalAnimationOptions | ModalAnimationOptions;
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Configure Android's NavigationBar
|
|
1527
|
+
*/
|
|
1528
|
+
export interface NavigationBarOptions {
|
|
1529
|
+
backgroundColor?: Color;
|
|
1530
|
+
visible?: boolean;
|
|
1531
|
+
/**
|
|
1532
|
+
* Draw screen content behind the system navigation bar while keeping it visible.
|
|
1533
|
+
* On Android 15+ edge-to-edge, use with `backgroundColor: 'transparent'`.
|
|
1534
|
+
*/
|
|
1535
|
+
drawBehind?: boolean;
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* Used for configuring and controlling the main window in iOS
|
|
1539
|
+
*/
|
|
1540
|
+
export interface WindowOptions {
|
|
1541
|
+
/**
|
|
1542
|
+
* Configure the background color of the application's main window.
|
|
1543
|
+
*/
|
|
1544
|
+
backgroundColor?: Color;
|
|
1545
|
+
}
|
|
1546
|
+
export interface IconBackgroundOptions {
|
|
1547
|
+
/**
|
|
1548
|
+
* Set background color
|
|
1549
|
+
*/
|
|
1550
|
+
color: Color;
|
|
1551
|
+
/**
|
|
1552
|
+
* Set background color on disabled state
|
|
1553
|
+
*/
|
|
1554
|
+
disabledColor?: Color;
|
|
1555
|
+
/**
|
|
1556
|
+
* Set corner radius
|
|
1557
|
+
*/
|
|
1558
|
+
cornerRadius?: number;
|
|
1559
|
+
/**
|
|
1560
|
+
* Set width
|
|
1561
|
+
*/
|
|
1562
|
+
width?: number;
|
|
1563
|
+
/**
|
|
1564
|
+
* Set height
|
|
1565
|
+
*/
|
|
1566
|
+
height?: number;
|
|
1567
|
+
}
|
|
1568
|
+
export interface Options {
|
|
1569
|
+
/**
|
|
1570
|
+
* Configure the status bar
|
|
1571
|
+
*/
|
|
1572
|
+
statusBar?: OptionsStatusBar;
|
|
1573
|
+
/**
|
|
1574
|
+
* Configure the layout
|
|
1575
|
+
*/
|
|
1576
|
+
layout?: OptionsLayout;
|
|
1577
|
+
/**
|
|
1578
|
+
* Configure the presentation style of the modal
|
|
1579
|
+
*/
|
|
1580
|
+
modalPresentationStyle?: OptionsModalPresentationStyle;
|
|
1581
|
+
/**
|
|
1582
|
+
* Configure the transition style of the modal
|
|
1583
|
+
*
|
|
1584
|
+
* #### (Android specific)
|
|
1585
|
+
*/
|
|
1586
|
+
modalTransitionStyle?: OptionsModalTransitionStyle;
|
|
1587
|
+
/**
|
|
1588
|
+
* Configure the top bar
|
|
1589
|
+
*/
|
|
1590
|
+
topBar?: OptionsTopBar;
|
|
1591
|
+
fab?: OptionsFab;
|
|
1592
|
+
/**
|
|
1593
|
+
* Configure the bottom tabs
|
|
1594
|
+
*/
|
|
1595
|
+
bottomTabs?: OptionsBottomTabs;
|
|
1596
|
+
/**
|
|
1597
|
+
* Configure the bottom tab associated to the screen
|
|
1598
|
+
*/
|
|
1599
|
+
bottomTab?: OptionsBottomTab;
|
|
1600
|
+
/**
|
|
1601
|
+
* Configure the side menu
|
|
1602
|
+
*/
|
|
1603
|
+
sideMenu?: OptionsSideMenu;
|
|
1604
|
+
/**
|
|
1605
|
+
* Configure the splitView controller
|
|
1606
|
+
*/
|
|
1607
|
+
splitView?: OptionsSplitView;
|
|
1608
|
+
/**
|
|
1609
|
+
* Configure the overlay
|
|
1610
|
+
*/
|
|
1611
|
+
overlay?: OverlayOptions;
|
|
1612
|
+
/**
|
|
1613
|
+
* Configure the modal
|
|
1614
|
+
*/
|
|
1615
|
+
modal?: ModalOptions;
|
|
1616
|
+
/**
|
|
1617
|
+
* Animation used for navigation commands that modify the layout
|
|
1618
|
+
* hierarchy can be controlled in options.
|
|
1619
|
+
*
|
|
1620
|
+
* Animations can be modified per command and it's also possible
|
|
1621
|
+
* to change the default animation for each command.
|
|
1622
|
+
*
|
|
1623
|
+
* Example:
|
|
1624
|
+
```js
|
|
1625
|
+
setRoot: {
|
|
1626
|
+
y: {
|
|
1627
|
+
from: 1000,
|
|
1628
|
+
to: 0,
|
|
1629
|
+
duration: 500,
|
|
1630
|
+
interpolation: 'accelerate',
|
|
1631
|
+
},
|
|
1632
|
+
alpha: {
|
|
1633
|
+
from: 0,
|
|
1634
|
+
to: 1,
|
|
1635
|
+
duration: 400,
|
|
1636
|
+
startDelay: 100,
|
|
1637
|
+
interpolation: 'accelerate'
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
```
|
|
1641
|
+
*/
|
|
1642
|
+
animations?: AnimationOptions;
|
|
1643
|
+
/**
|
|
1644
|
+
* Configure Android's NavigationBar
|
|
1645
|
+
*/
|
|
1646
|
+
navigationBar?: NavigationBarOptions;
|
|
1647
|
+
/**
|
|
1648
|
+
* Android Hardware Back button configuration
|
|
1649
|
+
*/
|
|
1650
|
+
hardwareBackButton?: HardwareBackButtonOptions;
|
|
1651
|
+
/**
|
|
1652
|
+
* Preview configuration for Peek and Pop
|
|
1653
|
+
* #### (iOS specific)
|
|
1654
|
+
*/
|
|
1655
|
+
preview?: OptionsPreview;
|
|
1656
|
+
/**
|
|
1657
|
+
* Enable or disable swipe back to pop gesture
|
|
1658
|
+
* #### (iOS specific)
|
|
1659
|
+
* @default true
|
|
1660
|
+
*/
|
|
1661
|
+
popGesture?: boolean;
|
|
1662
|
+
/**
|
|
1663
|
+
* Background image for the screen
|
|
1664
|
+
* #### (iOS specific)
|
|
1665
|
+
*/
|
|
1666
|
+
backgroundImage?: ImageResource;
|
|
1667
|
+
/**
|
|
1668
|
+
* Background image for the Navigation View
|
|
1669
|
+
* #### (iOS specific)
|
|
1670
|
+
*/
|
|
1671
|
+
rootBackgroundImage?: ImageResource;
|
|
1672
|
+
/**
|
|
1673
|
+
* Provides a way to configure the overall presentation of your application's main user interface
|
|
1674
|
+
* #### (iOS specific)
|
|
1675
|
+
*/
|
|
1676
|
+
window?: WindowOptions;
|
|
1677
|
+
/**
|
|
1678
|
+
* Show / hide or change the style of the iOS 26 scroll edge effect on every
|
|
1679
|
+
* UIScrollView contained in the screen.
|
|
1680
|
+
* #### (iOS 26+ specific)
|
|
1681
|
+
*/
|
|
1682
|
+
scrollEdgeEffect?: OptionsScrollEdgeEffect;
|
|
1683
|
+
/**
|
|
1684
|
+
* Enable or disable automatically blurring focused input, dismissing keyboard on unmount
|
|
1685
|
+
* #### (Android specific)
|
|
1686
|
+
* @default false
|
|
1687
|
+
*/
|
|
1688
|
+
blurOnUnmount?: boolean;
|
|
1689
|
+
}
|
|
1690
|
+
export interface OptionsScrollEdge {
|
|
1691
|
+
/**
|
|
1692
|
+
* Hide the scroll edge effect on this edge.
|
|
1693
|
+
* #### (iOS 26+ specific)
|
|
1694
|
+
*/
|
|
1695
|
+
hidden?: boolean;
|
|
1696
|
+
/**
|
|
1697
|
+
* Style of the scroll edge effect on this edge.
|
|
1698
|
+
* #### (iOS 26+ specific)
|
|
1699
|
+
* @default 'automatic'
|
|
1700
|
+
*/
|
|
1701
|
+
style?: 'automatic' | 'soft' | 'hard';
|
|
1702
|
+
}
|
|
1703
|
+
export interface OptionsScrollEdgeEffect {
|
|
1704
|
+
/**
|
|
1705
|
+
* Hide the scroll edge effect on all four edges of contained scroll views.
|
|
1706
|
+
* Per-edge values (top / bottom / left / right) take precedence over this.
|
|
1707
|
+
* #### (iOS 26+ specific)
|
|
1708
|
+
*/
|
|
1709
|
+
hidden?: boolean;
|
|
1710
|
+
/**
|
|
1711
|
+
* Style of the scroll edge effect on all four edges. Per-edge values take precedence.
|
|
1712
|
+
* #### (iOS 26+ specific)
|
|
1713
|
+
* @default 'automatic'
|
|
1714
|
+
*/
|
|
1715
|
+
style?: 'automatic' | 'soft' | 'hard';
|
|
1716
|
+
/**
|
|
1717
|
+
* Per-edge override for the top edge effect. Falls back to the global hidden / style.
|
|
1718
|
+
* #### (iOS 26+ specific)
|
|
1719
|
+
*/
|
|
1720
|
+
top?: OptionsScrollEdge;
|
|
1721
|
+
/**
|
|
1722
|
+
* Per-edge override for the bottom edge effect. Falls back to the global hidden / style.
|
|
1723
|
+
* #### (iOS 26+ specific)
|
|
1724
|
+
*/
|
|
1725
|
+
bottom?: OptionsScrollEdge;
|
|
1726
|
+
/**
|
|
1727
|
+
* Per-edge override for the left edge effect. Falls back to the global hidden / style.
|
|
1728
|
+
* #### (iOS 26+ specific)
|
|
1729
|
+
*/
|
|
1730
|
+
left?: OptionsScrollEdge;
|
|
1731
|
+
/**
|
|
1732
|
+
* Per-edge override for the right edge effect. Falls back to the global hidden / style.
|
|
1733
|
+
* #### (iOS 26+ specific)
|
|
1734
|
+
*/
|
|
1735
|
+
right?: OptionsScrollEdge;
|
|
1736
|
+
}
|
|
1737
|
+
export {};
|
|
1738
|
+
//# sourceMappingURL=Options.d.ts.map
|