@react-navigation/stack 6.3.4 → 6.3.7

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.
Files changed (84) hide show
  1. package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js +1 -1
  2. package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
  3. package/lib/commonjs/TransitionConfigs/HeaderStyleInterpolators.js.map +1 -1
  4. package/lib/commonjs/TransitionConfigs/TransitionPresets.js.map +1 -1
  5. package/lib/commonjs/TransitionConfigs/TransitionSpecs.js.map +1 -1
  6. package/lib/commonjs/index.js.map +1 -1
  7. package/lib/commonjs/navigators/createStackNavigator.js +1 -1
  8. package/lib/commonjs/navigators/createStackNavigator.js.map +1 -1
  9. package/lib/commonjs/types.js.map +1 -1
  10. package/lib/commonjs/utils/CardAnimationContext.js.map +1 -1
  11. package/lib/commonjs/utils/GestureHandlerRefContext.js.map +1 -1
  12. package/lib/commonjs/utils/ModalPresentationContext.js.map +1 -1
  13. package/lib/commonjs/utils/conditional.js.map +1 -1
  14. package/lib/commonjs/utils/debounce.js.map +1 -1
  15. package/lib/commonjs/utils/getDistanceForDirection.js.map +1 -1
  16. package/lib/commonjs/utils/getInvertedMultiplier.js.map +1 -1
  17. package/lib/commonjs/utils/memoize.js.map +1 -1
  18. package/lib/commonjs/utils/useCardAnimation.js.map +1 -1
  19. package/lib/commonjs/utils/useGestureHandlerRef.js.map +1 -1
  20. package/lib/commonjs/utils/useKeyboardManager.js.map +1 -1
  21. package/lib/commonjs/views/GestureHandler.android.js.map +1 -1
  22. package/lib/commonjs/views/GestureHandler.ios.js.map +1 -1
  23. package/lib/commonjs/views/GestureHandler.js.map +1 -1
  24. package/lib/commonjs/views/GestureHandlerNative.js +1 -1
  25. package/lib/commonjs/views/GestureHandlerNative.js.map +1 -1
  26. package/lib/commonjs/views/Header/Header.js +1 -1
  27. package/lib/commonjs/views/Header/Header.js.map +1 -1
  28. package/lib/commonjs/views/Header/HeaderContainer.js.map +1 -1
  29. package/lib/commonjs/views/Header/HeaderSegment.js +1 -1
  30. package/lib/commonjs/views/Header/HeaderSegment.js.map +1 -1
  31. package/lib/commonjs/views/ModalStatusBarManager.js.map +1 -1
  32. package/lib/commonjs/views/Screens.js +1 -1
  33. package/lib/commonjs/views/Screens.js.map +1 -1
  34. package/lib/commonjs/views/Stack/Card.js +1 -1
  35. package/lib/commonjs/views/Stack/Card.js.map +1 -1
  36. package/lib/commonjs/views/Stack/CardContainer.js.map +1 -1
  37. package/lib/commonjs/views/Stack/CardSheet.js +1 -1
  38. package/lib/commonjs/views/Stack/CardSheet.js.map +1 -1
  39. package/lib/commonjs/views/Stack/CardStack.js.map +1 -1
  40. package/lib/commonjs/views/Stack/StackView.js +1 -1
  41. package/lib/commonjs/views/Stack/StackView.js.map +1 -1
  42. package/lib/module/TransitionConfigs/CardStyleInterpolators.js +1 -1
  43. package/lib/module/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
  44. package/lib/module/TransitionConfigs/HeaderStyleInterpolators.js.map +1 -1
  45. package/lib/module/TransitionConfigs/TransitionPresets.js.map +1 -1
  46. package/lib/module/TransitionConfigs/TransitionSpecs.js.map +1 -1
  47. package/lib/module/index.js.map +1 -1
  48. package/lib/module/navigators/createStackNavigator.js +1 -1
  49. package/lib/module/navigators/createStackNavigator.js.map +1 -1
  50. package/lib/module/types.js.map +1 -1
  51. package/lib/module/utils/CardAnimationContext.js.map +1 -1
  52. package/lib/module/utils/GestureHandlerRefContext.js.map +1 -1
  53. package/lib/module/utils/ModalPresentationContext.js.map +1 -1
  54. package/lib/module/utils/conditional.js.map +1 -1
  55. package/lib/module/utils/debounce.js.map +1 -1
  56. package/lib/module/utils/getDistanceForDirection.js.map +1 -1
  57. package/lib/module/utils/getInvertedMultiplier.js.map +1 -1
  58. package/lib/module/utils/memoize.js.map +1 -1
  59. package/lib/module/utils/useCardAnimation.js.map +1 -1
  60. package/lib/module/utils/useGestureHandlerRef.js.map +1 -1
  61. package/lib/module/utils/useKeyboardManager.js.map +1 -1
  62. package/lib/module/views/GestureHandler.android.js.map +1 -1
  63. package/lib/module/views/GestureHandler.ios.js.map +1 -1
  64. package/lib/module/views/GestureHandler.js.map +1 -1
  65. package/lib/module/views/GestureHandlerNative.js +1 -1
  66. package/lib/module/views/GestureHandlerNative.js.map +1 -1
  67. package/lib/module/views/Header/Header.js +1 -1
  68. package/lib/module/views/Header/Header.js.map +1 -1
  69. package/lib/module/views/Header/HeaderContainer.js.map +1 -1
  70. package/lib/module/views/Header/HeaderSegment.js +1 -1
  71. package/lib/module/views/Header/HeaderSegment.js.map +1 -1
  72. package/lib/module/views/ModalStatusBarManager.js.map +1 -1
  73. package/lib/module/views/Screens.js +1 -1
  74. package/lib/module/views/Screens.js.map +1 -1
  75. package/lib/module/views/Stack/Card.js +1 -1
  76. package/lib/module/views/Stack/Card.js.map +1 -1
  77. package/lib/module/views/Stack/CardContainer.js.map +1 -1
  78. package/lib/module/views/Stack/CardSheet.js +1 -1
  79. package/lib/module/views/Stack/CardSheet.js.map +1 -1
  80. package/lib/module/views/Stack/CardStack.js.map +1 -1
  81. package/lib/module/views/Stack/StackView.js +1 -1
  82. package/lib/module/views/Stack/StackView.js.map +1 -1
  83. package/package.json +5 -5
  84. package/src/TransitionConfigs/CardStyleInterpolators.tsx +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["TransitionSpecs.tsx"],"names":["Easing","TransitionIOSSpec","animation","config","stiffness","damping","mass","overshootClamping","restDisplacementThreshold","restSpeedThreshold","FadeInFromBottomAndroidSpec","duration","easing","out","poly","FadeOutToBottomAndroidSpec","in","linear","RevealFromBottomAndroidSpec","bezier","ScaleFromCenterAndroidSpec","BottomSheetSlideInSpec","t","Math","cos","PI","BottomSheetSlideOutSpec","pow"],"mappings":"AAAA,SAASA,MAAT,QAAuB,cAAvB;;AAIA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiC,GAAG;AAC/CC,EAAAA,SAAS,EAAE,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AP,CAAc,IAAd,EAAoB,IAApB,EAA0B,CAA1B,EAA6B,CAA7B;AAJF;AAFgD,CAAnD;AAUP;AACA;AACA;AACA;;AACA,OAAO,MAAME,sBAAsC,GAAG;AACpDnB,EAAAA,SAAS,EAAE,QADyC;AAEpDC,EAAAA,MAAM,EAAE;AACNQ,IAAAA,QAAQ,EAAE,GADJ;AAEN;AACAC,IAAAA,MAAM,EAAGU,CAAD,IAAOC,IAAI,CAACC,GAAL,CAAS,CAACF,CAAC,GAAG,CAAL,IAAUC,IAAI,CAACE,EAAxB,IAA8B,GAA9B,GAAoC;AAH7C;AAF4C,CAA/C;AASP;AACA;AACA;AACA;;AACA,OAAO,MAAMC,uBAAuC,GAAG;AACrDxB,EAAAA,SAAS,EAAE,QAD0C;AAErDC,EAAAA,MAAM,EAAE;AACNQ,IAAAA,QAAQ,EAAE,GADJ;AAEN;AACAC,IAAAA,MAAM,EAAGU,CAAD,IAAQA,CAAC,KAAK,GAAN,GAAY,CAAZ,GAAgBC,IAAI,CAACI,GAAL,CAASL,CAAT,EAAY,CAAZ;AAH1B;AAF6C,CAAhD","sourcesContent":["import { Easing } from 'react-native';\n\nimport type { TransitionSpec } from '../types';\n\n/**\n * Exact values from UINavigationController's animation configuration.\n */\nexport const TransitionIOSSpec: TransitionSpec = {\n animation: 'spring',\n config: {\n stiffness: 1000,\n damping: 500,\n mass: 3,\n overshootClamping: true,\n restDisplacementThreshold: 10,\n restSpeedThreshold: 10,\n },\n};\n\n/**\n * Configuration for activity open animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const FadeInFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 350,\n easing: Easing.out(Easing.poly(5)),\n },\n};\n\n/**\n * Configuration for activity close animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml\n */\nexport const FadeOutToBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 150,\n easing: Easing.in(Easing.linear),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Pie.\n * See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const RevealFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 425,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Q.\n * See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const ScaleFromCenterAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 400,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Configuration for bottom sheet slide in animation from Material Design.\n * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml\n */\nexport const BottomSheetSlideInSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 250,\n // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateDecelerateInterpolator.java\n easing: (t) => Math.cos((t + 1) * Math.PI) / 2.0 + 0.5,\n },\n};\n\n/**\n * Configuration for bottom sheet slide out animation from Material Design.\n * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml\n */\nexport const BottomSheetSlideOutSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 200,\n // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateInterpolator.java\n easing: (t) => (t === 1.0 ? 1 : Math.pow(t, 2)),\n },\n};\n"]}
