@react-navigation/bottom-tabs 7.9.0 → 8.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/lib/module/index.js +3 -2
  2. package/lib/module/index.js.map +1 -1
  3. package/lib/module/navigators/createBottomTabNavigator.js +27 -9
  4. package/lib/module/navigators/createBottomTabNavigator.js.map +1 -1
  5. package/lib/module/utils/BottomTabAnimationContext.js +5 -0
  6. package/lib/module/utils/BottomTabAnimationContext.js.map +1 -0
  7. package/lib/module/utils/useBottomTabAnimation.js +12 -0
  8. package/lib/module/utils/useBottomTabAnimation.js.map +1 -0
  9. package/lib/module/utils/useTabBarPosition.js +34 -0
  10. package/lib/module/utils/useTabBarPosition.js.map +1 -0
  11. package/lib/module/views/BottomTabBar.js +46 -49
  12. package/lib/module/views/BottomTabBar.js.map +1 -1
  13. package/lib/module/views/BottomTabItem.js +17 -15
  14. package/lib/module/views/BottomTabItem.js.map +1 -1
  15. package/lib/module/views/BottomTabViewCommon.js +16 -0
  16. package/lib/module/views/BottomTabViewCommon.js.map +1 -0
  17. package/lib/module/views/{BottomTabView.js → BottomTabViewCustom.js} +107 -106
  18. package/lib/module/views/BottomTabViewCustom.js.map +1 -0
  19. package/lib/module/views/BottomTabViewNative.android.js +4 -0
  20. package/lib/module/views/BottomTabViewNative.android.js.map +1 -0
  21. package/lib/module/views/BottomTabViewNative.ios.js +4 -0
  22. package/lib/module/views/BottomTabViewNative.ios.js.map +1 -0
  23. package/lib/module/views/BottomTabViewNative.js +5 -0
  24. package/lib/module/views/BottomTabViewNative.js.map +1 -0
  25. package/lib/module/{unstable/NativeBottomTabView.native.js → views/BottomTabViewNativeImpl.js} +95 -77
  26. package/lib/module/views/BottomTabViewNativeImpl.js.map +1 -0
  27. package/lib/module/views/ScreenContent.js +39 -0
  28. package/lib/module/views/ScreenContent.js.map +1 -0
  29. package/lib/module/views/TabBarIcon.js +40 -4
  30. package/lib/module/views/TabBarIcon.js.map +1 -1
  31. package/lib/typescript/src/index.d.ts +4 -3
  32. package/lib/typescript/src/index.d.ts.map +1 -1
  33. package/lib/typescript/src/navigators/createBottomTabNavigator.d.ts +10 -6
  34. package/lib/typescript/src/navigators/createBottomTabNavigator.d.ts.map +1 -1
  35. package/lib/typescript/src/types.d.ts +383 -115
  36. package/lib/typescript/src/types.d.ts.map +1 -1
  37. package/lib/typescript/src/utils/BottomTabAnimationContext.d.ts +4 -0
  38. package/lib/typescript/src/utils/BottomTabAnimationContext.d.ts.map +1 -0
  39. package/lib/typescript/src/utils/useBottomTabAnimation.d.ts +2 -0
  40. package/lib/typescript/src/utils/useBottomTabAnimation.d.ts.map +1 -0
  41. package/lib/typescript/src/utils/useTabBarPosition.d.ts +3 -0
  42. package/lib/typescript/src/utils/useTabBarPosition.d.ts.map +1 -0
  43. package/lib/typescript/src/views/BottomTabBar.d.ts +4 -4
  44. package/lib/typescript/src/views/BottomTabBar.d.ts.map +1 -1
  45. package/lib/typescript/src/views/BottomTabItem.d.ts +16 -14
  46. package/lib/typescript/src/views/BottomTabItem.d.ts.map +1 -1
  47. package/lib/typescript/src/views/{BottomTabView.d.ts → BottomTabViewCommon.d.ts} +2 -2
  48. package/lib/typescript/src/views/BottomTabViewCommon.d.ts.map +1 -0
  49. package/lib/typescript/src/views/BottomTabViewCustom.d.ts +10 -0
  50. package/lib/typescript/src/views/BottomTabViewCustom.d.ts.map +1 -0
  51. package/lib/typescript/src/views/BottomTabViewNative.android.d.ts +2 -0
  52. package/lib/typescript/src/views/BottomTabViewNative.android.d.ts.map +1 -0
  53. package/lib/typescript/src/views/BottomTabViewNative.d.ts +3 -0
  54. package/lib/typescript/src/views/BottomTabViewNative.d.ts.map +1 -0
  55. package/lib/typescript/src/views/BottomTabViewNative.ios.d.ts +2 -0
  56. package/lib/typescript/src/views/BottomTabViewNative.ios.d.ts.map +1 -0
  57. package/lib/typescript/src/views/BottomTabViewNativeImpl.d.ts +10 -0
  58. package/lib/typescript/src/views/BottomTabViewNativeImpl.d.ts.map +1 -0
  59. package/lib/typescript/src/views/ScreenContent.d.ts +13 -0
  60. package/lib/typescript/src/views/ScreenContent.d.ts.map +1 -0
  61. package/lib/typescript/src/views/TabBarIcon.d.ts +9 -9
  62. package/lib/typescript/src/views/TabBarIcon.d.ts.map +1 -1
  63. package/package.json +11 -16
  64. package/src/index.tsx +7 -2
  65. package/src/navigators/createBottomTabNavigator.tsx +78 -27
  66. package/src/types.tsx +417 -122
  67. package/src/utils/BottomTabAnimationContext.tsx +7 -0
  68. package/src/utils/useBottomTabAnimation.tsx +15 -0
  69. package/src/utils/useTabBarPosition.tsx +41 -0
  70. package/src/views/BottomTabBar.tsx +68 -67
  71. package/src/views/BottomTabItem.tsx +39 -34
  72. package/src/views/BottomTabViewCommon.tsx +26 -0
  73. package/src/views/{BottomTabView.tsx → BottomTabViewCustom.tsx} +142 -129
  74. package/src/views/BottomTabViewNative.android.tsx +1 -0
  75. package/src/views/BottomTabViewNative.ios.tsx +1 -0
  76. package/src/views/BottomTabViewNative.tsx +3 -0
  77. package/src/{unstable/NativeBottomTabView.native.tsx → views/BottomTabViewNativeImpl.tsx} +139 -116
  78. package/src/views/ScreenContent.tsx +58 -0
  79. package/src/views/TabBarIcon.tsx +63 -10
  80. package/lib/module/unstable/NativeBottomTabView.js +0 -6
  81. package/lib/module/unstable/NativeBottomTabView.js.map +0 -1
  82. package/lib/module/unstable/NativeBottomTabView.native.js.map +0 -1
  83. package/lib/module/unstable/NativeScreen/NativeScreen.js +0 -152
  84. package/lib/module/unstable/NativeScreen/NativeScreen.js.map +0 -1
  85. package/lib/module/unstable/NativeScreen/debounce.js +0 -12
  86. package/lib/module/unstable/NativeScreen/debounce.js.map +0 -1
  87. package/lib/module/unstable/NativeScreen/types.js +0 -4
  88. package/lib/module/unstable/NativeScreen/types.js.map +0 -1
  89. package/lib/module/unstable/NativeScreen/useAnimatedHeaderHeight.js +0 -12
  90. package/lib/module/unstable/NativeScreen/useAnimatedHeaderHeight.js.map +0 -1
  91. package/lib/module/unstable/NativeScreen/useHeaderConfig.js +0 -304
  92. package/lib/module/unstable/NativeScreen/useHeaderConfig.js.map +0 -1
  93. package/lib/module/unstable/createNativeBottomTabNavigator.js +0 -6
  94. package/lib/module/unstable/createNativeBottomTabNavigator.js.map +0 -1
  95. package/lib/module/unstable/createNativeBottomTabNavigator.native.js +0 -65
  96. package/lib/module/unstable/createNativeBottomTabNavigator.native.js.map +0 -1
  97. package/lib/module/unstable/index.js +0 -16
  98. package/lib/module/unstable/index.js.map +0 -1
  99. package/lib/module/unstable/types.js +0 -4
  100. package/lib/module/unstable/types.js.map +0 -1
  101. package/lib/module/views/BottomTabView.js.map +0 -1
  102. package/lib/module/views/ScreenFallback.js +0 -42
  103. package/lib/module/views/ScreenFallback.js.map +0 -1
  104. package/lib/typescript/src/unstable/NativeBottomTabView.d.ts +0 -10
  105. package/lib/typescript/src/unstable/NativeBottomTabView.d.ts.map +0 -1
  106. package/lib/typescript/src/unstable/NativeBottomTabView.native.d.ts +0 -10
  107. package/lib/typescript/src/unstable/NativeBottomTabView.native.d.ts.map +0 -1
  108. package/lib/typescript/src/unstable/NativeScreen/NativeScreen.d.ts +0 -8
  109. package/lib/typescript/src/unstable/NativeScreen/NativeScreen.d.ts.map +0 -1
  110. package/lib/typescript/src/unstable/NativeScreen/debounce.d.ts +0 -2
  111. package/lib/typescript/src/unstable/NativeScreen/debounce.d.ts.map +0 -1
  112. package/lib/typescript/src/unstable/NativeScreen/types.d.ts +0 -523
  113. package/lib/typescript/src/unstable/NativeScreen/types.d.ts.map +0 -1
  114. package/lib/typescript/src/unstable/NativeScreen/useAnimatedHeaderHeight.d.ts +0 -5
  115. package/lib/typescript/src/unstable/NativeScreen/useAnimatedHeaderHeight.d.ts.map +0 -1
  116. package/lib/typescript/src/unstable/NativeScreen/useHeaderConfig.d.ts +0 -11
  117. package/lib/typescript/src/unstable/NativeScreen/useHeaderConfig.d.ts.map +0 -1
  118. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.d.ts +0 -2
  119. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.d.ts.map +0 -1
  120. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.native.d.ts +0 -16
  121. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.native.d.ts.map +0 -1
  122. package/lib/typescript/src/unstable/index.d.ts +0 -13
  123. package/lib/typescript/src/unstable/index.d.ts.map +0 -1
  124. package/lib/typescript/src/unstable/types.d.ts +0 -319
  125. package/lib/typescript/src/unstable/types.d.ts.map +0 -1
  126. package/lib/typescript/src/views/BottomTabView.d.ts.map +0 -1
  127. package/lib/typescript/src/views/ScreenFallback.d.ts +0 -18
  128. package/lib/typescript/src/views/ScreenFallback.d.ts.map +0 -1
  129. package/src/unstable/NativeBottomTabView.tsx +0 -20
  130. package/src/unstable/NativeScreen/NativeScreen.tsx +0 -212
  131. package/src/unstable/NativeScreen/debounce.tsx +0 -14
  132. package/src/unstable/NativeScreen/types.ts +0 -573
  133. package/src/unstable/NativeScreen/useAnimatedHeaderHeight.tsx +0 -18
  134. package/src/unstable/NativeScreen/useHeaderConfig.tsx +0 -434
  135. package/src/unstable/createNativeBottomTabNavigator.native.tsx +0 -116
  136. package/src/unstable/createNativeBottomTabNavigator.tsx +0 -4
  137. package/src/unstable/index.tsx +0 -23
  138. package/src/unstable/types.tsx +0 -405
  139. package/src/views/ScreenFallback.tsx +0 -50
