@symbiote-native/navigation 1.0.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/build/angular/drawer/index.d.ts +76 -0
- package/build/angular/drawer/index.js +508 -0
- package/build/angular/drawer-screen.directive.d.ts +14 -0
- package/build/angular/drawer-screen.directive.js +87 -0
- package/build/angular/index.d.ts +23 -0
- package/build/angular/index.js +22 -0
- package/build/angular/injectors/index.d.ts +13 -0
- package/build/angular/injectors/index.js +8 -0
- package/build/angular/injectors/inject-drawer-navigation.d.ts +4 -0
- package/build/angular/injectors/inject-drawer-navigation.js +12 -0
- package/build/angular/injectors/inject-focus-effect.d.ts +2 -0
- package/build/angular/injectors/inject-focus-effect.js +29 -0
- package/build/angular/injectors/inject-is-focused.d.ts +2 -0
- package/build/angular/injectors/inject-is-focused.js +20 -0
- package/build/angular/injectors/inject-navigation-state.d.ts +3 -0
- package/build/angular/injectors/inject-navigation-state.js +35 -0
- package/build/angular/injectors/inject-navigation.d.ts +7 -0
- package/build/angular/injectors/inject-navigation.js +16 -0
- package/build/angular/injectors/inject-route.d.ts +3 -0
- package/build/angular/injectors/inject-route.js +20 -0
- package/build/angular/injectors/inject-stack-navigation.d.ts +4 -0
- package/build/angular/injectors/inject-stack-navigation.js +15 -0
- package/build/angular/injectors/inject-tab-navigation.d.ts +4 -0
- package/build/angular/injectors/inject-tab-navigation.js +11 -0
- package/build/angular/linking.d.ts +3 -0
- package/build/angular/linking.js +43 -0
- package/build/angular/navigation-context.service.d.ts +13 -0
- package/build/angular/navigation-context.service.js +105 -0
- package/build/angular/navigation-scope.directive.d.ts +10 -0
- package/build/angular/navigation-scope.directive.js +90 -0
- package/build/angular/screen.directive.d.ts +22 -0
- package/build/angular/screen.directive.js +90 -0
- package/build/angular/search-bar-ref.directive.d.ts +10 -0
- package/build/angular/search-bar-ref.directive.js +88 -0
- package/build/angular/stack/index.d.ts +55 -0
- package/build/angular/stack/index.js +386 -0
- package/build/angular/tab-screen.directive.d.ts +14 -0
- package/build/angular/tab-screen.directive.js +87 -0
- package/build/angular/tabs/index.d.ts +42 -0
- package/build/angular/tabs/index.js +263 -0
- package/build/core/constants.d.ts +27 -0
- package/build/core/constants.js +61 -0
- package/build/core/drawer-options/index.d.ts +64 -0
- package/build/core/drawer-options/index.js +200 -0
- package/build/core/drawer-router-state/index.d.ts +21 -0
- package/build/core/drawer-router-state/index.js +40 -0
- package/build/core/guards.d.ts +2 -0
- package/build/core/guards.js +22 -0
- package/build/core/header-bar-buttons.d.ts +9 -0
- package/build/core/header-bar-buttons.js +163 -0
- package/build/core/index.d.ts +29 -0
- package/build/core/index.js +32 -0
- package/build/core/linking-config/index.d.ts +13 -0
- package/build/core/linking-config/index.js +171 -0
- package/build/core/navigation-events/index.d.ts +16 -0
- package/build/core/navigation-events/index.js +57 -0
- package/build/core/navigator-handles/index.d.ts +30 -0
- package/build/core/navigator-handles/index.js +15 -0
- package/build/core/navigator-props.d.ts +216 -0
- package/build/core/navigator-props.js +7 -0
- package/build/core/navigator-state/index.d.ts +36 -0
- package/build/core/navigator-state/index.js +81 -0
- package/build/core/render-drawer.d.ts +13 -0
- package/build/core/render-drawer.js +88 -0
- package/build/core/render-stack.d.ts +35 -0
- package/build/core/render-stack.js +294 -0
- package/build/core/render-tabs.d.ts +20 -0
- package/build/core/render-tabs.js +97 -0
- package/build/core/screen-options.d.ts +4 -0
- package/build/core/screen-options.js +133 -0
- package/build/core/search-bar-commands.d.ts +10 -0
- package/build/core/search-bar-commands.js +42 -0
- package/build/core/state-persistence/index.d.ts +3 -0
- package/build/core/state-persistence/index.js +23 -0
- package/build/core/tab-options.d.ts +13 -0
- package/build/core/tab-options.js +10 -0
- package/build/core/tab-router-state/index.d.ts +19 -0
- package/build/core/tab-router-state/index.js +51 -0
- package/build/react/collect-registry.d.ts +4 -0
- package/build/react/collect-registry.js +15 -0
- package/build/react/drawer/index.d.ts +29 -0
- package/build/react/drawer/index.js +277 -0
- package/build/react/drawer-screen.d.ts +14 -0
- package/build/react/drawer-screen.js +8 -0
- package/build/react/hooks/index.d.ts +12 -0
- package/build/react/hooks/index.js +8 -0
- package/build/react/hooks/use-drawer-navigation.d.ts +4 -0
- package/build/react/hooks/use-drawer-navigation.js +12 -0
- package/build/react/hooks/use-focus-effect.d.ts +2 -0
- package/build/react/hooks/use-focus-effect.js +29 -0
- package/build/react/hooks/use-is-focused.d.ts +1 -0
- package/build/react/hooks/use-is-focused.js +22 -0
- package/build/react/hooks/use-navigation-state/index.d.ts +2 -0
- package/build/react/hooks/use-navigation-state/index.js +39 -0
- package/build/react/hooks/use-navigation.d.ts +7 -0
- package/build/react/hooks/use-navigation.js +16 -0
- package/build/react/hooks/use-route.d.ts +2 -0
- package/build/react/hooks/use-route.js +8 -0
- package/build/react/hooks/use-stack-navigation.d.ts +4 -0
- package/build/react/hooks/use-stack-navigation.js +14 -0
- package/build/react/hooks/use-tab-navigation.d.ts +4 -0
- package/build/react/hooks/use-tab-navigation.js +12 -0
- package/build/react/index.d.ts +24 -0
- package/build/react/index.js +21 -0
- package/build/react/linking.d.ts +3 -0
- package/build/react/linking.js +47 -0
- package/build/react/navigation-context.d.ts +10 -0
- package/build/react/navigation-context.js +22 -0
- package/build/react/screen.d.ts +22 -0
- package/build/react/screen.js +7 -0
- package/build/react/stack/index.d.ts +13 -0
- package/build/react/stack/index.js +202 -0
- package/build/react/tab-screen.d.ts +15 -0
- package/build/react/tab-screen.js +8 -0
- package/build/react/tabs/index.d.ts +12 -0
- package/build/react/tabs/index.js +116 -0
- package/build/register.d.ts +7 -0
- package/build/register.js +58 -0
- package/build/vue/composables/index.d.ts +12 -0
- package/build/vue/composables/index.js +8 -0
- package/build/vue/composables/use-drawer-navigation.d.ts +5 -0
- package/build/vue/composables/use-drawer-navigation.js +15 -0
- package/build/vue/composables/use-focus-effect.d.ts +1 -0
- package/build/vue/composables/use-focus-effect.js +31 -0
- package/build/vue/composables/use-is-focused.d.ts +2 -0
- package/build/vue/composables/use-is-focused.js +28 -0
- package/build/vue/composables/use-navigation-state.d.ts +3 -0
- package/build/vue/composables/use-navigation-state.js +29 -0
- package/build/vue/composables/use-navigation.d.ts +8 -0
- package/build/vue/composables/use-navigation.js +13 -0
- package/build/vue/composables/use-route.d.ts +3 -0
- package/build/vue/composables/use-route.js +9 -0
- package/build/vue/composables/use-stack-navigation.d.ts +5 -0
- package/build/vue/composables/use-stack-navigation.js +18 -0
- package/build/vue/composables/use-tab-navigation.d.ts +5 -0
- package/build/vue/composables/use-tab-navigation.js +15 -0
- package/build/vue/drawer/index.d.ts +19 -0
- package/build/vue/drawer/index.js +390 -0
- package/build/vue/drawer-screen.d.ts +14 -0
- package/build/vue/drawer-screen.js +12 -0
- package/build/vue/index.d.ts +21 -0
- package/build/vue/index.js +19 -0
- package/build/vue/linking.d.ts +3 -0
- package/build/vue/linking.js +57 -0
- package/build/vue/navigation-context.d.ts +16 -0
- package/build/vue/navigation-context.js +65 -0
- package/build/vue/screen.d.ts +21 -0
- package/build/vue/screen.js +12 -0
- package/build/vue/stack/index.d.ts +9 -0
- package/build/vue/stack/index.js +279 -0
- package/build/vue/tab-screen.d.ts +14 -0
- package/build/vue/tab-screen.js +11 -0
- package/build/vue/tabs/index.d.ts +10 -0
- package/build/vue/tabs/index.js +209 -0
- package/build-ngc/angular/drawer/index.d.ts +79 -0
- package/build-ngc/angular/drawer/index.js +479 -0
- package/build-ngc/angular/drawer/index.js.map +1 -0
- package/build-ngc/angular/drawer-screen.directive.d.ts +17 -0
- package/build-ngc/angular/drawer-screen.directive.js +32 -0
- package/build-ngc/angular/drawer-screen.directive.js.map +1 -0
- package/build-ngc/angular/drawer.d.ts +79 -0
- package/build-ngc/angular/drawer.js +475 -0
- package/build-ngc/angular/drawer.js.map +1 -0
- package/build-ngc/angular/index.d.ts +23 -0
- package/build-ngc/angular/index.js +23 -0
- package/build-ngc/angular/index.js.map +1 -0
- package/build-ngc/angular/injectors/index.d.ts +13 -0
- package/build-ngc/angular/injectors/index.js +9 -0
- package/build-ngc/angular/injectors/index.js.map +1 -0
- package/build-ngc/angular/injectors/inject-drawer-navigation.d.ts +4 -0
- package/build-ngc/angular/injectors/inject-drawer-navigation.js +13 -0
- package/build-ngc/angular/injectors/inject-drawer-navigation.js.map +1 -0
- package/build-ngc/angular/injectors/inject-focus-effect.d.ts +2 -0
- package/build-ngc/angular/injectors/inject-focus-effect.js +30 -0
- package/build-ngc/angular/injectors/inject-focus-effect.js.map +1 -0
- package/build-ngc/angular/injectors/inject-is-focused.d.ts +2 -0
- package/build-ngc/angular/injectors/inject-is-focused.js +22 -0
- package/build-ngc/angular/injectors/inject-is-focused.js.map +1 -0
- package/build-ngc/angular/injectors/inject-navigation-state.d.ts +3 -0
- package/build-ngc/angular/injectors/inject-navigation-state.js +37 -0
- package/build-ngc/angular/injectors/inject-navigation-state.js.map +1 -0
- package/build-ngc/angular/injectors/inject-navigation.d.ts +7 -0
- package/build-ngc/angular/injectors/inject-navigation.js +17 -0
- package/build-ngc/angular/injectors/inject-navigation.js.map +1 -0
- package/build-ngc/angular/injectors/inject-route.d.ts +3 -0
- package/build-ngc/angular/injectors/inject-route.js +21 -0
- package/build-ngc/angular/injectors/inject-route.js.map +1 -0
- package/build-ngc/angular/injectors/inject-stack-navigation.d.ts +4 -0
- package/build-ngc/angular/injectors/inject-stack-navigation.js +16 -0
- package/build-ngc/angular/injectors/inject-stack-navigation.js.map +1 -0
- package/build-ngc/angular/injectors/inject-tab-navigation.d.ts +4 -0
- package/build-ngc/angular/injectors/inject-tab-navigation.js +12 -0
- package/build-ngc/angular/injectors/inject-tab-navigation.js.map +1 -0
- package/build-ngc/angular/linking.d.ts +3 -0
- package/build-ngc/angular/linking.js +44 -0
- package/build-ngc/angular/linking.js.map +1 -0
- package/build-ngc/angular/navigation-context.service.d.ts +16 -0
- package/build-ngc/angular/navigation-context.service.js +63 -0
- package/build-ngc/angular/navigation-context.service.js.map +1 -0
- package/build-ngc/angular/navigation-scope.directive.d.ts +13 -0
- package/build-ngc/angular/navigation-scope.directive.js +42 -0
- package/build-ngc/angular/navigation-scope.directive.js.map +1 -0
- package/build-ngc/angular/screen.directive.d.ts +25 -0
- package/build-ngc/angular/screen.directive.js +35 -0
- package/build-ngc/angular/screen.directive.js.map +1 -0
- package/build-ngc/angular/search-bar-ref.directive.d.ts +13 -0
- package/build-ngc/angular/search-bar-ref.directive.js +44 -0
- package/build-ngc/angular/search-bar-ref.directive.js.map +1 -0
- package/build-ngc/angular/stack/index.d.ts +58 -0
- package/build-ngc/angular/stack/index.js +406 -0
- package/build-ngc/angular/stack/index.js.map +1 -0
- package/build-ngc/angular/stack.d.ts +58 -0
- package/build-ngc/angular/stack.js +402 -0
- package/build-ngc/angular/stack.js.map +1 -0
- package/build-ngc/angular/tab-screen.directive.d.ts +17 -0
- package/build-ngc/angular/tab-screen.directive.js +32 -0
- package/build-ngc/angular/tab-screen.directive.js.map +1 -0
- package/build-ngc/angular/tabs/index.d.ts +45 -0
- package/build-ngc/angular/tabs/index.js +231 -0
- package/build-ngc/angular/tabs/index.js.map +1 -0
- package/build-ngc/angular/tabs.d.ts +45 -0
- package/build-ngc/angular/tabs.js +231 -0
- package/build-ngc/angular/tabs.js.map +1 -0
- package/build-ngc/core/constants.d.ts +27 -0
- package/build-ngc/core/constants.js +62 -0
- package/build-ngc/core/constants.js.map +1 -0
- package/build-ngc/core/drawer-options/index.d.ts +64 -0
- package/build-ngc/core/drawer-options/index.js +201 -0
- package/build-ngc/core/drawer-options/index.js.map +1 -0
- package/build-ngc/core/drawer-options.d.ts +64 -0
- package/build-ngc/core/drawer-options.js +201 -0
- package/build-ngc/core/drawer-options.js.map +1 -0
- package/build-ngc/core/drawer-router-state/index.d.ts +21 -0
- package/build-ngc/core/drawer-router-state/index.js +41 -0
- package/build-ngc/core/drawer-router-state/index.js.map +1 -0
- package/build-ngc/core/drawer-router-state.d.ts +21 -0
- package/build-ngc/core/drawer-router-state.js +41 -0
- package/build-ngc/core/drawer-router-state.js.map +1 -0
- package/build-ngc/core/guards.d.ts +2 -0
- package/build-ngc/core/guards.js +23 -0
- package/build-ngc/core/guards.js.map +1 -0
- package/build-ngc/core/header-bar-buttons.d.ts +9 -0
- package/build-ngc/core/header-bar-buttons.js +164 -0
- package/build-ngc/core/header-bar-buttons.js.map +1 -0
- package/build-ngc/core/href.d.ts +16 -0
- package/build-ngc/core/href.js +55 -0
- package/build-ngc/core/href.js.map +1 -0
- package/build-ngc/core/index.d.ts +29 -0
- package/build-ngc/core/index.js +33 -0
- package/build-ngc/core/index.js.map +1 -0
- package/build-ngc/core/linking-config/index.d.ts +13 -0
- package/build-ngc/core/linking-config/index.js +172 -0
- package/build-ngc/core/linking-config/index.js.map +1 -0
- package/build-ngc/core/linking-config.d.ts +13 -0
- package/build-ngc/core/linking-config.js +172 -0
- package/build-ngc/core/linking-config.js.map +1 -0
- package/build-ngc/core/navigation-events/index.d.ts +16 -0
- package/build-ngc/core/navigation-events/index.js +58 -0
- package/build-ngc/core/navigation-events/index.js.map +1 -0
- package/build-ngc/core/navigation-events.d.ts +16 -0
- package/build-ngc/core/navigation-events.js +58 -0
- package/build-ngc/core/navigation-events.js.map +1 -0
- package/build-ngc/core/navigator-handles/index.d.ts +30 -0
- package/build-ngc/core/navigator-handles/index.js +16 -0
- package/build-ngc/core/navigator-handles/index.js.map +1 -0
- package/build-ngc/core/navigator-handles.d.ts +30 -0
- package/build-ngc/core/navigator-handles.js +16 -0
- package/build-ngc/core/navigator-handles.js.map +1 -0
- package/build-ngc/core/navigator-props.d.ts +216 -0
- package/build-ngc/core/navigator-props.js +8 -0
- package/build-ngc/core/navigator-props.js.map +1 -0
- package/build-ngc/core/navigator-state/index.d.ts +36 -0
- package/build-ngc/core/navigator-state/index.js +82 -0
- package/build-ngc/core/navigator-state/index.js.map +1 -0
- package/build-ngc/core/navigator-state.d.ts +36 -0
- package/build-ngc/core/navigator-state.js +82 -0
- package/build-ngc/core/navigator-state.js.map +1 -0
- package/build-ngc/core/render-drawer.d.ts +13 -0
- package/build-ngc/core/render-drawer.js +89 -0
- package/build-ngc/core/render-drawer.js.map +1 -0
- package/build-ngc/core/render-stack.d.ts +35 -0
- package/build-ngc/core/render-stack.js +295 -0
- package/build-ngc/core/render-stack.js.map +1 -0
- package/build-ngc/core/render-tabs.d.ts +20 -0
- package/build-ngc/core/render-tabs.js +98 -0
- package/build-ngc/core/render-tabs.js.map +1 -0
- package/build-ngc/core/screen-options.d.ts +4 -0
- package/build-ngc/core/screen-options.js +134 -0
- package/build-ngc/core/screen-options.js.map +1 -0
- package/build-ngc/core/search-bar-commands.d.ts +10 -0
- package/build-ngc/core/search-bar-commands.js +43 -0
- package/build-ngc/core/search-bar-commands.js.map +1 -0
- package/build-ngc/core/search-params.d.ts +9 -0
- package/build-ngc/core/search-params.js +60 -0
- package/build-ngc/core/search-params.js.map +1 -0
- package/build-ngc/core/state-persistence/index.d.ts +3 -0
- package/build-ngc/core/state-persistence/index.js +24 -0
- package/build-ngc/core/state-persistence/index.js.map +1 -0
- package/build-ngc/core/state-persistence.d.ts +3 -0
- package/build-ngc/core/state-persistence.js +24 -0
- package/build-ngc/core/state-persistence.js.map +1 -0
- package/build-ngc/core/tab-options.d.ts +13 -0
- package/build-ngc/core/tab-options.js +11 -0
- package/build-ngc/core/tab-options.js.map +1 -0
- package/build-ngc/core/tab-router-state/index.d.ts +19 -0
- package/build-ngc/core/tab-router-state/index.js +52 -0
- package/build-ngc/core/tab-router-state/index.js.map +1 -0
- package/build-ngc/core/tab-router-state.d.ts +19 -0
- package/build-ngc/core/tab-router-state.js +52 -0
- package/build-ngc/core/tab-router-state.js.map +1 -0
- package/build-ngc/register.d.ts +7 -0
- package/build-ngc/register.js +59 -0
- package/build-ngc/register.js.map +1 -0
- package/codegen-specs/FullWindowOverlayNativeComponent.ts +13 -0
- package/codegen-specs/ModalScreenNativeComponent.ts +129 -0
- package/codegen-specs/NativeScreensModule.ts +8 -0
- package/codegen-specs/NativeScreensModule.web.ts +1 -0
- package/codegen-specs/ScreenContainerNativeComponent.ts +8 -0
- package/codegen-specs/ScreenContentWrapperNativeComponent.ts +9 -0
- package/codegen-specs/ScreenFooterNativeComponent.ts +6 -0
- package/codegen-specs/ScreenNativeComponent.ts +133 -0
- package/codegen-specs/ScreenNavigationContainerNativeComponent.ts +11 -0
- package/codegen-specs/ScreenStackHeaderConfigNativeComponent.ts +99 -0
- package/codegen-specs/ScreenStackHeaderSubviewNativeComponent.ts +25 -0
- package/codegen-specs/ScreenStackNativeComponent.ts +17 -0
- package/codegen-specs/SearchBarNativeComponent.ts +101 -0
- package/codegen-specs/codegenUtils.ts +6 -0
- package/codegen-specs/gamma/ScrollViewMarkerNativeComponent.ts +15 -0
- package/codegen-specs/gamma/modals/form-sheet/FormSheetContentWrapperNativeComponent.ts +10 -0
- package/codegen-specs/gamma/modals/form-sheet/FormSheetHostNativeComponent.ts +47 -0
- package/codegen-specs/gamma/split/SplitHostNativeComponent.ts +124 -0
- package/codegen-specs/gamma/split/SplitScreenNativeComponent.ts +24 -0
- package/codegen-specs/gamma/stack/StackHeaderConfigAndroidNativeComponent.ts +144 -0
- package/codegen-specs/gamma/stack/StackHeaderConfigIOSNativeComponent.ts +34 -0
- package/codegen-specs/gamma/stack/StackHeaderItemIOSNativeComponent.ts +47 -0
- package/codegen-specs/gamma/stack/StackHeaderItemSpacerIOSNativeComponent.ts +20 -0
- package/codegen-specs/gamma/stack/StackHeaderSubviewAndroidNativeComponent.ts +27 -0
- package/codegen-specs/gamma/stack/StackHostNativeComponent.ts +8 -0
- package/codegen-specs/gamma/stack/StackScreenNativeComponent.ts +42 -0
- package/codegen-specs/safe-area/SafeAreaViewNativeComponent.ts +24 -0
- package/codegen-specs/tabs/TabsBottomAccessoryContentNativeComponent.ts +15 -0
- package/codegen-specs/tabs/TabsBottomAccessoryNativeComponent.ts +19 -0
- package/codegen-specs/tabs/TabsHostAndroidNativeComponent.ts +69 -0
- package/codegen-specs/tabs/TabsHostIOSNativeComponent.ts +92 -0
- package/codegen-specs/tabs/TabsScreenAndroidNativeComponent.ts +112 -0
- package/codegen-specs/tabs/TabsScreenIOSNativeComponent.ts +171 -0
- package/package.json +201 -0
- package/react-native.config.cjs +58 -0
- package/src/angular/drawer/drawer.test.ts +299 -0
- package/src/angular/drawer/index.ts +546 -0
- package/src/angular/drawer-screen.directive.ts +28 -0
- package/src/angular/index.ts +63 -0
- package/src/angular/injectors/index.ts +13 -0
- package/src/angular/injectors/inject-drawer-navigation.ts +21 -0
- package/src/angular/injectors/inject-focus-effect.ts +37 -0
- package/src/angular/injectors/inject-is-focused.ts +28 -0
- package/src/angular/injectors/inject-navigation-state.ts +46 -0
- package/src/angular/injectors/inject-navigation.ts +26 -0
- package/src/angular/injectors/inject-route.ts +25 -0
- package/src/angular/injectors/inject-stack-navigation.ts +24 -0
- package/src/angular/injectors/inject-tab-navigation.ts +20 -0
- package/src/angular/injectors/injectors.test.ts +247 -0
- package/src/angular/injectors/use-typed-navigation.test.ts +229 -0
- package/src/angular/linking.ts +55 -0
- package/src/angular/navigation-context.service.ts +68 -0
- package/src/angular/navigation-scope.directive.ts +31 -0
- package/src/angular/nested-navigation.test.ts +189 -0
- package/src/angular/screen.directive.ts +48 -0
- package/src/angular/search-bar-ref.directive.ts +38 -0
- package/src/angular/stack/index.ts +401 -0
- package/src/angular/stack/stack.test.ts +419 -0
- package/src/angular/tab-screen.directive.ts +26 -0
- package/src/angular/tabs/index.ts +254 -0
- package/src/angular/tabs/tabs.test.ts +249 -0
- package/src/core/constants.ts +68 -0
- package/src/core/drawer-options/drawer-options.test.ts +415 -0
- package/src/core/drawer-options/index.ts +331 -0
- package/src/core/drawer-router-state/drawer-router-state.test.ts +116 -0
- package/src/core/drawer-router-state/index.ts +71 -0
- package/src/core/guards.ts +23 -0
- package/src/core/header-bar-buttons.ts +212 -0
- package/src/core/index.ts +170 -0
- package/src/core/linking-config/index.ts +209 -0
- package/src/core/linking-config/linking-config.test.ts +109 -0
- package/src/core/navigation-events/index.ts +94 -0
- package/src/core/navigation-events/navigation-events.test.ts +56 -0
- package/src/core/navigator-handles/index.ts +63 -0
- package/src/core/navigator-handles/navigator-handles.test.ts +46 -0
- package/src/core/navigator-props.ts +323 -0
- package/src/core/navigator-state/index.ts +112 -0
- package/src/core/navigator-state/navigator-state.test.ts +80 -0
- package/src/core/render-drawer.ts +123 -0
- package/src/core/render-stack.ts +414 -0
- package/src/core/render-tabs.ts +138 -0
- package/src/core/screen-options.ts +181 -0
- package/src/core/search-bar-commands.ts +57 -0
- package/src/core/state-persistence/index.ts +30 -0
- package/src/core/state-persistence/state-persistence.test.ts +42 -0
- package/src/core/tab-options.ts +25 -0
- package/src/core/tab-router-state/index.ts +75 -0
- package/src/core/tab-router-state/tab-router-state.test.ts +34 -0
- package/src/globals.d.ts +4 -0
- package/src/react/collect-registry.ts +19 -0
- package/src/react/drawer/drawer.test.tsx +472 -0
- package/src/react/drawer/index.ts +451 -0
- package/src/react/drawer-screen.ts +29 -0
- package/src/react/hooks/hooks.test.tsx +199 -0
- package/src/react/hooks/index.ts +12 -0
- package/src/react/hooks/use-drawer-navigation.ts +21 -0
- package/src/react/hooks/use-focus-effect.ts +36 -0
- package/src/react/hooks/use-is-focused.ts +26 -0
- package/src/react/hooks/use-navigation-state/index.ts +47 -0
- package/src/react/hooks/use-navigation-state/use-navigation-state.test.ts +85 -0
- package/src/react/hooks/use-navigation.ts +36 -0
- package/src/react/hooks/use-route.ts +11 -0
- package/src/react/hooks/use-stack-navigation.ts +23 -0
- package/src/react/hooks/use-tab-navigation.ts +21 -0
- package/src/react/hooks/use-typed-navigation.test.tsx +187 -0
- package/src/react/index.ts +52 -0
- package/src/react/linking.ts +59 -0
- package/src/react/navigation-context.ts +40 -0
- package/src/react/nested-navigation.test.tsx +145 -0
- package/src/react/screen.ts +44 -0
- package/src/react/stack/index.ts +323 -0
- package/src/react/stack/stack.test.tsx +514 -0
- package/src/react/tab-screen.ts +30 -0
- package/src/react/tabs/index.ts +204 -0
- package/src/react/tabs/tabs.test.tsx +256 -0
- package/src/register.ts +59 -0
- package/src/vue/composables/composables.test.ts +221 -0
- package/src/vue/composables/index.ts +12 -0
- package/src/vue/composables/use-drawer-navigation.ts +25 -0
- package/src/vue/composables/use-focus-effect.ts +37 -0
- package/src/vue/composables/use-is-focused.ts +34 -0
- package/src/vue/composables/use-navigation-state.ts +38 -0
- package/src/vue/composables/use-navigation.ts +30 -0
- package/src/vue/composables/use-route.ts +13 -0
- package/src/vue/composables/use-stack-navigation.ts +28 -0
- package/src/vue/composables/use-tab-navigation.ts +25 -0
- package/src/vue/composables/use-typed-navigation.test.ts +205 -0
- package/src/vue/drawer/drawer.test.ts +451 -0
- package/src/vue/drawer/index.ts +550 -0
- package/src/vue/drawer-screen.ts +32 -0
- package/src/vue/index.ts +70 -0
- package/src/vue/linking.ts +69 -0
- package/src/vue/navigation-context.ts +87 -0
- package/src/vue/nested-navigation.test.ts +155 -0
- package/src/vue/screen.ts +52 -0
- package/src/vue/stack/index.ts +376 -0
- package/src/vue/stack/stack.test.ts +501 -0
- package/src/vue/tab-screen.ts +29 -0
- package/src/vue/tabs/index.ts +302 -0
- package/src/vue/tabs/tabs.test.ts +278 -0
- package/symbiote-navigation.podspec +84 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type {
|
|
5
|
+
CodegenTypes as CT,
|
|
6
|
+
ImageSource,
|
|
7
|
+
ProcessedColorValue,
|
|
8
|
+
ViewProps,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
|
|
11
|
+
import { UnsafeMixed } from '../codegenUtils';
|
|
12
|
+
|
|
13
|
+
// #region General helpers
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
16
|
+
type GenericEmptyEvent = Readonly<{}>;
|
|
17
|
+
|
|
18
|
+
// #endregion General helpers
|
|
19
|
+
|
|
20
|
+
// #region iOS-specific helpers
|
|
21
|
+
|
|
22
|
+
// iOS-specific: SFSymbol, image as a template usage
|
|
23
|
+
export type IconType = 'image' | 'template' | 'sfSymbol' | 'xcasset';
|
|
24
|
+
|
|
25
|
+
export type ItemStateAppearance = {
|
|
26
|
+
tabBarItemTitleFontFamily?: string | undefined;
|
|
27
|
+
tabBarItemTitleFontSize?: CT.Float | undefined;
|
|
28
|
+
tabBarItemTitleFontWeight?: string | undefined;
|
|
29
|
+
tabBarItemTitleFontStyle?: string | undefined;
|
|
30
|
+
tabBarItemTitleFontColor?: ProcessedColorValue | null | undefined;
|
|
31
|
+
tabBarItemTitlePositionAdjustment?:
|
|
32
|
+
| {
|
|
33
|
+
horizontal?: CT.Float | undefined;
|
|
34
|
+
vertical?: CT.Float | undefined;
|
|
35
|
+
}
|
|
36
|
+
| undefined;
|
|
37
|
+
tabBarItemIconColor?: ProcessedColorValue | null | undefined;
|
|
38
|
+
tabBarItemBadgeBackgroundColor?: ProcessedColorValue | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type ItemAppearance = {
|
|
42
|
+
normal?: ItemStateAppearance | undefined;
|
|
43
|
+
selected?: ItemStateAppearance | undefined;
|
|
44
|
+
focused?: ItemStateAppearance | undefined;
|
|
45
|
+
disabled?: ItemStateAppearance | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type Appearance = {
|
|
49
|
+
stacked?: ItemAppearance | undefined;
|
|
50
|
+
inline?: ItemAppearance | undefined;
|
|
51
|
+
compactInline?: ItemAppearance | undefined;
|
|
52
|
+
|
|
53
|
+
tabBarBackgroundColor?: ProcessedColorValue | null | undefined;
|
|
54
|
+
tabBarShadowColor?: ProcessedColorValue | null | undefined;
|
|
55
|
+
tabBarBlurEffect?: CT.WithDefault<BlurEffect, 'systemDefault'>;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
type BlurEffect =
|
|
59
|
+
| 'none'
|
|
60
|
+
| 'systemDefault'
|
|
61
|
+
| 'extraLight'
|
|
62
|
+
| 'light'
|
|
63
|
+
| 'dark'
|
|
64
|
+
| 'regular'
|
|
65
|
+
| 'prominent'
|
|
66
|
+
| 'systemUltraThinMaterial'
|
|
67
|
+
| 'systemThinMaterial'
|
|
68
|
+
| 'systemMaterial'
|
|
69
|
+
| 'systemThickMaterial'
|
|
70
|
+
| 'systemChromeMaterial'
|
|
71
|
+
| 'systemUltraThinMaterialLight'
|
|
72
|
+
| 'systemThinMaterialLight'
|
|
73
|
+
| 'systemMaterialLight'
|
|
74
|
+
| 'systemThickMaterialLight'
|
|
75
|
+
| 'systemChromeMaterialLight'
|
|
76
|
+
| 'systemUltraThinMaterialDark'
|
|
77
|
+
| 'systemThinMaterialDark'
|
|
78
|
+
| 'systemMaterialDark'
|
|
79
|
+
| 'systemThickMaterialDark'
|
|
80
|
+
| 'systemChromeMaterialDark';
|
|
81
|
+
|
|
82
|
+
type Orientation =
|
|
83
|
+
| 'inherit'
|
|
84
|
+
| 'all'
|
|
85
|
+
| 'allButUpsideDown'
|
|
86
|
+
| 'portrait'
|
|
87
|
+
| 'portraitUp'
|
|
88
|
+
| 'portraitDown'
|
|
89
|
+
| 'landscape'
|
|
90
|
+
| 'landscapeLeft'
|
|
91
|
+
| 'landscapeRight';
|
|
92
|
+
|
|
93
|
+
type SystemItem =
|
|
94
|
+
| 'none'
|
|
95
|
+
| 'bookmarks'
|
|
96
|
+
| 'contacts'
|
|
97
|
+
| 'downloads'
|
|
98
|
+
| 'favorites'
|
|
99
|
+
| 'featured'
|
|
100
|
+
| 'history'
|
|
101
|
+
| 'more'
|
|
102
|
+
| 'mostRecent'
|
|
103
|
+
| 'mostViewed'
|
|
104
|
+
| 'recents'
|
|
105
|
+
| 'search'
|
|
106
|
+
| 'topRated';
|
|
107
|
+
|
|
108
|
+
type UserInterfaceStyle = 'unspecified' | 'light' | 'dark';
|
|
109
|
+
|
|
110
|
+
// #endregion iOS-specific helpers
|
|
111
|
+
|
|
112
|
+
export interface NativeProps extends ViewProps {
|
|
113
|
+
// Events
|
|
114
|
+
onWillAppear?: CT.DirectEventHandler<GenericEmptyEvent> | undefined;
|
|
115
|
+
onDidAppear?: CT.DirectEventHandler<GenericEmptyEvent> | undefined;
|
|
116
|
+
onWillDisappear?: CT.DirectEventHandler<GenericEmptyEvent> | undefined;
|
|
117
|
+
onDidDisappear?: CT.DirectEventHandler<GenericEmptyEvent> | undefined;
|
|
118
|
+
|
|
119
|
+
// Control
|
|
120
|
+
screenKey: string;
|
|
121
|
+
preventNativeSelection?: CT.WithDefault<boolean, false>;
|
|
122
|
+
|
|
123
|
+
// General
|
|
124
|
+
title?: string | undefined | null;
|
|
125
|
+
badgeValue?: string | undefined;
|
|
126
|
+
orientation?: CT.WithDefault<Orientation, 'inherit'>;
|
|
127
|
+
|
|
128
|
+
// Accessibility
|
|
129
|
+
tabBarItemTestID?: string | undefined;
|
|
130
|
+
tabBarItemAccessibilityLabel?: string | undefined;
|
|
131
|
+
|
|
132
|
+
// Effects
|
|
133
|
+
specialEffects?:
|
|
134
|
+
| {
|
|
135
|
+
repeatedTabSelection?:
|
|
136
|
+
| {
|
|
137
|
+
popToRoot?: CT.WithDefault<boolean, true>;
|
|
138
|
+
scrollToTop?: CT.WithDefault<boolean, true>;
|
|
139
|
+
}
|
|
140
|
+
| undefined;
|
|
141
|
+
}
|
|
142
|
+
| undefined;
|
|
143
|
+
|
|
144
|
+
// iOS-specific props
|
|
145
|
+
// Tab config
|
|
146
|
+
isTitleUndefined?: CT.WithDefault<boolean, true>;
|
|
147
|
+
systemItem?: CT.WithDefault<SystemItem, 'none'>;
|
|
148
|
+
|
|
149
|
+
// Appearance
|
|
150
|
+
standardAppearance?: UnsafeMixed<Appearance> | undefined;
|
|
151
|
+
scrollEdgeAppearance?: UnsafeMixed<Appearance> | undefined;
|
|
152
|
+
|
|
153
|
+
// Icons
|
|
154
|
+
iconType?: CT.WithDefault<IconType, 'sfSymbol'>;
|
|
155
|
+
iconImageSource?: ImageSource | undefined;
|
|
156
|
+
iconResourceName?: string | undefined;
|
|
157
|
+
selectedIconImageSource?: ImageSource | undefined;
|
|
158
|
+
selectedIconResourceName?: string | undefined;
|
|
159
|
+
|
|
160
|
+
// ScrollView interactions
|
|
161
|
+
overrideScrollViewContentInsetAdjustmentBehavior?: CT.WithDefault<
|
|
162
|
+
boolean,
|
|
163
|
+
true
|
|
164
|
+
>;
|
|
165
|
+
// Experimental
|
|
166
|
+
userInterfaceStyle?: CT.WithDefault<UserInterfaceStyle, 'unspecified'>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export default codegenNativeComponent<NativeProps>('RNSTabsScreenIOS', {
|
|
170
|
+
excludedPlatforms: ['android'],
|
|
171
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@symbiote-native/navigation",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Native stack navigator for SymbioteNative, built on react-native-screens' native view primitives (RNSScreen/RNSScreenStack) — one framework-agnostic core, reachable from the React, Vue, and Angular adapters.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/OneEyed1366/symbiote-native.git",
|
|
8
|
+
"directory": "packages/navigation"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/OneEyed1366/symbiote-native/tree/master/packages/navigation#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/OneEyed1366/symbiote-native/issues"
|
|
13
|
+
},
|
|
14
|
+
"author": "Andrey Prokopenko <psevdoproger@gmail.com>",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./build/core/index.js",
|
|
17
|
+
"module": "./build/core/index.js",
|
|
18
|
+
"types": "./build/core/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./build/core/index.d.ts",
|
|
22
|
+
"default": "./build/core/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./react": {
|
|
25
|
+
"types": "./build/react/index.d.ts",
|
|
26
|
+
"default": "./build/react/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./vue": {
|
|
29
|
+
"types": "./build/vue/index.d.ts",
|
|
30
|
+
"default": "./build/vue/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./angular": {
|
|
33
|
+
"types": "./build-ngc/angular/index.d.ts",
|
|
34
|
+
"default": "./build-ngc/angular/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"src",
|
|
39
|
+
"build",
|
|
40
|
+
"build-ngc",
|
|
41
|
+
"codegen-specs",
|
|
42
|
+
"react-native.config.cjs",
|
|
43
|
+
"symbiote-navigation.podspec"
|
|
44
|
+
],
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"codegenConfig": {
|
|
49
|
+
"name": "rnscreens",
|
|
50
|
+
"type": "all",
|
|
51
|
+
"jsSrcsDir": "codegen-specs",
|
|
52
|
+
"android": {
|
|
53
|
+
"javaPackageName": "com.swmansion.rnscreens"
|
|
54
|
+
},
|
|
55
|
+
"ios": {
|
|
56
|
+
"components": {
|
|
57
|
+
"RNSFullWindowOverlay": {
|
|
58
|
+
"className": "RNSFullWindowOverlay"
|
|
59
|
+
},
|
|
60
|
+
"RNSModalScreen": {
|
|
61
|
+
"className": "RNSModalScreen"
|
|
62
|
+
},
|
|
63
|
+
"RNSScreenContainer": {
|
|
64
|
+
"className": "RNSScreenContainerView"
|
|
65
|
+
},
|
|
66
|
+
"RNSScreenContentWrapper": {
|
|
67
|
+
"className": "RNSScreenContentWrapper"
|
|
68
|
+
},
|
|
69
|
+
"RNSScreenFooter": {
|
|
70
|
+
"className": "RNSScreenFooter"
|
|
71
|
+
},
|
|
72
|
+
"RNSScreen": {
|
|
73
|
+
"className": "RNSScreenView"
|
|
74
|
+
},
|
|
75
|
+
"RNSScreenNavigationContainer": {
|
|
76
|
+
"className": "RNSScreenNavigationContainerView"
|
|
77
|
+
},
|
|
78
|
+
"RNSScreenStackHeaderConfig": {
|
|
79
|
+
"className": "RNSScreenStackHeaderConfig"
|
|
80
|
+
},
|
|
81
|
+
"RNSScreenStackHeaderSubview": {
|
|
82
|
+
"className": "RNSScreenStackHeaderSubview"
|
|
83
|
+
},
|
|
84
|
+
"RNSScreenStack": {
|
|
85
|
+
"className": "RNSScreenStackView"
|
|
86
|
+
},
|
|
87
|
+
"RNSSearchBar": {
|
|
88
|
+
"className": "RNSSearchBar"
|
|
89
|
+
},
|
|
90
|
+
"RNSStackScreen": {
|
|
91
|
+
"className": "RNSStackScreenComponentView"
|
|
92
|
+
},
|
|
93
|
+
"RNSStackHost": {
|
|
94
|
+
"className": "RNSStackHostComponentView"
|
|
95
|
+
},
|
|
96
|
+
"RNSStackHeaderConfigIOS": {
|
|
97
|
+
"className": "RNSStackHeaderConfigComponentView"
|
|
98
|
+
},
|
|
99
|
+
"RNSStackHeaderItemIOS": {
|
|
100
|
+
"className": "RNSStackHeaderItemComponentView"
|
|
101
|
+
},
|
|
102
|
+
"RNSStackHeaderItemSpacerIOS": {
|
|
103
|
+
"className": "RNSStackHeaderItemSpacerComponentView"
|
|
104
|
+
},
|
|
105
|
+
"RNSTabsScreenIOS": {
|
|
106
|
+
"className": "RNSTabsScreenComponentView"
|
|
107
|
+
},
|
|
108
|
+
"RNSTabsHostIOS": {
|
|
109
|
+
"className": "RNSTabsHostComponentView"
|
|
110
|
+
},
|
|
111
|
+
"RNSTabsBottomAccessory": {
|
|
112
|
+
"className": "RNSTabsBottomAccessoryComponentView"
|
|
113
|
+
},
|
|
114
|
+
"RNSTabsBottomAccessoryContent": {
|
|
115
|
+
"className": "RNSTabsBottomAccessoryContentComponentView"
|
|
116
|
+
},
|
|
117
|
+
"RNSSplitHost": {
|
|
118
|
+
"className": "RNSSplitHostComponentView"
|
|
119
|
+
},
|
|
120
|
+
"RNSSplitScreen": {
|
|
121
|
+
"className": "RNSSplitScreenComponentView"
|
|
122
|
+
},
|
|
123
|
+
"RNSSafeAreaView": {
|
|
124
|
+
"className": "RNSSafeAreaViewComponentView"
|
|
125
|
+
},
|
|
126
|
+
"RNSScrollViewMarker": {
|
|
127
|
+
"className": "RNSScrollViewMarkerComponentView"
|
|
128
|
+
},
|
|
129
|
+
"RNSFormSheetHost": {
|
|
130
|
+
"className": "RNSFormSheetHostComponentView"
|
|
131
|
+
},
|
|
132
|
+
"RNSFormSheetContentWrapper": {
|
|
133
|
+
"className": "RNSFormSheetContentWrapperComponentView"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"dependencies": {
|
|
139
|
+
"react-native-screens": "4.26.0",
|
|
140
|
+
"@symbiote-native/components": "0.2.5"
|
|
141
|
+
},
|
|
142
|
+
"peerDependencies": {
|
|
143
|
+
"@angular/common": ">=20",
|
|
144
|
+
"@angular/core": ">=20",
|
|
145
|
+
"@symbiote-native/engine": ">=0.1.6",
|
|
146
|
+
"@vue/runtime-core": "^3.5.13",
|
|
147
|
+
"react": ">=19.0.0",
|
|
148
|
+
"react-native": ">=0.86",
|
|
149
|
+
"vue": ">=3.5.0",
|
|
150
|
+
"@symbiote-native/angular": "0.5.0",
|
|
151
|
+
"@symbiote-native/react": "0.2.6",
|
|
152
|
+
"@symbiote-native/vue": "0.3.6"
|
|
153
|
+
},
|
|
154
|
+
"peerDependenciesMeta": {
|
|
155
|
+
"@angular/common": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"@angular/core": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"@symbiote-native/angular": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
164
|
+
"@symbiote-native/react": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"@symbiote-native/vue": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"@vue/runtime-core": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"react": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"vue": {
|
|
177
|
+
"optional": true
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"devDependencies": {
|
|
181
|
+
"@angular/common": "^22",
|
|
182
|
+
"@angular/compiler": "^22",
|
|
183
|
+
"@angular/compiler-cli": "^22",
|
|
184
|
+
"@angular/core": "^22",
|
|
185
|
+
"@types/node": "^26.0.0",
|
|
186
|
+
"@types/react": "^19.2.0",
|
|
187
|
+
"@vue/runtime-core": "^3.5.13",
|
|
188
|
+
"react": "19.2.3",
|
|
189
|
+
"typescript": "~6.0.0",
|
|
190
|
+
"@symbiote-native/react": "0.2.6",
|
|
191
|
+
"@symbiote-native/angular": "0.5.0",
|
|
192
|
+
"@symbiote-native/engine": "0.1.6",
|
|
193
|
+
"@symbiote-native/vue": "0.3.6",
|
|
194
|
+
"@symbiote-native/test-utils": "0.1.5"
|
|
195
|
+
},
|
|
196
|
+
"scripts": {
|
|
197
|
+
"ng:build": "ngc -p tsconfig.angular.json",
|
|
198
|
+
"typecheck": "tsc --build",
|
|
199
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\""
|
|
200
|
+
}
|
|
201
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
|
|
4
|
+
const PACKAGE_NAME = '@symbiote-native/navigation';
|
|
5
|
+
const NATIVE_SCREENS_PACKAGE = 'react-native-screens';
|
|
6
|
+
|
|
7
|
+
function findCliDependencyRoot() {
|
|
8
|
+
let current = process.cwd();
|
|
9
|
+
|
|
10
|
+
while (true) {
|
|
11
|
+
const candidate = path.join(current, 'node_modules', ...PACKAGE_NAME.split('/'));
|
|
12
|
+
if (fs.existsSync(candidate)) {
|
|
13
|
+
return candidate;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const parent = path.dirname(current);
|
|
17
|
+
if (parent === current) {
|
|
18
|
+
return __dirname;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
current = parent;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const cliDependencyRoot = findCliDependencyRoot();
|
|
26
|
+
const nativeScreensRoot = path.dirname(require.resolve(`${NATIVE_SCREENS_PACKAGE}/package.json`));
|
|
27
|
+
|
|
28
|
+
module.exports = {
|
|
29
|
+
dependency: {
|
|
30
|
+
platforms: {
|
|
31
|
+
android: {
|
|
32
|
+
sourceDir: path.relative(cliDependencyRoot, path.join(nativeScreensRoot, 'android')),
|
|
33
|
+
libraryName: 'rnscreens',
|
|
34
|
+
componentDescriptors: [
|
|
35
|
+
'RNSFullWindowOverlayComponentDescriptor',
|
|
36
|
+
'RNSScreenContainerComponentDescriptor',
|
|
37
|
+
'RNSScreenNavigationContainerComponentDescriptor',
|
|
38
|
+
'RNSScreenStackHeaderConfigComponentDescriptor',
|
|
39
|
+
'RNSScreenStackHeaderSubviewComponentDescriptor',
|
|
40
|
+
'RNSScreenStackComponentDescriptor',
|
|
41
|
+
'RNSSearchBarComponentDescriptor',
|
|
42
|
+
'RNSScreenComponentDescriptor',
|
|
43
|
+
'RNSScreenFooterComponentDescriptor',
|
|
44
|
+
'RNSScreenContentWrapperComponentDescriptor',
|
|
45
|
+
'RNSModalScreenComponentDescriptor',
|
|
46
|
+
'RNSTabsHostComponentDescriptor',
|
|
47
|
+
'RNSSafeAreaViewComponentDescriptor',
|
|
48
|
+
'RNSStackScreenComponentDescriptor',
|
|
49
|
+
'RNSStackHeaderConfigComponentDescriptor',
|
|
50
|
+
'RNSStackHeaderSubviewComponentDescriptor',
|
|
51
|
+
'RNSFormSheetHostComponentDescriptor',
|
|
52
|
+
],
|
|
53
|
+
cmakeListsPath: 'src/main/jni/CMakeLists.txt',
|
|
54
|
+
},
|
|
55
|
+
ios: {},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|