1
+ {"version":3,"names":["Easing","TransitionIOSSpec","animation","config","stiffness","damping","mass","overshootClamping","restDisplacementThreshold","restSpeedThreshold","FadeInFromBottomAndroidSpec","duration","easing","out","poly","FadeOutToBottomAndroidSpec","in","linear","RevealFromBottomAndroidSpec","bezier","ScaleFromCenterAndroidSpec","BottomSheetSlideInSpec","t","Math","cos","PI","BottomSheetSlideOutSpec","pow"],"sources":["TransitionSpecs.tsx"],"sourcesContent":["import { Easing } from 'react-native';\n\nimport type { TransitionSpec } from '../types';\n\n/**\n * Exact values from UINavigationController's animation configuration.\n */\nexport const TransitionIOSSpec: TransitionSpec = {\n animation: 'spring',\n config: {\n stiffness: 1000,\n damping: 500,\n mass: 3,\n overshootClamping: true,\n restDisplacementThreshold: 10,\n restSpeedThreshold: 10,\n },\n};\n\n/**\n * Configuration for activity open animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const FadeInFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 350,\n easing: Easing.out(Easing.poly(5)),\n },\n};\n\n/**\n * Configuration for activity close animation from Android Nougat.\n * See http://aosp.opersys.com/xref/android-7.1.2_r37/xref/frameworks/base/core/res/res/anim/activity_close_exit.xml\n */\nexport const FadeOutToBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 150,\n easing: Easing.in(Easing.linear),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Pie.\n * See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const RevealFromBottomAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 425,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-9.0.0_r47/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Approximate configuration for activity open animation from Android Q.\n * See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/anim/activity_open_enter.xml\n */\nexport const ScaleFromCenterAndroidSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 400,\n // This is super rough approximation of the path used for the curve by android\n // See http://aosp.opersys.com/xref/android-10.0.0_r2/xref/frameworks/base/core/res/res/interpolator/fast_out_extra_slow_in.xml\n easing: Easing.bezier(0.35, 0.45, 0, 1),\n },\n};\n\n/**\n * Configuration for bottom sheet slide in animation from Material Design.\n * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml\n */\nexport const BottomSheetSlideInSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 250,\n // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateDecelerateInterpolator.java\n easing: (t) => Math.cos((t + 1) * Math.PI) / 2.0 + 0.5,\n },\n};\n\n/**\n * Configuration for bottom sheet slide out animation from Material Design.\n * See https://github.com/material-components/material-components-android/blob/fd3639092e1ffef9dc11bcedf79f32801d85e898/lib/java/com/google/android/material/bottomsheet/res/anim/mtrl_bottom_sheet_slide_in.xml\n */\nexport const BottomSheetSlideOutSpec: TransitionSpec = {\n animation: 'timing',\n config: {\n duration: 200,\n // See https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/animation/AccelerateInterpolator.java\n easing: (t) => (t === 1.0 ? 1 : Math.pow(t, 2)),\n },\n};\n"],"mappings":"AAAA,SAASA,MAAT,QAAuB,cAAvB;;AAIA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiC,G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AAS,EAAE,QADyC;EAEpDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAEN;IACAC,MAAM,EAAGU,CAAD,IAAOC,IAAI,CAACC,GAAL,CAAS,CAACF,CAAC,GAAG,CAAL,IAAUC,IAAI,CAACE,EAAxB,IAA8B,GAA9B,GAAoC;EAH7C;AAF4C,CAA/C;AASP;AACA;AACA;AACA;;AACA,OAAO,MAAMC,uBAAuC,GAAG;EACrDxB,SAAS,EAAE,QAD0C;EAErDC,MAAM,EAAE;IACNQ,QAAQ,EAAE,GADJ;IAEN;IACAC,MAAM,EAAGU,CAAD,IAAQA,CAAC,KAAK,GAAN,GAAY,CAAZ,GAAgBC,IAAI,CAACI,GAAL,CAASL,CAAT,EAAY,CAAZ;EAH1B;AAF6C,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["CardStyleInterpolators","HeaderStyleInterpolators","TransitionPresets","TransitionSpecs","default","createStackNavigator","Header","StackView","CardAnimationContext","GestureHandlerRefContext","useCardAnimation","useGestureHandlerRef"],"mappings":"AAAA,OAAO,KAAKA,sBAAZ,MAAwC,4CAAxC;AACA,OAAO,KAAKC,wBAAZ,MAA0C,8CAA1C;AACA,OAAO,KAAKC,iBAAZ,MAAmC,uCAAnC;AACA,OAAO,KAAKC,eAAZ,MAAiC,qCAAjC;AAEA;AACA;AACA;;AACA,SAASC,OAAO,IAAIC,oBAApB,QAAgD,mCAAhD;AAEA;AACA;AACA;;AACA,SAASD,OAAO,IAAIE,MAApB,QAAkC,uBAAlC;AACA,SAASF,OAAO,IAAIG,SAApB,QAAqC,yBAArC;AAEA;AACA;AACA;;AACA,SACEP,sBADF,EAEEC,wBAFF,EAGEC,iBAHF,EAIEC,eAJF;AAOA;AACA;AACA;;AACA,SAASC,OAAO,IAAII,oBAApB,QAAgD,8BAAhD;AACA,SAASJ,OAAO,IAAIK,wBAApB,QAAoD,kCAApD;AACA,SAASL,OAAO,IAAIM,gBAApB,QAA4C,0BAA5C;AACA,SAASN,OAAO,IAAIO,oBAApB,QAAgD,8BAAhD;AAEA;AACA;AACA","sourcesContent":["import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators';\nimport * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators';\nimport * as TransitionPresets from './TransitionConfigs/TransitionPresets';\nimport * as TransitionSpecs from './TransitionConfigs/TransitionSpecs';\n\n/**\n * Navigators\n */\nexport { default as createStackNavigator } from './navigators/createStackNavigator';\n\n/**\n * Views\n */\nexport { default as Header } from './views/Header/Header';\nexport { default as StackView } from './views/Stack/StackView';\n\n/**\n * Transition presets\n */\nexport {\n CardStyleInterpolators,\n HeaderStyleInterpolators,\n TransitionPresets,\n TransitionSpecs,\n};\n\n/**\n * Utilities\n */\nexport { default as CardAnimationContext } from './utils/CardAnimationContext';\nexport { default as GestureHandlerRefContext } from './utils/GestureHandlerRefContext';\nexport { default as useCardAnimation } from './utils/useCardAnimation';\nexport { default as useGestureHandlerRef } from './utils/useGestureHandlerRef';\n\n/**\n * Types\n */\nexport type {\n StackCardInterpolatedStyle,\n StackCardInterpolationProps,\n StackCardStyleInterpolator,\n StackHeaderInterpolatedStyle,\n StackHeaderInterpolationProps,\n StackHeaderProps,\n StackHeaderStyleInterpolator,\n StackNavigationEventMap,\n StackNavigationOptions,\n StackNavigationProp,\n StackScreenProps,\n TransitionPreset,\n} from './types';\n"]}
1
+ {"version":3,"names":["CardStyleInterpolators","HeaderStyleInterpolators","TransitionPresets","TransitionSpecs","default","createStackNavigator","Header","StackView","CardAnimationContext","GestureHandlerRefContext","useCardAnimation","useGestureHandlerRef"],"sources":["index.tsx"],"sourcesContent":["import * as CardStyleInterpolators from './TransitionConfigs/CardStyleInterpolators';\nimport * as HeaderStyleInterpolators from './TransitionConfigs/HeaderStyleInterpolators';\nimport * as TransitionPresets from './TransitionConfigs/TransitionPresets';\nimport * as TransitionSpecs from './TransitionConfigs/TransitionSpecs';\n\n/**\n * Navigators\n */\nexport { default as createStackNavigator } from './navigators/createStackNavigator';\n\n/**\n * Views\n */\nexport { default as Header } from './views/Header/Header';\nexport { default as StackView } from './views/Stack/StackView';\n\n/**\n * Transition presets\n */\nexport {\n CardStyleInterpolators,\n HeaderStyleInterpolators,\n TransitionPresets,\n TransitionSpecs,\n};\n\n/**\n * Utilities\n */\nexport { default as CardAnimationContext } from './utils/CardAnimationContext';\nexport { default as GestureHandlerRefContext } from './utils/GestureHandlerRefContext';\nexport { default as useCardAnimation } from './utils/useCardAnimation';\nexport { default as useGestureHandlerRef } from './utils/useGestureHandlerRef';\n\n/**\n * Types\n */\nexport type {\n StackCardInterpolatedStyle,\n StackCardInterpolationProps,\n StackCardStyleInterpolator,\n StackHeaderInterpolatedStyle,\n StackHeaderInterpolationProps,\n StackHeaderProps,\n StackHeaderStyleInterpolator,\n StackNavigationEventMap,\n StackNavigationOptions,\n StackNavigationProp,\n StackScreenProps,\n TransitionPreset,\n} from './types';\n"],"mappings":"AAAA,OAAO,KAAKA,sBAAZ,MAAwC,4CAAxC;AACA,OAAO,KAAKC,wBAAZ,MAA0C,8CAA1C;AACA,OAAO,KAAKC,iBAAZ,MAAmC,uCAAnC;AACA,OAAO,KAAKC,eAAZ,MAAiC,qCAAjC;AAEA;AACA;AACA;;AACA,SAASC,OAAO,IAAIC,oBAApB,QAAgD,mCAAhD;AAEA;AACA;AACA;;AACA,SAASD,OAAO,IAAIE,MAApB,QAAkC,uBAAlC;AACA,SAASF,OAAO,IAAIG,SAApB,QAAqC,yBAArC;AAEA;AACA;AACA;;AACA,SACEP,sBADF,EAEEC,wBAFF,EAGEC,iBAHF,EAIEC,eAJF;AAOA;AACA;AACA;;AACA,SAASC,OAAO,IAAII,oBAApB,QAAgD,8BAAhD;AACA,SAASJ,OAAO,IAAIK,wBAApB,QAAoD,kCAApD;AACA,SAASL,OAAO,IAAIM,gBAApB,QAA4C,0BAA5C;AACA,SAASN,OAAO,IAAIO,oBAApB,QAAgD,8BAAhD;AAEA;AACA;AACA"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import { createNavigatorFactory, StackActions, StackRouter, useNavigationBuilder } from '@react-navigation/native';
4
4
  import * as React from 'react';
@@ -1 +1 @@
1
- {"version":3,"sources":["createStackNavigator.tsx"],"names":["createNavigatorFactory","StackActions","StackRouter","useNavigationBuilder","React","warnOnce","StackView","StackNavigator","id","initialRouteName","children","screenListeners","screenOptions","rest","mode","headerMode","keyboardHandlingEnabled","undefined","defaultScreenOptions","presentation","headerShown","state","descriptors","navigation","NavigationContent","useEffect","addListener","e","isFocused","requestAnimationFrame","index","defaultPrevented","dispatch","popToTop","target","key"],"mappings":";;AAAA,SACEA,sBADF,EAMEC,YANF,EAQEC,WARF,EAUEC,oBAVF,QAWO,0BAXP;AAYA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,QAAP,MAAqB,WAArB;AAQA,OAAOC,SAAP,MAAsB,0BAAtB;;AAWA,SAASC,cAAT,OAOU;AAAA,MAPc;AACtBC,IAAAA,EADsB;AAEtBC,IAAAA,gBAFsB;AAGtBC,IAAAA,QAHsB;AAItBC,IAAAA,eAJsB;AAKtBC,IAAAA,aALsB;AAMtB,OAAGC;AANmB,GAOd;AACR;AACA,QAAMC,IAAI,GAAGD,IAAI,CAACC,IAAlB;AAEAT,EAAAA,QAAQ,CACNS,IAAI,IAAI,IADF,EAEL,2BAA0BA,IAAK,yCAAwCA,IAAK,uHAFvE,CAAR,CAJQ,CASR;;AACA,QAAMC,UAAU,GAAG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/B,YAAY,CAACgC,QAAb,EADe;AAElBC,cAAAA,MAAM,EAAEb,KAAK,CAACc;AAFI,aAApB;AAID;AACF,SAboB,CAArB;AAcD,OAnBS;AAFZ;AAAA,GADF,EAuBE,CAACZ,UAAD,EAAaF,KAAK,CAACS,KAAnB,EAA0BT,KAAK,CAACc,GAAhC,CAvBF;AA0BA,sBACE,oBAAC,iBAAD,qBACE,oBAAC,SAAD,eACMtB,IADN;AAEE,IAAA,KAAK,EAAEQ,KAFT;AAGE,IAAA,WAAW,EAAEC,WAHf;AAIE,IAAA,UAAU,EAAEC;AAJd,KADF,CADF;AAUD;;AAED,eAAevB,sBAAsB,CAKnCO,cALmC,CAArC","sourcesContent":["import {\n createNavigatorFactory,\n DefaultNavigatorOptions,\n EventArg,\n ParamListBase,\n StackActionHelpers,\n StackActions,\n StackNavigationState,\n StackRouter,\n StackRouterOptions,\n useNavigationBuilder,\n} from '@react-navigation/native';\nimport * as React from 'react';\nimport warnOnce from 'warn-once';\n\nimport type {\n StackHeaderMode,\n StackNavigationConfig,\n StackNavigationEventMap,\n StackNavigationOptions,\n} from '../types';\nimport StackView from '../views/Stack/StackView';\n\ntype Props = DefaultNavigatorOptions<\n ParamListBase,\n StackNavigationState<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap\n> &\n StackRouterOptions &\n StackNavigationConfig;\n\nfunction StackNavigator({\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n ...rest\n}: Props) {\n // @ts-expect-error: mode is deprecated\n const mode = rest.mode as 'card' | 'modal' | undefined;\n\n warnOnce(\n mode != null,\n `Stack Navigator: 'mode=\"${mode}\"' is deprecated. Use 'presentation: \"${mode}\"' in 'screenOptions' instead.\\n\\nSee https://reactnavigation.org/docs/stack-navigator#presentation for more details.`\n );\n\n // @ts-expect-error: headerMode='none' is deprecated\n const headerMode = rest.headerMode as StackHeaderMode | 'none' | undefined;\n\n warnOnce(\n headerMode === 'none',\n `Stack Navigator: 'headerMode=\"none\"' is deprecated. Use 'headerShown: false' in 'screenOptions' instead.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#headershown for more details.`\n );\n\n warnOnce(\n headerMode != null && headerMode !== 'none',\n `Stack Navigator: 'headerMode' is moved to 'options'. Moved it to 'screenOptions' to keep current behavior.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#headermode for more details.`\n );\n\n // @ts-expect-error: headerMode='none' is deprecated\n const keyboardHandlingEnabled = rest.keyboardHandlingEnabled;\n\n warnOnce(\n keyboardHandlingEnabled !== undefined,\n `Stack Navigator: 'keyboardHandlingEnabled' is moved to 'options'. Moved it to 'screenOptions' to keep current behavior.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#keyboardhandlingenabled for more details.`\n );\n\n const defaultScreenOptions: StackNavigationOptions = {\n presentation: mode,\n headerShown: headerMode ? headerMode !== 'none' : true,\n headerMode: headerMode && headerMode !== 'none' ? headerMode : undefined,\n keyboardHandlingEnabled,\n };\n\n const { state, descriptors, navigation, NavigationContent } =\n useNavigationBuilder<\n StackNavigationState<ParamListBase>,\n StackRouterOptions,\n StackActionHelpers<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap\n >(StackRouter, {\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n defaultScreenOptions,\n });\n\n React.useEffect(\n () =>\n // @ts-expect-error: there may not be a tab navigator in parent\n navigation.addListener?.('tabPress', (e) => {\n const isFocused = navigation.isFocused();\n\n // Run the operation in the next frame so we're sure all listeners have been run\n // This is necessary to know if preventDefault() has been called\n requestAnimationFrame(() => {\n if (\n state.index > 0 &&\n isFocused &&\n !(e as unknown as EventArg<'tabPress', true>).defaultPrevented\n ) {\n // When user taps on already focused tab and we're inside the tab,\n // reset the stack to replicate native behaviour\n navigation.dispatch({\n ...StackActions.popToTop(),\n target: state.key,\n });\n }\n });\n }),\n [navigation, state.index, state.key]\n );\n\n return (\n <NavigationContent>\n <StackView\n {...rest}\n state={state}\n descriptors={descriptors}\n navigation={navigation}\n />\n </NavigationContent>\n );\n}\n\nexport default createNavigatorFactory<\n StackNavigationState<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap,\n typeof StackNavigator\n>(StackNavigator);\n"]}
1
+ {"version":3,"names":["createNavigatorFactory","StackActions","StackRouter","useNavigationBuilder","React","warnOnce","StackView","StackNavigator","id","initialRouteName","children","screenListeners","screenOptions","rest","mode","headerMode","keyboardHandlingEnabled","undefined","defaultScreenOptions","presentation","headerShown","state","descriptors","navigation","NavigationContent","useEffect","addListener","e","isFocused","requestAnimationFrame","index","defaultPrevented","dispatch","popToTop","target","key"],"sources":["createStackNavigator.tsx"],"sourcesContent":["import {\n createNavigatorFactory,\n DefaultNavigatorOptions,\n EventArg,\n ParamListBase,\n StackActionHelpers,\n StackActions,\n StackNavigationState,\n StackRouter,\n StackRouterOptions,\n useNavigationBuilder,\n} from '@react-navigation/native';\nimport * as React from 'react';\nimport warnOnce from 'warn-once';\n\nimport type {\n StackHeaderMode,\n StackNavigationConfig,\n StackNavigationEventMap,\n StackNavigationOptions,\n} from '../types';\nimport StackView from '../views/Stack/StackView';\n\ntype Props = DefaultNavigatorOptions<\n ParamListBase,\n StackNavigationState<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap\n> &\n StackRouterOptions &\n StackNavigationConfig;\n\nfunction StackNavigator({\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n ...rest\n}: Props) {\n // @ts-expect-error: mode is deprecated\n const mode = rest.mode as 'card' | 'modal' | undefined;\n\n warnOnce(\n mode != null,\n `Stack Navigator: 'mode=\"${mode}\"' is deprecated. Use 'presentation: \"${mode}\"' in 'screenOptions' instead.\\n\\nSee https://reactnavigation.org/docs/stack-navigator#presentation for more details.`\n );\n\n // @ts-expect-error: headerMode='none' is deprecated\n const headerMode = rest.headerMode as StackHeaderMode | 'none' | undefined;\n\n warnOnce(\n headerMode === 'none',\n `Stack Navigator: 'headerMode=\"none\"' is deprecated. Use 'headerShown: false' in 'screenOptions' instead.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#headershown for more details.`\n );\n\n warnOnce(\n headerMode != null && headerMode !== 'none',\n `Stack Navigator: 'headerMode' is moved to 'options'. Moved it to 'screenOptions' to keep current behavior.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#headermode for more details.`\n );\n\n // @ts-expect-error: headerMode='none' is deprecated\n const keyboardHandlingEnabled = rest.keyboardHandlingEnabled;\n\n warnOnce(\n keyboardHandlingEnabled !== undefined,\n `Stack Navigator: 'keyboardHandlingEnabled' is moved to 'options'. Moved it to 'screenOptions' to keep current behavior.\\n\\nSee https://reactnavigation.org/docs/stack-navigator/#keyboardhandlingenabled for more details.`\n );\n\n const defaultScreenOptions: StackNavigationOptions = {\n presentation: mode,\n headerShown: headerMode ? headerMode !== 'none' : true,\n headerMode: headerMode && headerMode !== 'none' ? headerMode : undefined,\n keyboardHandlingEnabled,\n };\n\n const { state, descriptors, navigation, NavigationContent } =\n useNavigationBuilder<\n StackNavigationState<ParamListBase>,\n StackRouterOptions,\n StackActionHelpers<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap\n >(StackRouter, {\n id,\n initialRouteName,\n children,\n screenListeners,\n screenOptions,\n defaultScreenOptions,\n });\n\n React.useEffect(\n () =>\n // @ts-expect-error: there may not be a tab navigator in parent\n navigation.addListener?.('tabPress', (e) => {\n const isFocused = navigation.isFocused();\n\n // Run the operation in the next frame so we're sure all listeners have been run\n // This is necessary to know if preventDefault() has been called\n requestAnimationFrame(() => {\n if (\n state.index > 0 &&\n isFocused &&\n !(e as unknown as EventArg<'tabPress', true>).defaultPrevented\n ) {\n // When user taps on already focused tab and we're inside the tab,\n // reset the stack to replicate native behaviour\n navigation.dispatch({\n ...StackActions.popToTop(),\n target: state.key,\n });\n }\n });\n }),\n [navigation, state.index, state.key]\n );\n\n return (\n <NavigationContent>\n <StackView\n {...rest}\n state={state}\n descriptors={descriptors}\n navigation={navigation}\n />\n </NavigationContent>\n );\n}\n\nexport default createNavigatorFactory<\n StackNavigationState<ParamListBase>,\n StackNavigationOptions,\n StackNavigationEventMap,\n typeof StackNavigator\n>(StackNavigator);\n"],"mappings":";;AAAA,SACEA,sBADF,EAMEC,YANF,EAQEC,WARF,EAUEC,oBAVF,QAWO,0BAXP;AAYA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,QAAP,MAAqB,WAArB;AAQA,OAAOC,SAAP,MAAsB,0BAAtB;;AAWA,SAASC,cAAT,OAOU;EAAA,IAPc;IACtBC,EADsB;IAEtBC,gBAFsB;IAGtBC,QAHsB;IAItBC,eAJsB;IAKtBC,aALsB;IAMtB,GAAGC;EANmB,CAOd;EACR;EACA,MAAMC,IAAI,GAAGD,IAAI,CAACC,IAAlB;EAEAT,QAAQ,CACNS,IAAI,IAAI,IADF,EAEL,2BAA0BA,IAAK,yCAAwCA,IAAK,uHAFvE,CAAR,CAJQ,CASR;;EACA,MAAMC,UAAU,GAAGF,IAAI,CAACE,UAAxB;EAEAV,QAAQ,CACNU,UAAU,KAAK,MADT,EAEL,iMAFK,CAAR;EAKAV,QAAQ,CACNU,UAAU,IAAI,IAAd,IAAsBA,UAAU,KAAK,MAD/B,EAEL,kMAFK,CAAR,CAjBQ,CAsBR;;EACA,MAAMC,uBAAuB,GAAGH,IAAI,CAACG,uBAArC;EAEAX,QAAQ,CACNW,uBAAuB,KAAKC,SADtB,EAEL,4NAFK,CAAR;EAKA,MAAMC,oBAA4C,GAAG;IACnDC,YAAY,EAAEL,IADqC;IAEnDM,WAAW,EAAEL,UAAU,GAAGA,UAAU,KAAK,MAAlB,GAA2B,IAFC;IAGnDA,UAAU,EAAEA,UAAU,IAAIA,UAAU,KAAK,MAA7B,GAAsCA,UAAtC,GAAmDE,SAHZ;IAInDD;EAJmD,CAArD;EAOA,MAAM;IAAEK,KAAF;IAASC,WAAT;IAAsBC,UAAtB;IAAkCC;EAAlC,IACJrB,oBAAoB,CAMlBD,WANkB,EAML;IACbM,EADa;IAEbC,gBAFa;IAGbC,QAHa;IAIbC,eAJa;IAKbC,aALa;IAMbM;EANa,CANK,CADtB;EAgBAd,KAAK,CAACqB,SAAN,CACE;IAAA;;IAAA,OACE;MADF,yBAEEF,UAAU,CAACG,WAFb,0DAEE,2BAAAH,UAAU,EAAe,UAAf,EAA4BI,CAAD,IAAO;QAC1C,MAAMC,SAAS,GAAGL,UAAU,CAACK,SAAX,EAAlB,CAD0C,CAG1C;QACA;;QACAC,qBAAqB,CAAC,MAAM;UAC1B,IACER,KAAK,CAACS,KAAN,GAAc,CAAd,IACAF,SADA,IAEA,CAAED,CAAD,CAA6CI,gBAHhD,EAIE;YACA;YACA;YACAR,UAAU,CAACS,QAAX,CAAoB,EAClB,GAAG/B,YAAY,CAACgC,QAAb,EADe;cAElBC,MAAM,EAAEb,KAAK,CAACc;YAFI,CAApB;UAID;QACF,CAboB,CAArB;MAcD,CAnBS;IAFZ;EAAA,CADF,EAuBE,CAACZ,UAAD,EAAaF,KAAK,CAACS,KAAnB,EAA0BT,KAAK,CAACc,GAAhC,CAvBF;EA0BA,oBACE,oBAAC,iBAAD,qBACE,oBAAC,SAAD,eACMtB,IADN;IAEE,KAAK,EAAEQ,KAFT;IAGE,WAAW,EAAEC,WAHf;IAIE,UAAU,EAAEC;EAJd,GADF,CADF;AAUD;;AAED,eAAevB,sBAAsB,CAKnCO,cALmC,CAArC"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["types.tsx"],"sourcesContent":["import type {\n HeaderBackButton,\n HeaderBackButtonProps,\n HeaderButtonProps,\n HeaderOptions,\n HeaderTitleProps,\n} from '@react-navigation/elements';\nimport type {\n Descriptor,\n NavigationHelpers,\n NavigationProp,\n ParamListBase,\n Route,\n RouteProp,\n StackActionHelpers,\n StackNavigationState,\n} from '@react-navigation/native';\nimport type * as React from 'react';\nimport type { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native';\n\nexport type StackNavigationEventMap = {\n /**\n * Event which fires when a transition animation starts.\n */\n transitionStart: { data: { closing: boolean } };\n /**\n * Event which fires when a transition animation ends.\n */\n transitionEnd: { data: { closing: boolean } };\n /**\n * Event which fires when navigation gesture starts.\n */\n gestureStart: { data: undefined };\n /**\n * Event which fires when navigation gesture is completed.\n */\n gestureEnd: { data: undefined };\n /**\n * Event which fires when navigation gesture is canceled.\n */\n gestureCancel: { data: undefined };\n};\n\nexport type StackNavigationHelpers = NavigationHelpers<\n ParamListBase,\n StackNavigationEventMap\n> &\n StackActionHelpers<ParamListBase>;\n\nexport type StackNavigationProp<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList = keyof ParamList,\n NavigatorID extends string | undefined = undefined\n> = NavigationProp<\n ParamList,\n RouteName,\n NavigatorID,\n StackNavigationState<ParamList>,\n StackNavigationOptions,\n StackNavigationEventMap\n> &\n StackActionHelpers<ParamList>;\n\nexport type StackScreenProps<\n ParamList extends ParamListBase,\n RouteName extends keyof ParamList = keyof ParamList,\n NavigatorID extends string | undefined = undefined\n> = {\n navigation: StackNavigationProp<ParamList, RouteName, NavigatorID>;\n route: RouteProp<ParamList, RouteName>;\n};\n\nexport type Layout = { width: number; height: number };\n\nexport type GestureDirection =\n | 'horizontal'\n | 'horizontal-inverted'\n | 'vertical'\n | 'vertical-inverted';\n\ntype SceneOptionsDefaults = TransitionPreset & {\n animationEnabled: boolean;\n gestureEnabled: boolean;\n cardOverlayEnabled: boolean;\n headerMode: StackHeaderMode;\n};\n\nexport type Scene = {\n /**\n * Route object for the current screen.\n */\n route: Route<string>;\n /**\n * Descriptor object for the screen.\n */\n descriptor: Omit<StackDescriptor, 'options'> & {\n options: Omit<StackDescriptor['options'], keyof SceneOptionsDefaults> &\n SceneOptionsDefaults;\n };\n /**\n * Animated nodes representing the progress of the animation.\n */\n progress: SceneProgress;\n};\n\nexport type SceneProgress = {\n /**\n * Progress value of the current screen.\n */\n current: Animated.AnimatedInterpolation;\n /**\n * Progress value for the screen after this one in the stack.\n * This can be `undefined` in case the screen animating is the last one.\n */\n next?: Animated.AnimatedInterpolation;\n /**\n * Progress value for the screen before this one in the stack.\n * This can be `undefined` in case the screen animating is the first one.\n */\n previous?: Animated.AnimatedInterpolation;\n};\n\nexport type StackHeaderMode = 'float' | 'screen';\n\nexport type StackPresentationMode = 'card' | 'modal';\n\nexport type StackHeaderOptions = Omit<\n HeaderOptions,\n 'headerLeft' | 'headerTitle' | 'headerRight'\n> & {\n /**\n * String or a function that returns a React Element to be used by the header.\n * Defaults to screen `title` or route name.\n *\n * It receives `allowFontScaling`, `tintColor`, `style` and `children` in the options object as an argument.\n * The title string is passed in `children`.\n */\n headerTitle?: string | ((props: HeaderTitleProps) => React.ReactNode);\n /**\n * Function which returns a React Element to display on the left side of the header.\n */\n headerLeft?: (props: HeaderBackButtonProps) => React.ReactNode;\n /**\n * Function which returns a React Element to display on the right side of the header.\n */\n headerRight?: (props: HeaderButtonProps) => React.ReactNode;\n /**\n * Whether back button title font should scale to respect Text Size accessibility settings. Defaults to `false`.\n */\n headerBackAllowFontScaling?: boolean;\n /**\n * Accessibility label for the header back button.\n */\n headerBackAccessibilityLabel?: string;\n /**\n * ID to locate this back button in tests.\n */\n headerBackTestID?: string;\n /**\n * Title string used by the back button on iOS.\n * Defaults to the previous screen's title, or \"Back\" if there's not enough space.\n * Use `headerBackTitleVisible: false` to hide it.\n */\n headerBackTitle?: string;\n /**\n * Whether the back button title should be visible or not.\n *\n * Defaults to `true` on iOS, `false on Android.\n */\n headerBackTitleVisible?: boolean;\n /**\n * Style object for the back title.\n */\n headerBackTitleStyle?: StyleProp<TextStyle>;\n /**\n * Title string used by the back button when `headerBackTitle` doesn't fit on the screen. `\"Back\"` by default.\n */\n headerTruncatedBackTitle?: string;\n /**\n * Function which returns a React Element to display custom image in header's back button.\n * It receives the `tintColor` in in the options object as an argument. object.\n * Defaults to Image component with a the default back icon image for the platform (a chevron on iOS and an arrow on Android).\n */\n headerBackImage?: React.ComponentProps<typeof HeaderBackButton>['backImage'];\n};\n\nexport type StackHeaderProps = {\n /**\n * Layout of the screen.\n */\n layout: Layout;\n /**\n * Options for the back button.\n */\n back?: {\n /**\n * Title of the previous screen.\n */\n title: string;\n };\n /**\n * Animated nodes representing the progress of the animation.\n */\n progress: SceneProgress;\n /**\n * Options for the current screen.\n */\n options: StackNavigationOptions;\n /**\n * Route object for the current screen.\n */\n route: Route<string>;\n /**\n * Navigation prop for the header.\n */\n navigation: StackNavigationProp<ParamListBase>;\n /**\n * Interpolated styles for various elements in the header.\n */\n styleInterpolator: StackHeaderStyleInterpolator;\n};\n\nexport type StackDescriptor = Descriptor<\n StackNavigationOptions,\n StackNavigationProp<ParamListBase>,\n RouteProp<ParamListBase>\n>;\n\nexport type StackDescriptorMap = Record<string, StackDescriptor>;\n\nexport type StackNavigationOptions = StackHeaderOptions &\n Partial<TransitionPreset> & {\n /**\n * String that can be displayed in the header as a fallback for `headerTitle`.\n */\n title?: string;\n /**\n * Function that given `HeaderProps` returns a React Element to display as a header.\n */\n header?: (props: StackHeaderProps) => React.ReactNode;\n /**\n * Whether the header floats above the screen or part of the screen.\n * Defaults to `float` on iOS for non-modals, and `screen` for the rest.\n */\n headerMode?: StackHeaderMode;\n /**\n * Whether to show the header. The header is shown by default.\n * Setting this to `false` hides the header.\n */\n headerShown?: boolean;\n /**\n * Whether a shadow is visible for the card during transitions. Defaults to `true`.\n */\n cardShadowEnabled?: boolean;\n /**\n * Whether to have a semi-transparent dark overlay visible under the card during transitions.\n * Defaults to `true` on Android and `false` on iOS.\n */\n cardOverlayEnabled?: boolean;\n /**\n * Function that returns a React Element to display as a overlay for the card.\n */\n cardOverlay?: (props: {\n style: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n }) => React.ReactNode;\n /**\n * Style object for the card in stack.\n * You can provide a custom background color to use instead of the default background here.\n *\n * You can also specify `{ backgroundColor: 'transparent' }` to make the previous screen visible underneath.\n * This is useful to implement things like modal dialogs.\n *\n * You should also specify `detachPreviousScreen: false` in options when using a transparent background\n * so that the previous screen isn't detached and stays below the current screen.\n *\n * You might also need to change the animation of the screen using `cardStyleInterpolator`\n * so that the previous screen isn't transformed or invisible.\n */\n cardStyle?: StyleProp<ViewStyle>;\n /**\n * Whether this screen should be presented as a modal or a regular card.\n *\n * Specifying this will configure several options:\n * - `card`: Use the default OS animations for iOS and Android screen transitions.\n * - `modal`: Use Modal animations. This changes a few things:\n * - Sets `headerMode` to `screen` for the screen unless specified otherwise.\n * - Changes the screen animation to match the platform behavior for modals.\n * - `transparentModal`: Similar to `modal`. This changes following things:\n * - Sets `headerMode` to `screen` for the screen unless specified otherwise.\n * - Sets background color of the screen to transparent, so previous screen is visible\n * - Adjusts the `detachPreviousScreen` option so that the previous screen stays rendered.\n * - Prevents the previous screen from animating from its last position.\n * - Changes the screen animation to a vertical slide animation.\n *\n * Defaults to 'card'.\n */\n presentation?: 'card' | 'modal' | 'transparentModal';\n /**\n * Whether transition animation should be enabled the screen.\n * If you set it to `false`, the screen won't animate when pushing or popping.\n * Defaults to `true` on Android and iOS, `false` on Web.\n */\n animationEnabled?: boolean;\n /**\n * The type of animation to use when this screen replaces another screen. Defaults to `push`.\n * When `pop` is used, the `pop` animation is applied to the screen being replaced.\n */\n animationTypeForReplace?: 'push' | 'pop';\n /**\n * Whether you can use gestures to dismiss this screen. Defaults to `true` on iOS, `false` on Android.\n * Not supported on Web.\n */\n gestureEnabled?: boolean;\n /**\n * Distance of touch start from the edge of the screen to recognize gestures.\n * Not supported on Web.\n */\n gestureResponseDistance?: number;\n /**\n * Number which determines the relevance of velocity for the gesture. Defaults to 0.3.\n * Not supported on Web.\n */\n gestureVelocityImpact?: number;\n /**\n * Whether to detach the previous screen from the view hierarchy to save memory.\n * Set it to `false` if you need the previous screen to be seen through the active screen.\n * Only applicable if `detachInactiveScreens` isn't set to `false`.\n * Defaults to `false` for the last screen for modals, otherwise `true`.\n */\n detachPreviousScreen?: boolean;\n /**\n * If `false`, the keyboard will NOT automatically dismiss when navigating to a new screen from this screen.\n * Defaults to `true`.\n */\n keyboardHandlingEnabled?: boolean;\n /**\n * Whether inactive screens should be suspended from re-rendering. Defaults to `false`.\n * Defaults to `true` when `enableFreeze()` is run at the top of the application.\n * Requires `react-native-screens` version >=3.16.0.\n *\n * Only supported on iOS and Android.\n */\n freezeOnBlur?: boolean;\n };\n\nexport type StackNavigationConfig = {\n /**\n * Whether inactive screens should be detached from the view hierarchy to save memory.\n * This will have no effect if you disable `react-native-screens`.\n *\n * Defaults to `true`.\n */\n detachInactiveScreens?: boolean;\n};\n\nexport type TransitionSpec =\n | {\n animation: 'spring';\n config: Omit<\n Animated.SpringAnimationConfig,\n 'toValue' | keyof Animated.AnimationConfig\n >;\n }\n | {\n animation: 'timing';\n config: Omit<\n Animated.TimingAnimationConfig,\n 'toValue' | keyof Animated.AnimationConfig\n >;\n };\n\nexport type StackCardInterpolationProps = {\n /**\n * Values for the current screen.\n */\n current: {\n /**\n * Animated node representing the progress value of the current screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * Values for the screen after this one in the stack.\n * This can be `undefined` in case the screen animating is the last one.\n */\n next?: {\n /**\n * Animated node representing the progress value of the next screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * The index of the card with this interpolation in the stack.\n */\n index: number;\n /**\n * Animated node representing whether the card is closing (1 - closing, 0 - not closing).\n */\n closing: Animated.AnimatedInterpolation;\n /**\n * Animated node representing whether the card is being swiped (1 - swiping, 0 - not swiping).\n */\n swiping: Animated.AnimatedInterpolation;\n /**\n * Animated node representing multiplier when direction is inverted (-1 - inverted, 1 - normal).\n */\n inverted: Animated.AnimatedInterpolation;\n /**\n * Layout measurements for various items we use for animation.\n */\n layouts: {\n /**\n * Layout of the whole screen.\n */\n screen: Layout;\n };\n /**\n * Safe area insets\n */\n insets: {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n\nexport type StackCardInterpolatedStyle = {\n /**\n * Interpolated style for the container view wrapping the card.\n */\n containerStyle?: any;\n /**\n * Interpolated style for the view representing the card.\n */\n cardStyle?: any;\n /**\n * Interpolated style for the view representing the semi-transparent overlay below the card.\n */\n overlayStyle?: any;\n /**\n * Interpolated style representing the card shadow.\n */\n shadowStyle?: any;\n};\n\nexport type StackCardStyleInterpolator = (\n props: StackCardInterpolationProps\n) => StackCardInterpolatedStyle;\n\nexport type StackHeaderInterpolationProps = {\n /**\n * Values for the current screen (the screen which owns this header).\n */\n current: {\n /**\n * Animated node representing the progress value of the current screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * Values for the screen after this one in the stack.\n * This can be `undefined` in case the screen animating is the last one.\n */\n next?: {\n /**\n * Animated node representing the progress value of the next screen.\n */\n progress: Animated.AnimatedInterpolation;\n };\n /**\n * Layout measurements for various items we use for animation.\n */\n layouts: {\n /**\n * Layout of the header\n */\n header: Layout;\n /**\n * Layout of the whole screen.\n */\n screen: Layout;\n /**\n * Layout of the title element.\n */\n title?: Layout;\n /**\n * Layout of the back button label.\n */\n leftLabel?: Layout;\n };\n};\n\nexport type StackHeaderInterpolatedStyle = {\n /**\n * Interpolated style for the label of the left button (back button label).\n */\n leftLabelStyle?: any;\n /**\n * Interpolated style for the left button (usually the back button).\n */\n leftButtonStyle?: any;\n /**\n * Interpolated style for the right button.\n */\n rightButtonStyle?: any;\n /**\n * Interpolated style for the header title text.\n */\n titleStyle?: any;\n /**\n * Interpolated style for the header background.\n */\n backgroundStyle?: any;\n};\n\nexport type StackHeaderStyleInterpolator = (\n props: StackHeaderInterpolationProps\n) => StackHeaderInterpolatedStyle;\n\nexport type TransitionPreset = {\n /**\n * The direction of swipe gestures, `horizontal` or `vertical`.\n */\n gestureDirection: GestureDirection;\n /**\n * Object which specifies the animation type (timing or spring) and their options (such as duration for timing).\n */\n transitionSpec: {\n /**\n * Transition configuration when adding a screen.\n */\n open: TransitionSpec;\n /**\n * Transition configuration when removing a screen.\n */\n close: TransitionSpec;\n };\n /**\n * Function which specifies interpolated styles for various parts of the card, e.g. the overlay, shadow etc.\n */\n cardStyleInterpolator: StackCardStyleInterpolator;\n /**\n * Function which specifies interpolated styles for various parts of the header, e.g. the title, left button etc.\n */\n headerStyleInterpolator: StackHeaderStyleInterpolator;\n};\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["CardAnimationContext.tsx"],"names":["React","createContext","undefined"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAIA,4BAAeA,KAAK,CAACC,aAAN,CACbC,SADa,CAAf","sourcesContent":["import * as React from 'react';\n\nimport type { StackCardInterpolationProps } from '../types';\n\nexport default React.createContext<StackCardInterpolationProps | undefined>(\n undefined\n);\n"]}
1
+ {"version":3,"names":["React","createContext","undefined"],"sources":["CardAnimationContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { StackCardInterpolationProps } from '../types';\n\nexport default React.createContext<StackCardInterpolationProps | undefined>(\n undefined\n);\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAIA,4BAAeA,KAAK,CAACC,aAAN,CACbC,SADa,CAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["GestureHandlerRefContext.tsx"],"names":["React","createContext"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,4BAAeA,KAAK,CAACC,aAAN,CAEL,IAFK,CAAf","sourcesContent":["import * as React from 'react';\n\nexport default React.createContext<React.Ref<\n import('react-native-gesture-handler').PanGestureHandler\n> | null>(null);\n"]}
1
+ {"version":3,"names":["React","createContext"],"sources":["GestureHandlerRefContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport default React.createContext<React.Ref<\n import('react-native-gesture-handler').PanGestureHandler\n> | null>(null);\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,4BAAeA,KAAK,CAACC,aAAN,CAEL,IAFK,CAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ModalPresentationContext.tsx"],"names":["React","ModalPresentationContext","createContext"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,MAAMC,wBAAwB,gBAAGD,KAAK,CAACE,aAAN,CAAoB,KAApB,CAAjC;AAEA,eAAeD,wBAAf","sourcesContent":["import * as React from 'react';\n\nconst ModalPresentationContext = React.createContext(false);\n\nexport default ModalPresentationContext;\n"]}
1
+ {"version":3,"names":["React","ModalPresentationContext","createContext"],"sources":["ModalPresentationContext.tsx"],"sourcesContent":["import * as React from 'react';\n\nconst ModalPresentationContext = React.createContext(false);\n\nexport default ModalPresentationContext;\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,MAAMC,wBAAwB,gBAAGD,KAAK,CAACE,aAAN,CAAoB,KAApB,CAAjC;AAEA,eAAeD,wBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["conditional.tsx"],"names":["Animated","add","multiply","conditional","condition","main","fallback","interpolate","inputRange","outputRange"],"mappings":"AAAA,SAASA,QAAT,QAAyB,cAAzB;AAEA,MAAM;AAAEC,EAAAA,GAAF;AAAOC,EAAAA;AAAP,IAAoBF,QAA1B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,eAAe,SAASG,WAAT,CACbC,SADa,EAEbC,IAFa,EAGbC,QAHa,EAIb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAOL,GAAG,CACRC,QAAQ,CAACE,SAAD,EAAYC,IAAZ,CADA,EAERH,QAAQ,CACNE,SAAS,CAACG,WAAV,CAAsB;AACpBC,IAAAA,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CADQ;AAEpBC,IAAAA,WAAW,EAAE,CAAC,CAAD,EAAI,CAAJ;AAFO,GAAtB,CADM,EAKNH,QALM,CAFA,CAAV;AAUD","sourcesContent":["import { Animated } from 'react-native';\n\nconst { add, multiply } = Animated;\n\n/**\n * Use an Animated Node based on a condition. Similar to Reanimated's `cond`.\n *\n * @param condition Animated Node representing the condition, must be 0 or 1, 1 means `true`, 0 means `false`\n * @param main Animated Node to use if the condition is `true`\n * @param fallback Animated Node to use if the condition is `false`\n */\nexport default function conditional(\n condition: Animated.AnimatedInterpolation,\n main: Animated.AnimatedInterpolation,\n fallback: Animated.AnimatedInterpolation\n) {\n // To implement this behavior, we multiply the main node with the condition.\n // So if condition is 0, result will be 0, and if condition is 1, result will be main node.\n // Then we multiple reverse of the condition (0 if condition is 1) with the fallback.\n // So if condition is 0, result will be fallback node, and if condition is 1, result will be 0,\n // This way, one of them will always be 0, and other one will be the value we need.\n // In the end we add them both together, 0 + value we need = value we need\n return add(\n multiply(condition, main),\n multiply(\n condition.interpolate({\n inputRange: [0, 1],\n outputRange: [1, 0],\n }),\n fallback\n )\n );\n}\n"]}
1
+ {"version":3,"names":["Animated","add","multiply","conditional","condition","main","fallback","interpolate","inputRange","outputRange"],"sources":["conditional.tsx"],"sourcesContent":["import { Animated } from 'react-native';\n\nconst { add, multiply } = Animated;\n\n/**\n * Use an Animated Node based on a condition. Similar to Reanimated's `cond`.\n *\n * @param condition Animated Node representing the condition, must be 0 or 1, 1 means `true`, 0 means `false`\n * @param main Animated Node to use if the condition is `true`\n * @param fallback Animated Node to use if the condition is `false`\n */\nexport default function conditional(\n condition: Animated.AnimatedInterpolation,\n main: Animated.AnimatedInterpolation,\n fallback: Animated.AnimatedInterpolation\n) {\n // To implement this behavior, we multiply the main node with the condition.\n // So if condition is 0, result will be 0, and if condition is 1, result will be main node.\n // Then we multiple reverse of the condition (0 if condition is 1) with the fallback.\n // So if condition is 0, result will be fallback node, and if condition is 1, result will be 0,\n // This way, one of them will always be 0, and other one will be the value we need.\n // In the end we add them both together, 0 + value we need = value we need\n return add(\n multiply(condition, main),\n multiply(\n condition.interpolate({\n inputRange: [0, 1],\n outputRange: [1, 0],\n }),\n fallback\n )\n );\n}\n"],"mappings":"AAAA,SAASA,QAAT,QAAyB,cAAzB;AAEA,MAAM;EAAEC,GAAF;EAAOC;AAAP,IAAoBF,QAA1B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,eAAe,SAASG,WAAT,CACbC,SADa,EAEbC,IAFa,EAGbC,QAHa,EAIb;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAOL,GAAG,CACRC,QAAQ,CAACE,SAAD,EAAYC,IAAZ,CADA,EAERH,QAAQ,CACNE,SAAS,CAACG,WAAV,CAAsB;IACpBC,UAAU,EAAE,CAAC,CAAD,EAAI,CAAJ,CADQ;IAEpBC,WAAW,EAAE,CAAC,CAAD,EAAI,CAAJ;EAFO,CAAtB,CADM,EAKNH,QALM,CAFA,CAAV;AAUD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["debounce.tsx"],"names":["debounce","func","duration","timeout","args","apply","setTimeout","undefined"],"mappings":"AAAA,eAAe,SAASA,QAAT,CACbC,IADa,EAEbC,QAFa,EAGV;AACH,MAAIC,OAAJ;AAEA,SAAO,YAA8B;AACnC,QAAI,CAACA,OAAL,EAAc;AAAA,wCADeC,IACf;AADeA,QAAAA,IACf;AAAA;;AACZ;AACAH,MAAAA,IAAI,CAACI,KAAL,CAAW,IAAX,EAAiBD,IAAjB;AAEAD,MAAAA,OAAO,GAAGG,UAAU,CAAC,MAAM;AACzBH,QAAAA,OAAO,GAAGI,SAAV;AACD,OAFmB,EAEjBL,QAFiB,CAApB;AAGD;AACF,GATD;AAUD","sourcesContent":["export default function debounce<T extends (...args: any[]) => void>(\n func: T,\n duration: number\n): T {\n let timeout: NodeJS.Timeout | number | undefined;\n\n return function (this: any, ...args) {\n if (!timeout) {\n // eslint-disable-next-line babel/no-invalid-this\n func.apply(this, args);\n\n timeout = setTimeout(() => {\n timeout = undefined;\n }, duration);\n }\n } as T;\n}\n"]}
1
+ {"version":3,"names":["debounce","func","duration","timeout","args","apply","setTimeout","undefined"],"sources":["debounce.tsx"],"sourcesContent":["export default function debounce<T extends (...args: any[]) => void>(\n func: T,\n duration: number\n): T {\n let timeout: NodeJS.Timeout | number | undefined;\n\n return function (this: any, ...args) {\n if (!timeout) {\n // eslint-disable-next-line babel/no-invalid-this\n func.apply(this, args);\n\n timeout = setTimeout(() => {\n timeout = undefined;\n }, duration);\n }\n } as T;\n}\n"],"mappings":"AAAA,eAAe,SAASA,QAAT,CACbC,IADa,EAEbC,QAFa,EAGV;EACH,IAAIC,OAAJ;EAEA,OAAO,YAA8B;IACnC,IAAI,CAACA,OAAL,EAAc;MAAA,kCADeC,IACf;QADeA,IACf;MAAA;;MACZ;MACAH,IAAI,CAACI,KAAL,CAAW,IAAX,EAAiBD,IAAjB;MAEAD,OAAO,GAAGG,UAAU,CAAC,MAAM;QACzBH,OAAO,GAAGI,SAAV;MACD,CAFmB,EAEjBL,QAFiB,CAApB;IAGD;EACF,CATD;AAUD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["getDistanceForDirection.tsx"],"names":["getInvertedMultiplier","getDistanceForDirection","layout","gestureDirection","multiplier","height","width"],"mappings":"AACA,OAAOA,qBAAP,MAAkC,yBAAlC;AAEA,eAAe,SAASC,uBAAT,CACbC,MADa,EAEbC,gBAFa,EAGL;AACR,QAAMC,UAAU,GAAGJ,qBAAqB,CAACG,gBAAD,CAAxC;;AAEA,UAAQA,gBAAR;AACE,SAAK,UAAL;AACA,SAAK,mBAAL;AACE,aAAOD,MAAM,CAACG,MAAP,GAAgBD,UAAvB;;AACF,SAAK,YAAL;AACA,SAAK,qBAAL;AACE,aAAOF,MAAM,CAACI,KAAP,GAAeF,UAAtB;AANJ;AAQD","sourcesContent":["import type { GestureDirection, Layout } from '../types';\nimport getInvertedMultiplier from './getInvertedMultiplier';\n\nexport default function getDistanceForDirection(\n layout: Layout,\n gestureDirection: GestureDirection\n): number {\n const multiplier = getInvertedMultiplier(gestureDirection);\n\n switch (gestureDirection) {\n case 'vertical':\n case 'vertical-inverted':\n return layout.height * multiplier;\n case 'horizontal':\n case 'horizontal-inverted':\n return layout.width * multiplier;\n }\n}\n"]}
1
+ {"version":3,"names":["getInvertedMultiplier","getDistanceForDirection","layout","gestureDirection","multiplier","height","width"],"sources":["getDistanceForDirection.tsx"],"sourcesContent":["import type { GestureDirection, Layout } from '../types';\nimport getInvertedMultiplier from './getInvertedMultiplier';\n\nexport default function getDistanceForDirection(\n layout: Layout,\n gestureDirection: GestureDirection\n): number {\n const multiplier = getInvertedMultiplier(gestureDirection);\n\n switch (gestureDirection) {\n case 'vertical':\n case 'vertical-inverted':\n return layout.height * multiplier;\n case 'horizontal':\n case 'horizontal-inverted':\n return layout.width * multiplier;\n }\n}\n"],"mappings":"AACA,OAAOA,qBAAP,MAAkC,yBAAlC;AAEA,eAAe,SAASC,uBAAT,CACbC,MADa,EAEbC,gBAFa,EAGL;EACR,MAAMC,UAAU,GAAGJ,qBAAqB,CAACG,gBAAD,CAAxC;;EAEA,QAAQA,gBAAR;IACE,KAAK,UAAL;IACA,KAAK,mBAAL;MACE,OAAOD,MAAM,CAACG,MAAP,GAAgBD,UAAvB;;IACF,KAAK,YAAL;IACA,KAAK,qBAAL;MACE,OAAOF,MAAM,CAACI,KAAP,GAAeF,UAAtB;EANJ;AAQD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["getInvertedMultiplier.tsx"],"names":["I18nManager","getInvertedMultiplier","gestureDirection","getConstants","isRTL"],"mappings":"AAAA,SAASA,WAAT,QAA4B,cAA5B;AAIA,eAAe,SAASC,qBAAT,CACbC,gBADa,EAEL;AACR,UAAQA,gBAAR;AACE,SAAK,UAAL;AACE,aAAO,CAAP;;AACF,SAAK,mBAAL;AACE,aAAO,CAAC,CAAR;;AACF,SAAK,YAAL;AACE,aAAOF,WAAW,CAACG,YAAZ,GAA2BC,KAA3B,GAAmC,CAAC,CAApC,GAAwC,CAA/C;;AACF,SAAK,qBAAL;AACE,aAAOJ,WAAW,CAACG,YAAZ,GAA2BC,KAA3B,GAAmC,CAAnC,GAAuC,CAAC,CAA/C;AARJ;AAUD","sourcesContent":["import { I18nManager } from 'react-native';\n\nimport type { GestureDirection } from '../types';\n\nexport default function getInvertedMultiplier(\n gestureDirection: GestureDirection\n): 1 | -1 {\n switch (gestureDirection) {\n case 'vertical':\n return 1;\n case 'vertical-inverted':\n return -1;\n case 'horizontal':\n return I18nManager.getConstants().isRTL ? -1 : 1;\n case 'horizontal-inverted':\n return I18nManager.getConstants().isRTL ? 1 : -1;\n }\n}\n"]}
1
+ {"version":3,"names":["I18nManager","getInvertedMultiplier","gestureDirection","getConstants","isRTL"],"sources":["getInvertedMultiplier.tsx"],"sourcesContent":["import { I18nManager } from 'react-native';\n\nimport type { GestureDirection } from '../types';\n\nexport default function getInvertedMultiplier(\n gestureDirection: GestureDirection\n): 1 | -1 {\n switch (gestureDirection) {\n case 'vertical':\n return 1;\n case 'vertical-inverted':\n return -1;\n case 'horizontal':\n return I18nManager.getConstants().isRTL ? -1 : 1;\n case 'horizontal-inverted':\n return I18nManager.getConstants().isRTL ? 1 : -1;\n }\n}\n"],"mappings":"AAAA,SAASA,WAAT,QAA4B,cAA5B;AAIA,eAAe,SAASC,qBAAT,CACbC,gBADa,EAEL;EACR,QAAQA,gBAAR;IACE,KAAK,UAAL;MACE,OAAO,CAAP;;IACF,KAAK,mBAAL;MACE,OAAO,CAAC,CAAR;;IACF,KAAK,YAAL;MACE,OAAOF,WAAW,CAACG,YAAZ,GAA2BC,KAA3B,GAAmC,CAAC,CAApC,GAAwC,CAA/C;;IACF,KAAK,qBAAL;MACE,OAAOJ,WAAW,CAACG,YAAZ,GAA2BC,KAA3B,GAAmC,CAAnC,GAAuC,CAAC,CAA/C;EARJ;AAUD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["memoize.tsx"],"names":["memoize","callback","previous","result","hasChanged","dependencies","length","i","undefined"],"mappings":"AAAA,eAAe,SAASA,OAAT,CACbC,QADa,EAEb;AACA,MAAIC,QAAJ;AACA,MAAIC,MAAJ;AAEA,SAAO,YAAmC;AACxC,QAAIC,UAAU,GAAG,KAAjB;;AADwC,sCAA/BC,YAA+B;AAA/BA,MAAAA,YAA+B;AAAA;;AAGxC,QAAIH,QAAJ,EAAc;AACZ,UAAIA,QAAQ,CAACI,MAAT,KAAoBD,YAAY,CAACC,MAArC,EAA6C;AAC3CF,QAAAA,UAAU,GAAG,IAAb;AACD,OAFD,MAEO;AACL,aAAK,IAAIG,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,QAAQ,CAACI,MAA7B,EAAqCC,CAAC,EAAtC,EAA0C;AACxC,cAAIL,QAAQ,CAACK,CAAD,CAAR,KAAgBF,YAAY,CAACE,CAAD,CAAhC,EAAqC;AACnCH,YAAAA,UAAU,GAAG,IAAb;AACA;AACD;AACF;AACF;AACF,KAXD,MAWO;AACLA,MAAAA,UAAU,GAAG,IAAb;AACD;;AAEDF,IAAAA,QAAQ,GAAGG,YAAX;;AAEA,QAAID,UAAU,IAAID,MAAM,KAAKK,SAA7B,EAAwC;AACtCL,MAAAA,MAAM,GAAGF,QAAQ,CAAC,GAAGI,YAAJ,CAAjB;AACD;;AAED,WAAOF,MAAP;AACD,GAzBD;AA0BD","sourcesContent":["export default function memoize<Result, Deps extends readonly any[]>(\n callback: (...deps: Deps) => Result\n) {\n let previous: Deps | undefined;\n let result: Result | undefined;\n\n return (...dependencies: Deps): Result => {\n let hasChanged = false;\n\n if (previous) {\n if (previous.length !== dependencies.length) {\n hasChanged = true;\n } else {\n for (let i = 0; i < previous.length; i++) {\n if (previous[i] !== dependencies[i]) {\n hasChanged = true;\n break;\n }\n }\n }\n } else {\n hasChanged = true;\n }\n\n previous = dependencies;\n\n if (hasChanged || result === undefined) {\n result = callback(...dependencies);\n }\n\n return result;\n };\n}\n"]}
1
+ {"version":3,"names":["memoize","callback","previous","result","hasChanged","dependencies","length","i","undefined"],"sources":["memoize.tsx"],"sourcesContent":["export default function memoize<Result, Deps extends readonly any[]>(\n callback: (...deps: Deps) => Result\n) {\n let previous: Deps | undefined;\n let result: Result | undefined;\n\n return (...dependencies: Deps): Result => {\n let hasChanged = false;\n\n if (previous) {\n if (previous.length !== dependencies.length) {\n hasChanged = true;\n } else {\n for (let i = 0; i < previous.length; i++) {\n if (previous[i] !== dependencies[i]) {\n hasChanged = true;\n break;\n }\n }\n }\n } else {\n hasChanged = true;\n }\n\n previous = dependencies;\n\n if (hasChanged || result === undefined) {\n result = callback(...dependencies);\n }\n\n return result;\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,OAAT,CACbC,QADa,EAEb;EACA,IAAIC,QAAJ;EACA,IAAIC,MAAJ;EAEA,OAAO,YAAmC;IACxC,IAAIC,UAAU,GAAG,KAAjB;;IADwC,kCAA/BC,YAA+B;MAA/BA,YAA+B;IAAA;;IAGxC,IAAIH,QAAJ,EAAc;MACZ,IAAIA,QAAQ,CAACI,MAAT,KAAoBD,YAAY,CAACC,MAArC,EAA6C;QAC3CF,UAAU,GAAG,IAAb;MACD,CAFD,MAEO;QACL,KAAK,IAAIG,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,QAAQ,CAACI,MAA7B,EAAqCC,CAAC,EAAtC,EAA0C;UACxC,IAAIL,QAAQ,CAACK,CAAD,CAAR,KAAgBF,YAAY,CAACE,CAAD,CAAhC,EAAqC;YACnCH,UAAU,GAAG,IAAb;YACA;UACD;QACF;MACF;IACF,CAXD,MAWO;MACLA,UAAU,GAAG,IAAb;IACD;;IAEDF,QAAQ,GAAGG,YAAX;;IAEA,IAAID,UAAU,IAAID,MAAM,KAAKK,SAA7B,EAAwC;MACtCL,MAAM,GAAGF,QAAQ,CAAC,GAAGI,YAAJ,CAAjB;IACD;;IAED,OAAOF,MAAP;EACD,CAzBD;AA0BD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useCardAnimation.tsx"],"names":["React","CardAnimationContext","useCardAnimation","animation","useContext","undefined","Error"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,oBAAP,MAAiC,wBAAjC;AAEA,eAAe,SAASC,gBAAT,GAA4B;AACzC,QAAMC,SAAS,GAAGH,KAAK,CAACI,UAAN,CAAiBH,oBAAjB,CAAlB;;AAEA,MAAIE,SAAS,KAAKE,SAAlB,EAA6B;AAC3B,UAAM,IAAIC,KAAJ,CACJ,4EADI,CAAN;AAGD;;AAED,SAAOH,SAAP;AACD","sourcesContent":["import * as React from 'react';\n\nimport CardAnimationContext from './CardAnimationContext';\n\nexport default function useCardAnimation() {\n const animation = React.useContext(CardAnimationContext);\n\n if (animation === undefined) {\n throw new Error(\n \"Couldn't find values for card animation. Are you inside a screen in Stack?\"\n );\n }\n\n return animation;\n}\n"]}
1
+ {"version":3,"names":["React","CardAnimationContext","useCardAnimation","animation","useContext","undefined","Error"],"sources":["useCardAnimation.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport CardAnimationContext from './CardAnimationContext';\n\nexport default function useCardAnimation() {\n const animation = React.useContext(CardAnimationContext);\n\n if (animation === undefined) {\n throw new Error(\n \"Couldn't find values for card animation. Are you inside a screen in Stack?\"\n );\n }\n\n return animation;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,oBAAP,MAAiC,wBAAjC;AAEA,eAAe,SAASC,gBAAT,GAA4B;EACzC,MAAMC,SAAS,GAAGH,KAAK,CAACI,UAAN,CAAiBH,oBAAjB,CAAlB;;EAEA,IAAIE,SAAS,KAAKE,SAAlB,EAA6B;IAC3B,MAAM,IAAIC,KAAJ,CACJ,4EADI,CAAN;EAGD;;EAED,OAAOH,SAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useGestureHandlerRef.tsx"],"names":["React","StackGestureRefContext","useGestureHandlerRef","ref","useContext","undefined","Error"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,sBAAP,MAAmC,4BAAnC;AAEA,eAAe,SAASC,oBAAT,GAAgC;AAC7C,QAAMC,GAAG,GAAGH,KAAK,CAACI,UAAN,CAAiBH,sBAAjB,CAAZ;;AAEA,MAAIE,GAAG,KAAKE,SAAZ,EAAuB;AACrB,UAAM,IAAIC,KAAJ,CACJ,4EADI,CAAN;AAGD;;AAED,SAAOH,GAAP;AACD","sourcesContent":["import * as React from 'react';\n\nimport StackGestureRefContext from './GestureHandlerRefContext';\n\nexport default function useGestureHandlerRef() {\n const ref = React.useContext(StackGestureRefContext);\n\n if (ref === undefined) {\n throw new Error(\n \"Couldn't find a ref for gesture handler. Are you inside a screen in Stack?\"\n );\n }\n\n return ref;\n}\n"]}
1
+ {"version":3,"names":["React","StackGestureRefContext","useGestureHandlerRef","ref","useContext","undefined","Error"],"sources":["useGestureHandlerRef.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport StackGestureRefContext from './GestureHandlerRefContext';\n\nexport default function useGestureHandlerRef() {\n const ref = React.useContext(StackGestureRefContext);\n\n if (ref === undefined) {\n throw new Error(\n \"Couldn't find a ref for gesture handler. Are you inside a screen in Stack?\"\n );\n }\n\n return ref;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,sBAAP,MAAmC,4BAAnC;AAEA,eAAe,SAASC,oBAAT,GAAgC;EAC7C,MAAMC,GAAG,GAAGH,KAAK,CAACI,UAAN,CAAiBH,sBAAjB,CAAZ;;EAEA,IAAIE,GAAG,KAAKE,SAAZ,EAAuB;IACrB,MAAM,IAAIC,KAAJ,CACJ,4EADI,CAAN;EAGD;;EAED,OAAOH,GAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["useKeyboardManager.tsx"],"names":["React","Keyboard","TextInput","useKeyboardManager","isEnabled","previouslyFocusedTextInputRef","useRef","undefined","startTimestampRef","keyboardTimeoutRef","clearKeyboardTimeout","useCallback","current","clearTimeout","onPageChangeStart","input","State","currentlyFocusedInput","blur","Date","now","onPageChangeConfirm","force","dismiss","onPageChangeCancel","setTimeout","focus","useEffect"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAAwBC,QAAxB,EAAkCC,SAAlC,QAAmD,cAAnD;AAIA,eAAe,SAASC,kBAAT,CAA4BC,SAA5B,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cesContent":["import * as React from 'react';\nimport { HostComponent, Keyboard, TextInput } from 'react-native';\n\ntype InputRef = React.ElementRef<HostComponent<unknown>> | undefined;\n\nexport default function useKeyboardManager(isEnabled: () => boolean) {\n // Numeric id of the previously focused text input\n // When a gesture didn't change the tab, we can restore the focused input with this\n const previouslyFocusedTextInputRef = React.useRef<InputRef>(undefined);\n const startTimestampRef = React.useRef<number>(0);\n const keyboardTimeoutRef = React.useRef<any>();\n\n const clearKeyboardTimeout = React.useCallback(() => {\n if (keyboardTimeoutRef.current !== undefined) {\n clearTimeout(keyboardTimeoutRef.current);\n keyboardTimeoutRef.current = undefined;\n }\n }, []);\n\n const onPageChangeStart = React.useCallback(() => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n const input: InputRef = TextInput.State.currentlyFocusedInput();\n\n // When a page change begins, blur the currently focused input\n input?.blur();\n\n // Store the id of this input so we can refocus it if change was cancelled\n previouslyFocusedTextInputRef.current = input;\n\n // Store timestamp for touch start\n startTimestampRef.current = Date.now();\n }, [clearKeyboardTimeout, isEnabled]);\n\n const onPageChangeConfirm = React.useCallback(\n (force: boolean) => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n if (force) {\n // Always dismiss input, even if we don't have a ref to it\n // We might not have the ref if onPageChangeStart was never called\n // This can happen if page change was not from a gesture\n Keyboard.dismiss();\n } else {\n const input = previouslyFocusedTextInputRef.current;\n\n // Dismiss the keyboard only if an input was a focused before\n // This makes sure we don't dismiss input on going back and focusing an input\n input?.blur();\n }\n\n // Cleanup the ID on successful page change\n previouslyFocusedTextInputRef.current = undefined;\n },\n [clearKeyboardTimeout, isEnabled]\n );\n\n const onPageChangeCancel = React.useCallback(() => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n // The page didn't change, we should restore the focus of text input\n const input = previouslyFocusedTextInputRef.current;\n\n if (input) {\n // If the interaction was super short we should make sure keyboard won't hide again.\n\n // Too fast input refocus will result only in keyboard flashing on screen and hiding right away.\n // During first ~100ms keyboard will be dismissed no matter what,\n // so we have to make sure it won't interrupt input refocus logic.\n // That's why when the interaction is shorter than 100ms we add delay so it won't hide once again.\n // Subtracting timestamps makes us sure the delay is executed only when needed.\n if (Date.now() - startTimestampRef.current < 100) {\n keyboardTimeoutRef.current = setTimeout(() => {\n input?.focus();\n previouslyFocusedTextInputRef.current = undefined;\n }, 100);\n } else {\n input?.focus();\n previouslyFocusedTextInputRef.current = undefined;\n }\n }\n }, [clearKeyboardTimeout, isEnabled]);\n\n React.useEffect(() => {\n return () => clearKeyboardTimeout();\n }, [clearKeyboardTimeout]);\n\n return {\n onPageChangeStart,\n onPageChangeConfirm,\n onPageChangeCancel,\n };\n}\n"]}
1
+ {"version":3,"names":["React","Keyboard","TextInput","useKeyboardManager","isEnabled","previouslyFocusedTextInputRef","useRef","undefined","startTimestampRef","keyboardTimeoutRef","clearKeyboardTimeout","useCallback","current","clearTimeout","onPageChangeStart","input","State","currentlyFocusedInput","blur","Date","now","onPageChangeConfirm","force","dismiss","onPageChangeCancel","setTimeout","focus","useEffect"],"sources":["useKeyboardManager.tsx"],"sourcesContent":["import * as React from 'react';\nimport { HostComponent, Keyboard, TextInput } from 'react-native';\n\ntype InputRef = React.ElementRef<HostComponent<unknown>> | undefined;\n\nexport default function useKeyboardManager(isEnabled: () => boolean) {\n // Numeric id of the previously focused text input\n // When a gesture didn't change the tab, we can restore the focused input with this\n const previouslyFocusedTextInputRef = React.useRef<InputRef>(undefined);\n const startTimestampRef = React.useRef<number>(0);\n const keyboardTimeoutRef = React.useRef<any>();\n\n const clearKeyboardTimeout = React.useCallback(() => {\n if (keyboardTimeoutRef.current !== undefined) {\n clearTimeout(keyboardTimeoutRef.current);\n keyboardTimeoutRef.current = undefined;\n }\n }, []);\n\n const onPageChangeStart = React.useCallback(() => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n const input: InputRef = TextInput.State.currentlyFocusedInput();\n\n // When a page change begins, blur the currently focused input\n input?.blur();\n\n // Store the id of this input so we can refocus it if change was cancelled\n previouslyFocusedTextInputRef.current = input;\n\n // Store timestamp for touch start\n startTimestampRef.current = Date.now();\n }, [clearKeyboardTimeout, isEnabled]);\n\n const onPageChangeConfirm = React.useCallback(\n (force: boolean) => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n if (force) {\n // Always dismiss input, even if we don't have a ref to it\n // We might not have the ref if onPageChangeStart was never called\n // This can happen if page change was not from a gesture\n Keyboard.dismiss();\n } else {\n const input = previouslyFocusedTextInputRef.current;\n\n // Dismiss the keyboard only if an input was a focused before\n // This makes sure we don't dismiss input on going back and focusing an input\n input?.blur();\n }\n\n // Cleanup the ID on successful page change\n previouslyFocusedTextInputRef.current = undefined;\n },\n [clearKeyboardTimeout, isEnabled]\n );\n\n const onPageChangeCancel = React.useCallback(() => {\n if (!isEnabled()) {\n return;\n }\n\n clearKeyboardTimeout();\n\n // The page didn't change, we should restore the focus of text input\n const input = previouslyFocusedTextInputRef.current;\n\n if (input) {\n // If the interaction was super short we should make sure keyboard won't hide again.\n\n // Too fast input refocus will result only in keyboard flashing on screen and hiding right away.\n // During first ~100ms keyboard will be dismissed no matter what,\n // so we have to make sure it won't interrupt input refocus logic.\n // That's why when the interaction is shorter than 100ms we add delay so it won't hide once again.\n // Subtracting timestamps makes us sure the delay is executed only when needed.\n if (Date.now() - startTimestampRef.current < 100) {\n keyboardTimeoutRef.current = setTimeout(() => {\n input?.focus();\n previouslyFocusedTextInputRef.current = undefined;\n }, 100);\n } else {\n input?.focus();\n previouslyFocusedTextInputRef.current = undefined;\n }\n }\n }, [clearKeyboardTimeout, isEnabled]);\n\n React.useEffect(() => {\n return () => clearKeyboardTimeout();\n }, [clearKeyboardTimeout]);\n\n return {\n onPageChangeStart,\n onPageChangeConfirm,\n onPageChangeCancel,\n };\n}\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAAwBC,QAAxB,EAA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Ad","sourcesContent":["export * from './GestureHandlerNative';\n"]}
1
+ {"version":3,"names":[],"sources":["GestureHandler.android.tsx"],"sourcesContent":["export * from './GestureHandlerNative';\n"],"mappings":"AAAA,cAAc,wBAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["GestureHandler.ios.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAd","sourcesContent":["export * from './GestureHandlerNative';\n"]}
1
+ {"version":3,"names":[],"sources":["GestureHandler.ios.tsx"],"sourcesContent":["export * from './GestureHandlerNative';\n"],"mappings":"AAAA,cAAc,wBAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["GestureHandler.tsx"],"names":["React","View","Dummy","children","PanGestureHandler","GestureHandlerRootView","GestureState","UNDETERMINED","FAILED","BEGAN","CANCELLED","ACTIVE","END"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,QAAqB,cAArB;;AAGA,MAAMC,KAAU,GAAG;AAAA,MAAC;AAAEC,IAAAA;AAAF,GAAD;AAAA,sBACjB,0CAAGA,QAAH,CADiB;AAAA,CAAnB;;AAIA,OAAO,MAAMC,iBAAiB,GAC5BF,KADK;AAGP,OAAO,MAAMG,sBAAsB,GAAGJ,IAA/B;AAEP,OAAO,MAAMK,YAAY,GAAG;AAC1BC,EAAAA,YAAY,EAAE,CADY;AAE1BC,EAAAA,MAAM,EAAE,CAFkB;AAG1BC,EAAAA,KAAK,EAAE,CAHmB;AAI1BC,EAAAA,SAAS,EAAE,CAJe;AAK1BC,EAAAA,MAAM,EAAE,CALkB;AAM1BC,EAAAA,GAAG,EAAE;AANqB,CAArB","sourcesContent":["import * as React from 'react';\nimport { View } from 'react-native';\nimport type { PanGestureHandlerProperties } from 'react-native-gesture-handler';\n\nconst Dummy: any = ({ children }: { children: React.ReactNode }) => (\n <>{children}</>\n);\n\nexport const PanGestureHandler =\n Dummy as React.ComponentType<PanGestureHandlerProperties>;\n\nexport const GestureHandlerRootView = View;\n\nexport const GestureState = {\n UNDETERMINED: 0,\n FAILED: 1,\n BEGAN: 2,\n CANCELLED: 3,\n ACTIVE: 4,\n END: 5,\n};\n\nexport type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';\n"]}
1
+ {"version":3,"names":["React","View","Dummy","children","PanGestureHandler","GestureHandlerRootView","GestureState","UNDETERMINED","FAILED","BEGAN","CANCELLED","ACTIVE","END"],"sources":["GestureHandler.tsx"],"sourcesContent":["import * as React from 'react';\nimport { View } from 'react-native';\nimport type { PanGestureHandlerProperties } from 'react-native-gesture-handler';\n\nconst Dummy: any = ({ children }: { children: React.ReactNode }) => (\n <>{children}</>\n);\n\nexport const PanGestureHandler =\n Dummy as React.ComponentType<PanGestureHandlerProperties>;\n\nexport const GestureHandlerRootView = View;\n\nexport const GestureState = {\n UNDETERMINED: 0,\n FAILED: 1,\n BEGAN: 2,\n CANCELLED: 3,\n ACTIVE: 4,\n END: 5,\n};\n\nexport type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';\n"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,QAAqB,cAArB;;AAGA,MAAMC,KAAU,GAAG;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,oBACjB,0CAAGA,QAAH,CADiB;AAAA,CAAnB;;AAIA,OAAO,MAAMC,iBAAiB,GAC5BF,KADK;AAGP,OAAO,MAAMG,sBAAsB,GAAGJ,IAA/B;AAEP,OAAO,MAAMK,YAAY,GAAG;EAC1BC,YAAY,EAAE,CADY;EAE1BC,MAAM,EAAE,CAFkB;EAG1BC,KAAK,EAAE,CAHmB;EAI1BC,SAAS,EAAE,CAJe;EAK1BC,MAAM,EAAE,CALkB;EAM1BC,GAAG,EAAE;AANqB,CAArB"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import * as React from 'react';
4
4
  import { PanGestureHandler as PanGestureHandlerNative } from 'react-native-gesture-handler';
@@ -1 +1 @@
1
- {"version":3,"sources":["GestureHandlerNative.tsx"],"names":["React","PanGestureHandler","PanGestureHandlerNative","GestureHandlerRefContext","props","gestureRef","useRef","GestureHandlerRootView","State","GestureState"],"mappings":";;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SACEC,iBAAiB,IAAIC,uBADvB,QAGO,8BAHP;AAKA,OAAOC,wBAAP,MAAqC,mCAArC;AAEA,OAAO,SAASF,iBAAT,CAA2BG,KAA3B,EAA+D;AACpE,QAAMC,UAAU,GAAGL,KAAK,CAACM,MAAN,CAAsC,IAAtC,CAAnB;AAEA,sBACE,oBAAC,wBAAD,CAA0B,QAA1B;AAAmC,IAAA,KAAK,EAAED;AAA1C,kBACE,oBAAC,uBAAD,eAA6BD,KAA7B;AAAoC,IAAA,GAAG,EAAEC;AAAzC,KADF,CADF;AAKD;AAGD,SACEE,sBADF,EAEEC,KAAK,IAAIC,YAFX,QAGO,8BAHP","sourcesContent":["import * as React from 'react';\nimport {\n PanGestureHandler as PanGestureHandlerNative,\n PanGestureHandlerProperties,\n} from 'react-native-gesture-handler';\n\nimport GestureHandlerRefContext from '../utils/GestureHandlerRefContext';\n\nexport function PanGestureHandler(props: PanGestureHandlerProperties) {\n const gestureRef = React.useRef<PanGestureHandlerNative>(null);\n\n return (\n <GestureHandlerRefContext.Provider value={gestureRef}>\n <PanGestureHandlerNative {...props} ref={gestureRef} />\n </GestureHandlerRefContext.Provider>\n );\n}\n\nexport type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';\nexport {\n GestureHandlerRootView,\n State as GestureState,\n} from 'react-native-gesture-handler';\n"]}
1
+ {"version":3,"names":["React","PanGestureHandler","PanGestureHandlerNative","GestureHandlerRefContext","props","gestureRef","useRef","GestureHandlerRootView","State","GestureState"],"sources":["GestureHandlerNative.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n PanGestureHandler as PanGestureHandlerNative,\n PanGestureHandlerProperties,\n} from 'react-native-gesture-handler';\n\nimport GestureHandlerRefContext from '../utils/GestureHandlerRefContext';\n\nexport function PanGestureHandler(props: PanGestureHandlerProperties) {\n const gestureRef = React.useRef<PanGestureHandlerNative>(null);\n\n return (\n <GestureHandlerRefContext.Provider value={gestureRef}>\n <PanGestureHandlerNative {...props} ref={gestureRef} />\n </GestureHandlerRefContext.Provider>\n );\n}\n\nexport type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';\nexport {\n GestureHandlerRootView,\n State as GestureState,\n} from 'react-native-gesture-handler';\n"],"mappings":";;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SACEC,iBAAiB,IAAIC,uBADvB,QAGO,8BAHP;AAKA,OAAOC,wBAAP,MAAqC,mCAArC;AAEA,OAAO,SAASF,iBAAT,CAA2BG,KAA3B,EAA+D;EACpE,MAAMC,UAAU,GAAGL,KAAK,CAACM,MAAN,CAAsC,IAAtC,CAAnB;EAEA,oBACE,oBAAC,wBAAD,CAA0B,QAA1B;IAAmC,KAAK,EAAED;EAA1C,gBACE,oBAAC,uBAAD,eAA6BD,KAA7B;IAAoC,GAAG,EAAEC;EAAzC,GADF,CADF;AAKD;AAGD,SACEE,sBADF,EAEEC,KAAK,IAAIC,YAFX,QAGO,8BAHP"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import { getHeaderTitle, HeaderShownContext } from '@react-navigation/elements';
4
4
  import { StackActions } from '@react-navigation/native';
@@ -1 +1 @@
1
- {"version":3,"sources":["Header.tsx"],"names":["getHeaderTitle","HeaderShownContext","StackActions","React","useSafeAreaInsets","debounce","ModalPresentationContext","HeaderSegment","memo","Header","back","layout","progress","options","route","navigation","styleInterpolator","insets","previousTitle","headerBackTitle","undefined","title","goBack","useCallback","isFocused","canGoBack","dispatch","pop","source","key","isModal","useContext","isParentHeaderShown","statusBarHeight","headerStatusBarHeight","top","name"],"mappings":";;AAAA,SAASA,cAAT,EAAyBC,kBAAzB,QAAmD,4BAAnD;AACA,SAASC,YAAT,QAA6B,0BAA7B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,iBAAT,QAAkC,gCAAlC;AAGA,OAAOC,QAAP,MAAqB,sBAArB;AACA,OAAOC,wBAAP,MAAqC,sCAArC;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AAEA,4BAAeJ,KAAK,CAACK,IAAN,CAAW,SAASC,MAAT,OAQL;AAAA,MARqB;AACxCC,IAAAA,IADwC;AAExCC,IAAAA,MAFwC;AAGxCC,IAAAA,QAHwC;AAIxCC,IAAAA,OAJwC;AAKxCC,IAAAA,KALwC;AAMxCC,IAAAA,UANwC;AAOxCC,IAAAA;AAPwC,GAQrB;AACnB,QAAMC,MAAM,GAAGb,iBAAiB,EAAhC;AAEA,MAAIc,aAAJ,CAHmB,CAKnB;AACA;;AACA,MAAIL,OAAO,CAACM,eAAR,KAA4BC,SAAhC,EAA2C;AACzCF,IAAAA,aAAa,GAAGL,OAAO,CAACM,eAAxB;AACD,GAFD,MAEO,IAAIT,IAAJ,EAAU;AACfQ,IAAAA,aAAa,GAAGR,IAAI,CAACW,KAArB;AACD,GAXkB,CAanB;;;AACA,QAAMC,MAAM,GAAGnB,KAAK,CAACoB,WAAN,CACblB,QAAQ,CAAC,MAAM;AACb,QAAIU,UAAU,CAACS,SAAX,MAA0BT,UAAU,CAACU,SAAX,EAA9B,EAAsD;AACpDV,MAAAA,UAAU,CAACW,QAAX,CAAoB,EAClB,GAAGxB,YAAY,CAACyB,GAAb,EADe;AAElBC,QAAAA,MAAM,EAAEd,KAAK,CAACe;AAFI,OAApB;AAID;AACF,GAPO,EAOL,EAPK,CADK,EASb,CAACd,UAAD,EAAaD,KAAK,CAACe,GAAnB,CATa,CAAf;AAYA,QAAMC,OAAO,GAAG3B,KAAK,CAAC4B,UAAN,CAAiBzB,wBAAjB,CAAhB;AACA,QAAM0B,mBAAmB,GAAG7B,KAAK,CAAC4B,UAAN,CAAiB9B,kBAAjB,CAA5B;AAEA,QAAMgC,eAAe,GACnBpB,OAAO,CAACqB,qBAAR,KAAkCd,SAAlC,GACIP,OAAO,CAACqB,qBADZ,GAEIJ,OAAO,IAAIE,mBAAX,GACA,CADA,GAEAf,MAAM,CAACkB,GALb;AAOA,sBACE,oBAAC,aAAD,eACMtB,OADN;AAEE,IAAA,KAAK,EAAEb,cAAc,CAACa,OAAD,EAAUC,KAAK,CAACsB,IAAhB,CAFvB;AAGE,IAAA,QAAQ,EAAExB,QAHZ;AAIE,IAAA,MAAM,EAAED,MAJV;AAKE,IAAA,KAAK,EAAEmB,OALT;AAME,IAAA,eAAe,EACbjB,OAAO,CAACM,eAAR,KAA4BC,SAA5B,GACIP,OAAO,CAACM,eADZ,GAEID,aATR;AAWE,IAAA,qBAAqB,EAAEe,eAXzB;AAYE,IAAA,QAAQ,EAAEvB,IAAI,GAAGY,MAAH,GAAYF,SAZ5B;AAaE,IAAA,iBAAiB,EAAEJ;AAbrB,KADF;AAiBD,CA7Dc,CAAf","sourcesContent":["import { getHeaderTitle, HeaderShownContext } from '@react-navigation/elements';\nimport { StackActions } from '@react-navigation/native';\nimport * as React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport type { StackHeaderProps } from '../../types';\nimport debounce from '../../utils/debounce';\nimport ModalPresentationContext from '../../utils/ModalPresentationContext';\nimport HeaderSegment from './HeaderSegment';\n\nexport default React.memo(function Header({\n back,\n layout,\n progress,\n options,\n route,\n navigation,\n styleInterpolator,\n}: StackHeaderProps) {\n const insets = useSafeAreaInsets();\n\n let previousTitle;\n\n // The label for the left back button shows the title of the previous screen\n // If a custom label is specified, we use it, otherwise use previous screen's title\n if (options.headerBackTitle !== undefined) {\n previousTitle = options.headerBackTitle;\n } else if (back) {\n previousTitle = back.title;\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const goBack = React.useCallback(\n debounce(() => {\n if (navigation.isFocused() && navigation.canGoBack()) {\n navigation.dispatch({\n ...StackActions.pop(),\n source: route.key,\n });\n }\n }, 50),\n [navigation, route.key]\n );\n\n const isModal = React.useContext(ModalPresentationContext);\n const isParentHeaderShown = React.useContext(HeaderShownContext);\n\n const statusBarHeight =\n options.headerStatusBarHeight !== undefined\n ? options.headerStatusBarHeight\n : isModal || isParentHeaderShown\n ? 0\n : insets.top;\n\n return (\n <HeaderSegment\n {...options}\n title={getHeaderTitle(options, route.name)}\n progress={progress}\n layout={layout}\n modal={isModal}\n headerBackTitle={\n options.headerBackTitle !== undefined\n ? options.headerBackTitle\n : previousTitle\n }\n headerStatusBarHeight={statusBarHeight}\n onGoBack={back ? goBack : undefined}\n styleInterpolator={styleInterpolator}\n />\n );\n});\n"]}
1
+ {"version":3,"names":["getHeaderTitle","HeaderShownContext","StackActions","React","useSafeAreaInsets","debounce","ModalPresentationContext","HeaderSegment","memo","Header","back","layout","progress","options","route","navigation","styleInterpolator","insets","previousTitle","headerBackTitle","undefined","title","goBack","useCallback","isFocused","canGoBack","dispatch","pop","source","key","isModal","useContext","isParentHeaderShown","statusBarHeight","headerStatusBarHeight","top","name"],"sources":["Header.tsx"],"sourcesContent":["import { getHeaderTitle, HeaderShownContext } from '@react-navigation/elements';\nimport { StackActions } from '@react-navigation/native';\nimport * as React from 'react';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport type { StackHeaderProps } from '../../types';\nimport debounce from '../../utils/debounce';\nimport ModalPresentationContext from '../../utils/ModalPresentationContext';\nimport HeaderSegment from './HeaderSegment';\n\nexport default React.memo(function Header({\n back,\n layout,\n progress,\n options,\n route,\n navigation,\n styleInterpolator,\n}: StackHeaderProps) {\n const insets = useSafeAreaInsets();\n\n let previousTitle;\n\n // The label for the left back button shows the title of the previous screen\n // If a custom label is specified, we use it, otherwise use previous screen's title\n if (options.headerBackTitle !== undefined) {\n previousTitle = options.headerBackTitle;\n } else if (back) {\n previousTitle = back.title;\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const goBack = React.useCallback(\n debounce(() => {\n if (navigation.isFocused() && navigation.canGoBack()) {\n navigation.dispatch({\n ...StackActions.pop(),\n source: route.key,\n });\n }\n }, 50),\n [navigation, route.key]\n );\n\n const isModal = React.useContext(ModalPresentationContext);\n const isParentHeaderShown = React.useContext(HeaderShownContext);\n\n const statusBarHeight =\n options.headerStatusBarHeight !== undefined\n ? options.headerStatusBarHeight\n : isModal || isParentHeaderShown\n ? 0\n : insets.top;\n\n return (\n <HeaderSegment\n {...options}\n title={getHeaderTitle(options, route.name)}\n progress={progress}\n layout={layout}\n modal={isModal}\n headerBackTitle={\n options.headerBackTitle !== undefined\n ? options.headerBackTitle\n : previousTitle\n }\n headerStatusBarHeight={statusBarHeight}\n onGoBack={back ? goBack : undefined}\n styleInterpolator={styleInterpolator}\n />\n );\n});\n"],"mappings":";;AAAA,SAASA,cAAT,EAAyBC,kBAAzB,QAAmD,4BAAnD;AACA,SAASC,YAAT,QAA6B,0BAA7B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,iBAAT,QAAkC,gCAAlC;AAGA,OAAOC,QAAP,MAAqB,sBAArB;AACA,OAAOC,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AAUC,KAAK,CAACsB,IAAhB,CAFvB;IAGE,QAAQ,EAAExB,QAHZ;IAIE,MAAM,EAAED,MAJV;IAKE,KAAK,EAAEmB,OALT;IAME,eAAe,EACbjB,OAAO,CAACM,eAAR,KAA4BC,SAA5B,GACIP,OAAO,CAACM,eADZ,GAEID,aATR;IAWE,qBAAqB,EAAEe,eAXzB;IAYE,QAAQ,EAAEvB,IAAI,GAAGY,MAAH,GAAYF,SAZ5B;IAaE,iBAAiB,EAAEJ;EAbrB,GADF;AAiBD,CA7Dc,CAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["HeaderContainer.tsx"],"names":["getHeaderTitle","HeaderBackContext","NavigationContext","NavigationRouteContext","React","Animated","StyleSheet","View","forNoAnimation","forSlideLeft","forSlideRight","forSlideUp","Header","HeaderContainer","mode","scenes","layout","getPreviousScene","getFocusedRoute","onContentHeightChange","style","focusedRoute","parentHeaderBack","useContext","slice","map","scene","i","self","length","header","headerMode","headerShown","headerTransparent","headerStyleInterpolator","descriptor","options","isFocused","key","route","previousScene","headerBack","title","name","previousDescriptor","nextDescriptor","previousHeaderShown","previousHeaderMode","nextHeaderlessScene","find","currentHeaderShown","currentHeaderMode","gestureDirection","nextHeaderlessGestureDirection","isHeaderStatic","props","back","progress","navigation","styleInterpolator","e","height","nativeEvent","undefined","styles","create","position","top","left","right"],"mappings":"AAAA,SAASA,cAAT,EAAyBC,iBAAzB,QAAkD,4BAAlD;AACA,SACEC,iBADF,EAEEC,sBAFF,QAKO,0BALP;AAMA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,QAAT,EAA8BC,UAA9B,EAA0CC,IAA1C,QAAiE,cAAjE;AAEA,SACEC,cADF,EAEEC,YAFF,EAGEC,aAHF,EAIEC,UAJF,QAKO,kDALP;AAaA,OAAOC,MAAP,MAAmB,UAAnB;AAeA,eAAe,SAASC,eAAT,OAQL;AAAA,MAR8B;AACtCC,IAAAA,IADsC;AAEtCC,IAAAA,MAFsC;AAG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AAG,MAAH,GAAY,qBAhBzB;AAkBE,MAAA,KAAK,EACH;AACA;AACCvB,MAAAA,IAAI,KAAK,OAAT,IAAoB,CAACuB,SAAtB,IAAoCJ,iBAApC,GACI+B,MAAM,CAAClC,MADX,GAEI;AAvBR,OA0BGA,MAAM,KAAKiC,SAAX,GAAuBjC,MAAM,CAACyB,KAAD,CAA7B,gBAAuC,oBAAC,MAAD,EAAYA,KAAZ,CA1B1C,CADF,CAJF,CADF;AAqCD,GAzHA,CADH,CADF;AA8HD;AAED,MAAMS,MAAM,GAAG1D,UAAU,CAAC2D,MAAX,CAAkB;AAC/BnC,EAAAA,MAAM,EAAE;AACNoC,IAAAA,QAAQ,EAAE,UADJ;AAENC,IAAAA,GAAG,EAAE,CAFC;AAGNC,IAAAA,IAAI,EAAE,CAHA;AAINC,IAAAA,KAAK,EAAE;AAJD;AADuB,CAAlB,CAAf","sourcesContent":["import { getHeaderTitle, HeaderBackContext } from '@react-navigation/elements';\nimport {\n NavigationContext,\n NavigationRouteContext,\n ParamListBase,\n Route,\n} from '@react-navigation/native';\nimport * as React from 'react';\nimport { Animated, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport {\n forNoAnimation,\n forSlideLeft,\n forSlideRight,\n forSlideUp,\n} from '../../TransitionConfigs/HeaderStyleInterpolators';\nimport type {\n Layout,\n Scene,\n StackHeaderMode,\n StackHeaderProps,\n StackNavigationProp,\n} from '../../types';\nimport Header from './Header';\n\nexport type Props = {\n mode: StackHeaderMode;\n layout: Layout;\n scenes: (Scene | undefined)[];\n getPreviousScene: (props: { route: Route<string> }) => Scene | undefined;\n getFocusedRoute: () => Route<string>;\n onContentHeightChange?: (props: {\n route: Route<string>;\n height: number;\n }) => void;\n style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n};\n\nexport default function HeaderContainer({\n mode,\n scenes,\n layout,\n getPreviousScene,\n getFocusedRoute,\n onContentHeightChange,\n style,\n}: Props) {\n const focusedRoute = getFocusedRoute();\n const parentHeaderBack = React.useContext(HeaderBackContext);\n\n return (\n <Animated.View pointerEvents=\"box-none\" style={style}>\n {scenes.slice(-3).map((scene, i, self) => {\n if ((mode === 'screen' && i !== self.length - 1) || !scene) {\n return null;\n }\n\n const {\n header,\n headerMode,\n headerShown = true,\n headerTransparent,\n headerStyleInterpolator,\n } = scene.descriptor.options;\n\n if (headerMode !== mode || !headerShown) {\n return null;\n }\n\n const isFocused = focusedRoute.key === scene.descriptor.route.key;\n const previousScene = getPreviousScene({\n route: scene.descriptor.route,\n });\n\n let headerBack = parentHeaderBack;\n\n if (previousScene) {\n const { options, route } = previousScene.descriptor;\n\n headerBack = previousScene\n ? { title: getHeaderTitle(options, route.name) }\n : parentHeaderBack;\n }\n\n // If the screen is next to a headerless screen, we need to make the header appear static\n // This makes the header look like it's moving with the screen\n const previousDescriptor = self[i - 1]?.descriptor;\n const nextDescriptor = self[i + 1]?.descriptor;\n\n const {\n headerShown: previousHeaderShown = true,\n headerMode: previousHeaderMode,\n } = previousDescriptor?.options || {};\n\n // If any of the next screens don't have a header or header is part of the screen\n // Then we need to move this header offscreen so that it doesn't cover it\n const nextHeaderlessScene = self.slice(i + 1).find((scene) => {\n const {\n headerShown: currentHeaderShown = true,\n headerMode: currentHeaderMode,\n } = scene?.descriptor.options || {};\n\n return currentHeaderShown === false || currentHeaderMode === 'screen';\n });\n\n const { gestureDirection: nextHeaderlessGestureDirection } =\n nextHeaderlessScene?.descriptor.options || {};\n\n const isHeaderStatic =\n ((previousHeaderShown === false || previousHeaderMode === 'screen') &&\n // We still need to animate when coming back from next scene\n // A hacky way to check this is if the next scene exists\n !nextDescriptor) ||\n nextHeaderlessScene;\n\n const props: StackHeaderProps = {\n layout,\n back: headerBack,\n progress: scene.progress,\n options: scene.descriptor.options,\n route: scene.descriptor.route,\n navigation: scene.descriptor\n .navigation as StackNavigationProp<ParamListBase>,\n styleInterpolator:\n mode === 'float'\n ? isHeaderStatic\n ? nextHeaderlessGestureDirection === 'vertical' ||\n nextHeaderlessGestureDirection === 'vertical-inverted'\n ? forSlideUp\n : nextHeaderlessGestureDirection === 'horizontal-inverted'\n ? forSlideRight\n : forSlideLeft\n : headerStyleInterpolator\n : forNoAnimation,\n };\n\n return (\n <NavigationContext.Provider\n key={scene.descriptor.route.key}\n value={scene.descriptor.navigation}\n >\n <NavigationRouteContext.Provider value={scene.descriptor.route}>\n <View\n onLayout={\n onContentHeightChange\n ? (e) => {\n const { height } = e.nativeEvent.layout;\n\n onContentHeightChange({\n route: scene.descriptor.route,\n height,\n });\n }\n : undefined\n }\n pointerEvents={isFocused ? 'box-none' : 'none'}\n accessibilityElementsHidden={!isFocused}\n importantForAccessibility={\n isFocused ? 'auto' : 'no-hide-descendants'\n }\n style={\n // Avoid positioning the focused header absolutely\n // Otherwise accessibility tools don't seem to be able to find it\n (mode === 'float' && !isFocused) || headerTransparent\n ? styles.header\n : null\n }\n >\n {header !== undefined ? header(props) : <Header {...props} />}\n </View>\n </NavigationRouteContext.Provider>\n </NavigationContext.Provider>\n );\n })}\n </Animated.View>\n );\n}\n\nconst styles = StyleSheet.create({\n header: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n },\n});\n"]}
1
+ {"version":3,"names":["getHeaderTitle","HeaderBackContext","NavigationContext","NavigationRouteContext","React","Animated","StyleSheet","View","forNoAnimation","forSlideLeft","forSlideRight","forSlideUp","Header","HeaderContainer","mode","scenes","layout","getPreviousScene","getFocusedRoute","onContentHeightChange","style","focusedRoute","parentHeaderBack","useContext","slice","map","scene","i","self","length","header","headerMode","headerShown","headerTransparent","headerStyleInterpolator","descriptor","options","isFocused","key","route","previousScene","headerBack","title","name","previousDescriptor","nextDescriptor","previousHeaderShown","previousHeaderMode","nextHeaderlessScene","find","currentHeaderShown","currentHeaderMode","gestureDirection","nextHeaderlessGestureDirection","isHeaderStatic","props","back","progress","navigation","styleInterpolator","e","height","nativeEvent","undefined","styles","create","position","top","left","right"],"sources":["HeaderContainer.tsx"],"sourcesContent":["import { getHeaderTitle, HeaderBackContext } from '@react-navigation/elements';\nimport {\n NavigationContext,\n NavigationRouteContext,\n ParamListBase,\n Route,\n} from '@react-navigation/native';\nimport * as React from 'react';\nimport { Animated, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport {\n forNoAnimation,\n forSlideLeft,\n forSlideRight,\n forSlideUp,\n} from '../../TransitionConfigs/HeaderStyleInterpolators';\nimport type {\n Layout,\n Scene,\n StackHeaderMode,\n StackHeaderProps,\n StackNavigationProp,\n} from '../../types';\nimport Header from './Header';\n\nexport type Props = {\n mode: StackHeaderMode;\n layout: Layout;\n scenes: (Scene | undefined)[];\n getPreviousScene: (props: { route: Route<string> }) => Scene | undefined;\n getFocusedRoute: () => Route<string>;\n onContentHeightChange?: (props: {\n route: Route<string>;\n height: number;\n }) => void;\n style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n};\n\nexport default function HeaderContainer({\n mode,\n scenes,\n layout,\n getPreviousScene,\n getFocusedRoute,\n onContentHeightChange,\n style,\n}: Props) {\n const focusedRoute = getFocusedRoute();\n const parentHeaderBack = React.useContext(HeaderBackContext);\n\n return (\n <Animated.View pointerEvents=\"box-none\" style={style}>\n {scenes.slice(-3).map((scene, i, self) => {\n if ((mode === 'screen' && i !== self.length - 1) || !scene) {\n return null;\n }\n\n const {\n header,\n headerMode,\n headerShown = true,\n headerTransparent,\n headerStyleInterpolator,\n } = scene.descriptor.options;\n\n if (headerMode !== mode || !headerShown) {\n return null;\n }\n\n const isFocused = focusedRoute.key === scene.descriptor.route.key;\n const previousScene = getPreviousScene({\n route: scene.descriptor.route,\n });\n\n let headerBack = parentHeaderBack;\n\n if (previousScene) {\n const { options, route } = previousScene.descriptor;\n\n headerBack = previousScene\n ? { title: getHeaderTitle(options, route.name) }\n : parentHeaderBack;\n }\n\n // If the screen is next to a headerless screen, we need to make the header appear static\n // This makes the header look like it's moving with the screen\n const previousDescriptor = self[i - 1]?.descriptor;\n const nextDescriptor = self[i + 1]?.descriptor;\n\n const {\n headerShown: previousHeaderShown = true,\n headerMode: previousHeaderMode,\n } = previousDescriptor?.options || {};\n\n // If any of the next screens don't have a header or header is part of the screen\n // Then we need to move this header offscreen so that it doesn't cover it\n const nextHeaderlessScene = self.slice(i + 1).find((scene) => {\n const {\n headerShown: currentHeaderShown = true,\n headerMode: currentHeaderMode,\n } = scene?.descriptor.options || {};\n\n return currentHeaderShown === false || currentHeaderMode === 'screen';\n });\n\n const { gestureDirection: nextHeaderlessGestureDirection } =\n nextHeaderlessScene?.descriptor.options || {};\n\n const isHeaderStatic =\n ((previousHeaderShown === false || previousHeaderMode === 'screen') &&\n // We still need to animate when coming back from next scene\n // A hacky way to check this is if the next scene exists\n !nextDescriptor) ||\n nextHeaderlessScene;\n\n const props: StackHeaderProps = {\n layout,\n back: headerBack,\n progress: scene.progress,\n options: scene.descriptor.options,\n route: scene.descriptor.route,\n navigation: scene.descriptor\n .navigation as StackNavigationProp<ParamListBase>,\n styleInterpolator:\n mode === 'float'\n ? isHeaderStatic\n ? nextHeaderlessGestureDirection === 'vertical' ||\n nextHeaderlessGestureDirection === 'vertical-inverted'\n ? forSlideUp\n : nextHeaderlessGestureDirection === 'horizontal-inverted'\n ? forSlideRight\n : forSlideLeft\n : headerStyleInterpolator\n : forNoAnimation,\n };\n\n return (\n <NavigationContext.Provider\n key={scene.descriptor.route.key}\n value={scene.descriptor.navigation}\n >\n <NavigationRouteContext.Provider value={scene.descriptor.route}>\n <View\n onLayout={\n onContentHeightChange\n ? (e) => {\n const { height } = e.nativeEvent.layout;\n\n onContentHeightChange({\n route: scene.descriptor.route,\n height,\n });\n }\n : undefined\n }\n pointerEvents={isFocused ? 'box-none' : 'none'}\n accessibilityElementsHidden={!isFocused}\n importantForAccessibility={\n isFocused ? 'auto' : 'no-hide-descendants'\n }\n style={\n // Avoid positioning the focused header absolutely\n // Otherwise accessibility tools don't seem to be able to find it\n (mode === 'float' && !isFocused) || headerTransparent\n ? styles.header\n : null\n }\n >\n {header !== undefined ? header(props) : <Header {...props} />}\n </View>\n </NavigationRouteContext.Provider>\n </NavigationContext.Provider>\n );\n })}\n </Animated.View>\n );\n}\n\nconst styles = StyleSheet.create({\n header: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n },\n});\n"],"mappings":"AAAA,SAASA,cAAT,EAAyBC,iBAAzB,QAAkD,4BAAlD;AACA,SACEC,iBADF,EAEEC,sBAFF,QAKO,0BALP;AAMA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,QAAT,EAA8BC,UAA9B,EAA0CC,IAA1C,QAAiE,cAAjE;AAEA,SACEC,cADF,EAEEC,YAFF,EAGEC,aAHF,EAIEC,UAJF,QAKO,kDALP;AAaA,OAAOC,MAAP,MAAmB,UAAnB;AAeA,eAAe,SAASC,eAAT,OAQL;EAAA,IAR8B;IACtCC,IADsC;IAEtCC,MAFsC;IAGtCC,MAHsC;IAItCC,gBAJsC;IAKtCC,eALsC;IAMtCC,qBANsC;IAOtCC;EAPsC,CAQ9B;EACR,MAAMC,YAAY,GAAGH,eAAe,EAApC;EACA,MAAMI,gBAAgB,GAAGlB,KAAK,CAACmB,UAAN,CAAiBtB,iBAAjB,CAAzB;EAEA,oBACE,oBAAC,QAAD,CAAU,IAAV;IAAe,aAAa,EAAC,UAA7B;IAAwC,KAAK,EAAEmB;EAA/C,GACGL,MAAM,CAACS,KAAP,CAAa,CAAC,CAAd,EAAiBC,GAAjB,CAAqB,CAACC,KAAD,EAAQC,CAAR,EAAWC,IAAX,KAAoB;IAAA;;IACxC,IAAKd,IAAI,KAAK,QAAT,IAAqBa,CAAC,KAAKC,IAAI,CAACC,MAAL,GAAc,CAA1C,IAAgD,CAACH,KAArD,EAA4D;MAC1D,OAAO,IAAP;IACD;;IAED,MAAM;MACJI,MADI;MAEJC,UAFI;MAGJC,WAAW,GAAG,IAHV;MAIJC,iBAJI;MAKJC;IALI,IAMFR,KAAK,CAACS,UAAN,CAAiBC,OANrB;;IAQA,IAAIL,UAA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CAACE,WAAF,CAAc9C,MAAjC;QAEAG,qBAAqB,CAAC;UACpBoB,KAAK,EAAEb,KAAK,CAACS,UAAN,CAAiBI,KADJ;UAEpBsB;QAFoB,CAAD,CAArB;MAID,CARgB,GASjBE,SAXR;MAaE,aAAa,EAAE1B,SAAS,GAAG,UAAH,GAAgB,MAb1C;MAcE,2BAA2B,EAAE,CAACA,SAdhC;MAeE,yBAAyB,EACvBA,SAAS,GAAG,MAAH,GAAY,qBAhBzB;MAkBE,KAAK,EACH;MACA;MACCvB,IAAI,KAAK,OAAT,IAAoB,CAACuB,SAAtB,IAAoCJ,iBAApC,GACI+B,MAAM,CAAClC,MADX,GAEI;IAvBR,GA0BGA,MAAM,KAAKiC,SAAX,GAAuBjC,MAAM,CAACyB,KAAD,CAA7B,gBAAuC,oBAAC,MAAD,EAAYA,KAAZ,CA1B1C,CADF,CAJF,CADF;EAqCD,CAzHA,CADH,CADF;AA8HD;AAED,MAAMS,MAAM,GAAG1D,UAAU,CAAC2D,MAAX,CAAkB;EAC/BnC,MAAM,EAAE;IACNoC,QAAQ,EAAE,UADJ;IAENC,GAAG,EAAE,CAFC;IAGNC,IAAI,EAAE,CAHA;IAINC,KAAK,EAAE;EAJD;AADuB,CAAlB,CAAf"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import { getDefaultHeaderHeight, Header, HeaderBackButton, HeaderTitle } from '@react-navigation/elements';
4
4
  import * as React from 'react';
@@ -1 +1 @@
1
- {"version":3,"sources":["HeaderSegment.tsx"],"names":["getDefaultHeaderHeight","Header","HeaderBackButton","HeaderTitle","React","Platform","StyleSheet","memoize","HeaderSegment","props","leftLabelLayout","setLeftLabelLayout","useState","undefined","titleLayout","setTitleLayout","handleTitleLayout","e","height","width","nativeEvent","layout","handleLeftLabelLayout","getInterpolatedStyle","styleInterpolator","current","next","headerHeight","progress","layouts","header","screen","title","leftLabel","modal","onGoBack","headerTitle","headerLeft","left","headerRight","right","headerBackImage","headerBackTitle","headerBackTitleVisible","OS","headerTruncatedBackTitle","headerBackAccessibilityLabel","headerBackTestID","headerBackAllowFontScaling","headerBackTitleStyle","headerTitleContainerStyle","headerLeftContainerStyle","headerRightContainerStyle","headerBackgroundContainerStyle","headerStyle","customHeaderStyle","headerStatusBarHeight","rest","defaultHeight","flatten","titleStyle","leftButtonStyle","leftLabelStyle","rightButtonStyle","backgroundStyle","backImage","accessibilityLabel","testID","allowFontScaling","onPress","label","truncatedLabel","labelStyle","onLabelLayout","screenLayout","canGoBack","Boolean","onLayout"],"mappings":";;AAAA,SACEA,sBADF,EAEEC,MAFF,EAGEC,gBAHF,EAKEC,WALF,QAMO,4BANP;AAOA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAGEC,QAHF,EAIEC,UAJF,QAMO,cANP;AAcA,OAAOC,OAAP,MAAoB,qBAApB;AAYA,eAAe,SAASC,aAAT,CAAuBC,KAAvB,EAAqC;AAClD,QAAM,CAACC,eAAD,EAAkBC,kBAAlB,IAAwCP,KAAK,CAACQ,QAAN,CAE5CC,SAF4C,CAA9C;AAIA,QAAM,CAACC,WAAD,EAAcC,cAAd,IAAgCX,KAAK,CAACQ,QAAN,CACpCC,SADoC,CAAtC;;AAIA,QAAMG,iBAAiB,GAAIC,CAAD,IAA0B;AAClD,UAAM;AAAEC,MAAAA,MAAF;AAAUC,MAAAA;AAAV,QAAoBF,CAAC,CAACG,WAAF,CAAcC,MAAxC;AAEAN,IAAAA,cAAc,CAAED,WAAD,IAAiB;AAC9B,UAC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A,wBAAwB,EAAE,CAACW,eAAD,EAAkBV,wBAAlB,CAR5B;AASE,IAAA,yBAAyB,EAAE,CAACY,gBAAD,EAAmBX,yBAAnB,CAT7B;AAUE,IAAA,8BAA8B,EAAE,CAC9BY,eAD8B,EAE9BX,8BAF8B,CAVlC;AAcE,IAAA,WAAW,EAAEE,iBAdf;AAeE,IAAA,qBAAqB,EAAEC;AAfzB,KAgBMC,IAhBN,EADF;AAoBD","sourcesContent":["import {\n getDefaultHeaderHeight,\n Header,\n HeaderBackButton,\n HeaderBackButtonProps,\n HeaderTitle,\n} from '@react-navigation/elements';\nimport * as React from 'react';\nimport {\n Animated,\n LayoutChangeEvent,\n Platform,\n StyleSheet,\n ViewStyle,\n} from 'react-native';\n\nimport type {\n Layout,\n SceneProgress,\n StackHeaderOptions,\n StackHeaderStyleInterpolator,\n} from '../../types';\nimport memoize from '../../utils/memoize';\n\ntype Props = Omit<StackHeaderOptions, 'headerStatusBarHeight'> & {\n headerStatusBarHeight: number;\n layout: Layout;\n title: string;\n modal: boolean;\n onGoBack?: () => void;\n progress: SceneProgress;\n styleInterpolator: StackHeaderStyleInterpolator;\n};\n\nexport default function HeaderSegment(props: Props) {\n const [leftLabelLayout, setLeftLabelLayout] = React.useState<\n Layout | undefined\n >(undefined);\n\n const [titleLayout, setTitleLayout] = React.useState<Layout | undefined>(\n undefined\n );\n\n const handleTitleLayout = (e: LayoutChangeEvent) => {\n const { height, width } = e.nativeEvent.layout;\n\n setTitleLayout((titleLayout) => {\n if (\n titleLayout &&\n height === titleLayout.height &&\n width === titleLayout.width\n ) {\n return titleLayout;\n }\n\n return { height, width };\n });\n };\n\n const handleLeftLabelLayout = (e: LayoutChangeEvent) => {\n const { height, width } = e.nativeEvent.layout;\n\n if (\n leftLabelLayout &&\n height === leftLabelLayout.height &&\n width === leftLabelLayout.width\n ) {\n return;\n }\n\n setLeftLabelLayout({ height, width });\n };\n\n const getInterpolatedStyle = memoize(\n (\n styleInterpolator: StackHeaderStyleInterpolator,\n layout: Layout,\n current: Animated.AnimatedInterpolation,\n next: Animated.AnimatedInterpolation | undefined,\n titleLayout: Layout | undefined,\n leftLabelLayout: Layout | undefined,\n headerHeight: number\n ) =>\n styleInterpolator({\n current: { progress: current },\n next: next && { progress: next },\n layouts: {\n header: {\n height: headerHeight,\n width: layout.width,\n },\n screen: layout,\n title: titleLayout,\n leftLabel: leftLabelLayout,\n },\n })\n );\n\n const {\n progress,\n layout,\n modal,\n onGoBack,\n headerTitle: title,\n headerLeft: left = onGoBack\n ? (props: HeaderBackButtonProps) => <HeaderBackButton {...props} />\n : undefined,\n headerRight: right,\n headerBackImage,\n headerBackTitle,\n headerBackTitleVisible = Platform.OS === 'ios',\n headerTruncatedBackTitle,\n headerBackAccessibilityLabel,\n headerBackTestID,\n headerBackAllowFontScaling,\n headerBackTitleStyle,\n headerTitleContainerStyle,\n headerLeftContainerStyle,\n headerRightContainerStyle,\n headerBackgroundContainerStyle,\n headerStyle: customHeaderStyle,\n headerStatusBarHeight,\n styleInterpolator,\n ...rest\n } = props;\n\n const defaultHeight = getDefaultHeaderHeight(\n layout,\n modal,\n headerStatusBarHeight\n );\n\n const { height = defaultHeight } = StyleSheet.flatten(\n customHeaderStyle || {}\n ) as ViewStyle;\n\n const {\n titleStyle,\n leftButtonStyle,\n leftLabelStyle,\n rightButtonStyle,\n backgroundStyle,\n } = getInterpolatedStyle(\n styleInterpolator,\n layout,\n progress.current,\n progress.next,\n titleLayout,\n headerBackTitle ? leftLabelLayout : undefined,\n typeof height === 'number' ? height : defaultHeight\n );\n\n const headerLeft: StackHeaderOptions['headerLeft'] = left\n ? (props) =>\n left({\n ...props,\n backImage: headerBackImage,\n accessibilityLabel: headerBackAccessibilityLabel,\n testID: headerBackTestID,\n allowFontScaling: headerBackAllowFontScaling,\n onPress: onGoBack,\n label: headerBackTitle,\n truncatedLabel: headerTruncatedBackTitle,\n labelStyle: [leftLabelStyle, headerBackTitleStyle],\n onLabelLayout: handleLeftLabelLayout,\n screenLayout: layout,\n titleLayout,\n canGoBack: Boolean(onGoBack),\n })\n : undefined;\n\n const headerRight: StackHeaderOptions['headerRight'] = right\n ? (props) =>\n right({\n ...props,\n canGoBack: Boolean(onGoBack),\n })\n : undefined;\n\n const headerTitle: StackHeaderOptions['headerTitle'] =\n typeof title !== 'function'\n ? (props) => <HeaderTitle {...props} onLayout={handleTitleLayout} />\n : (props) => title({ ...props, onLayout: handleTitleLayout });\n\n return (\n <Header\n modal={modal}\n layout={layout}\n headerTitle={headerTitle}\n headerLeft={headerLeft}\n headerLeftLabelVisible={headerBackTitleVisible}\n headerRight={headerRight}\n headerTitleContainerStyle={[titleStyle, headerTitleContainerStyle]}\n headerLeftContainerStyle={[leftButtonStyle, headerLeftContainerStyle]}\n headerRightContainerStyle={[rightButtonStyle, headerRightContainerStyle]}\n headerBackgroundContainerStyle={[\n backgroundStyle,\n headerBackgroundContainerStyle,\n ]}\n headerStyle={customHeaderStyle}\n headerStatusBarHeight={headerStatusBarHeight}\n {...rest}\n />\n );\n}\n"]}
1
+ {"version":3,"names":["getDefaultHeaderHeight","Header","HeaderBackButton","HeaderTitle","React","Platform","StyleSheet","memoize","HeaderSegment","props","leftLabelLayout","setLeftLabelLayout","useState","undefined","titleLayout","setTitleLayout","handleTitleLayout","e","height","width","nativeEvent","layout","handleLeftLabelLayout","getInterpolatedStyle","styleInterpolator","current","next","headerHeight","progress","layouts","header","screen","title","leftLabel","modal","onGoBack","headerTitle","headerLeft","left","headerRight","right","headerBackImage","headerBackTitle","headerBackTitleVisible","OS","headerTruncatedBackTitle","headerBackAccessibilityLabel","headerBackTestID","headerBackAllowFontScaling","headerBackTitleStyle","headerTitleContainerStyle","headerLeftContainerStyle","headerRightContainerStyle","headerBackgroundContainerStyle","headerStyle","customHeaderStyle","headerStatusBarHeight","rest","defaultHeight","flatten","titleStyle","leftButtonStyle","leftLabelStyle","rightButtonStyle","backgroundStyle","backImage","accessibilityLabel","testID","allowFontScaling","onPress","label","truncatedLabel","labelStyle","onLabelLayout","screenLayout","canGoBack","Boolean","onLayout"],"sources":["HeaderSegment.tsx"],"sourcesContent":["import {\n getDefaultHeaderHeight,\n Header,\n HeaderBackButton,\n HeaderBackButtonProps,\n HeaderTitle,\n} from '@react-navigation/elements';\nimport * as React from 'react';\nimport {\n Animated,\n LayoutChangeEvent,\n Platform,\n StyleSheet,\n ViewStyle,\n} from 'react-native';\n\nimport type {\n Layout,\n SceneProgress,\n StackHeaderOptions,\n StackHeaderStyleInterpolator,\n} from '../../types';\nimport memoize from '../../utils/memoize';\n\ntype Props = Omit<StackHeaderOptions, 'headerStatusBarHeight'> & {\n headerStatusBarHeight: number;\n layout: Layout;\n title: string;\n modal: boolean;\n onGoBack?: () => void;\n progress: SceneProgress;\n styleInterpolator: StackHeaderStyleInterpolator;\n};\n\nexport default function HeaderSegment(props: Props) {\n const [leftLabelLayout, setLeftLabelLayout] = React.useState<\n Layout | undefined\n >(undefined);\n\n const [titleLayout, setTitleLayout] = React.useState<Layout | undefined>(\n undefined\n );\n\n const handleTitleLayout = (e: LayoutChangeEvent) => {\n const { height, width } = e.nativeEvent.layout;\n\n setTitleLayout((titleLayout) => {\n if (\n titleLayout &&\n height === titleLayout.height &&\n width === titleLayout.width\n ) {\n return titleLayout;\n }\n\n return { height, width };\n });\n };\n\n const handleLeftLabelLayout = (e: LayoutChangeEvent) => {\n const { height, width } = e.nativeEvent.layout;\n\n if (\n leftLabelLayout &&\n height === leftLabelLayout.height &&\n width === leftLabelLayout.width\n ) {\n return;\n }\n\n setLeftLabelLayout({ height, width });\n };\n\n const getInterpolatedStyle = memoize(\n (\n styleInterpolator: StackHeaderStyleInterpolator,\n layout: Layout,\n current: Animated.AnimatedInterpolation,\n next: Animated.AnimatedInterpolation | undefined,\n titleLayout: Layout | undefined,\n leftLabelLayout: Layout | undefined,\n headerHeight: number\n ) =>\n styleInterpolator({\n current: { progress: current },\n next: next && { progress: next },\n layouts: {\n header: {\n height: headerHeight,\n width: layout.width,\n },\n screen: layout,\n title: titleLayout,\n leftLabel: leftLabelLayout,\n },\n })\n );\n\n const {\n progress,\n layout,\n modal,\n onGoBack,\n headerTitle: title,\n headerLeft: left = onGoBack\n ? (props: HeaderBackButtonProps) => <HeaderBackButton {...props} />\n : undefined,\n headerRight: right,\n headerBackImage,\n headerBackTitle,\n headerBackTitleVisible = Platform.OS === 'ios',\n headerTruncatedBackTitle,\n headerBackAccessibilityLabel,\n headerBackTestID,\n headerBackAllowFontScaling,\n headerBackTitleStyle,\n headerTitleContainerStyle,\n headerLeftContainerStyle,\n headerRightContainerStyle,\n headerBackgroundContainerStyle,\n headerStyle: customHeaderStyle,\n headerStatusBarHeight,\n styleInterpolator,\n ...rest\n } = props;\n\n const defaultHeight = getDefaultHeaderHeight(\n layout,\n modal,\n headerStatusBarHeight\n );\n\n const { height = defaultHeight } = StyleSheet.flatten(\n customHeaderStyle || {}\n ) as ViewStyle;\n\n const {\n titleStyle,\n leftButtonStyle,\n leftLabelStyle,\n rightButtonStyle,\n backgroundStyle,\n } = getInterpolatedStyle(\n styleInterpolator,\n layout,\n progress.current,\n progress.next,\n titleLayout,\n headerBackTitle ? leftLabelLayout : undefined,\n typeof height === 'number' ? height : defaultHeight\n );\n\n const headerLeft: StackHeaderOptions['headerLeft'] = left\n ? (props) =>\n left({\n ...props,\n backImage: headerBackImage,\n accessibilityLabel: headerBackAccessibilityLabel,\n testID: headerBackTestID,\n allowFontScaling: headerBackAllowFontScaling,\n onPress: onGoBack,\n label: headerBackTitle,\n truncatedLabel: headerTruncatedBackTitle,\n labelStyle: [leftLabelStyle, headerBackTitleStyle],\n onLabelLayout: handleLeftLabelLayout,\n screenLayout: layout,\n titleLayout,\n canGoBack: Boolean(onGoBack),\n })\n : undefined;\n\n const headerRight: StackHeaderOptions['headerRight'] = right\n ? (props) =>\n right({\n ...props,\n canGoBack: Boolean(onGoBack),\n })\n : undefined;\n\n const headerTitle: StackHeaderOptions['headerTitle'] =\n typeof title !== 'function'\n ? (props) => <HeaderTitle {...props} onLayout={handleTitleLayout} />\n : (props) => title({ ...props, onLayout: handleTitleLayout });\n\n return (\n <Header\n modal={modal}\n layout={layout}\n headerTitle={headerTitle}\n headerLeft={headerLeft}\n headerLeftLabelVisible={headerBackTitleVisible}\n headerRight={headerRight}\n headerTitleContainerStyle={[titleStyle, headerTitleContainerStyle]}\n headerLeftContainerStyle={[leftButtonStyle, headerLeftContainerStyle]}\n headerRightContainerStyle={[rightButtonStyle, headerRightContainerStyle]}\n headerBackgroundContainerStyle={[\n backgroundStyle,\n headerBackgroundContainerStyle,\n ]}\n headerStyle={customHeaderStyle}\n headerStatusBarHeight={headerStatusBarHeight}\n {...rest}\n />\n );\n}\n"],"mappings":";;AAAA,SACEA,sBADF,EAEEC,MAFF,EAGEC,gBAHF,EAKEC,WALF,QAMO,4BANP;AAOA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAGEC,QAHF,EAIEC,UAJF,QAMO,cANP;AAcA,OAAOC,OAAP,MAAoB,qBAApB;AAYA,eAAe,SAASC,aAAT,CAAuBC,KAAvB,EAAqC;EAClD,MAAM,CAACC,eAAD,EAAkBC,kBAAlB,IAAwCP,KAAK,CAACQ,QAAN,CAE5CC,SAF4C,CAA9C;EAIA,MAAM,CAACC,WAAD,EAAcC,cAAd,IAAgCX,KAAK,CAACQ,QAAN,CACpCC,SADoC,CAAtC;;EAIA,MAAMG,iBAAiB,GAAIC,CAAD,IAA0B;IAClD,MAAM;MAAEC,MAAF;MAAUC;IAAV,IAAoBF,CAAC,CAACG,WAAF,CAAcC,MAAxC;IAEAN,cAAc,CAAED,WAAD,IAAiB;MAC9B,IACEA,WAAW,IACXI,MAAM,KAAKJ,WAAW,CAACI,MADvB,IAEAC,KAAK,KAAKL,WAAW,CAACK,KAHxB,EAIE;QACA,OAAOL,WAAP;MACD;;MAED,OAAO;QAAEI,MAAF;QAAUC;MAAV,CAAP;IACD,CAVa,CAAd;EAWD,CAdD;;EAgBA,MAAMG,qBAAqB,GAAIL,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AACzC,QAAD;EAFd,CAAD,CAFiD,GAMxDtB,SANJ;EAQA,MAAMuB,WAA8C,GAClD,OAAOJ,KAAP,KAAiB,UAAjB,GACKvB,KAAD,iBAAW,oBAAC,WAAD,eAAiBA,KAAjB;IAAwB,QAAQ,EAAEO;EAAlC,GADf,GAEKP,KAAD,IAAWuB,KAAK,CAAC,EAAE,GAAGvB,KAAL;IAAYoE,QAAQ,EAAE7D;EAAtB,CAAD,CAHtB;EAKA,oBACE,oBAAC,MAAD;IACE,KAAK,EAAEkB,KADT;IAEE,MAAM,EAAEb,MAFV;IAGE,WAAW,EAAEe,WAHf;IAIE,UAAU,EAAEC,UAJd;IAKE,sBAAsB,EAAEM,sBAL1B;IAME,WAAW,EAAEJ,WANf;IAOE,yBAAyB,EAAE,CAACqB,UAAD,EAAaV,yBAAb,CAP7B;IAQE,wBAAwB,EAAE,CAACW,eAAD,EAAkBV,wBAAlB,CAR5B;IASE,yBAAyB,EAAE,CAACY,gBAAD,EAAmBX,yBAAnB,CAT7B;IAUE,8BAA8B,EAAE,CAC9BY,eAD8B,EAE9BX,8BAF8B,CAVlC;IAcE,WAAW,EAAEE,iBAdf;IAeE,qBAAqB,EAAEC;EAfzB,GAgBMC,IAhBN,EADF;AAoBD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ModalStatusBarManager.tsx"],"names":["useTheme","React","StatusBar","StyleSheet","ModalStatusBarManager","dark","layout","insets","style","darkTheme","overlapping","setOverlapping","useState","scale","width","offset","top","flattenedStyle","flatten","translateY","transform","find","s","undefined","useEffect","listener","value","sub","addListener","removeListener","darkContent"],"mappings":"AAAA,SAASA,QAAT,QAAyB,0BAAzB;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,cAAtC;AAYA,eAAe,SAASC,qBAAT,OAKL;AAAA;;AAAA,MALoC;AAC5CC,IAAAA,IAD4C;AAE5CC,IAAAA,MAF4C;AAG5CC,IAAAA,MAH4C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as React from 'react';\nimport { StatusBar, StyleSheet } from 'react-native';\nimport type { EdgeInsets } from 'react-native-safe-area-context';\n\nimport type { Layout } from '../types';\n\ntype Props = {\n dark: boolean | undefined;\n layout: Layout;\n insets: EdgeInsets;\n style: any;\n};\n\nexport default function ModalStatusBarManager({\n dark,\n layout,\n insets,\n style,\n}: Props) {\n const { dark: darkTheme } = useTheme();\n const [overlapping, setOverlapping] = React.useState(true);\n\n const scale = 1 - 20 / layout.width;\n const offset = (insets.top - 34) * scale;\n\n const flattenedStyle = StyleSheet.flatten(style);\n const translateY = flattenedStyle?.transform?.find(\n (s: any) => s.translateY !== undefined\n )?.translateY;\n\n React.useEffect(() => {\n const listener = ({ value }: { value: number }) => {\n setOverlapping(value < offset);\n };\n\n const sub = translateY?.addListener(listener);\n\n return () => translateY?.removeListener(sub);\n }, [offset, translateY]);\n\n const darkContent = dark ?? !darkTheme;\n\n return (\n <StatusBar\n animated\n barStyle={overlapping && darkContent ? 'dark-content' : 'light-content'}\n />\n );\n}\n"]}
1
+ {"version":3,"names":["useTheme","React","StatusBar","StyleSheet","ModalStatusBarManager","dark","layout","insets","style","darkTheme","overlapping","setOverlapping","useState","scale","width","offset","top","flattenedStyle","flatten","translateY","transform","find","s","undefined","useEffect","listener","value","sub","addListener","removeListener","darkContent"],"sources":["ModalStatusBarManager.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport * as React from 'react';\nimport { StatusBar, StyleSheet } from 'react-native';\nimport type { EdgeInsets } from 'react-native-safe-area-context';\n\nimport type { Layout } from '../types';\n\ntype Props = {\n dark: boolean | undefined;\n layout: Layout;\n insets: EdgeInsets;\n style: any;\n};\n\nexport default function ModalStatusBarManager({\n dark,\n layout,\n insets,\n style,\n}: Props) {\n const { dark: darkTheme } = useTheme();\n const [overlapping, setOverlapping] = React.useState(true);\n\n const scale = 1 - 20 / layout.width;\n const offset = (insets.top - 34) * scale;\n\n const flattenedStyle = StyleSheet.flatten(style);\n const translateY = flattenedStyle?.transform?.find(\n (s: any) => s.translateY !== undefined\n )?.translateY;\n\n React.useEffect(() => {\n const listener = ({ value }: { value: number }) => {\n setOverlapping(value < offset);\n };\n\n const sub = translateY?.addListener(listener);\n\n return () => translateY?.removeListener(sub);\n }, [offset, translateY]);\n\n const darkContent = dark ?? !darkTheme;\n\n return (\n <StatusBar\n animated\n barStyle={overlapping && darkContent ? 'dark-content' : 'light-content'}\n />\n );\n}\n"],"mappings":"AAAA,SAASA,QAAT,QAAyB,0BAAzB;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,cAAtC;AAYA,eAAe,SAASC,qBAAT,OAKL;EAAA;;EAAA,IALoC;IAC5CC,IAD4C;IAE5CC,MAF4C;IAG5CC,MAH4C;IAI5CC;EAJ4C,CAKpC;EACR,MAAM;IAAEH,IAAI,EAAEI;EAAR,IAAsBT,QAAQ,EAApC;EACA,MAAM,CAACU,WAAD,EAAcC,cAAd,IAAgCV,KAAK,CAACW,QAAN,CAAe,IAAf,CAAtC;EAEA,MAAMC,KAAK,GAAG,IAAI,KAAKP,MAAM,CAACQ,KAA9B;EACA,MAAMC,MAAM,GAAG,CAACR,MAAM,CAACS,GAAP,GAAa,EAAd,IAAoBH,KAAnC;EAEA,MAAMI,cAAc,GAAGd,UAAU,CAACe,OAAX,CAAmBV,KAAnB,CAAvB;EACA,MAAMW,UAAU,GAAGF,cAAH,aAAGA,cAAH,gDAAGA,cAAc,CAAEG,SAAnB,oFAAG,sBAA2BC,IAA3B,CAChBC,CAAD,IAAYA,CAAC,CAACH,UAAF,KAAiBI,SADZ,CAAH,2DAAG,uBAEhBJ,UAFH;EAIAlB,KAAK,CAACuB,SAAN,CAAgB,MAAM;IACpB,MAAMC,QAAQ,GAAG,SAAkC;MAAA,IAAjC;QAAEC;MAAF,CAAiC;MACjDf,cAAc,CAACe,KAAK,GAAGX,MAAT,CAAd;IACD,CAFD;;IAIA,MAAMY,GAAG,GAAGR,UAAH,aAAGA,UAAH,uBAAGA,UAAU,CAAES,WAAZ,CAAwBH,QAAxB,CAAZ;IAEA,OAAO,MAAMN,UAAN,aAAMA,UAAN,uBAAMA,UAAU,CAAEU,cAAZ,CAA2BF,GAA3B,CAAb;EACD,CARD,EAQG,CAACZ,MAAD,EAASI,UAAT,CARH;EAUA,MAAMW,WAAW,GAAGzB,IAAH,aAAGA,IAAH,cAAGA,IAAH,GAAW,CAACI,SAA7B;EAEA,oBACE,oBAAC,SAAD;IACE,QAAQ,MADV;IAEE,QAAQ,EAAEC,WAAW,IAAIoB,WAAf,GAA6B,cAA7B,GAA8C;EAF1D,EADF;AAMD"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import * as React from 'react';
4
4
  import { View } from 'react-native';
@@ -1 +1 @@
1
- {"version":3,"sources":["Screens.tsx"],"names":["React","View","Screens","require","e","MaybeScreenContainer","enabled","rest","MaybeScreen","active"],"mappings":";;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAAmBC,IAAnB,QAA0C,cAA1C;AAEA,IAAIC,OAAJ;;AAEA,IAAI;AACFA,EAAAA,OAAO,GAAGC,OAAO,CAAC,sBAAD,CAAjB;AACD,CAFD,CAEE,OAAOC,CAAP,EAAU,CACV;AACD;;AAED,OAAO,MAAMC,oBAAoB,GAAG,QAM9B;AAAA,MAN+B;AACnCC,IAAAA,OADmC;AAEnC,OAAGC;AAFgC,GAM/B;;AACJ,MAAIL,OAAO,IAAI,IAAf,EAAqB;AACnB,wBAAO,oBAAC,OAAD,CAAS,eAAT;AAAyB,MAAA,OAAO,EAAEI;AAAlC,OAA+CC,IAA/C,EAAP;AACD;;AAED,sBAAO,oBAAC,IAAD,EAAUA,IAAV,CAAP;AACD,CAZM;AAcP,OAAO,MAAMC,WAAW,GAAG,SASrB;AAAA,MATsB;AAC1BF,IAAAA,OAD0B;AAE1BG,IAAAA,MAF0B;AAG1B,OAAGF;AAHuB,GAStB;;AACJ,MAAIL,OAAO,IAAI,IAAf,EAAqB;AACnB,wBACE,oBAAC,OAAD,CAAS,MAAT;AAAgB,MAAA,OAAO,EAAEI,OAAzB;AAAkC,MAAA,aAAa,EAAEG;AAAjD,OAA6DF,IAA7D,EADF;AAGD;;AAED,sBAAO,oBAAC,IAAD,EAAUA,IAAV,CAAP;AACD,CAjBM","sourcesContent":["import * as React from 'react';\nimport { Animated, View, ViewProps } from 'react-native';\n\nlet Screens: typeof import('react-native-screens') | undefined;\n\ntry {\n Screens = require('react-native-screens');\n} catch (e) {\n // Ignore\n}\n\nexport const MaybeScreenContainer = ({\n enabled,\n ...rest\n}: ViewProps & {\n enabled: boolean;\n children: React.ReactNode;\n}) => {\n if (Screens != null) {\n return <Screens.ScreenContainer enabled={enabled} {...rest} />;\n }\n\n return <View {...rest} />;\n};\n\nexport const MaybeScreen = ({\n enabled,\n active,\n ...rest\n}: ViewProps & {\n enabled: boolean;\n active: 0 | 1 | Animated.AnimatedInterpolation;\n children: React.ReactNode;\n freezeOnBlur?: boolean;\n}) => {\n if (Screens != null) {\n return (\n <Screens.Screen enabled={enabled} activityState={active} {...rest} />\n );\n }\n\n return <View {...rest} />;\n};\n"]}
1
+ {"version":3,"names":["React","View","Screens","require","e","MaybeScreenContainer","enabled","rest","MaybeScreen","active"],"sources":["Screens.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Animated, View, ViewProps } from 'react-native';\n\nlet Screens: typeof import('react-native-screens') | undefined;\n\ntry {\n Screens = require('react-native-screens');\n} catch (e) {\n // Ignore\n}\n\nexport const MaybeScreenContainer = ({\n enabled,\n ...rest\n}: ViewProps & {\n enabled: boolean;\n children: React.ReactNode;\n}) => {\n if (Screens != null) {\n return <Screens.ScreenContainer enabled={enabled} {...rest} />;\n }\n\n return <View {...rest} />;\n};\n\nexport const MaybeScreen = ({\n enabled,\n active,\n ...rest\n}: ViewProps & {\n enabled: boolean;\n active: 0 | 1 | Animated.AnimatedInterpolation;\n children: React.ReactNode;\n freezeOnBlur?: boolean;\n}) => {\n if (Screens != null) {\n return (\n <Screens.Screen enabled={enabled} activityState={active} {...rest} />\n );\n }\n\n return <View {...rest} />;\n};\n"],"mappings":";;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAAmBC,IAAnB,QAA0C,cAA1C;AAEA,IAAIC,OAAJ;;AAEA,IAAI;EACFA,OAAO,GAAGC,OAAO,CAAC,sBAAD,CAAjB;AACD,CAFD,CAEE,OAAOC,CAAP,EAAU,CACV;AACD;;AAED,OAAO,MAAMC,oBAAoB,GAAG,QAM9B;EAAA,IAN+B;IACnCC,OADmC;IAEnC,GAAGC;EAFgC,CAM/B;;EACJ,IAAIL,OAAO,IAAI,IAAf,EAAqB;IACnB,oBAAO,oBAAC,OAAD,CAAS,eAAT;MAAyB,OAAO,EAAEI;IAAlC,GAA+CC,IAA/C,EAAP;EACD;;EAED,oBAAO,oBAAC,IAAD,EAAUA,IAAV,CAAP;AACD,CAZM;AAcP,OAAO,MAAMC,WAAW,GAAG,SASrB;EAAA,IATsB;IAC1BF,OAD0B;IAE1BG,MAF0B;IAG1B,GAAGF;EAHuB,CAStB;;EACJ,IAAIL,OAAO,IAAI,IAAf,EAAqB;IACnB,oBACE,oBAAC,OAAD,CAAS,MAAT;MAAgB,OAAO,EAAEI,OAAzB;MAAkC,aAAa,EAAEG;IAAjD,GAA6DF,IAA7D,EADF;EAGD;;EAED,oBAAO,oBAAC,IAAD,EAAUA,IAAV,CAAP;AACD,CAjBM"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
4