@@ -1 +0,0 @@
1
- {"version":3,"names":["getHeaderTitle","Header","SafeAreaProviderCompat","Screen","StackActions","React","Animated","Platform","StyleSheet","SafeAreaInsetsContext","FadeTransition","ShiftTransition","BottomTabBarHeightCallbackContext","BottomTabBarHeightContext","useAnimatedHashMap","BottomTabBar","getTabBarHeight","MaybeScreen","MaybeScreenContainer","jsx","_jsx","jsxs","_jsxs","EPSILON","STATE_INACTIVE","STATE_TRANSITIONING_OR_BELOW_TOP","STATE_ON_TOP","NAMED_TRANSITIONS_PRESETS","fade","shift","none","sceneStyleInterpolator","undefined","transitionSpec","animation","config","duration","useNativeDriver","OS","hasAnimation","options","Boolean","renderTabBarDefault","props","BottomTabView","tabBar","state","navigation","descriptors","safeAreaInsets","detachInactiveScreens","focusedRouteKey","routes","index","key","loaded","setLoaded","useState","includes","previousRouteKeyRef","useRef","tabAnims","useEffect","previousRouteKey","current","popToTopAction","popToTopOnBlur","prevRoute","find","route","type","popToTop","target","animateToIndex","emit","parallel","map","spec","toValue","filter","start","finished","dispatch","dimensions","initialMetrics","frame","tabBarHeight","setTabBarHeight","insets","style","tabBarStyle","renderTabBar","Consumer","children","top","right","bottom","left","hasTwoStates","some","tabBarPosition","tabBarElement","Provider","value","flexDirection","enabled","styles","screens","descriptor","lazy","isFocused","isPreloaded","preloadedRouteKeys","freezeOnBlur","header","layout","title","name","headerShown","headerStatusBarHeight","headerTransparent","sceneStyle","customSceneStyle","progress","animationEnabled","activityState","interpolate","inputRange","outputRange","extrapolate","absoluteFill","zIndex","active","shouldFreeze","focused","render","create","flex","overflow"],"sourceRoot":"../../../src","sources":["views/BottomTabView.tsx"],"mappings":";;AAAA,SACEA,cAAc,EACdC,MAAM,EACNC,sBAAsB,EACtBC,MAAM,QACD,4BAA4B;AACnC,SAGEC,YAAY,QAEP,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAC7D,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SACEC,cAAc,EACdC,eAAe,QACV,2CAAwC;AAU/C,SAASC,iCAAiC,QAAQ,+CAA4C;AAC9F,SAASC,yBAAyB,QAAQ,uCAAoC;AAC9E,SAASC,kBAAkB,QAAQ,gCAA6B;AAChE,SAASC,YAAY,EAAEC,eAAe,QAAQ,mBAAgB;AAC9D,SAASC,WAAW,EAAEC,oBAAoB,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAA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YAAY,EAAEA,YAAa;UAC3BoB,YAAY,EAAER,aAAa,KAAKrG,cAAc,IAAI,CAACuF,WAAY;UAAAlB,QAAA,eAE/DzE,IAAA,CAACP,yBAAyB,CAACyF,QAAQ;YACjCC,KAAK,EAAEH,cAAc,KAAK,QAAQ,GAAGd,YAAY,GAAG,CAAE;YAAAO,QAAA,eAEtDzE,IAAA,CAACjB,MAAM;cACLmI,OAAO,EAAExB,SAAU;cACnBzC,KAAK,EAAEuC,UAAU,CAACvC,KAAM;cACxBtB,UAAU,EAAE6D,UAAU,CAAC7D,UAAW;cAClCuE,WAAW,EAAEA,WAAY;cACzBC,qBAAqB,EAAEA,qBAAsB;cAC7CC,iBAAiB,EAAEA,iBAAkB;cACrCN,MAAM,EAAEA,MAAM,CAAC;gBACbC,MAAM,EAAEhC,UAAU;gBAClBd,KAAK,EAAEuC,UAAU,CAACvC,KAAK;gBACvBtB,UAAU,EACR6D,UAAU,CAAC7D,UAAoD;gBACjEP,OAAO,EAAEoE,UAAU,CAACpE;cACtB,CAAC,CAAE;cACHiD,KAAK,EAAE,CAACiC,gBAAgB,EAAEE,gBAAgB,IAAIH,UAAU,CAAE;cAAA5B,QAAA,EAEzDe,UAAU,CAAC2B,MAAM,CAAC;YAAC,CACd;UAAC,CACyB;QAAC,GA5BhClE,KAAK,CAACf,GA6BA,CAAC;MAElB,CAAC;IAAC,GAhGE,SAiGgB,CAAC,EACtB8C,cAAc,KAAK,QAAQ,IAAIA,cAAc,KAAK,OAAO,GACtDC,aAAa,GACb,IAAI;EAAA,CACc,CAAC;AAE7B;AAEA,MAAMK,MAAM,GAAGlG,UAAU,CAACgI,MAAM,CAAC;EAC/B7B,OAAO,EAAE;IACP8B,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- import * as React from 'react';
4
- import { View } from 'react-native';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- let Screens;
7
- try {
8
- Screens = require('react-native-screens');
9
- } catch (e) {
10
- // Ignore
11
- }
12
- export const MaybeScreenContainer = ({
13
- enabled,
14
- ...rest
15
- }) => {
16
- if (Screens?.screensEnabled?.()) {
17
- return /*#__PURE__*/_jsx(Screens.ScreenContainer, {
18
- enabled: enabled,
19
- ...rest
20
- });
21
- }
22
- return /*#__PURE__*/_jsx(View, {
23
- ...rest
24
- });
25
- };
26
- export function MaybeScreen({
27
- enabled,
28
- active,
29
- ...rest
30
- }) {
31
- if (Screens?.screensEnabled?.()) {
32
- return /*#__PURE__*/_jsx(Screens.Screen, {
33
- enabled: enabled,
34
- activityState: active,
35
- ...rest
36
- });
37
- }
38
- return /*#__PURE__*/_jsx(View, {
39
- ...rest
40
- });
41
- }
42
- //# sourceMappingURL=ScreenFallback.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","jsx","_jsx","Screens","require","e","MaybeScreenContainer","enabled","rest","screensEnabled","ScreenContainer","MaybeScreen","active","Screen","activityState"],"sourceRoot":"../../../src","sources":["views/ScreenFallback.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAGEC,IAAI,QAGC,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAWtB,IAAIC,OAA0D;AAE9D,IAAI;EACFA,OAAO,GAAGC,OAAO,CAAC,sBAAsB,CAAC;AAC3C,CAAC,CAAC,OAAOC,CAAC,EAAE;EACV;AAAA;AAGF,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCC,OAAO;EACP,GAAGC;AAKL,CAAC,KAAK;EACJ,IAAIL,OAAO,EAAEM,cAAc,GAAG,CAAC,EAAE;IAC/B,oBAAOP,IAAA,CAACC,OAAO,CAACO,eAAe;MAACH,OAAO,EAAEA,OAAQ;MAAA,GAAKC;IAAI,CAAG,CAAC;EAChE;EAEA,oBAAON,IAAA,CAACF,IAAI;IAAA,GAAKQ;EAAI,CAAG,CAAC;AAC3B,CAAC;AAED,OAAO,SAASG,WAAWA,CAAC;EAAEJ,OAAO;EAAEK,MAAM;EAAE,GAAGJ;AAAwB,CAAC,EAAE;EAC3E,IAAIL,OAAO,EAAEM,cAAc,GAAG,CAAC,EAAE;IAC/B,oBACEP,IAAA,CAACC,OAAO,CAACU,MAAM;MAACN,OAAO,EAAEA,OAAQ;MAACO,aAAa,EAAEF,MAAO;MAAA,GAAKJ;IAAI,CAAG,CAAC;EAEzE;EAEA,oBAAON,IAAA,CAACF,IAAI;IAAA,GAAKQ;EAAI,CAAG,CAAC;AAC3B","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import { type ParamListBase, type TabNavigationState } from '@react-navigation/native';
2
- import type { NativeBottomTabDescriptorMap, NativeBottomTabNavigationConfig, NativeBottomTabNavigationHelpers } from './types';
3
- type Props = NativeBottomTabNavigationConfig & {
4
- state: TabNavigationState<ParamListBase>;
5
- navigation: NativeBottomTabNavigationHelpers;
6
- descriptors: NativeBottomTabDescriptorMap;
7
- };
8
- export declare function NativeBottomTabView(_: Props): void;
9
- export {};
10
- //# sourceMappingURL=NativeBottomTabView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeBottomTabView.d.ts","sourceRoot":"","sources":["../../../../src/unstable/NativeBottomTabView.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG,+BAA+B,GAAG;IAC7C,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,gCAAgC,CAAC;IAC7C,WAAW,EAAE,4BAA4B,CAAC;CAC3C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,QAE3C"}
@@ -1,10 +0,0 @@
1
- import { type ParamListBase, type TabNavigationState } from '@react-navigation/native';
2
- import type { NativeBottomTabDescriptorMap, NativeBottomTabNavigationConfig, NativeBottomTabNavigationHelpers } from './types';
3
- type Props = NativeBottomTabNavigationConfig & {
4
- state: TabNavigationState<ParamListBase>;
5
- navigation: NativeBottomTabNavigationHelpers;
6
- descriptors: NativeBottomTabDescriptorMap;
7
- };
8
- export declare function NativeBottomTabView({ state, navigation, descriptors }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
10
- //# sourceMappingURL=NativeBottomTabView.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeBottomTabView.native.d.ts","sourceRoot":"","sources":["../../../../src/unstable/NativeBottomTabView.native.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,aAAa,EAGlB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;AAYlC,OAAO,KAAK,EACV,4BAA4B,EAE5B,+BAA+B,EAC/B,gCAAgC,EAGjC,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG,+BAA+B,GAAG;IAC7C,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,gCAAgC,CAAC;IAC7C,WAAW,EAAE,4BAA4B,CAAC;CAC3C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,KAAK,2CA8P5E"}
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import type { NativeBottomTabHeaderProps } from '../types';
3
- type Props = NativeBottomTabHeaderProps & {
4
- children: React.ReactNode;
5
- };
6
- export declare function NativeScreen({ route, navigation, options, children }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=NativeScreen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeScreen.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/NativeScreen.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAK3D,KAAK,KAAK,GAAG,0BAA0B,GAAG;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAIF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA6J3E"}
@@ -1,2 +0,0 @@
1
- export declare function debounce<T extends (...args: any[]) => void>(func: T, duration: number): T;
2
- //# sourceMappingURL=debounce.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/debounce.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,MAAM,GACf,CAAC,CAUH"}
@@ -1,523 +0,0 @@
1
- import * as React from 'react';
2
- import type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';
3
- import type { ScreenStackHeaderConfigProps, SearchBarProps } from 'react-native-screens';
4
- import type { SFSymbol } from 'sf-symbols-typescript';
5
- import type { NativeBottomTabHeaderProps } from '../types';
6
- export type NativeHeaderOptions = {
7
- /**
8
- * String that can be displayed in the header as a fallback for `headerTitle`.
9
- */
10
- title?: string;
11
- /**
12
- * Style of the header when a large title is shown
13
- * The large title is shown if `headerLargeTitle` is `true` and
14
- * the edge of any scrollable content reaches the matching edge of the header.
15
- *
16
- * Supported properties:
17
- * - backgroundColor
18
- *
19
- * Only supported on iOS.
20
- *
21
- * @platform ios
22
- */
23
- headerLargeStyle?: StyleProp<{
24
- backgroundColor?: ColorValue;
25
- }>;
26
- /**
27
- * Whether to enable header with large title which collapses to regular header on scroll.
28
- *
29
- * For large title to collapse on scroll, the content of the screen should be wrapped in a scrollable view such as `ScrollView` or `FlatList`.
30
- * If the scrollable area doesn't fill the screen, the large title won't collapse on scroll.
31
- * You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
32
- *
33
- * Only supported on iOS.
34
- *
35
- * @platform ios
36
- */
37
- headerLargeTitleEnabled?: boolean;
38
- /**
39
- * Whether drop shadow of header is visible when a large title is shown.
40
- *
41
- * Only supported on iOS.
42
- *
43
- * @platform ios
44
- */
45
- headerLargeTitleShadowVisible?: boolean;
46
- /**
47
- * Style object for large title in header. Supported properties:
48
- * - fontFamily
49
- * - fontSize
50
- * - fontWeight
51
- * - color
52
- *
53
- * Only supported on iOS.
54
- *
55
- * @platform ios
56
- */
57
- headerLargeTitleStyle?: StyleProp<{
58
- fontFamily?: string;
59
- fontSize?: number;
60
- fontWeight?: string;
61
- color?: ColorValue;
62
- }>;
63
- /**
64
- * Style object for header. Supported properties:
65
- * - backgroundColor
66
- */
67
- headerStyle?: StyleProp<{
68
- backgroundColor?: ColorValue;
69
- }>;
70
- /**
71
- * Whether to hide the elevation shadow (Android) or the bottom border (iOS) on the header.
72
- */
73
- headerShadowVisible?: boolean;
74
- /**
75
- * Boolean indicating whether the navigation bar is translucent.
76
- * Setting this to `true` makes the header absolutely positioned,
77
- * and changes the background color to `transparent` unless specified in `headerStyle`.
78
- */
79
- headerTransparent?: boolean;
80
- /**
81
- * Blur effect for the translucent header.
82
- * The `headerTransparent` option needs to be set to `true` for this to work.
83
- *
84
- * Only supported on iOS.
85
- *
86
- * @platform ios
87
- */
88
- headerBlurEffect?: ScreenStackHeaderConfigProps['blurEffect'];
89
- /**
90
- * Tint color for the header. Changes the color of back button and title.
91
- */
92
- headerTintColor?: string;
93
- /**
94
- * Function which returns a React Element to render as the background of the header.
95
- * This is useful for using backgrounds such as an image, a gradient, blur effect etc.
96
- * You can use this with `headerTransparent` to render content underneath a translucent header.
97
- */
98
- headerBackground?: () => React.ReactNode;
99
- /**
100
- * Function which returns a React Element to display on the left side of the header.
101
- * This replaces the back button. See `headerBackVisible` to show the back button along side left element.
102
- * Will be overriden by `headerLeftItems` on iOS.
103
- */
104
- headerLeft?: (props: NativeScreenHeaderItemProps) => React.ReactNode;
105
- /**
106
- * Function which returns a React Element to display on the right side of the header.
107
- * Will be overriden by `headerRightItems` on iOS.
108
- */
109
- headerRight?: (props: NativeScreenHeaderItemProps) => React.ReactNode;
110
- /**
111
- * Function which returns an array of items to display as on the left side of the header.
112
- * Overrides `headerLeft`.
113
- *
114
- * This is an unstable API and might change in the future.
115
- *
116
- * @platform ios
117
- */
118
- unstable_headerLeftItems?: (props: NativeScreenHeaderItemProps) => NativeScreenHeaderItem[];
119
- /**
120
- * Function which returns an array of items to display as on the right side of the header.
121
- * Overrides `headerRight`.
122
- *
123
- * This is an unstable API and might change in the future.
124
- *
125
- * @platform ios
126
- */
127
- unstable_headerRightItems?: (props: NativeScreenHeaderItemProps) => NativeScreenHeaderItem[];
128
- /**
129
- * String or a function that returns a React Element to be used by the header.
130
- * Defaults to screen `title` or route name.
131
- *
132
- * When a function is passed, it receives `tintColor` and`children` in the options object as an argument.
133
- * The title string is passed in `children`.
134
- *
135
- * Note that if you render a custom element by passing a function, animations for the title won't work.
136
- */
137
- headerTitle?: string | ((props: {
138
- /**
139
- * The title text of the header.
140
- */
141
- children: string;
142
- /**
143
- * Tint color for the header.
144
- */
145
- tintColor?: string;
146
- }) => React.ReactNode);
147
- /**
148
- * How to align the the header title.
149
- * Defaults to `left` on platforms other than iOS.
150
- *
151
- * Not supported on iOS. It's always `center` on iOS and cannot be changed.
152
- */
153
- headerTitleAlign?: 'left' | 'center';
154
- /**
155
- * Style object for header title. Supported properties:
156
- * - fontFamily
157
- * - fontSize
158
- * - fontWeight
159
- * - color
160
- */
161
- headerTitleStyle?: StyleProp<Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight'> & {
162
- color?: string;
163
- }>;
164
- /**
165
- * Options to render a native search bar.
166
- * You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
167
- * If you don't have a `ScrollView`, specify `headerTransparent: false`.
168
- */
169
- headerSearchBarOptions?: SearchBarProps;
170
- /**
171
- * Whether to show the header. Setting this to `false` hides the header.
172
- * Defaults to `true`.
173
- */
174
- headerShown?: boolean;
175
- /**
176
- * Function that given returns a React Element to display as a header.
177
- */
178
- header?: (props: NativeBottomTabHeaderProps) => React.ReactNode;
179
- };
180
- export type NativeScreenHeaderItemProps = {
181
- /**
182
- * Tint color for the header.
183
- */
184
- tintColor?: ColorValue;
185
- };
186
- /**
187
- * A button item in the header.
188
- */
189
- export type NativeScreenHeaderItemButton = SharedHeaderItem & {
190
- /**
191
- * Type of the item.
192
- */
193
- type: 'button';
194
- /**
195
- * Function to call when the item is pressed.
196
- */
197
- onPress: () => void;
198
- /**
199
- * Whether the item is in a selected state.
200
- *
201
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/isselected
202
- */
203
- selected?: boolean;
204
- };
205
- /**
206
- * An action item in a menu.
207
- */
208
- export type NativeScreenHeaderItemMenuAction = {
209
- type: 'action';
210
- /**
211
- * Label for the menu item.
212
- */
213
- label: string;
214
- /**
215
- * The secondary text displayed alongside the label of the menu item.
216
- */
217
- description?: string;
218
- /**
219
- * Icon for the menu item.
220
- */
221
- icon?: IconIOSSfSymbol;
222
- /**
223
- * Function to call when the menu item is pressed.
224
- */
225
- onPress: () => void;
226
- /**
227
- * The state of an action- or command-based menu item.
228
- *
229
- * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/state
230
- */
231
- state?: 'on' | 'off' | 'mixed';
232
- /**
233
- * Whether to apply disabled style to the item.
234
- *
235
- * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/disabled
236
- */
237
- disabled?: boolean;
238
- /**
239
- * Whether to apply destructive style to the item.
240
- *
241
- * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive
242
- */
243
- destructive?: boolean;
244
- /**
245
- * Whether to apply hidden style to the item.
246
- *
247
- * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/hidden
248
- */
249
- hidden?: boolean;
250
- /**
251
- * Whether to keep the menu presented after firing the element’s action.
252
- *
253
- * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/keepsmenupresented
254
- */
255
- keepsMenuPresented?: boolean;
256
- /**
257
- * An elaborated title that explains the purpose of the action.
258
- *
259
- * On iOS, the system displays this title in the discoverability heads-up display (HUD).
260
- * If this is not set, the HUD displays the title property.
261
- *
262
- * Read more: https://developer.apple.com/documentation/uikit/uiaction/discoverabilitytitle
263
- */
264
- discoverabilityLabel?: string;
265
- };
266
- /**
267
- * A submenu item that contains other menu items.
268
- */
269
- export type NativeScreenHeaderItemMenuSubmenu = {
270
- type: 'submenu';
271
- /**
272
- * Label for the submenu item.
273
- */
274
- label: string;
275
- /**
276
- * Icon for the submenu item.
277
- */
278
- icon?: IconIOSSfSymbol;
279
- /**
280
- * Whether the menu is displayed inline with the parent menu.
281
- * By default, submenus are displayed after expanding the parent menu item.
282
- * Inline menus are displayed as part of the parent menu as a section.
283
- *
284
- * Defaults to `false`.
285
- *
286
- * Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline
287
- */
288
- inline?: boolean;
289
- /**
290
- * How the submenu items are displayed.
291
- * - `default`: menu items are displayed normally.
292
- * - `palette`: menu items are displayed in a horizontal row.
293
- *
294
- * Defaults to `default`.
295
- *
296
- * Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette
297
- */
298
- layout?: 'default' | 'palette';
299
- /**
300
- * Whether to apply destructive style to the menu item.
301
- *
302
- * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive
303
- */
304
- destructive?: boolean;
305
- /**
306
- * Whether multiple items in the submenu can be selected, i.e. in "on" state.
307
- *
308
- * Defaults to `false`.
309
- *
310
- * Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/singleselection
311
- */
312
- multiselectable?: boolean;
313
- /**
314
- * Array of menu items (actions or submenus).
315
- */
316
- items: NativeScreenHeaderItemMenu['menu']['items'];
317
- };
318
- /**
319
- * An item that shows a menu when pressed.
320
- */
321
- export type NativeScreenHeaderItemMenu = SharedHeaderItem & {
322
- type: 'menu';
323
- /**
324
- * Whether the menu is a selection menu.
325
- * Tapping an item in a selection menu will add a checkmark to the selected item.
326
- *
327
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/changesselectionasprimaryaction
328
- */
329
- changesSelectionAsPrimaryAction?: boolean;
330
- /**
331
- * Menu for the item.
332
- */
333
- menu: {
334
- /**
335
- * Optional title to show on top of the menu.
336
- */
337
- title?: string;
338
- /**
339
- * Whether multiple items in the submenu can be selected, i.e. in "on" state.
340
- *
341
- * Defaults to `false`.
342
- *
343
- * Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/singleselection
344
- */
345
- multiselectable?: boolean;
346
- /**
347
- * How the submenu items are displayed.
348
- * - `default`: menu items are displayed normally.
349
- * - `palette`: menu items are displayed in a horizontal row.
350
- *
351
- * Defaults to `default`.
352
- *
353
- * Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette
354
- */
355
- layout?: 'default' | 'palette';
356
- /**
357
- * Array of menu items (actions or submenus).
358
- */
359
- items: (NativeScreenHeaderItemMenuAction | NativeScreenHeaderItemMenuSubmenu)[];
360
- };
361
- };
362
- /**
363
- * An item to add spacing between other items in the header.
364
- */
365
- export type NativeScreenHeaderItemSpacing = {
366
- type: 'spacing';
367
- /**
368
- * The amount of spacing to add.
369
- */
370
- spacing: number;
371
- };
372
- /**
373
- * A custom item to display any React Element in the header.
374
- */
375
- export type NativeScreenHeaderItemCustom = {
376
- type: 'custom';
377
- /**
378
- * A React Element to display as the item.
379
- */
380
- element: React.ReactElement;
381
- /**
382
- * Whether the background this item may share with other items in the bar should be hidden.
383
- * Only available from iOS 26.0 and later.
384
- *
385
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
386
- */
387
- hidesSharedBackground?: boolean;
388
- };
389
- /**
390
- * An item that can be displayed in the header.
391
- * It can be a button, a menu, spacing, or a custom element.
392
- *
393
- * On iOS 26, when showing items on the right side of the header,
394
- * if the items don't fit the available space, they will be collapsed into a menu automatically.
395
- * Items with `type: 'custom'` will not be included in this automatic collapsing behavior.
396
- */
397
- export type NativeScreenHeaderItem = NativeScreenHeaderItemButton | NativeScreenHeaderItemMenu | NativeScreenHeaderItemSpacing | NativeScreenHeaderItemCustom;
398
- type IconImage = {
399
- /**
400
- * - `image` - Use a local image as the icon.
401
- */
402
- type: 'image';
403
- /**
404
- * Image source to use as the icon.
405
- * e.g., `require('./path/to/image.png')`
406
- */
407
- source: ImageSourcePropType;
408
- /**
409
- * Whether to apply tint color to the icon.
410
- * Defaults to `true`.
411
- *
412
- * @platform ios
413
- */
414
- tinted?: boolean;
415
- };
416
- type IconIOSSfSymbol = {
417
- /**
418
- * - `sfSymbol` - Use an SF Symbol as the icon on iOS.
419
- */
420
- type: 'sfSymbol';
421
- /**
422
- * Name of the SF Symbol to use as the icon.
423
- *
424
- * @platform ios
425
- */
426
- name: SFSymbol;
427
- };
428
- type IconIOS = IconIOSSfSymbol | IconImage;
429
- type SharedHeaderItem = {
430
- /**
431
- * Label of the item.
432
- */
433
- label: string;
434
- /**
435
- * Style for the item label.
436
- */
437
- labelStyle?: {
438
- fontFamily?: string;
439
- fontSize?: number;
440
- fontWeight?: string;
441
- color?: ColorValue;
442
- };
443
- /**
444
- * Icon for the item
445
- */
446
- icon?: IconIOS;
447
- /**
448
- * The variant of the item.
449
- * "prominent" only available from iOS 26.0 and later.
450
- *
451
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/style-swift.property
452
- */
453
- variant?: 'plain' | 'done' | 'prominent';
454
- /**
455
- * The tint color to apply to the item.
456
- *
457
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor
458
- */
459
- tintColor?: ColorValue;
460
- /**
461
- * Whether the item is in a disabled state.
462
- */
463
- disabled?: boolean;
464
- /**
465
- * The width of the item.
466
- *
467
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/width
468
- */
469
- width?: number;
470
- /**
471
- * Whether the background this item may share with other items in the bar should be hidden.
472
- * Only available from iOS 26.0 and later.
473
- *
474
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
475
- */
476
- hidesSharedBackground?: boolean;
477
- /**
478
- * Whether this item can share a background with other items.
479
- * Only available from iOS 26.0 and later.
480
- *
481
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/sharesbackground
482
- */
483
- sharesBackground?: boolean;
484
- /**
485
- * An identifier used to match items across transitions.
486
- * Only available from iOS 26.0 and later.
487
- *
488
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/identifier
489
- */
490
- identifier?: string;
491
- /**
492
- * A badge to display on a item.
493
- * Only available from iOS 26.0 and later.
494
- *
495
- * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitembadge
496
- */
497
- badge?: {
498
- /**
499
- * The text to display in the badge.
500
- */
501
- value: number | string;
502
- /**
503
- * Style of the badge.
504
- */
505
- style?: {
506
- color?: ColorValue;
507
- backgroundColor?: ColorValue;
508
- fontFamily?: string;
509
- fontSize?: number;
510
- fontWeight?: string;
511
- };
512
- };
513
- /**
514
- * Accessibility label for the item.
515
- */
516
- accessibilityLabel?: string;
517
- /**
518
- * Accessibility hint for the item.
519
- */
520
- accessibilityHint?: string;
521
- };
522
- export {};
523
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,4B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,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,UAAU,CAAC;KACpB,CAAC;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC;IACzC;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB;;WAEG;QACH,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,EAAE,UAAU,CAAC;YACnB,eAAe,CAAC,EAAE,UAAU,CAAC;YAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;KACH,CAAC;IACF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import type { Animated } from 'react-native';
3
- export declare const AnimatedHeaderHeightContext: React.Context<Animated.AnimatedInterpolation<number> | undefined>;
4
- export declare function useAnimatedHeaderHeight(): Animated.AnimatedInterpolation<number>;
5
- //# sourceMappingURL=useAnimatedHeaderHeight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAnimatedHeaderHeight.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/useAnimatedHeaderHeight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,2BAA2B,mEAE5B,CAAC;AAEb,wBAAgB,uBAAuB,2CAUtC"}