@react-navigation/elements 1.3.10 → 1.3.11

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 (130) hide show
  1. package/lib/commonjs/Background.js +0 -7
  2. package/lib/commonjs/Background.js.map +1 -1
  3. package/lib/commonjs/Header/Header.js +3 -20
  4. package/lib/commonjs/Header/Header.js.map +1 -1
  5. package/lib/commonjs/Header/HeaderBackButton.js +4 -22
  6. package/lib/commonjs/Header/HeaderBackButton.js.map +1 -1
  7. package/lib/commonjs/Header/HeaderBackContext.js +0 -3
  8. package/lib/commonjs/Header/HeaderBackContext.js.map +1 -1
  9. package/lib/commonjs/Header/HeaderBackground.js +0 -8
  10. package/lib/commonjs/Header/HeaderBackground.js.map +1 -1
  11. package/lib/commonjs/Header/HeaderHeightContext.js +0 -3
  12. package/lib/commonjs/Header/HeaderHeightContext.js.map +1 -1
  13. package/lib/commonjs/Header/HeaderShownContext.js +0 -3
  14. package/lib/commonjs/Header/HeaderShownContext.js.map +1 -1
  15. package/lib/commonjs/Header/HeaderTitle.js +0 -8
  16. package/lib/commonjs/Header/HeaderTitle.js.map +1 -1
  17. package/lib/commonjs/Header/getDefaultHeaderHeight.js +0 -4
  18. package/lib/commonjs/Header/getDefaultHeaderHeight.js.map +1 -1
  19. package/lib/commonjs/Header/getHeaderTitle.js +0 -1
  20. package/lib/commonjs/Header/getHeaderTitle.js.map +1 -1
  21. package/lib/commonjs/Header/useHeaderHeight.js +0 -8
  22. package/lib/commonjs/Header/useHeaderHeight.js.map +1 -1
  23. package/lib/commonjs/MaskedView.android.js +0 -2
  24. package/lib/commonjs/MaskedView.android.js.map +1 -1
  25. package/lib/commonjs/MaskedView.ios.js +0 -2
  26. package/lib/commonjs/MaskedView.ios.js.map +1 -1
  27. package/lib/commonjs/MaskedView.js +1 -1
  28. package/lib/commonjs/MaskedView.js.map +1 -1
  29. package/lib/commonjs/MaskedViewNative.js +3 -11
  30. package/lib/commonjs/MaskedViewNative.js.map +1 -1
  31. package/lib/commonjs/MissingIcon.js +0 -6
  32. package/lib/commonjs/MissingIcon.js.map +1 -1
  33. package/lib/commonjs/PlatformPressable.js +1 -14
  34. package/lib/commonjs/PlatformPressable.js.map +1 -1
  35. package/lib/commonjs/ResourceSavingView.js +6 -12
  36. package/lib/commonjs/ResourceSavingView.js.map +1 -1
  37. package/lib/commonjs/SafeAreaProviderCompat.js +3 -13
  38. package/lib/commonjs/SafeAreaProviderCompat.js.map +1 -1
  39. package/lib/commonjs/Screen.js +1 -14
  40. package/lib/commonjs/Screen.js.map +1 -1
  41. package/lib/commonjs/getNamedContext.js +1 -10
  42. package/lib/commonjs/getNamedContext.js.map +1 -1
  43. package/lib/commonjs/index.js +4 -22
  44. package/lib/commonjs/index.js.map +1 -1
  45. package/lib/commonjs/types.js.map +1 -1
  46. package/lib/module/Background.js +0 -1
  47. package/lib/module/Background.js.map +1 -1
  48. package/lib/module/Header/Header.js +3 -8
  49. package/lib/module/Header/Header.js.map +1 -1
  50. package/lib/module/Header/HeaderBackButton.js +4 -12
  51. package/lib/module/Header/HeaderBackButton.js.map +1 -1
  52. package/lib/module/Header/HeaderBackContext.js.map +1 -1
  53. package/lib/module/Header/HeaderBackground.js +0 -1
  54. package/lib/module/Header/HeaderBackground.js.map +1 -1
  55. package/lib/module/Header/HeaderHeightContext.js.map +1 -1
  56. package/lib/module/Header/HeaderShownContext.js.map +1 -1
  57. package/lib/module/Header/HeaderTitle.js +0 -1
  58. package/lib/module/Header/HeaderTitle.js.map +1 -1
  59. package/lib/module/Header/getDefaultHeaderHeight.js +0 -2
  60. package/lib/module/Header/getDefaultHeaderHeight.js.map +1 -1
  61. package/lib/module/Header/getHeaderTitle.js.map +1 -1
  62. package/lib/module/Header/useHeaderHeight.js +0 -2
  63. package/lib/module/Header/useHeaderHeight.js.map +1 -1
  64. package/lib/module/MaskedView.android.js.map +1 -1
  65. package/lib/module/MaskedView.ios.js.map +1 -1
  66. package/lib/module/MaskedView.js +1 -0
  67. package/lib/module/MaskedView.js.map +1 -1
  68. package/lib/module/MaskedViewNative.js +2 -5
  69. package/lib/module/MaskedViewNative.js.map +1 -1
  70. package/lib/module/MissingIcon.js.map +1 -1
  71. package/lib/module/PlatformPressable.js +1 -7
  72. package/lib/module/PlatformPressable.js.map +1 -1
  73. package/lib/module/ResourceSavingView.js +6 -6
  74. package/lib/module/ResourceSavingView.js.map +1 -1
  75. package/lib/module/SafeAreaProviderCompat.js +3 -3
  76. package/lib/module/SafeAreaProviderCompat.js.map +1 -1
  77. package/lib/module/Screen.js +1 -1
  78. package/lib/module/Screen.js.map +1 -1
  79. package/lib/module/getNamedContext.js +1 -5
  80. package/lib/module/getNamedContext.js.map +1 -1
  81. package/lib/module/index.js +4 -2
  82. package/lib/module/index.js.map +1 -1
  83. package/lib/module/types.js.map +1 -1
  84. package/lib/typescript/src/Background.d.ts +1 -0
  85. package/lib/typescript/src/Background.d.ts.map +1 -0
  86. package/lib/typescript/src/Header/Header.d.ts +1 -0
  87. package/lib/typescript/src/Header/Header.d.ts.map +1 -0
  88. package/lib/typescript/src/Header/HeaderBackButton.d.ts +1 -0
  89. package/lib/typescript/src/Header/HeaderBackButton.d.ts.map +1 -0
  90. package/lib/typescript/src/Header/HeaderBackContext.d.ts +1 -0
  91. package/lib/typescript/src/Header/HeaderBackContext.d.ts.map +1 -0
  92. package/lib/typescript/src/Header/HeaderBackground.d.ts +1 -0
  93. package/lib/typescript/src/Header/HeaderBackground.d.ts.map +1 -0
  94. package/lib/typescript/src/Header/HeaderHeightContext.d.ts +1 -0
  95. package/lib/typescript/src/Header/HeaderHeightContext.d.ts.map +1 -0
  96. package/lib/typescript/src/Header/HeaderShownContext.d.ts +1 -0
  97. package/lib/typescript/src/Header/HeaderShownContext.d.ts.map +1 -0
  98. package/lib/typescript/src/Header/HeaderTitle.d.ts +1 -0
  99. package/lib/typescript/src/Header/HeaderTitle.d.ts.map +1 -0
  100. package/lib/typescript/src/Header/getDefaultHeaderHeight.d.ts +1 -0
  101. package/lib/typescript/src/Header/getDefaultHeaderHeight.d.ts.map +1 -0
  102. package/lib/typescript/src/Header/getHeaderTitle.d.ts +1 -0
  103. package/lib/typescript/src/Header/getHeaderTitle.d.ts.map +1 -0
  104. package/lib/typescript/src/Header/useHeaderHeight.d.ts +1 -0
  105. package/lib/typescript/src/Header/useHeaderHeight.d.ts.map +1 -0
  106. package/lib/typescript/src/MaskedView.android.d.ts +1 -0
  107. package/lib/typescript/src/MaskedView.android.d.ts.map +1 -0
  108. package/lib/typescript/src/MaskedView.d.ts +1 -0
  109. package/lib/typescript/src/MaskedView.d.ts.map +1 -0
  110. package/lib/typescript/src/MaskedView.ios.d.ts +1 -0
  111. package/lib/typescript/src/MaskedView.ios.d.ts.map +1 -0
  112. package/lib/typescript/src/MaskedViewNative.d.ts +1 -0
  113. package/lib/typescript/src/MaskedViewNative.d.ts.map +1 -0
  114. package/lib/typescript/src/MissingIcon.d.ts +1 -0
  115. package/lib/typescript/src/MissingIcon.d.ts.map +1 -0
  116. package/lib/typescript/src/PlatformPressable.d.ts +1 -0
  117. package/lib/typescript/src/PlatformPressable.d.ts.map +1 -0
  118. package/lib/typescript/src/ResourceSavingView.d.ts +1 -0
  119. package/lib/typescript/src/ResourceSavingView.d.ts.map +1 -0
  120. package/lib/typescript/src/SafeAreaProviderCompat.d.ts +1 -0
  121. package/lib/typescript/src/SafeAreaProviderCompat.d.ts.map +1 -0
  122. package/lib/typescript/src/Screen.d.ts +1 -0
  123. package/lib/typescript/src/Screen.d.ts.map +1 -0
  124. package/lib/typescript/src/getNamedContext.d.ts +1 -0
  125. package/lib/typescript/src/getNamedContext.d.ts.map +1 -0
  126. package/lib/typescript/src/index.d.ts +1 -0
  127. package/lib/typescript/src/index.d.ts.map +1 -0
  128. package/lib/typescript/src/types.d.ts +1 -0
  129. package/lib/typescript/src/types.d.ts.map +1 -0
  130. package/package.json +4 -4
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = Background;
7
-
8
7
  var _native = require("@react-navigation/native");
