react-native-screen-transitions 2.4.2-beta.2 → 3.0.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/README.md +85 -71
- package/lib/commonjs/blank-stack/components/Overlay.js +128 -0
- package/lib/commonjs/blank-stack/components/Overlay.js.map +1 -0
- package/lib/commonjs/blank-stack/components/Screens.js +64 -0
- package/lib/commonjs/blank-stack/components/Screens.js.map +1 -0
- package/lib/commonjs/blank-stack/components/StackView.js +87 -0
- package/lib/commonjs/blank-stack/components/StackView.js.map +1 -0
- package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js +77 -0
- package/lib/commonjs/blank-stack/hooks/use-overlay-animation.js.map +1 -0
- package/lib/commonjs/blank-stack/index.js +13 -0
- package/lib/commonjs/blank-stack/index.js.map +1 -0
- package/lib/commonjs/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
- package/lib/commonjs/blank-stack/types.js +6 -0
- package/lib/commonjs/blank-stack/types.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +72 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +196 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +25 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js +66 -0
- package/lib/commonjs/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
- package/lib/commonjs/native-stack/index.js +13 -0
- package/lib/commonjs/native-stack/index.js.map +1 -0
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -0
- package/lib/commonjs/native-stack/types.js +6 -0
- package/lib/commonjs/native-stack/types.js.map +1 -0
- package/lib/commonjs/native-stack/utils/debounce.js.map +1 -0
- package/lib/commonjs/native-stack/utils/getModalRoutesKeys.js.map +1 -0
- package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -0
- package/lib/commonjs/native-stack/utils/useDismissedRouteError.js.map +1 -0
- package/lib/commonjs/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -0
- package/lib/commonjs/native-stack/views/FontProcessor.js.map +1 -0
- package/lib/commonjs/native-stack/views/FontProcessor.native.js.map +1 -0
- package/lib/commonjs/native-stack/views/FooterComponent.js.map +1 -0
- package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -0
- package/lib/commonjs/native-stack/views/NativeStackView.native.js +493 -0
- package/lib/commonjs/native-stack/views/NativeStackView.native.js.map +1 -0
- package/lib/commonjs/native-stack/views/useHeaderConfigProps.js.map +1 -0
- package/lib/commonjs/shared/components/controllers/screen-lifecycle.js +128 -0
- package/lib/commonjs/shared/components/controllers/screen-lifecycle.js.map +1 -0
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -0
- package/lib/commonjs/shared/components/integrations/masked-view.js.map +1 -0
- package/lib/commonjs/shared/components/root-transition-aware.js.map +1 -0
- package/lib/commonjs/shared/configs/index.js +22 -0
- package/lib/commonjs/shared/configs/index.js.map +1 -0
- package/lib/commonjs/shared/configs/presets.js.map +1 -0
- package/lib/commonjs/shared/configs/specs.js.map +1 -0
- package/lib/commonjs/shared/constants.js.map +1 -0
- package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -0
- package/lib/commonjs/shared/hooks/animation/use-screen-animation.js +118 -0
- package/lib/commonjs/shared/hooks/animation/use-screen-animation.js.map +1 -0
- package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js +131 -0
- package/lib/commonjs/shared/hooks/bounds/use-bound-registry.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js +236 -0
- package/lib/commonjs/shared/hooks/gestures/use-build-gestures.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/use-scroll-registry.js.map +1 -0
- package/lib/commonjs/shared/hooks/use-shared-value-state.js +25 -0
- package/lib/commonjs/shared/hooks/use-shared-value-state.js.map +1 -0
- package/lib/commonjs/shared/hooks/use-stable-callback-value.js.map +1 -0
- package/lib/commonjs/shared/hooks/use-stable-callback.js.map +1 -0
- package/lib/commonjs/shared/index.js +33 -0
- package/lib/commonjs/shared/index.js.map +1 -0
- package/lib/commonjs/shared/providers/gestures.js.map +1 -0
- package/lib/commonjs/shared/providers/keys.js +34 -0
- package/lib/commonjs/shared/providers/keys.js.map +1 -0
- package/lib/commonjs/shared/providers/screen-transition-provider.js +34 -0
- package/lib/commonjs/shared/providers/screen-transition-provider.js.map +1 -0
- package/lib/commonjs/shared/providers/transition-styles.js +62 -0
- package/lib/commonjs/shared/providers/transition-styles.js.map +1 -0
- package/lib/commonjs/shared/providers/utils/create-provider.js +39 -0
- package/lib/commonjs/shared/providers/utils/create-provider.js.map +1 -0
- package/lib/commonjs/shared/stores/animation-store.js +39 -0
- package/lib/commonjs/shared/stores/animation-store.js.map +1 -0
- package/lib/commonjs/shared/stores/bound-store/_utils.js.map +1 -0
- package/lib/commonjs/shared/stores/bound-store/index.js +116 -0
- package/lib/commonjs/shared/stores/bound-store/index.js.map +1 -0
- package/lib/commonjs/shared/stores/gesture-store.js +39 -0
- package/lib/commonjs/shared/stores/gesture-store.js.map +1 -0
- package/lib/commonjs/shared/stores/navigator-dismiss-state.js.map +1 -0
- package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js +19 -0
- package/lib/commonjs/shared/stores/utils/reset-stores-for-screen.js.map +1 -0
- package/lib/commonjs/shared/types/animation.js.map +1 -0
- package/lib/commonjs/shared/types/bounds.js.map +1 -0
- package/lib/commonjs/shared/types/core.js.map +1 -0
- package/lib/commonjs/shared/types/gesture.js.map +1 -0
- package/lib/commonjs/shared/types/utils.js.map +1 -0
- package/lib/commonjs/shared/utils/animation/animate.js.map +1 -0
- package/lib/commonjs/shared/utils/animation/derivations.js +39 -0
- package/lib/commonjs/shared/utils/animation/derivations.js.map +1 -0
- package/lib/commonjs/shared/utils/animation/start-screen-transition.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_types/builder.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_types/geometry.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_types/get-bounds.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_utils/flatten-styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_utils/geometry.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_utils/get-bounds.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js +19 -0
- package/lib/commonjs/shared/utils/bounds/_utils/is-bounds-equal.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_utils/style-composers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/_utils/styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/apply-offset-rules.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/check-gesture-activation.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/determine-dismissal.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/map-gesture-to-progress.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/reset-gesture-values.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/velocity.js.map +1 -0
- package/lib/commonjs/shared/utils/reanimated/version.js.map +1 -0
- package/lib/module/blank-stack/components/Overlay.js +124 -0
- package/lib/module/blank-stack/components/Overlay.js.map +1 -0
- package/lib/module/blank-stack/components/Screens.js +58 -0
- package/lib/module/blank-stack/components/Screens.js.map +1 -0
- package/lib/module/blank-stack/components/StackView.js +83 -0
- package/lib/module/blank-stack/components/StackView.js.map +1 -0
- package/lib/module/blank-stack/hooks/use-overlay-animation.js +73 -0
- package/lib/module/blank-stack/hooks/use-overlay-animation.js.map +1 -0
- package/lib/module/blank-stack/index.js +4 -0
- package/lib/module/blank-stack/index.js.map +1 -0
- package/lib/module/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
- package/lib/module/blank-stack/types.js +4 -0
- package/lib/module/blank-stack/types.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +66 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +190 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +20 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/index.js +60 -0
- package/lib/module/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
- package/lib/module/native-stack/index.js +4 -0
- package/lib/module/native-stack/index.js.map +1 -0
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -0
- package/lib/module/native-stack/types.js +4 -0
- package/lib/module/native-stack/types.js.map +1 -0
- package/lib/module/native-stack/utils/debounce.js.map +1 -0
- package/lib/module/native-stack/utils/getModalRoutesKeys.js.map +1 -0
- package/lib/module/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -0
- package/lib/module/native-stack/utils/useDismissedRouteError.js.map +1 -0
- package/lib/module/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -0
- package/lib/module/native-stack/views/FontProcessor.js.map +1 -0
- package/lib/module/native-stack/views/FontProcessor.native.js.map +1 -0
- package/lib/module/native-stack/views/FooterComponent.js.map +1 -0
- package/lib/module/native-stack/views/NativeStackView.js.map +1 -0
- package/lib/module/native-stack/views/NativeStackView.native.js +488 -0
- package/lib/module/native-stack/views/NativeStackView.native.js.map +1 -0
- package/lib/module/native-stack/views/useHeaderConfigProps.js.map +1 -0
- package/lib/module/shared/components/controllers/screen-lifecycle.js +122 -0
- package/lib/module/shared/components/controllers/screen-lifecycle.js.map +1 -0
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -0
- package/lib/module/shared/components/integrations/masked-view.js.map +1 -0
- package/lib/module/shared/components/root-transition-aware.js.map +1 -0
- package/lib/module/shared/configs/index.js +18 -0
- package/lib/module/shared/configs/index.js.map +1 -0
- package/lib/module/shared/configs/presets.js.map +1 -0
- package/lib/module/shared/configs/specs.js.map +1 -0
- package/lib/module/shared/constants.js.map +1 -0
- package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -0
- package/lib/module/shared/hooks/animation/use-screen-animation.js +113 -0
- package/lib/module/shared/hooks/animation/use-screen-animation.js.map +1 -0
- package/lib/module/shared/hooks/bounds/use-bound-registry.js +125 -0
- package/lib/module/shared/hooks/bounds/use-bound-registry.js.map +1 -0
- package/lib/module/shared/hooks/gestures/use-build-gestures.js +230 -0
- package/lib/module/shared/hooks/gestures/use-build-gestures.js.map +1 -0
- package/lib/module/shared/hooks/gestures/use-parent-gesture-registry.js.map +1 -0
- package/lib/module/shared/hooks/gestures/use-scroll-registry.js.map +1 -0
- package/lib/module/shared/hooks/use-shared-value-state.js +22 -0
- package/lib/module/shared/hooks/use-shared-value-state.js.map +1 -0
- package/lib/module/shared/hooks/use-stable-callback-value.js.map +1 -0
- package/lib/module/shared/hooks/use-stable-callback.js.map +1 -0
- package/lib/module/shared/index.js +22 -0
- package/lib/module/shared/index.js.map +1 -0
- package/lib/module/shared/providers/gestures.js.map +1 -0
- package/lib/module/shared/providers/keys.js +29 -0
- package/lib/module/shared/providers/keys.js.map +1 -0
- package/lib/module/shared/providers/screen-transition-provider.js +30 -0
- package/lib/module/shared/providers/screen-transition-provider.js.map +1 -0
- package/lib/module/shared/providers/transition-styles.js +57 -0
- package/lib/module/shared/providers/transition-styles.js.map +1 -0
- package/lib/module/shared/providers/utils/create-provider.js +33 -0
- package/lib/module/shared/providers/utils/create-provider.js.map +1 -0
- package/lib/module/shared/stores/animation-store.js +33 -0
- package/lib/module/shared/stores/animation-store.js.map +1 -0
- package/lib/module/shared/stores/bound-store/_utils.js.map +1 -0
- package/lib/module/shared/stores/bound-store/index.js +112 -0
- package/lib/module/shared/stores/bound-store/index.js.map +1 -0
- package/lib/module/shared/stores/gesture-store.js +35 -0
- package/lib/module/shared/stores/gesture-store.js.map +1 -0
- package/lib/module/shared/stores/navigator-dismiss-state.js.map +1 -0
- package/lib/module/shared/stores/utils/reset-stores-for-screen.js +15 -0
- package/lib/module/shared/stores/utils/reset-stores-for-screen.js.map +1 -0
- package/lib/module/shared/types/animation.js.map +1 -0
- package/lib/module/shared/types/bounds.js.map +1 -0
- package/lib/module/shared/types/core.js.map +1 -0
- package/lib/module/shared/types/gesture.js.map +1 -0
- package/lib/module/shared/types/utils.js.map +1 -0
- package/lib/module/shared/utils/animation/animate.js.map +1 -0
- package/lib/module/shared/utils/animation/derivations.js +34 -0
- package/lib/module/shared/utils/animation/derivations.js.map +1 -0
- package/lib/module/shared/utils/animation/start-screen-transition.js.map +1 -0
- package/lib/module/shared/utils/bounds/_types/builder.js.map +1 -0
- package/lib/module/shared/utils/bounds/_types/geometry.js.map +1 -0
- package/lib/module/shared/utils/bounds/_types/get-bounds.js.map +1 -0
- package/lib/module/shared/utils/bounds/_utils/flatten-styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/_utils/geometry.js.map +1 -0
- package/lib/module/shared/utils/bounds/_utils/get-bounds.js.map +1 -0
- package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js +14 -0
- package/lib/module/shared/utils/bounds/_utils/is-bounds-equal.js.map +1 -0
- package/lib/module/shared/utils/bounds/_utils/style-composers.js.map +1 -0
- package/lib/module/shared/utils/bounds/_utils/styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/constants.js.map +1 -0
- package/lib/module/shared/utils/bounds/index.js.map +1 -0
- package/lib/module/shared/utils/gesture/apply-offset-rules.js.map +1 -0
- package/lib/module/shared/utils/gesture/check-gesture-activation.js.map +1 -0
- package/lib/module/shared/utils/gesture/determine-dismissal.js.map +1 -0
- package/lib/module/shared/utils/gesture/map-gesture-to-progress.js.map +1 -0
- package/lib/module/shared/utils/gesture/reset-gesture-values.js.map +1 -0
- package/lib/module/shared/utils/gesture/velocity.js.map +1 -0
- package/lib/module/shared/utils/reanimated/version.js.map +1 -0
- package/lib/typescript/blank-stack/components/Overlay.d.ts +5 -0
- package/lib/typescript/blank-stack/components/Overlay.d.ts.map +1 -0
- package/lib/typescript/blank-stack/components/Screens.d.ts.map +1 -0
- package/lib/typescript/blank-stack/components/StackView.d.ts.map +1 -0
- package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts +12 -0
- package/lib/typescript/blank-stack/hooks/use-overlay-animation.d.ts.map +1 -0
- package/lib/typescript/blank-stack/index.d.ts +3 -0
- package/lib/typescript/blank-stack/index.d.ts.map +1 -0
- package/lib/typescript/blank-stack/navigators/createBlankStackNavigator.d.ts +16 -0
- package/lib/typescript/blank-stack/navigators/createBlankStackNavigator.d.ts.map +1 -0
- package/lib/typescript/blank-stack/types.d.ts +213 -0
- package/lib/typescript/blank-stack/types.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts +20 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_types.d.ts +22 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_types.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts +3 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts +4 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts +4 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +1 -0
- package/lib/typescript/blank-stack/utils/with-stack-navigation/index.d.ts.map +1 -0
- package/lib/typescript/native-stack/index.d.ts +3 -0
- package/lib/typescript/native-stack/index.d.ts.map +1 -0
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +16 -0
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -0
- package/lib/typescript/native-stack/types.d.ts +651 -0
- package/lib/typescript/native-stack/types.d.ts.map +1 -0
- package/lib/typescript/native-stack/utils/debounce.d.ts.map +1 -0
- package/lib/typescript/native-stack/utils/getModalRoutesKeys.d.ts +4 -0
- package/lib/typescript/native-stack/utils/getModalRoutesKeys.d.ts.map +1 -0
- package/lib/typescript/native-stack/utils/useAnimatedHeaderHeight.d.ts.map +1 -0
- package/lib/typescript/native-stack/utils/useDismissedRouteError.d.ts.map +1 -0
- package/lib/typescript/native-stack/utils/useInvalidPreventRemoveError.d.ts +3 -0
- package/lib/typescript/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +1 -0
- package/lib/typescript/native-stack/views/FontProcessor.d.ts.map +1 -0
- package/lib/typescript/native-stack/views/FontProcessor.native.d.ts.map +1 -0
- package/lib/typescript/native-stack/views/FooterComponent.d.ts.map +1 -0
- package/lib/typescript/native-stack/views/NativeStackView.d.ts +11 -0
- package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -0
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts +11 -0
- package/lib/typescript/native-stack/views/NativeStackView.native.d.ts.map +1 -0
- package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +44 -0
- package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts.map +1 -0
- package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts +12 -0
- package/lib/typescript/shared/components/controllers/screen-lifecycle.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -0
- package/lib/typescript/shared/components/integrations/masked-view.d.ts.map +1 -0
- package/lib/typescript/shared/components/root-transition-aware.d.ts.map +1 -0
- package/lib/typescript/shared/configs/index.d.ts +16 -0
- package/lib/typescript/shared/configs/index.d.ts.map +1 -0
- package/lib/typescript/shared/configs/presets.d.ts +12 -0
- package/lib/typescript/shared/configs/presets.d.ts.map +1 -0
- package/lib/typescript/shared/configs/specs.d.ts.map +1 -0
- package/lib/typescript/shared/constants.d.ts +57 -0
- package/lib/typescript/shared/constants.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts +7 -0
- package/lib/typescript/shared/hooks/animation/use-screen-animation.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/bounds/use-bound-registry.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/use-build-gestures.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/use-parent-gesture-registry.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/use-scroll-registry.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/use-shared-value-state.d.ts +7 -0
- package/lib/typescript/shared/hooks/use-shared-value-state.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/use-stable-callback-value.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/use-stable-callback.d.ts.map +1 -0
- package/lib/typescript/shared/index.d.ts +1323 -0
- package/lib/typescript/shared/index.d.ts.map +1 -0
- package/lib/typescript/shared/providers/gestures.d.ts.map +1 -0
- package/lib/typescript/shared/providers/keys.d.ts +18 -0
- package/lib/typescript/shared/providers/keys.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen-transition-provider.d.ts +14 -0
- package/lib/typescript/shared/providers/screen-transition-provider.d.ts.map +1 -0
- package/lib/typescript/shared/providers/transition-styles.d.ts +11 -0
- package/lib/typescript/shared/providers/transition-styles.d.ts.map +1 -0
- package/lib/typescript/shared/providers/utils/create-provider.d.ts +32 -0
- package/lib/typescript/shared/providers/utils/create-provider.d.ts.map +1 -0
- package/lib/typescript/shared/stores/animation-store.d.ts +17 -0
- package/lib/typescript/shared/stores/animation-store.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bound-store/_utils.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bound-store/index.d.ts +22 -0
- package/lib/typescript/shared/stores/bound-store/index.d.ts.map +1 -0
- package/lib/typescript/shared/stores/gesture-store.d.ts +23 -0
- package/lib/typescript/shared/stores/gesture-store.d.ts.map +1 -0
- package/lib/typescript/shared/stores/navigator-dismiss-state.d.ts.map +1 -0
- package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts +6 -0
- package/lib/typescript/shared/stores/utils/reset-stores-for-screen.d.ts.map +1 -0
- package/lib/typescript/shared/types/animation.d.ts +78 -0
- package/lib/typescript/shared/types/animation.d.ts.map +1 -0
- package/lib/typescript/shared/types/bounds.d.ts.map +1 -0
- package/lib/typescript/shared/types/core.d.ts +91 -0
- package/lib/typescript/shared/types/core.d.ts.map +1 -0
- package/lib/typescript/shared/types/gesture.d.ts.map +1 -0
- package/lib/typescript/shared/types/utils.d.ts.map +1 -0
- package/lib/typescript/shared/utils/animation/animate.d.ts.map +1 -0
- package/lib/typescript/shared/utils/animation/derivations.d.ts.map +1 -0
- package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts +13 -0
- package/lib/typescript/shared/utils/animation/start-screen-transition.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_types/builder.d.ts +118 -0
- package/lib/typescript/shared/utils/bounds/_types/builder.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_types/geometry.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_types/get-bounds.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_utils/flatten-styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts +27 -0
- package/lib/typescript/shared/utils/bounds/_utils/geometry.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_utils/get-bounds.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_utils/is-bounds-equal.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_utils/style-composers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/_utils/styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/constants.d.ts +7 -0
- package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/index.d.ts +13 -0
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts +38 -0
- package/lib/typescript/shared/utils/gesture/apply-offset-rules.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts +38 -0
- package/lib/typescript/shared/utils/gesture/check-gesture-activation.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/determine-dismissal.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/map-gesture-to-progress.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts +16 -0
- package/lib/typescript/shared/utils/gesture/reset-gesture-values.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/velocity.d.ts +25 -0
- package/lib/typescript/shared/utils/gesture/velocity.d.ts.map +1 -0
- package/lib/typescript/shared/utils/reanimated/version.d.ts.map +1 -0
- package/package.json +37 -5
- package/src/blank-stack/components/Overlay.tsx +134 -0
- package/src/blank-stack/components/Screens.tsx +96 -0
- package/src/blank-stack/components/StackView.tsx +102 -0
- package/src/blank-stack/hooks/use-overlay-animation.tsx +101 -0
- package/src/blank-stack/index.ts +10 -0
- package/src/blank-stack/navigators/createBlankStackNavigator.tsx +111 -0
- package/src/blank-stack/types.ts +267 -0
- package/src/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx +71 -0
- package/src/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx +267 -0
- package/src/blank-stack/utils/with-stack-navigation/_types.ts +35 -0
- package/src/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts +15 -0
- package/src/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.ts +29 -0
- package/src/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts +24 -0
- package/src/blank-stack/utils/with-stack-navigation/index.tsx +80 -0
- package/src/native-stack/index.ts +12 -0
- package/src/native-stack/navigators/createNativeStackNavigator.tsx +112 -0
- package/src/native-stack/types.ts +711 -0
- package/src/native-stack/utils/getModalRoutesKeys.ts +21 -0
- package/src/native-stack/utils/useInvalidPreventRemoveError.tsx +31 -0
- package/src/native-stack/views/NativeStackView.native.tsx +655 -0
- package/src/native-stack/views/NativeStackView.tsx +214 -0
- package/src/native-stack/views/useHeaderConfigProps.tsx +295 -0
- package/src/shared/__tests__/gesture.velocity.test.ts +139 -0
- package/src/shared/components/controllers/screen-lifecycle.tsx +139 -0
- package/src/shared/components/root-transition-aware.tsx +44 -0
- package/src/shared/configs/index.ts +26 -0
- package/src/shared/configs/presets.ts +628 -0
- package/src/shared/constants.ts +108 -0
- package/src/shared/hooks/animation/use-screen-animation.tsx +150 -0
- package/src/shared/hooks/bounds/use-bound-registry.tsx +153 -0
- package/src/shared/hooks/gestures/use-build-gestures.tsx +324 -0
- package/src/shared/hooks/use-shared-value-state.ts +28 -0
- package/src/shared/index.ts +21 -0
- package/src/shared/providers/keys.tsx +57 -0
- package/src/shared/providers/screen-transition-provider.tsx +41 -0
- package/src/shared/providers/transition-styles.tsx +72 -0
- package/src/shared/providers/utils/create-provider.ts +64 -0
- package/src/shared/stores/animation-store.ts +45 -0
- package/src/shared/stores/bound-store/index.ts +125 -0
- package/src/shared/stores/gesture-store.ts +60 -0
- package/src/shared/stores/utils/reset-stores-for-screen.ts +13 -0
- package/src/shared/types/animation.ts +90 -0
- package/src/shared/types/core.ts +97 -0
- package/src/shared/utils/animation/derivations.ts +40 -0
- package/src/shared/utils/animation/start-screen-transition.ts +61 -0
- package/src/shared/utils/bounds/_types/builder.ts +151 -0
- package/src/shared/utils/bounds/_utils/geometry.ts +166 -0
- package/src/shared/utils/bounds/_utils/is-bounds-equal.ts +24 -0
- package/src/shared/utils/bounds/constants.ts +40 -0
- package/src/shared/utils/bounds/index.ts +218 -0
- package/src/shared/utils/gesture/apply-offset-rules.ts +312 -0
- package/src/shared/utils/gesture/check-gesture-activation.ts +310 -0
- package/src/shared/utils/gesture/reset-gesture-values.ts +67 -0
- package/src/shared/utils/gesture/velocity.ts +143 -0
- package/lib/commonjs/__configs__/index.js +0 -22
- package/lib/commonjs/__configs__/index.js.map +0 -1
- package/lib/commonjs/__configs__/presets.js.map +0 -1
- package/lib/commonjs/__configs__/specs.js.map +0 -1
- package/lib/commonjs/components/controllers/screen-lifecycle.blank.js +0 -59
- package/lib/commonjs/components/controllers/screen-lifecycle.blank.js.map +0 -1
- package/lib/commonjs/components/controllers/screen-lifecycle.js +0 -71
- package/lib/commonjs/components/controllers/screen-lifecycle.js.map +0 -1
- package/lib/commonjs/components/create-transition-aware-component.js.map +0 -1
- package/lib/commonjs/components/integrations/masked-view.js.map +0 -1
- package/lib/commonjs/components/root-transition-aware.js.map +0 -1
- package/lib/commonjs/constants.js.map +0 -1
- package/lib/commonjs/hooks/animation/use-associated-style.js.map +0 -1
- package/lib/commonjs/hooks/animation/use-screen-animation.js +0 -120
- package/lib/commonjs/hooks/animation/use-screen-animation.js.map +0 -1
- package/lib/commonjs/hooks/bounds/use-bound-registry.js +0 -131
- package/lib/commonjs/hooks/bounds/use-bound-registry.js.map +0 -1
- package/lib/commonjs/hooks/gestures/use-build-gestures.js +0 -236
- package/lib/commonjs/hooks/gestures/use-build-gestures.js.map +0 -1
- package/lib/commonjs/hooks/gestures/use-parent-gesture-registry.js.map +0 -1
- package/lib/commonjs/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/commonjs/hooks/use-stable-callback-value.js.map +0 -1
- package/lib/commonjs/hooks/use-stable-callback.js.map +0 -1
- package/lib/commonjs/index.js +0 -47
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/components/Header.js +0 -135
- package/lib/commonjs/integrations/blank-stack/components/Header.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/components/Screens.js +0 -64
- package/lib/commonjs/integrations/blank-stack/components/Screens.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/components/StackView.js +0 -85
- package/lib/commonjs/integrations/blank-stack/components/StackView.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/providers/screen-transition-provider.js +0 -12
- package/lib/commonjs/integrations/blank-stack/providers/screen-transition-provider.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +0 -66
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +0 -208
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +0 -15
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +0 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js +0 -66
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/navigators/createNativeStackNavigator.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/providers/screen-transition-provider.js +0 -10
- package/lib/commonjs/integrations/native-stack/providers/screen-transition-provider.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/utils/debounce.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/utils/getModalRoutesKeys.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/utils/useDismissedRouteError.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/views/FontProcessor.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/views/FontProcessor.native.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/views/FooterComponent.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js +0 -488
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +0 -1
- package/lib/commonjs/integrations/native-stack/views/useHeaderConfigProps.js.map +0 -1
- package/lib/commonjs/providers/create-screen-transition-provider.js +0 -38
- package/lib/commonjs/providers/create-screen-transition-provider.js.map +0 -1
- package/lib/commonjs/providers/gestures.js.map +0 -1
- package/lib/commonjs/providers/keys.js +0 -35
- package/lib/commonjs/providers/keys.js.map +0 -1
- package/lib/commonjs/providers/transition-styles.js +0 -63
- package/lib/commonjs/providers/transition-styles.js.map +0 -1
- package/lib/commonjs/stores/animations.js +0 -39
- package/lib/commonjs/stores/animations.js.map +0 -1
- package/lib/commonjs/stores/bounds/_utils.js.map +0 -1
- package/lib/commonjs/stores/bounds/index.js +0 -116
- package/lib/commonjs/stores/bounds/index.js.map +0 -1
- package/lib/commonjs/stores/gestures.js +0 -39
- package/lib/commonjs/stores/gestures.js.map +0 -1
- package/lib/commonjs/stores/navigator-dismiss-state.js.map +0 -1
- package/lib/commonjs/stores/utils/reset-stores-for-screen.js +0 -19
- package/lib/commonjs/stores/utils/reset-stores-for-screen.js.map +0 -1
- package/lib/commonjs/types/animation.js.map +0 -1
- package/lib/commonjs/types/blank-stack.navigator.js +0 -6
- package/lib/commonjs/types/blank-stack.navigator.js.map +0 -1
- package/lib/commonjs/types/bounds.js.map +0 -1
- package/lib/commonjs/types/core.js.map +0 -1
- package/lib/commonjs/types/gesture.js.map +0 -1
- package/lib/commonjs/types/native-stack.navigator.js +0 -6
- package/lib/commonjs/types/native-stack.navigator.js.map +0 -1
- package/lib/commonjs/types/utils.js.map +0 -1
- package/lib/commonjs/utils/animation/animate.js.map +0 -1
- package/lib/commonjs/utils/animation/derivations.js +0 -39
- package/lib/commonjs/utils/animation/derivations.js.map +0 -1
- package/lib/commonjs/utils/animation/start-screen-transition.js.map +0 -1
- package/lib/commonjs/utils/bounds/_types/builder.js.map +0 -1
- package/lib/commonjs/utils/bounds/_types/geometry.js.map +0 -1
- package/lib/commonjs/utils/bounds/_types/get-bounds.js.map +0 -1
- package/lib/commonjs/utils/bounds/_utils/flatten-styles.js.map +0 -1
- package/lib/commonjs/utils/bounds/_utils/geometry.js.map +0 -1
- package/lib/commonjs/utils/bounds/_utils/get-bounds.js.map +0 -1
- package/lib/commonjs/utils/bounds/_utils/is-bounds-equal.js +0 -19
- package/lib/commonjs/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
- package/lib/commonjs/utils/bounds/_utils/style-composers.js.map +0 -1
- package/lib/commonjs/utils/bounds/_utils/styles.js.map +0 -1
- package/lib/commonjs/utils/bounds/constants.js.map +0 -1
- package/lib/commonjs/utils/bounds/index.js.map +0 -1
- package/lib/commonjs/utils/gesture/apply-offset-rules.js.map +0 -1
- package/lib/commonjs/utils/gesture/check-gesture-activation.js.map +0 -1
- package/lib/commonjs/utils/gesture/determine-dismissal.js.map +0 -1
- package/lib/commonjs/utils/gesture/map-gesture-to-progress.js.map +0 -1
- package/lib/commonjs/utils/gesture/reset-gesture-values.js.map +0 -1
- package/lib/commonjs/utils/gesture/velocity.js.map +0 -1
- package/lib/commonjs/utils/reanimated/version.js.map +0 -1
- package/lib/module/__configs__/index.js +0 -18
- package/lib/module/__configs__/index.js.map +0 -1
- package/lib/module/__configs__/presets.js.map +0 -1
- package/lib/module/__configs__/specs.js.map +0 -1
- package/lib/module/components/controllers/screen-lifecycle.blank.js +0 -53
- package/lib/module/components/controllers/screen-lifecycle.blank.js.map +0 -1
- package/lib/module/components/controllers/screen-lifecycle.js +0 -65
- package/lib/module/components/controllers/screen-lifecycle.js.map +0 -1
- package/lib/module/components/create-transition-aware-component.js.map +0 -1
- package/lib/module/components/integrations/masked-view.js.map +0 -1
- package/lib/module/components/root-transition-aware.js.map +0 -1
- package/lib/module/constants.js.map +0 -1
- package/lib/module/hooks/animation/use-associated-style.js.map +0 -1
- package/lib/module/hooks/animation/use-screen-animation.js +0 -115
- package/lib/module/hooks/animation/use-screen-animation.js.map +0 -1
- package/lib/module/hooks/bounds/use-bound-registry.js +0 -125
- package/lib/module/hooks/bounds/use-bound-registry.js.map +0 -1
- package/lib/module/hooks/gestures/use-build-gestures.js +0 -230
- package/lib/module/hooks/gestures/use-build-gestures.js.map +0 -1
- package/lib/module/hooks/gestures/use-parent-gesture-registry.js.map +0 -1
- package/lib/module/hooks/gestures/use-scroll-registry.js.map +0 -1
- package/lib/module/hooks/use-stable-callback-value.js.map +0 -1
- package/lib/module/hooks/use-stable-callback.js.map +0 -1
- package/lib/module/index.js +0 -24
- package/lib/module/index.js.map +0 -1
- package/lib/module/integrations/blank-stack/components/Header.js +0 -131
- package/lib/module/integrations/blank-stack/components/Header.js.map +0 -1
- package/lib/module/integrations/blank-stack/components/Screens.js +0 -58
- package/lib/module/integrations/blank-stack/components/Screens.js.map +0 -1
- package/lib/module/integrations/blank-stack/components/StackView.js +0 -81
- package/lib/module/integrations/blank-stack/components/StackView.js.map +0 -1
- package/lib/module/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +0 -1
- package/lib/module/integrations/blank-stack/providers/screen-transition-provider.js +0 -8
- package/lib/module/integrations/blank-stack/providers/screen-transition-provider.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +0 -60
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +0 -202
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +0 -10
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +0 -1
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js +0 -60
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js.map +0 -1
- package/lib/module/integrations/native-stack/navigators/createNativeStackNavigator.js.map +0 -1
- package/lib/module/integrations/native-stack/providers/screen-transition-provider.js +0 -6
- package/lib/module/integrations/native-stack/providers/screen-transition-provider.js.map +0 -1
- package/lib/module/integrations/native-stack/utils/debounce.js.map +0 -1
- package/lib/module/integrations/native-stack/utils/getModalRoutesKeys.js.map +0 -1
- package/lib/module/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +0 -1
- package/lib/module/integrations/native-stack/utils/useDismissedRouteError.js.map +0 -1
- package/lib/module/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +0 -1
- package/lib/module/integrations/native-stack/views/FontProcessor.js.map +0 -1
- package/lib/module/integrations/native-stack/views/FontProcessor.native.js.map +0 -1
- package/lib/module/integrations/native-stack/views/FooterComponent.js.map +0 -1
- package/lib/module/integrations/native-stack/views/NativeStackView.js.map +0 -1
- package/lib/module/integrations/native-stack/views/NativeStackView.native.js +0 -483
- package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +0 -1
- package/lib/module/integrations/native-stack/views/useHeaderConfigProps.js.map +0 -1
- package/lib/module/providers/create-screen-transition-provider.js +0 -34
- package/lib/module/providers/create-screen-transition-provider.js.map +0 -1
- package/lib/module/providers/gestures.js.map +0 -1
- package/lib/module/providers/keys.js +0 -29
- package/lib/module/providers/keys.js.map +0 -1
- package/lib/module/providers/transition-styles.js +0 -58
- package/lib/module/providers/transition-styles.js.map +0 -1
- package/lib/module/stores/animations.js +0 -33
- package/lib/module/stores/animations.js.map +0 -1
- package/lib/module/stores/bounds/_utils.js.map +0 -1
- package/lib/module/stores/bounds/index.js +0 -112
- package/lib/module/stores/bounds/index.js.map +0 -1
- package/lib/module/stores/gestures.js +0 -35
- package/lib/module/stores/gestures.js.map +0 -1
- package/lib/module/stores/navigator-dismiss-state.js.map +0 -1
- package/lib/module/stores/utils/reset-stores-for-screen.js +0 -15
- package/lib/module/stores/utils/reset-stores-for-screen.js.map +0 -1
- package/lib/module/types/animation.js.map +0 -1
- package/lib/module/types/blank-stack.navigator.js +0 -4
- package/lib/module/types/blank-stack.navigator.js.map +0 -1
- package/lib/module/types/bounds.js.map +0 -1
- package/lib/module/types/core.js.map +0 -1
- package/lib/module/types/gesture.js.map +0 -1
- package/lib/module/types/native-stack.navigator.js +0 -4
- package/lib/module/types/native-stack.navigator.js.map +0 -1
- package/lib/module/types/utils.js.map +0 -1
- package/lib/module/utils/animation/animate.js.map +0 -1
- package/lib/module/utils/animation/derivations.js +0 -34
- package/lib/module/utils/animation/derivations.js.map +0 -1
- package/lib/module/utils/animation/start-screen-transition.js.map +0 -1
- package/lib/module/utils/bounds/_types/builder.js.map +0 -1
- package/lib/module/utils/bounds/_types/geometry.js.map +0 -1
- package/lib/module/utils/bounds/_types/get-bounds.js.map +0 -1
- package/lib/module/utils/bounds/_utils/flatten-styles.js.map +0 -1
- package/lib/module/utils/bounds/_utils/geometry.js.map +0 -1
- package/lib/module/utils/bounds/_utils/get-bounds.js.map +0 -1
- package/lib/module/utils/bounds/_utils/is-bounds-equal.js +0 -14
- package/lib/module/utils/bounds/_utils/is-bounds-equal.js.map +0 -1
- package/lib/module/utils/bounds/_utils/style-composers.js.map +0 -1
- package/lib/module/utils/bounds/_utils/styles.js.map +0 -1
- package/lib/module/utils/bounds/constants.js.map +0 -1
- package/lib/module/utils/bounds/index.js.map +0 -1
- package/lib/module/utils/gesture/apply-offset-rules.js.map +0 -1
- package/lib/module/utils/gesture/check-gesture-activation.js.map +0 -1
- package/lib/module/utils/gesture/determine-dismissal.js.map +0 -1
- package/lib/module/utils/gesture/map-gesture-to-progress.js.map +0 -1
- package/lib/module/utils/gesture/reset-gesture-values.js.map +0 -1
- package/lib/module/utils/gesture/velocity.js.map +0 -1
- package/lib/module/utils/reanimated/version.js.map +0 -1
- package/lib/typescript/__configs__/index.d.ts +0 -16
- package/lib/typescript/__configs__/index.d.ts.map +0 -1
- package/lib/typescript/__configs__/presets.d.ts +0 -12
- package/lib/typescript/__configs__/presets.d.ts.map +0 -1
- package/lib/typescript/__configs__/specs.d.ts.map +0 -1
- package/lib/typescript/components/controllers/screen-lifecycle.blank.d.ts +0 -7
- package/lib/typescript/components/controllers/screen-lifecycle.blank.d.ts.map +0 -1
- package/lib/typescript/components/controllers/screen-lifecycle.d.ts +0 -6
- package/lib/typescript/components/controllers/screen-lifecycle.d.ts.map +0 -1
- package/lib/typescript/components/create-transition-aware-component.d.ts.map +0 -1
- package/lib/typescript/components/integrations/masked-view.d.ts.map +0 -1
- package/lib/typescript/components/root-transition-aware.d.ts.map +0 -1
- package/lib/typescript/constants.d.ts +0 -57
- package/lib/typescript/constants.d.ts.map +0 -1
- package/lib/typescript/hooks/animation/use-associated-style.d.ts.map +0 -1
- package/lib/typescript/hooks/animation/use-screen-animation.d.ts +0 -7
- package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +0 -1
- package/lib/typescript/hooks/bounds/use-bound-registry.d.ts.map +0 -1
- package/lib/typescript/hooks/gestures/use-build-gestures.d.ts.map +0 -1
- package/lib/typescript/hooks/gestures/use-parent-gesture-registry.d.ts.map +0 -1
- package/lib/typescript/hooks/gestures/use-scroll-registry.d.ts.map +0 -1
- package/lib/typescript/hooks/use-stable-callback-value.d.ts.map +0 -1
- package/lib/typescript/hooks/use-stable-callback.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -1327
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/components/Header.d.ts +0 -5
- package/lib/typescript/integrations/blank-stack/components/Header.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/components/Screens.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/components/StackView.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts +0 -16
- package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/providers/screen-transition-provider.d.ts +0 -8
- package/lib/typescript/integrations/blank-stack/providers/screen-transition-provider.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts +0 -20
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts +0 -22
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts +0 -3
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts +0 -4
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts +0 -4
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +0 -1
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/index.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts +0 -16
- package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/providers/screen-transition-provider.d.ts +0 -8
- package/lib/typescript/integrations/native-stack/providers/screen-transition-provider.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/utils/debounce.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts +0 -4
- package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/utils/useAnimatedHeaderHeight.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/utils/useDismissedRouteError.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts +0 -3
- package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/views/FontProcessor.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/views/FontProcessor.native.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/views/FooterComponent.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts +0 -11
- package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts +0 -11
- package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts.map +0 -1
- package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts +0 -44
- package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts.map +0 -1
- package/lib/typescript/providers/create-screen-transition-provider.d.ts +0 -18
- package/lib/typescript/providers/create-screen-transition-provider.d.ts.map +0 -1
- package/lib/typescript/providers/gestures.d.ts.map +0 -1
- package/lib/typescript/providers/keys.d.ts +0 -18
- package/lib/typescript/providers/keys.d.ts.map +0 -1
- package/lib/typescript/providers/transition-styles.d.ts +0 -12
- package/lib/typescript/providers/transition-styles.d.ts.map +0 -1
- package/lib/typescript/stores/animations.d.ts +0 -17
- package/lib/typescript/stores/animations.d.ts.map +0 -1
- package/lib/typescript/stores/bounds/_utils.d.ts.map +0 -1
- package/lib/typescript/stores/bounds/index.d.ts +0 -22
- package/lib/typescript/stores/bounds/index.d.ts.map +0 -1
- package/lib/typescript/stores/gestures.d.ts +0 -23
- package/lib/typescript/stores/gestures.d.ts.map +0 -1
- package/lib/typescript/stores/navigator-dismiss-state.d.ts.map +0 -1
- package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts +0 -6
- package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts.map +0 -1
- package/lib/typescript/types/animation.d.ts +0 -70
- package/lib/typescript/types/animation.d.ts.map +0 -1
- package/lib/typescript/types/blank-stack.navigator.d.ts +0 -214
- package/lib/typescript/types/blank-stack.navigator.d.ts.map +0 -1
- package/lib/typescript/types/bounds.d.ts.map +0 -1
- package/lib/typescript/types/core.d.ts +0 -47
- package/lib/typescript/types/core.d.ts.map +0 -1
- package/lib/typescript/types/gesture.d.ts.map +0 -1
- package/lib/typescript/types/native-stack.navigator.d.ts +0 -691
- package/lib/typescript/types/native-stack.navigator.d.ts.map +0 -1
- package/lib/typescript/types/utils.d.ts.map +0 -1
- package/lib/typescript/utils/animation/animate.d.ts.map +0 -1
- package/lib/typescript/utils/animation/derivations.d.ts.map +0 -1
- package/lib/typescript/utils/animation/start-screen-transition.d.ts +0 -13
- package/lib/typescript/utils/animation/start-screen-transition.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_types/builder.d.ts +0 -118
- package/lib/typescript/utils/bounds/_types/builder.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_types/geometry.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_types/get-bounds.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_utils/flatten-styles.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_utils/geometry.d.ts +0 -27
- package/lib/typescript/utils/bounds/_utils/geometry.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_utils/get-bounds.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_utils/is-bounds-equal.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_utils/style-composers.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/_utils/styles.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/constants.d.ts +0 -7
- package/lib/typescript/utils/bounds/constants.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/index.d.ts +0 -13
- package/lib/typescript/utils/bounds/index.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/apply-offset-rules.d.ts +0 -38
- package/lib/typescript/utils/gesture/apply-offset-rules.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/check-gesture-activation.d.ts +0 -38
- package/lib/typescript/utils/gesture/check-gesture-activation.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/determine-dismissal.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/map-gesture-to-progress.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/reset-gesture-values.d.ts +0 -16
- package/lib/typescript/utils/gesture/reset-gesture-values.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/velocity.d.ts +0 -25
- package/lib/typescript/utils/gesture/velocity.d.ts.map +0 -1
- package/lib/typescript/utils/reanimated/version.d.ts.map +0 -1
- package/src/__configs__/index.ts +0 -26
- package/src/__configs__/presets.ts +0 -628
- package/src/__tests__/gesture.velocity.test.ts +0 -138
- package/src/components/controllers/screen-lifecycle.blank.ts +0 -62
- package/src/components/controllers/screen-lifecycle.tsx +0 -78
- package/src/components/root-transition-aware.tsx +0 -44
- package/src/constants.ts +0 -108
- package/src/hooks/animation/use-screen-animation.tsx +0 -157
- package/src/hooks/bounds/use-bound-registry.tsx +0 -159
- package/src/hooks/gestures/use-build-gestures.tsx +0 -324
- package/src/index.ts +0 -45
- package/src/integrations/blank-stack/components/Header.tsx +0 -141
- package/src/integrations/blank-stack/components/Screens.tsx +0 -96
- package/src/integrations/blank-stack/components/StackView.tsx +0 -100
- package/src/integrations/blank-stack/navigators/createBlankStackNavigator.tsx +0 -111
- package/src/integrations/blank-stack/providers/screen-transition-provider.tsx +0 -9
- package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx +0 -62
- package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx +0 -280
- package/src/integrations/blank-stack/utils/with-stack-navigation/_types.ts +0 -35
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts +0 -15
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/calculate-active-screens-limit.ts +0 -29
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts +0 -17
- package/src/integrations/blank-stack/utils/with-stack-navigation/index.tsx +0 -80
- package/src/integrations/native-stack/navigators/createNativeStackNavigator.tsx +0 -112
- package/src/integrations/native-stack/providers/screen-transition-provider.tsx +0 -8
- package/src/integrations/native-stack/utils/getModalRoutesKeys.ts +0 -21
- package/src/integrations/native-stack/utils/useInvalidPreventRemoveError.tsx +0 -31
- package/src/integrations/native-stack/views/NativeStackView.native.tsx +0 -650
- package/src/integrations/native-stack/views/NativeStackView.tsx +0 -214
- package/src/integrations/native-stack/views/useHeaderConfigProps.tsx +0 -295
- package/src/providers/create-screen-transition-provider.tsx +0 -55
- package/src/providers/keys.tsx +0 -50
- package/src/providers/transition-styles.tsx +0 -76
- package/src/stores/animations.ts +0 -45
- package/src/stores/bounds/index.ts +0 -125
- package/src/stores/gestures.ts +0 -60
- package/src/stores/utils/reset-stores-for-screen.ts +0 -13
- package/src/types/animation.ts +0 -81
- package/src/types/blank-stack.navigator.ts +0 -266
- package/src/types/core.ts +0 -50
- package/src/types/native-stack.navigator.ts +0 -753
- package/src/utils/animation/derivations.ts +0 -40
- package/src/utils/animation/start-screen-transition.ts +0 -61
- package/src/utils/bounds/_types/builder.ts +0 -151
- package/src/utils/bounds/_utils/geometry.ts +0 -166
- package/src/utils/bounds/_utils/is-bounds-equal.ts +0 -24
- package/src/utils/bounds/constants.ts +0 -40
- package/src/utils/bounds/index.ts +0 -219
- package/src/utils/gesture/apply-offset-rules.ts +0 -312
- package/src/utils/gesture/check-gesture-activation.ts +0 -310
- package/src/utils/gesture/reset-gesture-values.ts +0 -67
- package/src/utils/gesture/velocity.ts +0 -143
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/navigators/createBlankStackNavigator.js +0 -0
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.js +0 -0
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_types.js +0 -0
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/are-descriptors-equal.js +0 -0
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js +0 -0
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.js +0 -0
- /package/lib/commonjs/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/navigators/createNativeStackNavigator.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/debounce.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/getModalRoutesKeys.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/utils/useInvalidPreventRemoveError.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/views/FontProcessor.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/views/FontProcessor.native.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/views/FooterComponent.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/views/NativeStackView.js +0 -0
- /package/lib/commonjs/{integrations/native-stack → native-stack}/views/useHeaderConfigProps.js +0 -0
- /package/lib/commonjs/{components → shared/components}/create-transition-aware-component.js +0 -0
- /package/lib/commonjs/{components → shared/components}/integrations/masked-view.js +0 -0
- /package/lib/commonjs/{components → shared/components}/root-transition-aware.js +0 -0
- /package/lib/commonjs/{__configs__ → shared/configs}/presets.js +0 -0
- /package/lib/commonjs/{__configs__ → shared/configs}/specs.js +0 -0
- /package/lib/commonjs/{constants.js → shared/constants.js} +0 -0
- /package/lib/commonjs/{hooks → shared/hooks}/animation/use-associated-style.js +0 -0
- /package/lib/commonjs/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.js +0 -0
- /package/lib/commonjs/{hooks → shared/hooks}/gestures/use-scroll-registry.js +0 -0
- /package/lib/commonjs/{hooks → shared/hooks}/use-stable-callback-value.js +0 -0
- /package/lib/commonjs/{hooks → shared/hooks}/use-stable-callback.js +0 -0
- /package/lib/commonjs/{providers → shared/providers}/gestures.js +0 -0
- /package/lib/commonjs/{stores/bounds → shared/stores/bound-store}/_utils.js +0 -0
- /package/lib/commonjs/{stores → shared/stores}/navigator-dismiss-state.js +0 -0
- /package/lib/commonjs/{types → shared/types}/animation.js +0 -0
- /package/lib/commonjs/{types → shared/types}/bounds.js +0 -0
- /package/lib/commonjs/{types → shared/types}/core.js +0 -0
- /package/lib/commonjs/{types → shared/types}/gesture.js +0 -0
- /package/lib/commonjs/{types → shared/types}/utils.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/animation/animate.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/animation/start-screen-transition.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_types/builder.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_types/geometry.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_types/get-bounds.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/flatten-styles.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/geometry.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/get-bounds.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/style-composers.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/_utils/styles.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/constants.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/bounds/index.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/gesture/apply-offset-rules.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/gesture/check-gesture-activation.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/gesture/determine-dismissal.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/gesture/map-gesture-to-progress.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/gesture/reset-gesture-values.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/gesture/velocity.js +0 -0
- /package/lib/commonjs/{utils → shared/utils}/reanimated/version.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/navigators/createBlankStackNavigator.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_types.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/are-descriptors-equal.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/calculate-active-screens-limit.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.js +0 -0
- /package/lib/module/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/navigators/createNativeStackNavigator.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/utils/debounce.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/utils/getModalRoutesKeys.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/utils/useInvalidPreventRemoveError.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/views/FontProcessor.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/views/FontProcessor.native.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/views/FooterComponent.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/views/NativeStackView.js +0 -0
- /package/lib/module/{integrations/native-stack → native-stack}/views/useHeaderConfigProps.js +0 -0
- /package/lib/module/{components → shared/components}/create-transition-aware-component.js +0 -0
- /package/lib/module/{components → shared/components}/integrations/masked-view.js +0 -0
- /package/lib/module/{components → shared/components}/root-transition-aware.js +0 -0
- /package/lib/module/{__configs__ → shared/configs}/presets.js +0 -0
- /package/lib/module/{__configs__ → shared/configs}/specs.js +0 -0
- /package/lib/module/{constants.js → shared/constants.js} +0 -0
- /package/lib/module/{hooks → shared/hooks}/animation/use-associated-style.js +0 -0
- /package/lib/module/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.js +0 -0
- /package/lib/module/{hooks → shared/hooks}/gestures/use-scroll-registry.js +0 -0
- /package/lib/module/{hooks → shared/hooks}/use-stable-callback-value.js +0 -0
- /package/lib/module/{hooks → shared/hooks}/use-stable-callback.js +0 -0
- /package/lib/module/{providers → shared/providers}/gestures.js +0 -0
- /package/lib/module/{stores/bounds → shared/stores/bound-store}/_utils.js +0 -0
- /package/lib/module/{stores → shared/stores}/navigator-dismiss-state.js +0 -0
- /package/lib/module/{types → shared/types}/animation.js +0 -0
- /package/lib/module/{types → shared/types}/bounds.js +0 -0
- /package/lib/module/{types → shared/types}/core.js +0 -0
- /package/lib/module/{types → shared/types}/gesture.js +0 -0
- /package/lib/module/{types → shared/types}/utils.js +0 -0
- /package/lib/module/{utils → shared/utils}/animation/animate.js +0 -0
- /package/lib/module/{utils → shared/utils}/animation/start-screen-transition.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_types/builder.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_types/geometry.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_types/get-bounds.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_utils/flatten-styles.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_utils/geometry.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_utils/get-bounds.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_utils/style-composers.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/_utils/styles.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/constants.js +0 -0
- /package/lib/module/{utils → shared/utils}/bounds/index.js +0 -0
- /package/lib/module/{utils → shared/utils}/gesture/apply-offset-rules.js +0 -0
- /package/lib/module/{utils → shared/utils}/gesture/check-gesture-activation.js +0 -0
- /package/lib/module/{utils → shared/utils}/gesture/determine-dismissal.js +0 -0
- /package/lib/module/{utils → shared/utils}/gesture/map-gesture-to-progress.js +0 -0
- /package/lib/module/{utils → shared/utils}/gesture/reset-gesture-values.js +0 -0
- /package/lib/module/{utils → shared/utils}/gesture/velocity.js +0 -0
- /package/lib/module/{utils → shared/utils}/reanimated/version.js +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/components/Screens.d.ts +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/components/StackView.d.ts +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.d.ts +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.d.ts +0 -0
- /package/lib/typescript/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/index.d.ts +0 -0
- /package/lib/typescript/{integrations/native-stack → native-stack}/utils/debounce.d.ts +0 -0
- /package/lib/typescript/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.d.ts +0 -0
- /package/lib/typescript/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.d.ts +0 -0
- /package/lib/typescript/{integrations/native-stack → native-stack}/views/FontProcessor.d.ts +0 -0
- /package/lib/typescript/{integrations/native-stack → native-stack}/views/FontProcessor.native.d.ts +0 -0
- /package/lib/typescript/{integrations/native-stack → native-stack}/views/FooterComponent.d.ts +0 -0
- /package/lib/typescript/{components → shared/components}/create-transition-aware-component.d.ts +0 -0
- /package/lib/typescript/{components → shared/components}/integrations/masked-view.d.ts +0 -0
- /package/lib/typescript/{components → shared/components}/root-transition-aware.d.ts +0 -0
- /package/lib/typescript/{__configs__ → shared/configs}/specs.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/animation/use-associated-style.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/bounds/use-bound-registry.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/gestures/use-build-gestures.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/gestures/use-scroll-registry.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/use-stable-callback-value.d.ts +0 -0
- /package/lib/typescript/{hooks → shared/hooks}/use-stable-callback.d.ts +0 -0
- /package/lib/typescript/{providers → shared/providers}/gestures.d.ts +0 -0
- /package/lib/typescript/{stores/bounds → shared/stores/bound-store}/_utils.d.ts +0 -0
- /package/lib/typescript/{stores → shared/stores}/navigator-dismiss-state.d.ts +0 -0
- /package/lib/typescript/{types → shared/types}/bounds.d.ts +0 -0
- /package/lib/typescript/{types → shared/types}/gesture.d.ts +0 -0
- /package/lib/typescript/{types → shared/types}/utils.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/animation/animate.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/animation/derivations.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_types/geometry.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_types/get-bounds.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_utils/flatten-styles.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_utils/get-bounds.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_utils/is-bounds-equal.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_utils/style-composers.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/bounds/_utils/styles.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/gesture/determine-dismissal.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/gesture/map-gesture-to-progress.d.ts +0 -0
- /package/lib/typescript/{utils → shared/utils}/reanimated/version.d.ts +0 -0
- /package/src/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_hooks/use-previous.tsx +0 -0
- /package/src/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/have-same-route-keys.ts +0 -0
- /package/src/{integrations/blank-stack → blank-stack}/utils/with-stack-navigation/_utils/routes-are-identical.ts +0 -0
- /package/src/{integrations/native-stack → native-stack}/utils/debounce.tsx +0 -0
- /package/src/{integrations/native-stack → native-stack}/utils/useAnimatedHeaderHeight.tsx +0 -0
- /package/src/{integrations/native-stack → native-stack}/utils/useDismissedRouteError.tsx +0 -0
- /package/src/{integrations/native-stack → native-stack}/views/FontProcessor.native.tsx +0 -0
- /package/src/{integrations/native-stack → native-stack}/views/FontProcessor.tsx +0 -0
- /package/src/{integrations/native-stack → native-stack}/views/FooterComponent.tsx +0 -0
- /package/src/{__tests__ → shared/__tests__}/bounds.store.test.ts +0 -0
- /package/src/{__tests__ → shared/__tests__}/determine-dismissal.test.ts +0 -0
- /package/src/{__tests__ → shared/__tests__}/geometry.test.ts +0 -0
- /package/src/{components → shared/components}/create-transition-aware-component.tsx +0 -0
- /package/src/{components → shared/components}/integrations/masked-view.tsx +0 -0
- /package/src/{__configs__ → shared/configs}/specs.ts +0 -0
- /package/src/{hooks → shared/hooks}/animation/use-associated-style.tsx +0 -0
- /package/src/{hooks → shared/hooks}/gestures/use-parent-gesture-registry.tsx +0 -0
- /package/src/{hooks → shared/hooks}/gestures/use-scroll-registry.tsx +0 -0
- /package/src/{hooks → shared/hooks}/use-stable-callback-value.tsx +0 -0
- /package/src/{hooks → shared/hooks}/use-stable-callback.tsx +0 -0
- /package/src/{providers → shared/providers}/gestures.tsx +0 -0
- /package/src/{stores/bounds → shared/stores/bound-store}/_utils.ts +0 -0
- /package/src/{stores → shared/stores}/navigator-dismiss-state.ts +0 -0
- /package/src/{types → shared/types}/bounds.ts +0 -0
- /package/src/{types → shared/types}/gesture.ts +0 -0
- /package/src/{types → shared/types}/utils.ts +0 -0
- /package/src/{utils → shared/utils}/animation/animate.ts +0 -0
- /package/src/{utils → shared/utils}/bounds/_types/geometry.ts +0 -0
- /package/src/{utils → shared/utils}/bounds/_types/get-bounds.ts +0 -0
- /package/src/{utils → shared/utils}/bounds/_utils/flatten-styles.ts +0 -0
- /package/src/{utils → shared/utils}/bounds/_utils/get-bounds.ts +0 -0
- /package/src/{utils → shared/utils}/bounds/_utils/style-composers.ts +0 -0
- /package/src/{utils → shared/utils}/bounds/_utils/styles.ts +0 -0
- /package/src/{utils → shared/utils}/gesture/determine-dismissal.ts +0 -0
- /package/src/{utils → shared/utils}/gesture/map-gesture-to-progress.ts +0 -0
- /package/src/{utils → shared/utils}/reanimated/version.ts +0 -0
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
DefaultNavigatorOptions,
|
|
3
|
+
Descriptor,
|
|
4
|
+
NavigationHelpers,
|
|
5
|
+
NavigationProp,
|
|
6
|
+
ParamListBase,
|
|
7
|
+
Route,
|
|
8
|
+
RouteProp,
|
|
9
|
+
StackActionHelpers,
|
|
10
|
+
StackNavigationState,
|
|
11
|
+
StackRouterOptions,
|
|
12
|
+
Theme,
|
|
13
|
+
} from "@react-navigation/native";
|
|
14
|
+
import type {
|
|
15
|
+
ImageSourcePropType,
|
|
16
|
+
StyleProp,
|
|
17
|
+
TextStyle,
|
|
18
|
+
ViewStyle,
|
|
19
|
+
} from "react-native";
|
|
20
|
+
import type {
|
|
21
|
+
ScreenProps,
|
|
22
|
+
ScreenStackHeaderConfigProps,
|
|
23
|
+
SearchBarProps,
|
|
24
|
+
} from "react-native-screens";
|
|
25
|
+
import type { ScreenTransitionConfig } from "../shared/types/core";
|
|
26
|
+
|
|
27
|
+
export type Layout = {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type NativeStackNavigationEventMap = {
|
|
33
|
+
/**
|
|
34
|
+
* Event which fires when a transition animation starts.
|
|
35
|
+
*/
|
|
36
|
+
transitionStart: { data: { closing: boolean } };
|
|
37
|
+
/**
|
|
38
|
+
* Event which fires when a transition animation ends.
|
|
39
|
+
*/
|
|
40
|
+
transitionEnd: { data: { closing: boolean } };
|
|
41
|
+
/**
|
|
42
|
+
* Event which fires when a swipe back is canceled on iOS.
|
|
43
|
+
*/
|
|
44
|
+
gestureCancel: { data: undefined };
|
|
45
|
+
/**
|
|
46
|
+
* Event which fires when screen is in sheet presentation & it's detent changes.
|
|
47
|
+
*
|
|
48
|
+
* In payload it caries two fields:
|
|
49
|
+
*
|
|
50
|
+
* * `index` - current detent index in the `sheetAllowedDetents` array,
|
|
51
|
+
* * `stable` - on Android `false` value means that the user is dragging the sheet or it is settling; on iOS it is always `true`.
|
|
52
|
+
*/
|
|
53
|
+
sheetDetentChange: { data: { index: number; stable: boolean } };
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type NativeStackNavigationProp<
|
|
57
|
+
ParamList extends ParamListBase,
|
|
58
|
+
RouteName extends keyof ParamList = string,
|
|
59
|
+
NavigatorID extends string | undefined = undefined,
|
|
60
|
+
> = NavigationProp<
|
|
61
|
+
ParamList,
|
|
62
|
+
RouteName,
|
|
63
|
+
NavigatorID,
|
|
64
|
+
StackNavigationState<ParamList>,
|
|
65
|
+
NativeStackNavigationOptions,
|
|
66
|
+
NativeStackNavigationEventMap
|
|
67
|
+
> &
|
|
68
|
+
StackActionHelpers<ParamList>;
|
|
69
|
+
|
|
70
|
+
export type NativeStackScreenProps<
|
|
71
|
+
ParamList extends ParamListBase,
|
|
72
|
+
RouteName extends keyof ParamList = string,
|
|
73
|
+
NavigatorID extends string | undefined = undefined,
|
|
74
|
+
> = {
|
|
75
|
+
navigation: NativeStackNavigationProp<ParamList, RouteName, NavigatorID>;
|
|
76
|
+
route: RouteProp<ParamList, RouteName>;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type NativeStackOptionsArgs<
|
|
80
|
+
ParamList extends ParamListBase,
|
|
81
|
+
RouteName extends keyof ParamList = keyof ParamList,
|
|
82
|
+
NavigatorID extends string | undefined = undefined,
|
|
83
|
+
> = NativeStackScreenProps<ParamList, RouteName, NavigatorID> & {
|
|
84
|
+
theme: Theme;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type NativeStackNavigationHelpers = NavigationHelpers<
|
|
88
|
+
ParamListBase,
|
|
89
|
+
NativeStackNavigationEventMap
|
|
90
|
+
>;
|
|
91
|
+
|
|
92
|
+
// We want it to be an empty object because navigator does not have any additional props
|
|
93
|
+
export type NativeStackNavigationConfig = {};
|
|
94
|
+
|
|
95
|
+
export type NativeStackHeaderProps = {
|
|
96
|
+
/**
|
|
97
|
+
* Options for the back button.
|
|
98
|
+
*/
|
|
99
|
+
back?: {
|
|
100
|
+
/**
|
|
101
|
+
* Title of the previous screen.
|
|
102
|
+
*/
|
|
103
|
+
title: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* The `href` to use for the anchor tag on web
|
|
106
|
+
*/
|
|
107
|
+
href: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Options for the current screen.
|
|
111
|
+
*/
|
|
112
|
+
options: NativeStackNavigationOptions;
|
|
113
|
+
/**
|
|
114
|
+
* Route object for the current screen.
|
|
115
|
+
*/
|
|
116
|
+
route: Route<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Navigation prop for the header.
|
|
119
|
+
*/
|
|
120
|
+
navigation: NativeStackNavigationProp<ParamListBase>;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export type NativeStackHeaderRightProps = {
|
|
124
|
+
/**
|
|
125
|
+
* Tint color for the header.
|
|
126
|
+
*/
|
|
127
|
+
tintColor?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Whether it's possible to navigate back in stack.
|
|
130
|
+
*/
|
|
131
|
+
canGoBack?: boolean;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export type NativeStackHeaderLeftProps = NativeStackHeaderRightProps & {
|
|
135
|
+
/**
|
|
136
|
+
* Label text for the button. Usually the title of the previous screen.
|
|
137
|
+
* By default, this is only shown on iOS.
|
|
138
|
+
*/
|
|
139
|
+
label?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The `href` to use for the anchor tag on web
|
|
142
|
+
*/
|
|
143
|
+
href?: string;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export type NativeStackNavigationOptions = ScreenTransitionConfig & {
|
|
147
|
+
/**
|
|
148
|
+
* String that can be displayed in the header as a fallback for `headerTitle`.
|
|
149
|
+
*/
|
|
150
|
+
title?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Function that given `HeaderProps` returns a React Element to display as a header.
|
|
153
|
+
*/
|
|
154
|
+
header?: (props: NativeStackHeaderProps) => React.ReactNode;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the back button is visible in the header.
|
|
157
|
+
* You can use it to show a back button alongside `headerLeft` if you have specified it.
|
|
158
|
+
*
|
|
159
|
+
* This will have no effect on the first screen in the stack.
|
|
160
|
+
*/
|
|
161
|
+
headerBackVisible?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Title string used by the back button on iOS.
|
|
164
|
+
* Defaults to the previous scene's title.
|
|
165
|
+
* On iOS the text might be shortened to "Back" or arrow icon depending on the available space, following native iOS behaviour.
|
|
166
|
+
* See `headerBackButtonDisplayMode` to read about limitations and interactions with other props.
|
|
167
|
+
* Use `headerBackButtonDisplayMode: "minimal"` to hide it.
|
|
168
|
+
*
|
|
169
|
+
* Only supported on iOS and Web.
|
|
170
|
+
*
|
|
171
|
+
* @platform ios, web
|
|
172
|
+
*/
|
|
173
|
+
headerBackTitle?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Style object for header back title. Supported properties:
|
|
176
|
+
* - fontFamily
|
|
177
|
+
* - fontSize
|
|
178
|
+
*
|
|
179
|
+
* Only supported on iOS and Web.
|
|
180
|
+
*
|
|
181
|
+
* @platform ios, web
|
|
182
|
+
*/
|
|
183
|
+
headerBackTitleStyle?: StyleProp<{
|
|
184
|
+
fontFamily?: string;
|
|
185
|
+
fontSize?: number;
|
|
186
|
+
}>;
|
|
187
|
+
/**
|
|
188
|
+
* Image to display in the header as the icon in the back button.
|
|
189
|
+
* Defaults to back icon image for the platform
|
|
190
|
+
* - A chevron on iOS
|
|
191
|
+
* - An arrow on Android
|
|
192
|
+
*/
|
|
193
|
+
headerBackImageSource?: ImageSourcePropType;
|
|
194
|
+
/**
|
|
195
|
+
* Style of the header when a large title is shown.
|
|
196
|
+
* The large title is shown if `headerLargeTitle` is `true` and
|
|
197
|
+
* the edge of any scrollable content reaches the matching edge of the header.
|
|
198
|
+
*
|
|
199
|
+
* Supported properties:
|
|
200
|
+
* - backgroundColor
|
|
201
|
+
*
|
|
202
|
+
* Only supported on iOS.
|
|
203
|
+
*
|
|
204
|
+
* @platform ios
|
|
205
|
+
*/
|
|
206
|
+
headerLargeStyle?: StyleProp<{
|
|
207
|
+
backgroundColor?: string;
|
|
208
|
+
}>;
|
|
209
|
+
/**
|
|
210
|
+
* Whether to enable header with large title which collapses to regular header on scroll.
|
|
211
|
+
*
|
|
212
|
+
* For large title to collapse on scroll, the content of the screen should be wrapped in a scrollable view such as `ScrollView` or `FlatList`.
|
|
213
|
+
* If the scrollable area doesn't fill the screen, the large title won't collapse on scroll.
|
|
214
|
+
* You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
|
|
215
|
+
*
|
|
216
|
+
* Only supported on iOS.
|
|
217
|
+
*
|
|
218
|
+
* @platform ios
|
|
219
|
+
*/
|
|
220
|
+
headerLargeTitle?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Whether drop shadow of header is visible when a large title is shown.
|
|
223
|
+
*
|
|
224
|
+
* Only supported on iOS.
|
|
225
|
+
*
|
|
226
|
+
* @platform ios
|
|
227
|
+
*/
|
|
228
|
+
headerLargeTitleShadowVisible?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Style object for large title in header. Supported properties:
|
|
231
|
+
* - fontFamily
|
|
232
|
+
* - fontSize
|
|
233
|
+
* - fontWeight
|
|
234
|
+
* - color
|
|
235
|
+
*
|
|
236
|
+
* Only supported on iOS.
|
|
237
|
+
*
|
|
238
|
+
* @platform ios
|
|
239
|
+
*/
|
|
240
|
+
headerLargeTitleStyle?: StyleProp<{
|
|
241
|
+
fontFamily?: string;
|
|
242
|
+
fontSize?: number;
|
|
243
|
+
fontWeight?: string;
|
|
244
|
+
color?: string;
|
|
245
|
+
}>;
|
|
246
|
+
/**
|
|
247
|
+
* Whether to show the header. The header is shown by default.
|
|
248
|
+
* Setting this to `false` hides the header.
|
|
249
|
+
*/
|
|
250
|
+
headerShown?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Style object for header. Supported properties:
|
|
253
|
+
* - backgroundColor
|
|
254
|
+
*/
|
|
255
|
+
headerStyle?: StyleProp<{
|
|
256
|
+
backgroundColor?: string;
|
|
257
|
+
}>;
|
|
258
|
+
/**
|
|
259
|
+
* Whether to hide the elevation shadow (Android) or the bottom border (iOS) on the header.
|
|
260
|
+
*/
|
|
261
|
+
headerShadowVisible?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Boolean indicating whether the navigation bar is translucent.
|
|
264
|
+
* Setting this to `true` makes the header absolutely positioned,
|
|
265
|
+
* and changes the background color to `transparent` unless specified in `headerStyle`.
|
|
266
|
+
*/
|
|
267
|
+
headerTransparent?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Blur effect for the translucent header.
|
|
270
|
+
* The `headerTransparent` option needs to be set to `true` for this to work.
|
|
271
|
+
*
|
|
272
|
+
* Only supported on iOS.
|
|
273
|
+
*
|
|
274
|
+
* @platform ios
|
|
275
|
+
*/
|
|
276
|
+
headerBlurEffect?: ScreenStackHeaderConfigProps["blurEffect"];
|
|
277
|
+
/**
|
|
278
|
+
* Tint color for the header. Changes the color of back button and title.
|
|
279
|
+
*/
|
|
280
|
+
headerTintColor?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Function which returns a React Element to render as the background of the header.
|
|
283
|
+
* This is useful for using backgrounds such as an image, a gradient, blur effect etc.
|
|
284
|
+
* You can use this with `headerTransparent` to render content underneath a translucent header.
|
|
285
|
+
*/
|
|
286
|
+
headerBackground?: () => React.ReactNode;
|
|
287
|
+
/**
|
|
288
|
+
* Function which returns a React Element to display on the left side of the header.
|
|
289
|
+
* This replaces the back button. See `headerBackVisible` to show the back button along side left element.
|
|
290
|
+
*/
|
|
291
|
+
headerLeft?: (props: NativeStackHeaderLeftProps) => React.ReactNode;
|
|
292
|
+
/**
|
|
293
|
+
* Function which returns a React Element to display on the right side of the header.
|
|
294
|
+
*/
|
|
295
|
+
headerRight?: (props: NativeStackHeaderRightProps) => React.ReactNode;
|
|
296
|
+
/**
|
|
297
|
+
* String or a function that returns a React Element to be used by the header.
|
|
298
|
+
* Defaults to screen `title` or route name.
|
|
299
|
+
*
|
|
300
|
+
* When a function is passed, it receives `tintColor` and`children` in the options object as an argument.
|
|
301
|
+
* The title string is passed in `children`.
|
|
302
|
+
*
|
|
303
|
+
* Note that if you render a custom element by passing a function, animations for the title won't work.
|
|
304
|
+
*/
|
|
305
|
+
headerTitle?:
|
|
306
|
+
| string
|
|
307
|
+
| ((props: {
|
|
308
|
+
/**
|
|
309
|
+
* The title text of the header.
|
|
310
|
+
*/
|
|
311
|
+
children: string;
|
|
312
|
+
/**
|
|
313
|
+
* Tint color for the header.
|
|
314
|
+
*/
|
|
315
|
+
tintColor?: string;
|
|
316
|
+
}) => React.ReactNode);
|
|
317
|
+
/**
|
|
318
|
+
* How to align the the header title.
|
|
319
|
+
* Defaults to `left` on platforms other than iOS.
|
|
320
|
+
*
|
|
321
|
+
* Not supported on iOS. It's always `center` on iOS and cannot be changed.
|
|
322
|
+
*/
|
|
323
|
+
headerTitleAlign?: "left" | "center";
|
|
324
|
+
/**
|
|
325
|
+
* Style object for header title. Supported properties:
|
|
326
|
+
* - fontFamily
|
|
327
|
+
* - fontSize
|
|
328
|
+
* - fontWeight
|
|
329
|
+
* - color
|
|
330
|
+
*/
|
|
331
|
+
headerTitleStyle?: StyleProp<
|
|
332
|
+
Pick<TextStyle, "fontFamily" | "fontSize" | "fontWeight"> & {
|
|
333
|
+
color?: string;
|
|
334
|
+
}
|
|
335
|
+
>;
|
|
336
|
+
/**
|
|
337
|
+
* Options to render a native search bar.
|
|
338
|
+
* You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
|
|
339
|
+
* If you don't have a `ScrollView`, specify `headerTransparent: false`.
|
|
340
|
+
*/
|
|
341
|
+
headerSearchBarOptions?: SearchBarProps;
|
|
342
|
+
/**
|
|
343
|
+
* Boolean indicating whether to show the menu on longPress of iOS >= 14 back button. Defaults to `true`.
|
|
344
|
+
* Requires `react-native-screens` version >=3.3.0.
|
|
345
|
+
*
|
|
346
|
+
* Only supported on iOS.
|
|
347
|
+
*
|
|
348
|
+
* @platform ios
|
|
349
|
+
*/
|
|
350
|
+
headerBackButtonMenuEnabled?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* How the back button displays icon and title.
|
|
353
|
+
*
|
|
354
|
+
* Supported values:
|
|
355
|
+
* - "default" - Displays one of the following depending on the available space: previous screen's title, generic title (e.g. 'Back') or no title (only icon).
|
|
356
|
+
* - "generic" – Displays one of the following depending on the available space: generic title (e.g. 'Back') or no title (only icon).
|
|
357
|
+
* - "minimal" – Always displays only the icon without a title.
|
|
358
|
+
*
|
|
359
|
+
* The space-aware behavior is disabled when:
|
|
360
|
+
* - The iOS version is 13 or lower
|
|
361
|
+
* - Custom font family or size is set (e.g. with `headerBackTitleStyle`)
|
|
362
|
+
* - Back button menu is disabled (e.g. with `headerBackButtonMenuEnabled`)
|
|
363
|
+
*
|
|
364
|
+
* In such cases, a static title and icon are always displayed.
|
|
365
|
+
*
|
|
366
|
+
* Defaults to "default" on iOS, and "minimal" on other platforms.
|
|
367
|
+
*
|
|
368
|
+
* Only supported on iOS and Web.
|
|
369
|
+
*
|
|
370
|
+
* @platform ios, web
|
|
371
|
+
*/
|
|
372
|
+
headerBackButtonDisplayMode?: ScreenStackHeaderConfigProps["backButtonDisplayMode"];
|
|
373
|
+
/**
|
|
374
|
+
* Whether the home indicator should prefer to stay hidden on this screen. Defaults to `false`.
|
|
375
|
+
*
|
|
376
|
+
* @platform ios
|
|
377
|
+
*/
|
|
378
|
+
autoHideHomeIndicator?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Whether the keyboard should hide when swiping to the previous screen. Defaults to `false`.
|
|
381
|
+
*
|
|
382
|
+
* @platform ios
|
|
383
|
+
*/
|
|
384
|
+
keyboardHandlingEnabled?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Sets the navigation bar color. Defaults to initial navigation bar color.
|
|
387
|
+
*
|
|
388
|
+
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
389
|
+
* This prop is subject to removal in the future.
|
|
390
|
+
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
391
|
+
*
|
|
392
|
+
* @platform android
|
|
393
|
+
*/
|
|
394
|
+
navigationBarColor?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Boolean indicating whether the content should be visible behind the navigation bar. Defaults to `false`.
|
|
397
|
+
*
|
|
398
|
+
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
399
|
+
* This prop is subject to removal in the future.
|
|
400
|
+
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
401
|
+
*
|
|
402
|
+
* @platform android
|
|
403
|
+
*/
|
|
404
|
+
navigationBarTranslucent?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* Sets the visibility of the navigation bar. Defaults to `false`.
|
|
407
|
+
*
|
|
408
|
+
* @platform android
|
|
409
|
+
*/
|
|
410
|
+
navigationBarHidden?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Sets the status bar animation (similar to the `StatusBar` component).
|
|
413
|
+
* On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to appereance animation of the status bar.
|
|
414
|
+
* Requires setting `View controller-based status bar appearance -> YES` (or removing the config) in your `Info.plist` file.
|
|
415
|
+
*
|
|
416
|
+
* Defaults to `fade` on iOS and `none` on Android.
|
|
417
|
+
*
|
|
418
|
+
* Only supported on Android and iOS.
|
|
419
|
+
*
|
|
420
|
+
* @platform android, ios
|
|
421
|
+
*/
|
|
422
|
+
statusBarAnimation?: ScreenProps["statusBarAnimation"];
|
|
423
|
+
/**
|
|
424
|
+
* Sets the status bar color (similar to the `StatusBar` component). Defaults to initial status bar color.
|
|
425
|
+
*
|
|
426
|
+
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
427
|
+
* This prop is subject to removal in the future.
|
|
428
|
+
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
429
|
+
*
|
|
430
|
+
* @platform android
|
|
431
|
+
*/
|
|
432
|
+
statusBarBackgroundColor?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Whether the status bar should be hidden on this screen.
|
|
435
|
+
* Requires setting `View controller-based status bar appearance -> YES` in your Info.plist file.
|
|
436
|
+
*
|
|
437
|
+
* Only supported on Android and iOS.
|
|
438
|
+
*
|
|
439
|
+
* @platform android, ios
|
|
440
|
+
*/
|
|
441
|
+
statusBarHidden?: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Sets the status bar color (similar to the `StatusBar` component).
|
|
444
|
+
* Requires setting `View controller-based status bar appearance -> YES` (or removing the config) in your `Info.plist` file.
|
|
445
|
+
* `auto` and `inverted` are supported only on iOS. On Android, they will fallback to `light`.
|
|
446
|
+
*
|
|
447
|
+
* Defaults to `auto` on iOS and `light` on Android.
|
|
448
|
+
*
|
|
449
|
+
* Only supported on Android and iOS.
|
|
450
|
+
*
|
|
451
|
+
* @platform android, ios
|
|
452
|
+
*/
|
|
453
|
+
statusBarStyle?: ScreenProps["statusBarStyle"];
|
|
454
|
+
/**
|
|
455
|
+
* Sets the translucency of the status bar. Defaults to `false`.
|
|
456
|
+
*
|
|
457
|
+
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
458
|
+
* This prop is subject to removal in the future.
|
|
459
|
+
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
460
|
+
*
|
|
461
|
+
* @platform android
|
|
462
|
+
*/
|
|
463
|
+
statusBarTranslucent?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Sets the direction in which you should swipe to dismiss the screen.
|
|
466
|
+
* When using `vertical` option, options `fullScreenGestureEnabled: true`, `animationMatchesGesture: true` and `animation: 'slide_from_bottom'` are set by default.
|
|
467
|
+
*
|
|
468
|
+
* Supported values:
|
|
469
|
+
* - `vertical` – dismiss screen vertically
|
|
470
|
+
* - `horizontal` – dismiss screen horizontally (default)
|
|
471
|
+
*
|
|
472
|
+
* @platform ios
|
|
473
|
+
*/
|
|
474
|
+
nativeGestureDirection?: ScreenProps["swipeDirection"];
|
|
475
|
+
/**
|
|
476
|
+
* Style object for the scene content.
|
|
477
|
+
*/
|
|
478
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
479
|
+
/**
|
|
480
|
+
* Whether the gesture to dismiss should use animation provided to `animation` prop. Defaults to `false`.
|
|
481
|
+
*
|
|
482
|
+
* Doesn't affect the behavior of screens presented modally.
|
|
483
|
+
*
|
|
484
|
+
* @platform ios
|
|
485
|
+
*/
|
|
486
|
+
animationMatchesGesture?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Whether the gesture to dismiss should work on the whole screen. Using gesture to dismiss with this option results in the same
|
|
489
|
+
* transition animation as `simple_push`. This behavior can be changed by setting `animationMatchesGesture` prop. Achieving the
|
|
490
|
+
* default iOS animation isn't possible due to platform limitations. Defaults to `false`.
|
|
491
|
+
*
|
|
492
|
+
* Doesn't affect the behavior of screens presented modally.
|
|
493
|
+
*
|
|
494
|
+
* @platform ios
|
|
495
|
+
*/
|
|
496
|
+
fullScreenGestureEnabled?: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* Whether the full screen dismiss gesture has shadow under view during transition. The gesture uses custom transition and thus
|
|
499
|
+
* doesn't have a shadow by default. When enabled, a custom shadow view is added during the transition which tries to mimic the
|
|
500
|
+
* default iOS shadow. Defaults to `true`.
|
|
501
|
+
*
|
|
502
|
+
* This does not affect the behavior of transitions that don't use gestures, enabled by `fullScreenGestureEnabled` prop.
|
|
503
|
+
*
|
|
504
|
+
* @platform ios
|
|
505
|
+
*/
|
|
506
|
+
fullScreenGestureShadowEnabled?: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* Whether you can use gestures to dismiss this screen. Defaults to `true`.
|
|
509
|
+
*
|
|
510
|
+
* Only supported on iOS.
|
|
511
|
+
*
|
|
512
|
+
* @platform ios
|
|
513
|
+
*/
|
|
514
|
+
nativeGestureEnabled?: boolean;
|
|
515
|
+
/**
|
|
516
|
+
* Use it to restrict the distance from the edges of screen in which the gesture should be recognized. To be used alongside `fullScreenGestureEnabled`.
|
|
517
|
+
*
|
|
518
|
+
* @platform ios
|
|
519
|
+
*/
|
|
520
|
+
nativeGestureResponseDistance?: ScreenProps["gestureResponseDistance"];
|
|
521
|
+
/**
|
|
522
|
+
* The type of animation to use when this screen replaces another screen. Defaults to `pop`.
|
|
523
|
+
*
|
|
524
|
+
* Supported values:
|
|
525
|
+
* - "push": the new screen will perform push animation.
|
|
526
|
+
* - "pop": the new screen will perform pop animation.
|
|
527
|
+
*
|
|
528
|
+
* Only supported on iOS and Android.
|
|
529
|
+
*/
|
|
530
|
+
animationTypeForReplace?: ScreenProps["replaceAnimation"];
|
|
531
|
+
/**
|
|
532
|
+
* How the screen should animate when pushed or popped.
|
|
533
|
+
*
|
|
534
|
+
* Supported values:
|
|
535
|
+
* - "default": use the platform default animation
|
|
536
|
+
* - "fade": fade screen in or out
|
|
537
|
+
* - "fade_from_bottom" – performs a fade from bottom animation
|
|
538
|
+
* - "flip": flip the screen, requires presentation: "modal" (iOS only)
|
|
539
|
+
* - "simple_push": use the platform default animation, but without shadow and native header transition (iOS only)
|
|
540
|
+
* - "slide_from_bottom": slide in the new screen from bottom
|
|
541
|
+
* - "slide_from_right": slide in the new screen from right (Android only, uses default animation on iOS)
|
|
542
|
+
* - "slide_from_left": slide in the new screen from left (Android only, uses default animation on iOS)
|
|
543
|
+
* - "ios_from_right" - iOS like slide in animation. pushes in the new screen from right to left (Android only, resolves to default transition on iOS)
|
|
544
|
+
* - "ios_from_left" - iOS like slide in animation. pushes in the new screen from left to right (Android only, resolves to default transition on iOS)
|
|
545
|
+
* - "none": don't animate the screen
|
|
546
|
+
*
|
|
547
|
+
* Only supported on iOS and Android.
|
|
548
|
+
*/
|
|
549
|
+
animation?: ScreenProps["stackAnimation"];
|
|
550
|
+
/**
|
|
551
|
+
* Changes the duration (in milliseconds) of `slide_from_bottom`, `fade_from_bottom`, `fade` and `simple_push` transitions on iOS. Defaults to `500`.
|
|
552
|
+
* The duration of `default` and `flip` transitions isn't customizable.
|
|
553
|
+
*
|
|
554
|
+
* @platform ios
|
|
555
|
+
*/
|
|
556
|
+
animationDuration?: number;
|
|
557
|
+
/**
|
|
558
|
+
* How should the screen be presented.
|
|
559
|
+
*
|
|
560
|
+
* Supported values:
|
|
561
|
+
* - "card": the new screen will be pushed onto a stack, which means the default animation will be slide from the side on iOS, the animation on Android will vary depending on the OS version and theme.
|
|
562
|
+
* - "modal": the new screen will be presented modally. this also allows for a nested stack to be rendered inside the screen.
|
|
563
|
+
* - "transparentModal": the new screen will be presented modally, but in addition, the previous screen will stay so that the content below can still be seen if the screen has translucent background.
|
|
564
|
+
* - "containedModal": will use "UIModalPresentationCurrentContext" modal style on iOS and will fallback to "modal" on Android.
|
|
565
|
+
* - "containedTransparentModal": will use "UIModalPresentationOverCurrentContext" modal style on iOS and will fallback to "transparentModal" on Android.
|
|
566
|
+
* - "fullScreenModal": will use "UIModalPresentationFullScreen" modal style on iOS and will fallback to "modal" on Android.
|
|
567
|
+
* - "formSheet": will use "UIModalPresentationFormSheet" modal style on iOS and will fallback to "modal" on Android.
|
|
568
|
+
*
|
|
569
|
+
* Only supported on iOS and Android.
|
|
570
|
+
*/
|
|
571
|
+
presentation?: Exclude<ScreenProps["stackPresentation"], "push"> | "card";
|
|
572
|
+
/**
|
|
573
|
+
* Describes heights where a sheet can rest.
|
|
574
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
575
|
+
*
|
|
576
|
+
* Heights should be described as fraction (a number from `[0, 1]` interval) of screen height / maximum detent height.
|
|
577
|
+
* You can pass an array of ascending values each defining allowed sheet detent. iOS accepts any number of detents,
|
|
578
|
+
* while **Android is limited to three**.
|
|
579
|
+
*
|
|
580
|
+
* There is also possibility to specify `fitToContents` literal, which intents to set the sheet height
|
|
581
|
+
* to the height of its contents.
|
|
582
|
+
*
|
|
583
|
+
* Note that the array **must** be sorted in ascending order. This invariant is verified only in developement mode,
|
|
584
|
+
* where violation results in error.
|
|
585
|
+
*
|
|
586
|
+
* **Android is limited to up 3 values in the array** -- any surplus values, beside first three are ignored.
|
|
587
|
+
*
|
|
588
|
+
* Defaults to `[1.0]`.
|
|
589
|
+
*/
|
|
590
|
+
sheetAllowedDetents?: number[] | "fitToContents";
|
|
591
|
+
/**
|
|
592
|
+
* Integer value describing elevation of the sheet, impacting shadow on the top edge of the sheet.
|
|
593
|
+
*
|
|
594
|
+
* Not dynamic - changing it after the component is rendered won't have an effect.
|
|
595
|
+
*
|
|
596
|
+
* Defaults to `24`.
|
|
597
|
+
*
|
|
598
|
+
* @platform Android
|
|
599
|
+
*/
|
|
600
|
+
sheetElevation?: number;
|
|
601
|
+
/**
|
|
602
|
+
* Whether the sheet should expand to larger detent when scrolling.
|
|
603
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
604
|
+
* Defaults to `true`.
|
|
605
|
+
*
|
|
606
|
+
* @platform ios
|
|
607
|
+
*/
|
|
608
|
+
sheetExpandsWhenScrolledToEdge?: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* The corner radius that the sheet will try to render with.
|
|
611
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
612
|
+
*
|
|
613
|
+
* If set to non-negative value it will try to render sheet with provided radius, else it will apply system default.
|
|
614
|
+
*
|
|
615
|
+
* If left unset system default is used.
|
|
616
|
+
*/
|
|
617
|
+
sheetCornerRadius?: number;
|
|
618
|
+
/**
|
|
619
|
+
* Index of the detent the sheet should expand to after being opened.
|
|
620
|
+
* Works only when `stackPresentation` is set to `formSheet`.
|
|
621
|
+
*
|
|
622
|
+
* If the specified index is out of bounds of `sheetAllowedDetents` array, in dev environment more error will be thrown,
|
|
623
|
+
* in production the value will be reset to default value.
|
|
624
|
+
*
|
|
625
|
+
* Additionaly there is `last` value available, when set the sheet will expand initially to last (largest) detent.
|
|
626
|
+
*
|
|
627
|
+
* Defaults to `0` - which represents first detent in the detents array.
|
|
628
|
+
*/
|
|
629
|
+
sheetInitialDetentIndex?: number | "last";
|
|
630
|
+
/**
|
|
631
|
+
* Boolean indicating whether the sheet shows a grabber at the top.
|
|
632
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
633
|
+
* Defaults to `false`.
|
|
634
|
+
*
|
|
635
|
+
* @platform ios
|
|
636
|
+
*/
|
|
637
|
+
sheetGrabberVisible?: boolean;
|
|
638
|
+
/**
|
|
639
|
+
* The largest sheet detent for which a view underneath won't be dimmed.
|
|
640
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
641
|
+
*
|
|
642
|
+
* This prop can be set to an number, which indicates index of detent in `sheetAllowedDetents` array for which
|
|
643
|
+
* there won't be a dimming view beneath the sheet.
|
|
644
|
+
*
|
|
645
|
+
* Additionaly there are following options available:
|
|
646
|
+
*
|
|
647
|
+
* * `none` - there will be dimming view for all detents levels,
|
|
648
|
+
* * `last` - there won't be a dimming view for any detent level.
|
|
649
|
+
*
|
|
650
|
+
* Defaults to `none`, indicating that the dimming view should be always present.
|
|
651
|
+
*/
|
|
652
|
+
sheetLargestUndimmedDetentIndex?: number | "none" | "last";
|
|
653
|
+
/**
|
|
654
|
+
* The display orientation to use for the screen.
|
|
655
|
+
*
|
|
656
|
+
* Supported values:
|
|
657
|
+
* - "default" - resolves to "all" without "portrait_down" on iOS. On Android, this lets the system decide the best orientation.
|
|
658
|
+
* - "all": all orientations are permitted.
|
|
659
|
+
* - "portrait": portrait orientations are permitted.
|
|
660
|
+
* - "portrait_up": right-side portrait orientation is permitted.
|
|
661
|
+
* - "portrait_down": upside-down portrait orientation is permitted.
|
|
662
|
+
* - "landscape": landscape orientations are permitted.
|
|
663
|
+
* - "landscape_left": landscape-left orientation is permitted.
|
|
664
|
+
* - "landscape_right": landscape-right orientation is permitted.
|
|
665
|
+
*
|
|
666
|
+
* Only supported on iOS and Android.
|
|
667
|
+
*/
|
|
668
|
+
orientation?: ScreenProps["screenOrientation"];
|
|
669
|
+
/**
|
|
670
|
+
* Whether inactive screens should be suspended from re-rendering. Defaults to `false`.
|
|
671
|
+
* Defaults to `true` when `enableFreeze()` is run at the top of the application.
|
|
672
|
+
* Requires `react-native-screens` version >=3.16.0.
|
|
673
|
+
*
|
|
674
|
+
* Only supported on iOS and Android.
|
|
675
|
+
*/
|
|
676
|
+
freezeOnBlur?: boolean;
|
|
677
|
+
/**
|
|
678
|
+
* Footer component that can be used alongside formSheet stack presentation style.
|
|
679
|
+
*
|
|
680
|
+
* This option is provided, because due to implementation details it might be problematic
|
|
681
|
+
* to implement such layout with JS-only code.
|
|
682
|
+
*
|
|
683
|
+
* Note that this prop is marked as unstable and might be subject of breaking changes,
|
|
684
|
+
* including removal, in particular when we find solution that will make implementing it with JS
|
|
685
|
+
* straightforward.
|
|
686
|
+
*
|
|
687
|
+
* @platform android
|
|
688
|
+
*/
|
|
689
|
+
unstable_sheetFooter?: () => React.ReactNode;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
export type NativeStackNavigatorProps = DefaultNavigatorOptions<
|
|
693
|
+
ParamListBase,
|
|
694
|
+
string | undefined,
|
|
695
|
+
StackNavigationState<ParamListBase>,
|
|
696
|
+
NativeStackNavigationOptions,
|
|
697
|
+
NativeStackNavigationEventMap,
|
|
698
|
+
NativeStackNavigationProp<ParamListBase>
|
|
699
|
+
> &
|
|
700
|
+
StackRouterOptions &
|
|
701
|
+
NativeStackNavigationConfig;
|
|
702
|
+
|
|
703
|
+
export type NativeStackDescriptor = Descriptor<
|
|
704
|
+
NativeStackNavigationOptions,
|
|
705
|
+
NativeStackNavigationProp<ParamListBase>,
|
|
706
|
+
RouteProp<ParamListBase>
|
|
707
|
+
>;
|
|
708
|
+
|
|
709
|
+
export type NativeStackDescriptorMap = {
|
|
710
|
+
[key: string]: NativeStackDescriptor;
|
|
711
|
+
};
|