9
-
10
8
  var React = _interopRequireWildcard(require("react"));
11
-
12
9
  var _reactNative = require("react-native");
13
-
14
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
18
12
  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); }
19
-
20
13
  function Background(_ref) {
21
14
  let {
22
15
  style,
@@ -1 +1 @@
1
- {"version":3,"names":["Background","style","rest","colors","useTheme","flex","backgroundColor","background"],"sources":["Background.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport * as React from 'react';\nimport { View, ViewProps } from 'react-native';\n\ntype Props = ViewProps & {\n children: React.ReactNode;\n};\n\nexport default function Background({ style, ...rest }: Props) {\n const { colors } = useTheme();\n\n return (\n <View\n {...rest}\n style={[{ flex: 1, backgroundColor: colors.background }, style]}\n />\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAMe,SAASA,UAAT,OAA+C;EAAA,IAA3B;IAAEC,KAAF;IAAS,GAAGC;EAAZ,CAA2B;EAC5D,MAAM;IAAEC;EAAF,IAAa,IAAAC,gBAAA,GAAnB;EAEA,oBACE,oBAAC,iBAAD,eACMF,IADN;IAEE,KAAK,EAAE,CAAC;MAAEG,IAAI,EAAE,CAAR;MAAWC,eAAe,EAAEH,MAAM,CAACI;IAAnC,CAAD,EAAkDN,KAAlD;EAFT,GADF;AAMD"}
1
+ {"version":3,"names":["Background","style","rest","colors","useTheme","flex","backgroundColor","background"],"sourceRoot":"../../src","sources":["Background.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAA+C;AAAA;AAAA;AAMhC,SAASA,UAAU,OAA4B;EAAA,IAA3B;IAAEC,KAAK;IAAE,GAAGC;EAAY,CAAC;EAC1D,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gBAAQ,GAAE;EAE7B,oBACE,oBAAC,iBAAI,eACCF,IAAI;IACR,KAAK,EAAE,CAAC;MAAEG,IAAI,EAAE,CAAC;MAAEC,eAAe,EAAEH,MAAM,CAACI;IAAW,CAAC,EAAEN,KAAK;EAAE,GAChE;AAEN"}
@@ -4,31 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = Header;
7
-
8
7
  var React = _interopRequireWildcard(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
13
-
14
10
  var _getDefaultHeaderHeight = _interopRequireDefault(require("./getDefaultHeaderHeight"));
15
-
16
11
  var _HeaderBackground = _interopRequireDefault(require("./HeaderBackground"));
17
-
18
12
  var _HeaderShownContext = _interopRequireDefault(require("./HeaderShownContext"));
19
-
20
13
  var _HeaderTitle = _interopRequireDefault(require("./HeaderTitle"));
21
-
22
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
-
26
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
-
28
17
  const warnIfHeaderStylesDefined = styles => {
29
18
  Object.keys(styles).forEach(styleProp => {
30
19
  const value = styles[styleProp];
31
-
32
20
  if (styleProp === 'position' && value === 'absolute') {
33
21
  console.warn("position: 'absolute' is not supported on headerStyle. If you would like to render content under the header, use the 'headerTransparent' option.");
34
22
  } else if (value !== undefined) {
@@ -36,7 +24,6 @@ const warnIfHeaderStylesDefined = styles => {
36
24
  }
37
25
  });
38
26
  };
39
-
40
27
  function Header(props) {
41
28
  const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
42
29
  const frame = (0, _reactNativeSafeAreaContext.useSafeAreaFrame)();
@@ -69,7 +56,6 @@ function Header(props) {
69
56
  headerStatusBarHeight = isParentHeaderShown ? 0 : insets.top
70
57
  } = props;
71
58
  const defaultHeight = (0, _getDefaultHeaderHeight.default)(layout, modal, headerStatusBarHeight);
72
-
73
59
  const {
74
60
  height = defaultHeight,
75
61
  minHeight,
@@ -110,11 +96,9 @@ function Header(props) {
110
96
  transform,
111
97
  ...unsafeStyles
112
98
  } = _reactNative.StyleSheet.flatten(customHeaderStyle || {});
113
-
114
99
  if (process.env.NODE_ENV !== 'production') {
115
100
  warnIfHeaderStylesDefined(unsafeStyles);
116
101
  }
117
-
118
102
  const safeStyles = {
119
103
  backgroundColor,
120
104
  borderBottomColor,
@@ -150,10 +134,11 @@ function Header(props) {
150
134
  shadowRadius,
151
135
  opacity,
152
136
  transform
153
- }; // Setting a property to undefined triggers default style
137
+ };
138
+
139
+ // Setting a property to undefined triggers default style
154
140
  // So we need to filter them out
155
141
  // Users can use `null` instead
156
-
157
142
  for (const styleProp in safeStyles) {
158
143
  // @ts-expect-error: typescript wrongly complains that styleProp cannot be used to index safeStyles
159
144
  if (safeStyles[styleProp] === undefined) {
@@ -162,7 +147,6 @@ function Header(props) {
162
147
  delete safeStyles[styleProp];
163
148
  }
164
149
  }
165
-
166
150
  const backgroundStyle = [safeStyles, headerShadowVisible === false && {
167
151
  elevation: 0,
168
152
  shadowOpacity: 0,
@@ -229,7 +213,6 @@ function Header(props) {
229
213
  }, rightContainerStyle]
230
214
  }, rightButton))));
231
215
  }
232
-
233
216
  const styles = _reactNative.StyleSheet.create({
234
217
  content: {
235
218
  flex: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["warnIfHeaderStylesDefined","styles","Object","keys","forEach","styleProp","value","console","warn","undefined","Header","props","insets","useSafeAreaInsets","frame","useSafeAreaFrame","isParentHeaderShown","React","useContext","HeaderShownContext","layout","modal","title","headerTitle","customTitle","headerTitleAlign","Platform","select","ios","default","headerLeft","headerLeftLabelVisible","headerTransparent","headerTintColor","headerBackground","headerRight","headerTitleAllowFontScaling","titleAllowFontScaling","headerTitleStyle","titleStyle","headerLeftContainerStyle","leftContainerStyle","headerRightContainerStyle","rightContainerStyle","headerTitleContainerStyle","titleContainerStyle","headerBackgroundContainerStyle","backgroundContainerStyle","headerStyle","customHeaderStyle","headerShadowVisible","headerPressColor","headerPressOpacity","headerStatusBarHeight","top","defaultHeight","getDefaultHeaderHeight","height","minHeight","maxHeight","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderEndColor","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","boxShadow","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","opacity","transform","unsafeStyles","StyleSheet","flatten","process","env","NODE_ENV","safeStyles","backgroundStyle","leftButton","tintColor","pressColor","pressOpacity","labelVisible","rightButton","absoluteFill","zIndex","style","content","left","expand","marginStart","maxWidth","width","Math","max","right","children","allowFontScaling","marginEnd","create","flex","flexDirection","alignItems","marginHorizontal","justifyContent","flexGrow","flexBasis"],"sources":["Header.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Animated, Platform, StyleSheet, View, ViewStyle } from 'react-native';\nimport {\n useSafeAreaFrame,\n useSafeAreaInsets,\n} from 'react-native-safe-area-context';\n\nimport type { HeaderOptions, Layout } from '../types';\nimport getDefaultHeaderHeight from './getDefaultHeaderHeight';\nimport HeaderBackground from './HeaderBackground';\nimport HeaderShownContext from './HeaderShownContext';\nimport HeaderTitle from './HeaderTitle';\n\ntype Props = HeaderOptions & {\n /**\n * Whether the header is in a modal\n */\n modal?: boolean;\n /**\n * Layout of the screen.\n */\n layout?: Layout;\n /**\n * Title text for the header.\n */\n title: string;\n};\n\nconst warnIfHeaderStylesDefined = (styles: Record<string, any>) => {\n Object.keys(styles).forEach((styleProp) => {\n const value = styles[styleProp];\n\n if (styleProp === 'position' && value === 'absolute') {\n console.warn(\n \"position: 'absolute' is not supported on headerStyle. If you would like to render content under the header, use the 'headerTransparent' option.\"\n );\n } else if (value !== undefined) {\n console.warn(\n `${styleProp} was given a value of ${value}, this has no effect on headerStyle.`\n );\n }\n });\n};\n\nexport default function Header(props: Props) {\n const insets = useSafeAreaInsets();\n const frame = useSafeAreaFrame();\n\n const isParentHeaderShown = React.useContext(HeaderShownContext);\n\n const {\n layout = frame,\n modal = false,\n title,\n headerTitle: customTitle,\n headerTitleAlign = Platform.select({\n ios: 'center',\n default: 'left',\n }),\n headerLeft,\n headerLeftLabelVisible,\n headerTransparent,\n headerTintColor,\n headerBackground,\n headerRight,\n headerTitleAllowFontScaling: titleAllowFontScaling,\n headerTitleStyle: titleStyle,\n headerLeftContainerStyle: leftContainerStyle,\n headerRightContainerStyle: rightContainerStyle,\n headerTitleContainerStyle: titleContainerStyle,\n headerBackgroundContainerStyle: backgroundContainerStyle,\n headerStyle: customHeaderStyle,\n headerShadowVisible,\n headerPressColor,\n headerPressOpacity,\n headerStatusBarHeight = isParentHeaderShown ? 0 : insets.top,\n } = props;\n\n const defaultHeight = getDefaultHeaderHeight(\n layout,\n modal,\n headerStatusBarHeight\n );\n\n const {\n height = defaultHeight,\n minHeight,\n maxHeight,\n backgroundColor,\n borderBottomColor,\n borderBottomEndRadius,\n borderBottomLeftRadius,\n borderBottomRightRadius,\n borderBottomStartRadius,\n borderBottomWidth,\n borderColor,\n borderEndColor,\n borderEndWidth,\n borderLeftColor,\n borderLeftWidth,\n borderRadius,\n borderRightColor,\n borderRightWidth,\n borderStartColor,\n borderStartWidth,\n borderStyle,\n borderTopColor,\n borderTopEndRadius,\n borderTopLeftRadius,\n borderTopRightRadius,\n borderTopStartRadius,\n borderTopWidth,\n borderWidth,\n // @ts-expect-error: web support for shadow\n boxShadow,\n elevation,\n shadowColor,\n shadowOffset,\n shadowOpacity,\n shadowRadius,\n opacity,\n transform,\n ...unsafeStyles\n } = StyleSheet.flatten(customHeaderStyle || {}) as ViewStyle;\n\n if (process.env.NODE_ENV !== 'production') {\n warnIfHeaderStylesDefined(unsafeStyles);\n }\n\n const safeStyles: ViewStyle = {\n backgroundColor,\n borderBottomColor,\n borderBottomEndRadius,\n borderBottomLeftRadius,\n borderBottomRightRadius,\n borderBottomStartRadius,\n borderBottomWidth,\n borderColor,\n borderEndColor,\n borderEndWidth,\n borderLeftColor,\n borderLeftWidth,\n borderRadius,\n borderRightColor,\n borderRightWidth,\n borderStartColor,\n borderStartWidth,\n borderStyle,\n borderTopColor,\n borderTopEndRadius,\n borderTopLeftRadius,\n borderTopRightRadius,\n borderTopStartRadius,\n borderTopWidth,\n borderWidth,\n // @ts-expect-error: boxShadow is only for Web\n boxShadow,\n elevation,\n shadowColor,\n shadowOffset,\n shadowOpacity,\n shadowRadius,\n opacity,\n transform,\n };\n\n // Setting a property to undefined triggers default style\n // So we need to filter them out\n // Users can use `null` instead\n for (const styleProp in safeStyles) {\n // @ts-expect-error: typescript wrongly complains that styleProp cannot be used to index safeStyles\n if (safeStyles[styleProp] === undefined) {\n // @ts-expect-error\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete safeStyles[styleProp];\n }\n }\n\n const backgroundStyle = [\n safeStyles,\n headerShadowVisible === false && {\n elevation: 0,\n shadowOpacity: 0,\n borderBottomWidth: 0,\n },\n ];\n\n const leftButton = headerLeft\n ? headerLeft({\n tintColor: headerTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n labelVisible: headerLeftLabelVisible,\n })\n : null;\n\n const rightButton = headerRight\n ? headerRight({\n tintColor: headerTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n })\n : null;\n\n const headerTitle =\n typeof customTitle !== 'function'\n ? (props: React.ComponentProps<typeof HeaderTitle>) => (\n <HeaderTitle {...props} />\n )\n : customTitle;\n\n return (\n <React.Fragment>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n StyleSheet.absoluteFill,\n { zIndex: 0 },\n backgroundContainerStyle,\n ]}\n >\n {headerBackground ? (\n headerBackground({ style: backgroundStyle })\n ) : headerTransparent ? null : (\n <HeaderBackground style={backgroundStyle} />\n )}\n </Animated.View>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[{ height, minHeight, maxHeight, opacity, transform }]}\n >\n <View pointerEvents=\"none\" style={{ height: headerStatusBarHeight }} />\n <View pointerEvents=\"box-none\" style={styles.content}>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n styles.left,\n headerTitleAlign === 'center' && styles.expand,\n { marginStart: insets.left },\n leftContainerStyle,\n ]}\n >\n {leftButton}\n </Animated.View>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n styles.title,\n {\n // Avoid the title from going offscreen or overlapping buttons\n maxWidth:\n headerTitleAlign === 'center'\n ? layout.width -\n ((leftButton\n ? headerLeftLabelVisible !== false\n ? 80\n : 32\n : 16) +\n Math.max(insets.left, insets.right)) *\n 2\n : layout.width -\n ((leftButton ? 72 : 16) +\n (rightButton ? 72 : 16) +\n insets.left -\n insets.right),\n },\n titleContainerStyle,\n ]}\n >\n {headerTitle({\n children: title,\n allowFontScaling: titleAllowFontScaling,\n tintColor: headerTintColor,\n style: titleStyle,\n })}\n </Animated.View>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n styles.right,\n styles.expand,\n { marginEnd: insets.right },\n rightContainerStyle,\n ]}\n >\n {rightButton}\n </Animated.View>\n </View>\n </Animated.View>\n </React.Fragment>\n );\n}\n\nconst styles = StyleSheet.create({\n content: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'stretch',\n },\n title: {\n marginHorizontal: 16,\n justifyContent: 'center',\n },\n left: {\n justifyContent: 'center',\n alignItems: 'flex-start',\n },\n right: {\n justifyContent: 'center',\n alignItems: 'flex-end',\n },\n expand: {\n flexGrow: 1,\n flexBasis: 0,\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;;;;;;;AAiBA,MAAMA,yBAAyB,GAAIC,MAAD,IAAiC;EACjEC,MAAM,CAACC,IAAP,CAAYF,MAAZ,EAAoBG,OAApB,CAA6BC,SAAD,IAAe;IACzC,MAAMC,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AH,GAAQ,EADrB,IAEC9F,MAAM,CAACmG,IAFR,GAGCnG,MAAM,CAAC0G,KAJT;IAZR,CAFK,EAoBLzE,mBApBK;EAFT,GAyBGtB,WAAW,CAAC;IACXgG,QAAQ,EAAEjG,KADC;IAEXkG,gBAAgB,EAAEnF,qBAFP;IAGXiE,SAAS,EAAErE,eAHA;IAIX4E,KAAK,EAAEtE;EAJI,CAAD,CAzBd,CAZF,eA4CE,oBAAC,qBAAD,CAAU,IAAV;IACE,aAAa,EAAC,UADhB;IAEE,KAAK,EAAE,CACLtC,MAAM,CAACqH,KADF,EAELrH,MAAM,CAAC+G,MAFF,EAGL;MAAES,SAAS,EAAE7G,MAAM,CAAC0G;IAApB,CAHK,EAIL3E,mBAJK;EAFT,GASG+D,WATH,CA5CF,CALF,CAfF,CADF;AAgFD;;AAED,MAAMzG,MAAM,GAAG6F,uBAAA,CAAW4B,MAAX,CAAkB;EAC/BZ,OAAO,EAAE;IACPa,IAAI,EAAE,CADC;IAEPC,aAAa,EAAE,KAFR;IAGPC,UAAU,EAAE;EAHL,CADsB;EAM/BvG,KAAK,EAAE;IACLwG,gBAAgB,EAAE,EADb;IAELC,cAAc,EAAE;EAFX,CANwB;EAU/BhB,IAAI,EAAE;IACJgB,cAAc,EAAE,QADZ;IAEJF,UAAU,EAAE;EAFR,CAVyB;EAc/BP,KAAK,EAAE;IACLS,cAAc,EAAE,QADX;IAELF,UAAU,EAAE;EAFP,CAdwB;EAkB/Bb,MAAM,EAAE;IACNgB,QAAQ,EAAE,CADJ;IAENC,SAAS,EAAE;EAFL;AAlBuB,CAAlB,CAAf"}
1
+ {"version":3,"names":["warnIfHeaderStylesDefined","styles","Object","keys","forEach","styleProp","value","console","warn","undefined","Header","props","insets","useSafeAreaInsets","frame","useSafeAreaFrame","isParentHeaderShown","React","useContext","HeaderShownContext","layout","modal","title","headerTitle","customTitle","headerTitleAlign","Platform","select","ios","default","headerLeft","headerLeftLabelVisible","headerTransparent","headerTintColor","headerBackground","headerRight","headerTitleAllowFontScaling","titleAllowFontScaling","headerTitleStyle","titleStyle","headerLeftContainerStyle","leftContainerStyle","headerRightContainerStyle","rightContainerStyle","headerTitleContainerStyle","titleContainerStyle","headerBackgroundContainerStyle","backgroundContainerStyle","headerStyle","customHeaderStyle","headerShadowVisible","headerPressColor","headerPressOpacity","headerStatusBarHeight","top","defaultHeight","getDefaultHeaderHeight","height","minHeight","maxHeight","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderEndColor","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","boxShadow","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","opacity","transform","unsafeStyles","StyleSheet","flatten","process","env","NODE_ENV","safeStyles","backgroundStyle","leftButton","tintColor","pressColor","pressOpacity","labelVisible","rightButton","absoluteFill","zIndex","style","content","left","expand","marginStart","maxWidth","width","Math","max","right","children","allowFontScaling","marginEnd","create","flex","flexDirection","alignItems","marginHorizontal","justifyContent","flexGrow","flexBasis"],"sourceRoot":"../../src","sources":["Header.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAMA;AACA;AACA;AACA;AAAwC;AAAA;AAAA;AAiBxC,MAAMA,yBAAyB,GAAIC,MAA2B,IAAK;EACjEC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACG,OAAO,CAAEC,SAAS,IAAK;IACzC,MAAMC,KAAK,GAAGL,MAAM,CAACI,SAAS,CAAC;IAE/B,IAAIA,SAAS,KAAK,UAAU,IAAIC,KAAK,KAAK,UAAU,EAAE;MACpDC,OAAO,CAACC,IAAI,CACV,iJAAiJ,CAClJ;IACH,CAAC,MAAM,IAAIF,KAAK,KAAKG,SAAS,EAAE;MAC9BF,OAAO,CAACC,I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G,MAAM,CAAC0G;IAAM,CAAC,EAC3B3E,mBAAmB;EACnB,GAED+D,WAAW,CACE,CACX,CACO,CACD;AAErB;AAEA,MAAMzG,MAAM,GAAG6F,uBAAU,CAAC4B,MAAM,CAAC;EAC/BZ,OAAO,EAAE;IACPa,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDvG,KAAK,EAAE;IACLwG,gBAAgB,EAAE,EAAE;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDhB,IAAI,EAAE;IACJgB,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE;EACd,CAAC;EACDP,KAAK,EAAE;IACLS,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE;EACd,CAAC;EACDb,MAAM,EAAE;IACNgB,QAAQ,EAAE,CAAC;IACXC,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
@@ -4,23 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = HeaderBackButton;
7
-
8
7
  var _native = require("@react-navigation/native");
9
-
10
8
  var React = _interopRequireWildcard(require("react"));
11
-
12
9
  var _reactNative = require("react-native");
13
-
14
10
  var _MaskedView = _interopRequireDefault(require("../MaskedView"));
15
-
16
11
  var _PlatformPressable = _interopRequireDefault(require("../PlatformPressable"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
15
  function HeaderBackButton(_ref) {
25
16
  let {
26
17
  disabled,
@@ -49,16 +40,13 @@ function HeaderBackButton(_ref) {
49
40
  ios: colors.primary,
50
41
  default: colors.text
51
42
  });
52
-
53
43
  const handleLabelLayout = e => {
54
44
  onLabelLayout === null || onLabelLayout === void 0 ? void 0 : onLabelLayout(e);
55
45
  setInitialLabelWidth(e.nativeEvent.layout.x + e.nativeEvent.layout.width);
56
46
  };
57
-
58
47
  const shouldTruncateLabel = () => {
59
48
  return !label || initialLabelWidth && titleLayout && screenLayout && (screenLayout.width - titleLayout.width) / 2 < initialLabelWidth + 26;
60
49
  };
61
-
62
50
  const renderBackImage = () => {
63
51
  if (backImage) {
64
52
  return backImage({
@@ -74,23 +62,22 @@ function HeaderBackButton(_ref) {
74
62
  });
75
63
  }
76
64
  };
77
-
78
65
  const renderLabel = () => {
79
66
  const leftLabelText = shouldTruncateLabel() ? truncatedLabel : label;
80
-
81
67
  if (!labelVisible || leftLabelText === undefined) {
82
68
  return null;
83
69
  }
84
-
85
70
  const labelElement = /*#__PURE__*/React.createElement(_reactNative.View, {
86
- style: screenLayout ? // We make the button extend till the middle of the screen
71
+ style: screenLayout ?
72
+ // We make the button extend till the middle of the screen
87
73
  // Otherwise it appears to cut off when translating
88
74
  [styles.labelWrapper, {
89
75
  minWidth: screenLayout.width / 2 - 27
90
76
  }] : null
91
77
  }, /*#__PURE__*/React.createElement(_reactNative.Animated.Text, {
92
78
  accessible: false,
93
- onLayout: // This measurement is used to determine if we should truncate the label when it doesn't fit
79
+ onLayout:
80
+ // This measurement is used to determine if we should truncate the label when it doesn't fit
94
81
  // Only measure it when label is not truncated because we want the measurement of full label
95
82
  leftLabelText === label ? handleLabelLayout : undefined,
96
83
  style: [styles.label, tintColor ? {
@@ -99,13 +86,11 @@ function HeaderBackButton(_ref) {
99
86
  numberOfLines: 1,
100
87
  allowFontScaling: !!allowFontScaling
101
88
  }, leftLabelText));
102
-
103
89
  if (backImage || _reactNative.Platform.OS !== 'ios') {
104
90
  // When a custom backimage is specified, we can't mask the label
105
91
  // Otherwise there might be weird effect due to our mask not being the same as the image
106
92
  return labelElement;
107
93
  }
108
-
109
94
  return /*#__PURE__*/React.createElement(_MaskedView.default, {
110
95
  maskElement: /*#__PURE__*/React.createElement(_reactNative.View, {
111
96
  style: styles.iconMaskContainer
@@ -117,9 +102,7 @@ function HeaderBackButton(_ref) {
117
102
  }))
118
103
  }, labelElement);
119
104
  };
120
-
121
105
  const handlePress = () => onPress && requestAnimationFrame(onPress);
122
-
123
106
  return /*#__PURE__*/React.createElement(_PlatformPressable.default, {
124
107
  disabled: disabled,
125
108
  accessible: true,
@@ -144,7 +127,6 @@ function HeaderBackButton(_ref) {
144
127
  })
145
128
  }, /*#__PURE__*/React.createElement(React.Fragment, null, renderBackImage(), renderLabel()));
146
129
  }
147
-
148
130
  const styles = _reactNative.StyleSheet.create({
149
131
  container: {
150
132
  alignItems: 'center',
@@ -1 +1 @@
1
- {"version":3,"names":["HeaderBackButton","disabled","allowFontScaling","backImage","label","labelStyle","labelVisible","onLabelLayout","onPress","pressColor","pressOpacity","screenLayout","tintColor","customTintColor","titleLayout","truncatedLabel","accessibilityLabel","testID","style","colors","useTheme","initialLabelWidth","setInitialLabelWidth","React","useState","undefined","Platform","select","ios","primary","default","text","handleLabelLayout","e","nativeEvent","layout","x","width","shouldTruncateLabel","renderBackImage","styles","icon","Boolean","iconWithLabel","require","renderLabel","leftLabelText","labelElement","labelWrapper","minWidth","color","OS","iconMaskContainer","iconMask","iconMaskFillerRect","handlePress","requestAnimationFrame","borderless","container","top","right","bottom","left","StyleSheet","create","alignItems","flexDirection","hairlineWidth","marginVertical","marginHorizontal","opacity","fontSize","letterSpacing","height","marginLeft","marginRight","resizeMode","transform","scaleX","I18nManager","getConstants","isRTL","margin","flex","justifyContent","backgroundColor","alignSelf"],"sources":["HeaderBackButton.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport * as React from 'react';\nimport {\n Animated,\n I18nManager,\n Image,\n LayoutChangeEvent,\n Platform,\n StyleSheet,\n View,\n} from 'react-native';\n\nimport MaskedView from '../MaskedView';\nimport PlatformPressable from '../PlatformPressable';\nimport type { HeaderBackButtonProps } from '../types';\n\nexport default function HeaderBackButton({\n disabled,\n allowFontScaling,\n backImage,\n label,\n labelStyle,\n labelVisible,\n onLabelLayout,\n onPress,\n pressColor,\n pressOpacity,\n screenLayout,\n tintColor: customTintColor,\n titleLayout,\n truncatedLabel = 'Back',\n accessibilityLabel = label && label !== 'Back' ? `${label}, back` : 'Go back',\n testID,\n style,\n}: HeaderBackButtonProps) {\n const { colors } = useTheme();\n\n const [initialLabelWidth, setInitialLabelWidth] = React.useState<\n undefined | number\n >(undefined);\n\n const tintColor =\n customTintColor !== undefined\n ? customTintColor\n : Platform.select({\n ios: colors.primary,\n default: colors.text,\n });\n\n const handleLabelLayout = (e: LayoutChangeEvent) => {\n onLabelLayout?.(e);\n\n setInitialLabelWidth(e.nativeEvent.layout.x + e.nativeEvent.layout.width);\n };\n\n const shouldTruncateLabel = () => {\n return (\n !label ||\n (initialLabelWidth &&\n titleLayout &&\n screenLayout &&\n (screenLayout.width - titleLayout.width) / 2 < initialLabelWidth + 26)\n );\n };\n\n const renderBackImage = () => {\n if (backImage) {\n return backImage({ tintColor });\n } else {\n return (\n <Image\n style={[\n styles.icon,\n Boolean(labelVisible) && styles.iconWithLabel,\n Boolean(tintColor) && { tintColor },\n ]}\n source={require('../assets/back-icon.png')}\n fadeDuration={0}\n />\n );\n }\n };\n\n const renderLabel = () => {\n const leftLabelText = shouldTruncateLabel() ? truncatedLabel : label;\n\n if (!labelVisible || leftLabelText === undefined) {\n return null;\n }\n\n const labelElement = (\n <View\n style={\n screenLayout\n ? // We make the button extend till the middle of the screen\n // Otherwise it appears to cut off when translating\n [styles.labelWrapper, { minWidth: screenLayout.width / 2 - 27 }]\n : null\n }\n >\n <Animated.Text\n accessible={false}\n onLayout={\n // This measurement is used to determine if we should truncate the label when it doesn't fit\n // Only measure it when label is not truncated because we want the measurement of full label\n leftLabelText === label ? handleLabelLayout : undefined\n }\n style={[\n styles.label,\n tintColor ? { color: tintColor } : null,\n labelStyle,\n ]}\n numberOfLines={1}\n allowFontScaling={!!allowFontScaling}\n >\n {leftLabelText}\n </Animated.Text>\n </View>\n );\n\n if (backImage || Platform.OS !== 'ios') {\n // When a custom backimage is specified, we can't mask the label\n // Otherwise there might be weird effect due to our mask not being the same as the image\n return labelElement;\n }\n\n return (\n <MaskedView\n maskElement={\n <View style={styles.iconMaskContainer}>\n <Image\n source={require('../assets/back-icon-mask.png')}\n style={styles.iconMask}\n />\n <View style={styles.iconMaskFillerRect} />\n </View>\n }\n >\n {labelElement}\n </MaskedView>\n );\n };\n\n const handlePress = () => onPress && requestAnimationFrame(onPress);\n\n return (\n <PlatformPressable\n disabled={disabled}\n accessible\n accessibilityRole=\"button\"\n accessibilityLabel={accessibilityLabel}\n testID={testID}\n onPress={disabled ? undefined : handlePress}\n pressColor={pressColor}\n pressOpacity={pressOpacity}\n android_ripple={{ borderless: true }}\n style={[styles.container, disabled && styles.disabled, style]}\n hitSlop={Platform.select({\n ios: undefined,\n default: { top: 16, right: 16, bottom: 16, left: 16 },\n })}\n >\n <React.Fragment>\n {renderBackImage()}\n {renderLabel()}\n </React.Fragment>\n </PlatformPressable>\n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n flexDirection: 'row',\n minWidth: StyleSheet.hairlineWidth, // Avoid collapsing when title is long\n ...Platform.select({\n ios: null,\n default: {\n marginVertical: 3,\n marginHorizontal: 11,\n },\n }),\n },\n disabled: {\n opacity: 0.5,\n },\n label: {\n fontSize: 17,\n // Title and back label are a bit different width due to title being bold\n // Adjusting the letterSpacing makes them coincide better\n letterSpacing: 0.35,\n },\n labelWrapper: {\n // These styles will make sure that the label doesn't fill the available space\n // Otherwise it messes with the measurement of the label\n flexDirection: 'row',\n alignItems: 'flex-start',\n },\n icon: Platform.select({\n ios: {\n height: 21,\n width: 13,\n marginLeft: 8,\n marginRight: 22,\n marginVertical: 12,\n resizeMode: 'contain',\n transform: [{ scaleX: I18nManager.getConstants().isRTL ? -1 : 1 }],\n },\n default: {\n height: 24,\n width: 24,\n margin: 3,\n resizeMode: 'contain',\n transform: [{ scaleX: I18nManager.getConstants().isRTL ? -1 : 1 }],\n },\n }),\n iconWithLabel:\n Platform.OS === 'ios'\n ? {\n marginRight: 6,\n }\n : {},\n iconMaskContainer: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'center',\n },\n iconMaskFillerRect: {\n flex: 1,\n backgroundColor: '#000',\n },\n iconMask: {\n height: 21,\n width: 13,\n marginLeft: -14.5,\n marginVertical: 12,\n alignSelf: 'center',\n resizeMode: 'contain',\n transform: [{ scaleX: I18nManager.getConstants().isRTL ? -1 : 1 }],\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AAUA;;AACA;;;;;;;;AAGe,SAASA,gBAAT,OAkBW;EAAA,IAlBe;IACvCC,QADuC;IAEvCC,gBAFuC;IAGvCC,SAHuC;IAIvCC,KAJuC;IAKvCC,UALuC;IAMvCC,YANuC;IAOvCC,aAPuC;IAQvCC,OARuC;IASvCC,UATuC;IAUvCC,YAVuC;IAWvCC,YAXuC;IAYvCC,SAAS,EAAEC,eAZ4B;IAavCC,WAbuC;IAcvCC,cAAc,GAAG,MAdsB;IAevCC,kBAAkB,GAAGZ,KAAK,IAAIA,KAAK,KAAK,MAAnB,GAA6B,GAAEA,KAAM,QAArC,GAA+C,SAf7B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AAS,EAAE,CAAC;MAAEC,MAAM,EAAEC,wBAAA,CAAYC,YAAZ,GAA2BC,KAA3B,GAAmC,CAAC,CAApC,GAAwC;IAAlD,CAAD;EAPH;AA7DqB,CAAlB,CAAf"}
1
+ {"version":3,"names":["HeaderBackButton","disabled","allowFontScaling","backImage","label","labelStyle","labelVisible","onLabelLayout","onPress","pressColor","pressOpacity","screenLayout","tintColor","customTintColor","titleLayout","truncatedLabel","accessibilityLabel","testID","style","colors","useTheme","initialLabelWidth","setInitialLabelWidth","React","useState","undefined","Platform","select","ios","primary","default","text","handleLabelLayout","e","nativeEvent","layout","x","width","shouldTruncateLabel","renderBackImage","styles","icon","Boolean","iconWithLabel","require","renderLabel","leftLabelText","labelElement","labelWrapper","minWidth","color","OS","iconMaskContainer","iconMask","iconMaskFillerRect","handlePress","requestAnimationFrame","borderless","container","top","right","bottom","left","StyleSheet","create","alignItems","flexDirection","hairlineWidth","marginVertical","marginHorizontal","opacity","fontSize","letterSpacing","height","marginLeft","marginRight","resizeMode","transform","scaleX","I18nManager","getConstants","isRTL","margin","flex","justifyContent","backgroundColor","alignSelf"],"sourceRoot":"../../src","sources":["HeaderBackButton.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAUA;AACA;AAAqD;AAAA;AAAA;AAGtC,SAASA,gBAAgB,OAkBd;EAAA,IAlBe;IACvCC,QAAQ;IACRC,gBAAgB;IAChBC,SAAS;IACTC,KAAK;IACLC,UAAU;IACVC,YAAY;IACZC,aAAa;IACbC,OAAO;IACPC,UAAU;IACVC,YAAY;IACZC,YAAY;IACZC,SAAS,EAAEC,eAAe;IAC1BC,WAAW;IACXC,cAAc,GAAG,MAAM;IACvBC,kBAAkB,GAAGZ,KAAK,IAAIA,KAAK,KAAK,MAAM,GAAI,GAAEA,KAAM,QAAO,GAAG,SAAS;IAC7Ea,MAAM;IACNC;EACqB,CAAC;EACtB,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gBAAQ,GAAE;EAE7B,MAAM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
7
-
8
7
  var _getNamedContext = _interopRequireDefault(require("../getNamedContext"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
9
  const HeaderBackContext = (0, _getNamedContext.default)('HeaderBackContext', undefined);
13
10
  var _default = HeaderBackContext;
14
11
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["HeaderBackContext","getNamedContext","undefined"],"sources":["HeaderBackContext.tsx"],"sourcesContent":["import getNamedContext from '../getNamedContext';\n\nconst HeaderBackContext = getNamedContext<{ title: string } | undefined>(\n 'HeaderBackContext',\n undefined\n);\n\nexport default HeaderBackContext;\n"],"mappings":";;;;;;;AAAA;;;;AAEA,MAAMA,iBAAiB,GAAG,IAAAC,wBAAA,EACxB,mBADwB,EAExBC,SAFwB,CAA1B;eAKeF,iB"}
1
+ {"version":3,"names":["HeaderBackContext","getNamedContext","undefined"],"sourceRoot":"../../src","sources":["HeaderBackContext.tsx"],"mappings":";;;;;;AAAA;AAAiD;AAEjD,MAAMA,iBAAiB,GAAG,IAAAC,wBAAe,EACvC,mBAAmB,EACnBC,SAAS,CACV;AAAC,eAEaF,iBAAiB;AAAA"}
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = HeaderBackground;
7
-
8
7
  var _native = require("@react-navigation/native");
9
-
10
8
  var React = _interopRequireWildcard(require("react"));
11
-
12
9
  var _reactNative = require("react-native");
13
-
14
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
18
12
  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); }
19
-
20
13
  function HeaderBackground(_ref) {
21
14
  let {
22
15
  style,
@@ -33,7 +26,6 @@ function HeaderBackground(_ref) {
33
26
  }, style]
34
27
  }, rest));
35
28
  }
36
-
37
29
  const styles = _reactNative.StyleSheet.create({
38
30
  container: {
39
31
  flex: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["HeaderBackground","style","rest","colors","useTheme","styles","container","backgroundColor","card","borderBottomColor","border","shadowColor","StyleSheet","create","flex","Platform","select","android","elevation","ios","shadowOpacity","shadowRadius","shadowOffset","width","height","hairlineWidth","default","borderBottomWidth"],"sources":["HeaderBackground.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport * as React from 'react';\nimport {\n Animated,\n Platform,\n StyleProp,\n StyleSheet,\n ViewProps,\n ViewStyle,\n} from 'react-native';\n\ntype Props = Omit<ViewProps, 'style'> & {\n style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n children?: React.ReactNode;\n};\n\nexport default function HeaderBackground({ style, ...rest }: Props) {\n const { colors } = useTheme();\n\n return (\n <Animated.View\n style={[\n styles.container,\n {\n backgroundColor: colors.card,\n borderBottomColor: colors.border,\n shadowColor: colors.border,\n },\n style,\n ]}\n {...rest}\n />\n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n ...Platform.select({\n android: {\n elevation: 4,\n },\n ios: {\n shadowOpacity: 0.85,\n shadowRadius: 0,\n shadowOffset: {\n width: 0,\n height: StyleSheet.hairlineWidth,\n },\n },\n default: {\n borderBottomWidth: StyleSheet.hairlineWidth,\n },\n }),\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAce,SAASA,gBAAT,OAAqD;EAAA,IAA3B;IAAEC,KAAF;IAAS,GAAGC;EAAZ,CAA2B;EAClE,MAAM;IAAEC;EAAF,IAAa,IAAAC,gBAAA,GAAnB;EAEA,oBACE,oBAAC,qBAAD,CAAU,IAAV;IACE,KAAK,EAAE,CACLC,MAAM,CAACC,SADF,EAEL;MACEC,eAAe,EAAEJ,MAAM,CAACK,IAD1B;MAEEC,iBAAiB,EAAEN,MAAM,CAACO,MAF5B;MAGEC,WAAW,EAAER,MAAM,CAACO;IAHtB,CAFK,EAOLT,KAPK;EADT,GAUMC,IAVN,EADF;AAcD;;AAED,MAAMG,MAAM,GAAGO,uBAAA,CAAWC,MAAX,CAAkB;EAC/BP,SAAS,EAAE;IACTQ,IAAI,EAAE,CADG;IAET,GAAGC,qBAAA,CAASC,MAAT,CAAgB;MACjBC,OAAO,EAAE;QACPC,SAAS,EAAE;MADJ,CADQ;MAIjBC,GAAG,EAAE;QACHC,aAAa,EAAE,IADZ;QAEHC,YAAY,EAAE,CAFX;QAGHC,YAAY,EAAE;UACZC,KAAK,EAAE,CADK;UAEZC,MAAM,EAAEZ,uBAAA,CAAWa;QAFP;MAHX,CAJY;MAYjBC,OAAO,EAAE;QACPC,iBAAiB,EAAEf,uBAAA,CAAWa;MADvB;IAZQ,CAAhB;EAFM;AADoB,CAAlB,CAAf"}
1
+ {"version":3,"names":["HeaderBackground","style","rest","colors","useTheme","styles","container","backgroundColor","card","borderBottomColor","border","shadowColor","StyleSheet","create","flex","Platform","select","android","elevation","ios","shadowOpacity","shadowRadius","shadowOffset","width","height","hairlineWidth","default","borderBottomWidth"],"sourceRoot":"../../src","sources":["HeaderBackground.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAOsB;AAAA;AAAA;AAOP,SAASA,gBAAgB,OAA4B;EAAA,IAA3B;IAAEC,KAAK;IAAE,GAAGC;EAAY,CAAC;EAChE,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gBAAQ,GAAE;EAE7B,oBACE,oBAAC,qBAAQ,CAAC,IAAI;IACZ,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEJ,MAAM,CAACK,IAAI;MAC5BC,iBAAiB,EAAEN,MAAM,CAACO,MAAM;MAChCC,WAAW,EAAER,MAAM,CAACO;IACtB,CAAC,EACDT,KAAK;EACL,GACEC,IAAI,EACR;AAEN;AAEA,MAAMG,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,IAAI,EAAE,CAAC;IACP,GAAGC,qBAAQ,CAACC,MAAM,CAAC;MACjBC,OAAO,EAAE;QACPC,SAAS,EAAE;MACb,CAAC;MACDC,GAAG,EAAE;QACHC,aAAa,EAAE,IAAI;QACnBC,YAAY,EAAE,CAAC;QACfC,YAAY,EAAE;UACZC,KAAK,EAAE,CAAC;UACRC,MAAM,EAAEZ,uBAAU,CAACa;QACrB;MACF,CAAC;MACDC,OAAO,EAAE;QACPC,iBAAiB,EAAEf,uBAAU,CAACa;MAChC;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _getNamedContext = _interopRequireDefault(require("../getNamedContext"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
9
  const HeaderHeightContext = (0, _getNamedContext.default)('HeaderHeightContext', undefined);
13
10
  var _default = HeaderHeightContext;
14
11
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["HeaderHeightContext","getNamedContext","undefined"],"sources":["HeaderHeightContext.tsx"],"sourcesContent":["import getNamedContext from '../getNamedContext';\n\nconst HeaderHeightContext = getNamedContext<number | undefined>(\n 'HeaderHeightContext',\n undefined\n);\n\nexport default HeaderHeightContext;\n"],"mappings":";;;;;;;AAAA;;;;AAEA,MAAMA,mBAAmB,GAAG,IAAAC,wBAAA,EAC1B,qBAD0B,EAE1BC,SAF0B,CAA5B;eAKeF,mB"}
1
+ {"version":3,"names":["HeaderHeightContext","getNamedContext","undefined"],"sourceRoot":"../../src","sources":["HeaderHeightContext.tsx"],"mappings":";;;;;;AAAA;AAAiD;AAEjD,MAAMA,mBAAmB,GAAG,IAAAC,wBAAe,EACzC,qBAAqB,EACrBC,SAAS,CACV;AAAC,eAEaF,mBAAmB;AAAA"}
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _getNamedContext = _interopRequireDefault(require("../getNamedContext"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
9
  const HeaderShownContext = (0, _getNamedContext.default)('HeaderShownContext', false);
13
10
  var _default = HeaderShownContext;
14
11
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["HeaderShownContext","getNamedContext"],"sources":["HeaderShownContext.tsx"],"sourcesContent":["import getNamedContext from '../getNamedContext';\n\nconst HeaderShownContext = getNamedContext('HeaderShownContext', false);\n\nexport default HeaderShownContext;\n"],"mappings":";;;;;;;AAAA;;;;AAEA,MAAMA,kBAAkB,GAAG,IAAAC,wBAAA,EAAgB,oBAAhB,EAAsC,KAAtC,CAA3B;eAEeD,kB"}
1
+ {"version":3,"names":["HeaderShownContext","getNamedContext"],"sourceRoot":"../../src","sources":["HeaderShownContext.tsx"],"mappings":";;;;;;AAAA;AAAiD;AAEjD,MAAMA,kBAAkB,GAAG,IAAAC,wBAAe,EAAC,oBAAoB,EAAE,KAAK,CAAC;AAAC,eAEzDD,kBAAkB;AAAA"}
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = HeaderTitle;
7
-
8
7
  var _native = require("@react-navigation/native");
9
-
10
8
  var React = _interopRequireWildcard(require("react"));
11
-
12
9
  var _reactNative = require("react-native");
13
-
14
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
18
12
  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); }
19
-
20
13
  function HeaderTitle(_ref) {
21
14
  let {
22
15
  tintColor,
@@ -36,7 +29,6 @@ function HeaderTitle(_ref) {
36
29
  }, style]
37
30
  }));
38
31
  }
39
-
40
32
  const styles = _reactNative.StyleSheet.create({
41
33
  title: _reactNative.Platform.select({
42
34
  ios: {
@@ -1 +1 @@
1
- {"version":3,"names":["HeaderTitle","tintColor","style","rest","colors","useTheme","styles","title","color","undefined","text","StyleSheet","create","Platform","select","ios","fontSize","fontWeight","android","fontFamily","default"],"sources":["HeaderTitle.tsx"],"sourcesContent":["import { useTheme } from '@react-navigation/native';\nimport * as React from 'react';\nimport {\n Animated,\n Platform,\n StyleProp,\n StyleSheet,\n TextProps,\n TextStyle,\n} from 'react-native';\n\ntype Props = Omit<TextProps, 'style'> & {\n tintColor?: string;\n children?: string;\n style?: Animated.WithAnimatedValue<StyleProp<TextStyle>>;\n};\n\nexport default function HeaderTitle({ tintColor, style, ...rest }: Props) {\n const { colors } = useTheme();\n\n return (\n <Animated.Text\n accessibilityRole=\"header\"\n aria-level=\"1\"\n numberOfLines={1}\n {...rest}\n style={[\n styles.title,\n { color: tintColor === undefined ? colors.text : tintColor },\n style,\n ]}\n />\n );\n}\n\nconst styles = StyleSheet.create({\n title: Platform.select({\n ios: {\n fontSize: 17,\n fontWeight: '600',\n },\n android: {\n fontSize: 20,\n fontFamily: 'sans-serif-medium',\n fontWeight: 'normal',\n },\n default: {\n fontSize: 18,\n fontWeight: '500',\n },\n }),\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAee,SAASA,WAAT,OAA2D;EAAA,IAAtC;IAAEC,SAAF;IAAaC,KAAb;IAAoB,GAAGC;EAAvB,CAAsC;EACxE,MAAM;IAAEC;EAAF,IAAa,IAAAC,gBAAA,GAAnB;EAEA,oBACE,oBAAC,qBAAD,CAAU,IAAV;IACE,iBAAiB,EAAC,QADpB;IAEE,cAAW,GAFb;IAGE,aAAa,EAAE;EAHjB,GAIMF,IAJN;IAKE,KAAK,EAAE,CACLG,MAAM,CAACC,KADF,EAEL;MAAEC,KAAK,EAAEP,SAAS,KAAKQ,SAAd,GAA0BL,MAAM,CAACM,IAAjC,GAAwCT;IAAjD,CAFK,EAGLC,KAHK;EALT,GADF;AAaD;;AAED,MAAMI,MAAM,GAAGK,uBAAA,CAAWC,MAAX,CAAkB;EAC/BL,KAAK,EAAEM,qBAAA,CAASC,MAAT,CAAgB;IACrBC,GAAG,EAAE;MACHC,QAAQ,EAAE,EADP;MAEHC,UAAU,EAAE;IAFT,CADgB;IAKrBC,OAAO,EAAE;MACPF,QAAQ,EAAE,EADH;MAEPG,UAAU,EAAE,mBAFL;MAGPF,UAAU,EAAE;IAHL,CALY;IAUrBG,OAAO,EAAE;MACPJ,QAAQ,EAAE,EADH;MAEPC,UAAU,EAAE;IAFL;EAVY,CAAhB;AADwB,CAAlB,CAAf"}
1
+ {"version":3,"names":["HeaderTitle","tintColor","style","rest","colors","useTheme","styles","title","color","undefined","text","StyleSheet","create","Platform","select","ios","fontSize","fontWeight","android","fontFamily","default"],"sourceRoot":"../../src","sources":["HeaderTitle.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AAOsB;AAAA;AAAA;AAQP,SAASA,WAAW,OAAuC;EAAA,IAAtC;IAAEC,SAAS;IAAEC,KAAK;IAAE,GAAGC;EAAY,CAAC;EACtE,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gBAAQ,GAAE;EAE7B,oBACE,oBAAC,qBAAQ,CAAC,IAAI;IACZ,iBAAiB,EAAC,QAAQ;IAC1B,cAAW,GAAG;IACd,aAAa,EAAE;EAAE,GACbF,IAAI;IACR,KAAK,EAAE,CACLG,MAAM,CAACC,KAAK,EACZ;MAAEC,KAAK,EAAEP,SAAS,KAAKQ,SAAS,GAAGL,MAAM,CAACM,IAAI,GAAGT;IAAU,CAAC,EAC5DC,KAAK;EACL,GACF;AAEN;AAEA,MAAMI,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,KAAK,EAAEM,qBAAQ,CAACC,MAAM,CAAC;IACrBC,GAAG,EAAE;MACHC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACd,CAAC;IACDC,OAAO,EAAE;MACPF,QAAQ,EAAE,EAAE;MACZG,UAAU,EAAE,mBAAmB;MAC/BF,UAAU,EAAE;IACd,CAAC;IACDG,OAAO,EAAE;MACPJ,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE;IACd;EACF,CAAC;AACH,CAAC,CAAC"}
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = getDefaultHeaderHeight;
7
-
8
7
  var _reactNative = require("react-native");
9
-
10
8
  function getDefaultHeaderHeight(layout, modalPresentation, statusBarHeight) {
11
9
  let headerHeight;
12
10
  const isLandscape = layout.width > layout.height;
13
-
14
11
  if (_reactNative.Platform.OS === 'ios') {
15
12
  if (_reactNative.Platform.isPad || _reactNative.Platform.isTV) {
16
13
  if (modalPresentation) {
@@ -34,7 +31,6 @@ function getDefaultHeaderHeight(layout, modalPresentation, statusBarHeight) {
34
31
  } else {
35
32
  headerHeight = 64;
36
33
  }
37
-
38
34
  return headerHeight + statusBarHeight;
39
35
  }
40
36
  //# sourceMappingURL=getDefaultHeaderHeight.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getDefaultHeaderHeight","layout","modalPresentation","statusBarHeight","headerHeight","isLandscape","width","height","Platform","OS","isPad","isTV"],"sources":["getDefaultHeaderHeight.tsx"],"sourcesContent":["import { Platform } from 'react-native';\n\nimport type { Layout } from '../types';\n\nexport default function getDefaultHeaderHeight(\n layout: Layout,\n modalPresentation: boolean,\n statusBarHeight: number\n): number {\n let headerHeight;\n\n const isLandscape = layout.width > layout.height;\n\n if (Platform.OS === 'ios') {\n if (Platform.isPad || Platform.isTV) {\n if (modalPresentation) {\n headerHeight = 56;\n } else {\n headerHeight = 50;\n }\n } else {\n if (isLandscape) {\n headerHeight = 32;\n } else {\n if (modalPresentation) {\n headerHeight = 56;\n } else {\n headerHeight = 44;\n }\n }\n }\n } else if (Platform.OS === 'android') {\n headerHeight = 56;\n } else {\n headerHeight = 64;\n }\n\n return headerHeight + statusBarHeight;\n}\n"],"mappings":";;;;;;;AAAA;;AAIe,SAASA,sBAAT,CACbC,MADa,EAEbC,iBAFa,EAGbC,eAHa,EAIL;EACR,IAAIC,YAAJ;EAEA,MAAMC,WAAW,GAAGJ,MAAM,CAACK,KAAP,GAAeL,MAAM,CAACM,MAA1C;;EAEA,IAAIC,qBAAA,CAASC,EAAT,KAAgB,KAApB,EAA2B;IACzB,IAAID,qBAAA,CAASE,KAAT,IAAkBF,qBAAA,CAASG,IAA/B,EAAqC;MACnC,IAAIT,iBAAJ,EAAuB;QACrBE,YAAY,GAAG,EAAf;MACD,CAFD,MAEO;QACLA,YAAY,GAAG,EAAf;MACD;IACF,CAND,MAMO;MACL,IAAIC,WAAJ,EAAiB;QACfD,YAAY,GAAG,EAAf;MACD,CAFD,MAEO;QACL,IAAIF,iBAAJ,EAAuB;UACrBE,YAAY,GAAG,EAAf;QACD,CAFD,MAEO;UACLA,YAAY,GAAG,EAAf;QACD;MACF;IACF;EACF,CAlBD,MAkBO,IAAII,qBAAA,CAASC,EAAT,KAAgB,SAApB,EAA+B;IACpCL,YAAY,GAAG,EAAf;EACD,CAFM,MAEA;IACLA,YAAY,GAAG,EAAf;EACD;;EAED,OAAOA,YAAY,GAAGD,eAAtB;AACD"}
1
+ {"version":3,"names":["getDefaultHeaderHeight","layout","modalPresentation","statusBarHeight","headerHeight","isLandscape","width","height","Platform","OS","isPad","isTV"],"sourceRoot":"../../src","sources":["getDefaultHeaderHeight.tsx"],"mappings":";;;;;;AAAA;AAIe,SAASA,sBAAsB,CAC5CC,MAAc,EACdC,iBAA0B,EAC1BC,eAAuB,EACf;EACR,IAAIC,YAAY;EAEhB,MAAMC,WAAW,GAAGJ,MAAM,CAACK,KAAK,GAAGL,MAAM,CAACM,MAAM;EAEhD,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzB,IAAID,qBAAQ,CAACE,KAAK,IAAIF,qBAAQ,CAACG,IAAI,EAAE;MACnC,IAAIT,iBAAiB,EAAE;QACrBE,YAAY,GAAG,EAAE;MACnB,CAAC,MAAM;QACLA,YAAY,GAAG,EAAE;MACnB;IACF,CAAC,MAAM;MACL,IAAIC,WAAW,EAAE;QACfD,YAAY,GAAG,EAAE;MACnB,CAAC,MAAM;QACL,IAAIF,iBAAiB,EAAE;UACrBE,YAAY,GAAG,EAAE;QACnB,CAAC,MAAM;UACLA,YAAY,GAAG,EAAE;QACnB;MACF;IACF;EACF,CAAC,MAAM,IAAII,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IACpCL,YAAY,GAAG,EAAE;EACnB,CAAC,MAAM;IACLA,YAAY,GAAG,EAAE;EACnB;EAEA,OAAOA,YAAY,GAAGD,eAAe;AACvC"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = getHeaderTitle;
7
-
8
7
  function getHeaderTitle(options, fallback) {
9
8
  return typeof options.headerTitle === 'string' ? options.headerTitle : options.title !== undefined ? options.title : fallback;
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"names":["getHeaderTitle","options","fallback","headerTitle","title","undefined"],"sources":["getHeaderTitle.tsx"],"sourcesContent":["import type { HeaderOptions } from '../types';\n\nexport default function getHeaderTitle(\n options: { title?: string; headerTitle?: HeaderOptions['headerTitle'] },\n fallback: string\n): string {\n return typeof options.headerTitle === 'string'\n ? options.headerTitle\n : options.title !== undefined\n ? options.title\n : fallback;\n}\n"],"mappings":";;;;;;;AAEe,SAASA,cAAT,CACbC,OADa,EAEbC,QAFa,EAGL;EACR,OAAO,OAAOD,OAAO,CAACE,WAAf,KAA+B,QAA/B,GACHF,OAAO,CAACE,WADL,GAEHF,OAAO,CAACG,KAAR,KAAkBC,SAAlB,GACAJ,OAAO,CAACG,KADR,GAEAF,QAJJ;AAKD"}
1
+ {"version":3,"names":["getHeaderTitle","options","fallback","headerTitle","title","undefined"],"sourceRoot":"../../src","sources":["getHeaderTitle.tsx"],"mappings":";;;;;;AAEe,SAASA,cAAc,CACpCC,OAAuE,EACvEC,QAAgB,EACR;EACR,OAAO,OAAOD,OAAO,CAACE,WAAW,KAAK,QAAQ,GAC1CF,OAAO,CAACE,WAAW,GACnBF,OAAO,CAACG,KAAK,KAAKC,SAAS,GAC3BJ,OAAO,CAACG,KAAK,GACbF,QAAQ;AACd"}
@@ -4,24 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = useHeaderHeight;
7
-
8
7
  var React = _interopRequireWildcard(require("react"));
9
-
10
8
  var _HeaderHeightContext = _interopRequireDefault(require("./HeaderHeightContext"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
18
12
  function useHeaderHeight() {
19
13
  const height = React.useContext(_HeaderHeightContext.default);
20
-
21
14
  if (height === undefined) {
22
15
  throw new Error("Couldn't find the header height. Are you inside a screen in a navigator with a header?");
23
16
  }
24
-
25
17
  return height;
26
18
  }
27
19
  //# sourceMappingURL=useHeaderHeight.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useHeaderHeight","height","React","useContext","HeaderHeightContext","undefined","Error"],"sources":["useHeaderHeight.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport HeaderHeightContext from './HeaderHeightContext';\n\nexport default function useHeaderHeight() {\n const height = React.useContext(HeaderHeightContext);\n\n if (height === undefined) {\n throw new Error(\n \"Couldn't find the header height. Are you inside a screen in a navigator with a header?\"\n );\n }\n\n return height;\n}\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;AAEe,SAASA,eAAT,GAA2B;EACxC,MAAMC,MAAM,GAAGC,KAAK,CAACC,UAAN,CAAiBC,4BAAjB,CAAf;;EAEA,IAAIH,MAAM,KAAKI,SAAf,EAA0B;IACxB,MAAM,IAAIC,KAAJ,CACJ,wFADI,CAAN;EAGD;;EAED,OAAOL,MAAP;AACD"}
1
+ {"version":3,"names":["useHeaderHeight","height","React","useContext","HeaderHeightContext","undefined","Error"],"sourceRoot":"../../src","sources":["useHeaderHeight.tsx"],"mappings":";;;;;;AAAA;AAEA;AAAwD;AAAA;AAAA;AAEzC,SAASA,eAAe,GAAG;EACxC,MAAMC,MAAM,GAAGC,KAAK,CAACC,UAAU,CAACC,4BAAmB,CAAC;EAEpD,IAAIH,MAAM,KAAKI,SAAS,EAAE;IACxB,MAAM,IAAIC,KAAK,CACb,wFAAwF,CACzF;EACH;EAEA,OAAOL,MAAM;AACf"}
@@ -9,8 +9,6 @@ Object.defineProperty(exports, "default", {
9
9
  return _MaskedViewNative.default;
10
10
  }
11
11
  });
12
-
13
12
  var _MaskedViewNative = _interopRequireDefault(require("./MaskedViewNative"));
14
-
15
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
14
  //# sourceMappingURL=MaskedView.android.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["MaskedView.android.tsx"],"sourcesContent":["export { default } from './MaskedViewNative';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["MaskedView.android.tsx"],"mappings":";;;;;;;;;;;AAAA;AAA6C"}
@@ -9,8 +9,6 @@ Object.defineProperty(exports, "default", {
9
9
  return _MaskedViewNative.default;
10
10
  }
11
11
  });
12
-
13
12
  var _MaskedViewNative = _interopRequireDefault(require("./MaskedViewNative"));
14
-
15
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
14
  //# sourceMappingURL=MaskedView.ios.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["MaskedView.ios.tsx"],"sourcesContent":["export { default } from './MaskedViewNative';\n"],"mappings":";;;;;;;;;;;;AAAA"}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["MaskedView.ios.tsx"],"mappings":";;;;;;;;;;;AAAA;AAA6C"}
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = MaskedView;
7
-
8
7
  /**
9
8
  * Use a stub for MaskedView on all Platforms that don't support it.
10
9
  */
10
+
11
11
  function MaskedView(_ref) {
12
12
  let {
13
13
  children
@@ -1 +1 @@
1
- {"version":3,"names":["MaskedView","children"],"sources":["MaskedView.tsx"],"sourcesContent":["/**\n * Use a stub for MaskedView on all Platforms that don't support it.\n */\nimport type * as React from 'react';\n\ntype Props = {\n maskElement: React.ReactElement;\n children: React.ReactElement;\n};\n\nexport default function MaskedView({ children }: Props) {\n return children;\n}\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAQe,SAASA,UAAT,OAAyC;EAAA,IAArB;IAAEC;EAAF,CAAqB;EACtD,OAAOA,QAAP;AACD"}
1
+ {"version":3,"names":["MaskedView","children"],"sourceRoot":"../../src","sources":["MaskedView.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;;AAQe,SAASA,UAAU,OAAsB;EAAA,IAArB;IAAEC;EAAgB,CAAC;EACpD,OAAOA,QAAQ;AACjB"}