expo-navigation-bar 4.2.0 → 4.2.1

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 (56) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/build.gradle +2 -2
  3. package/build/ExpoNavigationBar.d.ts +18 -1
  4. package/build/ExpoNavigationBar.d.ts.map +1 -1
  5. package/build/ExpoNavigationBar.js.map +1 -1
  6. package/build/NavigationBar.android.d.ts +19 -0
  7. package/build/NavigationBar.android.d.ts.map +1 -0
  8. package/build/NavigationBar.android.js +140 -0
  9. package/build/NavigationBar.android.js.map +1 -0
  10. package/build/NavigationBar.d.ts +182 -7
  11. package/build/NavigationBar.d.ts.map +1 -1
  12. package/build/NavigationBar.js +221 -42
  13. package/build/NavigationBar.js.map +1 -1
  14. package/expo-module.config.json +1 -1
  15. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.module → 4.2.1/expo.modules.navigationbar-4.2.1.module} +7 -7
  16. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.md5 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.sha1 +1 -0
  18. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.sha256 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.sha512 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.pom → 4.2.1/expo.modules.navigationbar-4.2.1.pom} +1 -1
  21. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.md5 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.sha1 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.sha256 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.sha512 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml +4 -4
  26. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.md5 +1 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha1 +1 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha256 +1 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha512 +1 -1
  30. package/package.json +3 -3
  31. package/src/ExpoNavigationBar.ts +35 -1
  32. package/src/NavigationBar.android.ts +191 -0
  33. package/src/NavigationBar.ts +245 -51
  34. package/build/NativeNavigationBarWrapper.d.ts +0 -178
  35. package/build/NativeNavigationBarWrapper.d.ts.map +0 -1
  36. package/build/NativeNavigationBarWrapper.js +0 -316
  37. package/build/NativeNavigationBarWrapper.js.map +0 -1
  38. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.module.md5 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.module.sha1 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.module.sha256 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.module.sha512 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.pom.md5 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.pom.sha1 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.pom.sha256 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.0/expo.modules.navigationbar-4.2.0.pom.sha512 +0 -1
  46. package/src/NativeNavigationBarWrapper.ts +0 -366
  47. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0-sources.jar → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar} +0 -0
  48. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0-sources.jar.md5 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.md5} +0 -0
  49. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0-sources.jar.sha1 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.sha1} +0 -0
  50. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0-sources.jar.sha256 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.sha256} +0 -0
  51. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0-sources.jar.sha512 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.sha512} +0 -0
  52. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.aar → 4.2.1/expo.modules.navigationbar-4.2.1.aar} +0 -0
  53. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.aar.md5 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.md5} +0 -0
  54. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.aar.sha1 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.sha1} +0 -0
  55. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.aar.sha256 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.sha256} +0 -0
  56. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.2.0/expo.modules.navigationbar-4.2.0.aar.sha512 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.sha512} +0 -0
@@ -1,20 +1,210 @@
1
- import { Platform } from 'react-native';
2
- import { isEdgeToEdge } from 'react-native-is-edge-to-edge';
3
- import ExpoNavigationBar from './ExpoNavigationBar';
4
- // This line only imports the type information for TypeScript type checking.
5
- // It doesn't import the actual module in the compiled JavaScript code. The actual
6
- // module is imported conditionally with require() below, in order to avoid
7
- // importing the module if edge-to-edge is not enabled (which could throw if
8
- // it's not linked).
9
- let SystemBars = null;
10
- if (isEdgeToEdge() && Platform.OS === 'android') {
11
- SystemBars = require('react-native-edge-to-edge').SystemBars;
12
- if (!SystemBars) {
13
- throw new Error('Edge-to-edge has been enabled with `react-native-edge-to-edge`, but `SystemBars` failed to resolve. Make sure your project is configured correctly.');
14
- }
15
- }
16
- const canRunEdgeToEdgeMethods = SystemBars !== null;
17
- // MARK: react-native-edge-to-edge based APIs
1
+ import { UnavailabilityError } from 'expo-modules-core';
2
+ import { useEffect, useState } from 'react';
3
+ /**
4
+ * Observe changes to the system navigation bar.
5
+ * Due to platform constraints, this callback will also be triggered when the status bar visibility changes.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * NavigationBar.addVisibilityListener(({ visibility }) => {
10
+ * // ...
11
+ * });
12
+ * ```
13
+ */
14
+ export function addVisibilityListener(listener) {
15
+ throw new UnavailabilityError('NavigationBar', 'addVisibilityListener');
16
+ }
17
+ /**
18
+ * Changes the navigation bar's background color.
19
+ *
20
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * NavigationBar.setBackgroundColorAsync("white");
25
+ * ```
26
+ * @param color Any valid [CSS 3 (SVG) color](http://www.w3.org/TR/css3-color/#svg-color).
27
+ */
28
+ export async function setBackgroundColorAsync(color) {
29
+ console.warn('`setBackgroundColorAsync` is only available on Android');
30
+ }
31
+ /**
32
+ * Gets the navigation bar's background color.
33
+ *
34
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const color = await NavigationBar.getBackgroundColorAsync();
39
+ * ```
40
+ * @returns Current navigation bar color in hex format. Returns `#00000000` (transparent) on unsupported platforms (iOS, web).
41
+ *
42
+ */
43
+ export async function getBackgroundColorAsync() {
44
+ console.warn('`getBackgroundColorAsync` is only available on Android');
45
+ return `#00000000`;
46
+ }
47
+ /**
48
+ * Changes the navigation bar's border color.
49
+ *
50
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * NavigationBar.setBorderColorAsync("red");
55
+ * ```
56
+ * @param color Any valid [CSS 3 (SVG) color](http://www.w3.org/TR/css3-color/#svg-color).
57
+ */
58
+ export async function setBorderColorAsync(color) {
59
+ console.warn('`setBorderColorAsync` is only available on Android');
60
+ }
61
+ /**
62
+ * Gets the navigation bar's top border color, also known as the "divider color".
63
+ *
64
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const color = await NavigationBar.getBorderColorAsync();
69
+ * ```
70
+ * @returns Navigation bar top border color in hex format. Returns `#00000000` (transparent) on unsupported platforms (iOS, web).
71
+ */
72
+ export async function getBorderColorAsync() {
73
+ console.warn('`getBorderColorAsync` is only available on Android');
74
+ return `#00000000`;
75
+ }
76
+ /**
77
+ * Set the navigation bar's visibility.
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * NavigationBar.setVisibilityAsync("hidden");
82
+ * ```
83
+ * @param visibility Based on CSS visibility property.
84
+ * @platform android
85
+ */
86
+ export async function setVisibilityAsync(visibility) {
87
+ console.warn('`setVisibilityAsync` is only available on Android');
88
+ }
89
+ /**
90
+ * Get the navigation bar's visibility.
91
+ *
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const visibility = await NavigationBar.getVisibilityAsync("hidden");
96
+ * ```
97
+ * @returns Navigation bar's current visibility status. Returns `hidden` on unsupported platforms (iOS, web).
98
+ */
99
+ export async function getVisibilityAsync() {
100
+ console.warn('`getVisibilityAsync` is only available on Android');
101
+ return 'hidden';
102
+ }
103
+ /**
104
+ * Changes the navigation bar's button colors between white (`light`) and a dark gray color (`dark`).
105
+ *
106
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
107
+ *
108
+ * @example
109
+ * ```ts
110
+ * NavigationBar.setButtonStyleAsync("light");
111
+ * ```
112
+ * @param style Dictates the color of the foreground element color.
113
+ */
114
+ export async function setButtonStyleAsync(style) {
115
+ console.warn('`setButtonStyleAsync` is only available on Android');
116
+ }
117
+ /**
118
+ * Gets the navigation bar's button color styles.
119
+ *
120
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
121
+ *
122
+ * @example
123
+ * ```ts
124
+ * const style = await NavigationBar.getButtonStyleAsync();
125
+ * ```
126
+ * @returns Navigation bar foreground element color settings. Returns `light` on unsupported platforms (iOS, web).
127
+ */
128
+ export async function getButtonStyleAsync() {
129
+ console.warn('`getButtonStyleAsync` is only available on Android');
130
+ return 'light';
131
+ }
132
+ /**
133
+ * Sets positioning method used for the navigation bar (and status bar).
134
+ * Setting position `absolute` will float the navigation bar above the content,
135
+ * whereas position `relative` will shrink the screen to inline the navigation bar.
136
+ *
137
+ * When drawing behind the status and navigation bars, ensure the safe area insets are adjusted accordingly.
138
+ *
139
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
140
+ *
141
+ * @example
142
+ * ```ts
143
+ * // enables edge-to-edge mode
144
+ * await NavigationBar.setPositionAsync('absolute')
145
+ * // transparent backgrounds to see through
146
+ * await NavigationBar.setBackgroundColorAsync('#ffffff00')
147
+ * ```
148
+ * @param position Based on CSS position property.
149
+ */
150
+ export async function setPositionAsync(position) {
151
+ console.warn('`setPositionAsync` is only available on Android');
152
+ }
153
+ /**
154
+ * Whether the navigation and status bars float above the app (absolute) or sit inline with it (relative).
155
+ * This value can be incorrect if `androidNavigationBar.visible` is used instead of the config plugin `position` property.
156
+ *
157
+ * This method is unstable because the position can be set via another native module and get out of sync.
158
+ * Alternatively, you can get the position by measuring the insets returned by `react-native-safe-area-context`.
159
+ *
160
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
161
+ *
162
+ * @example
163
+ * ```ts
164
+ * await NavigationBar.unstable_getPositionAsync()
165
+ * ```
166
+ * @returns Navigation bar positional rendering mode. Returns `relative` on unsupported platforms (iOS, web).
167
+ */
168
+ export async function unstable_getPositionAsync() {
169
+ console.warn('`unstable_getPositionAsync` is only available on Android');
170
+ return 'relative';
171
+ }
172
+ /**
173
+ * Sets the behavior of the status bar and navigation bar when they are hidden and the user wants to reveal them.
174
+ *
175
+ * For example, if the navigation bar is hidden (`setVisibilityAsync(false)`) and the behavior
176
+ * is `'overlay-swipe'`, the user can swipe from the bottom of the screen to temporarily reveal the navigation bar.
177
+ *
178
+ * - `'overlay-swipe'`: Temporarily reveals the System UI after a swipe gesture (bottom or top) without insetting your App's content.
179
+ * - `'inset-swipe'`: Reveals the System UI after a swipe gesture (bottom or top) and insets your App's content (Safe Area). The System UI is visible until you explicitly hide it again.
180
+ * - `'inset-touch'`: Reveals the System UI after a touch anywhere on the screen and insets your App's content (Safe Area). The System UI is visible until you explicitly hide it again.
181
+ *
182
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
183
+ *
184
+ * @example
185
+ * ```ts
186
+ * await NavigationBar.setBehaviorAsync('overlay-swipe')
187
+ * ```
188
+ * @param behavior Dictates the interaction behavior of the navigation bar.
189
+ */
190
+ export async function setBehaviorAsync(behavior) {
191
+ console.warn('`setBehaviorAsync` is only available on Android');
192
+ }
193
+ /**
194
+ * Gets the behavior of the status and navigation bars when the user swipes or touches the screen.
195
+ *
196
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
197
+ *
198
+ * @example
199
+ * ```ts
200
+ * await NavigationBar.getBehaviorAsync()
201
+ * ```
202
+ * @returns Navigation bar interaction behavior. Returns `inset-touch` on unsupported platforms (iOS, web).
203
+ */
204
+ export async function getBehaviorAsync() {
205
+ console.warn('`getBehaviorAsync` is only available on Android');
206
+ return 'inset-touch';
207
+ }
18
208
  /**
19
209
  * Sets the style of the navigation bar.
20
210
  * > This will have an effect when the following conditions are met:
@@ -27,37 +217,26 @@ const canRunEdgeToEdgeMethods = SystemBars !== null;
27
217
  * @platform android
28
218
  */
29
219
  export function setStyle(style) {
30
- if (!canRunEdgeToEdgeMethods && Platform.OS === 'android') {
31
- throw new Error('`setStyle` is only supported on Android when edge-to-edge is enabled. Enable edge-to-edge or use the `setButtonStyle` function instead.');
32
- }
33
- if (Platform.OS !== 'android') {
34
- console.warn('`setStyle` method is only available on Android');
35
- return;
36
- }
37
- SystemBars?.setStyle({ navigationBar: style });
220
+ console.warn('`setStyle` method is only available on Android');
38
221
  }
39
222
  /**
40
- * Set the navigation bar's visibility.
223
+ * React hook that statefully updates with the visibility of the system navigation bar.
41
224
  *
42
225
  * @example
43
226
  * ```ts
44
- * NavigationBar.setVisibilityAsync("hidden");
227
+ * function App() {
228
+ * const visibility = NavigationBar.useVisibility()
229
+ * // React Component...
230
+ * }
45
231
  * ```
46
- * @param visibility Based on CSS visibility property.
47
- * @platform android
232
+ * @returns Visibility of the navigation bar, `null` during async initialization.
48
233
  */
49
- export async function setVisibilityAsync(visibility) {
50
- if (Platform.OS !== 'android') {
51
- console.warn('`setVisibilityAsync` is only available on Android');
52
- return;
53
- }
54
- if (canRunEdgeToEdgeMethods) {
55
- // We know the SystemBars module is available, but typescript doesn't interpret it, so we have to use optional.
56
- return SystemBars?.setHidden({ navigationBar: visibility === 'hidden' });
57
- }
58
- return await ExpoNavigationBar.setVisibilityAsync(visibility);
59
- }
60
- // MARK: existing expo-navigation-bar APIs
61
- export * from './NativeNavigationBarWrapper';
234
+ export function useVisibility() {
235
+ const [visibility, setVisible] = useState(null);
236
+ useEffect(() => {
237
+ setVisible('hidden');
238
+ }, []);
239
+ return visibility;
240
+ }
62
241
  export * from './NavigationBar.types';
63
242
  //# sourceMappingURL=NavigationBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../src/NavigationBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAGpD,4EAA4E;AAC5E,kFAAkF;AAClF,2EAA2E;AAC3E,4EAA4E;AAC5E,oBAAoB;AACpB,IAAI,UAAU,GAAiE,IAAI,CAAC;AAEpF,IAAI,YAAY,EAAE,IAAI,QAAQ,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;IAChD,UAAU,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC,UAAU,CAAC;IAC7D,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CACb,qJAAqJ,CACtJ,CAAC;IACJ,CAAC;AACH,CAAC;AACD,MAAM,uBAAuB,GAAG,UAAU,KAAK,IAAI,CAAC;AAEpD,6CAA6C;AAC7C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAyB;IAChD,IAAI,CAAC,uBAAuB,IAAI,QAAQ,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;QAC1D,MAAM,IAAI,KAAK,CACb,yIAAyI,CAC1I,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QAC/D,OAAO;IACT,CAAC;IACD,UAAU,EAAE,QAAQ,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC;AACjD,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,UAAmC;IAC1E,IAAI,QAAQ,CAAC,EAAE,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;QAClE,OAAO;IACT,CAAC;IAED,IAAI,uBAAuB,EAAE,CAAC;QAC5B,+GAA+G;QAC/G,OAAO,UAAU,EAAE,SAAS,CAAC,EAAE,aAAa,EAAE,UAAU,KAAK,QAAQ,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO,MAAM,iBAAiB,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAChE,CAAC;AAED,0CAA0C;AAE1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC","sourcesContent":["import { Platform } from 'react-native';\nimport { isEdgeToEdge } from 'react-native-is-edge-to-edge';\n\nimport ExpoNavigationBar from './ExpoNavigationBar';\nimport { NavigationBarStyle, NavigationBarVisibility } from './NavigationBar.types';\n\n// This line only imports the type information for TypeScript type checking.\n// It doesn't import the actual module in the compiled JavaScript code. The actual\n// module is imported conditionally with require() below, in order to avoid\n// importing the module if edge-to-edge is not enabled (which could throw if\n// it's not linked).\nlet SystemBars: typeof import('react-native-edge-to-edge').SystemBars | null = null;\n\nif (isEdgeToEdge() && Platform.OS === 'android') {\n SystemBars = require('react-native-edge-to-edge').SystemBars;\n if (!SystemBars) {\n throw new Error(\n 'Edge-to-edge has been enabled with `react-native-edge-to-edge`, but `SystemBars` failed to resolve. Make sure your project is configured correctly.'\n );\n }\n}\nconst canRunEdgeToEdgeMethods = SystemBars !== null;\n\n// MARK: react-native-edge-to-edge based APIs\n/**\n * Sets the style of the navigation bar.\n * > This will have an effect when the following conditions are met:\n * > - Edge-to-edge is enabled\n * > - The `enforceNavigationBarContrast` option of the `react-native-edge-to-edge` plugin is set to `false`.\n * > - The device is using the three-button navigation bar.\n *\n * > Due to a bug in the Android 15 emulator this function may have no effect. Try a physical device or an emulator with a different version of Android.\n *\n * @platform android\n */\nexport function setStyle(style: NavigationBarStyle) {\n if (!canRunEdgeToEdgeMethods && Platform.OS === 'android') {\n throw new Error(\n '`setStyle` is only supported on Android when edge-to-edge is enabled. Enable edge-to-edge or use the `setButtonStyle` function instead.'\n );\n }\n if (Platform.OS !== 'android') {\n console.warn('`setStyle` method is only available on Android');\n return;\n }\n SystemBars?.setStyle({ navigationBar: style });\n}\n\n/**\n * Set the navigation bar's visibility.\n *\n * @example\n * ```ts\n * NavigationBar.setVisibilityAsync(\"hidden\");\n * ```\n * @param visibility Based on CSS visibility property.\n * @platform android\n */\nexport async function setVisibilityAsync(visibility: NavigationBarVisibility) {\n if (Platform.OS !== 'android') {\n console.warn('`setVisibilityAsync` is only available on Android');\n return;\n }\n\n if (canRunEdgeToEdgeMethods) {\n // We know the SystemBars module is available, but typescript doesn't interpret it, so we have to use optional.\n return SystemBars?.setHidden({ navigationBar: visibility === 'hidden' });\n }\n\n return await ExpoNavigationBar.setVisibilityAsync(visibility);\n}\n\n// MARK: existing expo-navigation-bar APIs\n\nexport * from './NativeNavigationBarWrapper';\nexport * from './NavigationBar.types';\n"]}
1
+ {"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../src/NavigationBar.ts"],"names":[],"mappings":"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","sourcesContent":["import { type EventSubscription, UnavailabilityError } from 'expo-modules-core';\nimport { useEffect, useState } from 'react';\n\nimport type {\n NavigationBarBehavior,\n NavigationBarButtonStyle,\n NavigationBarPosition,\n NavigationBarStyle,\n NavigationBarVisibility,\n NavigationBarVisibilityEvent,\n} from './NavigationBar.types';\n\n/**\n * Observe changes to the system navigation bar.\n * Due to platform constraints, this callback will also be triggered when the status bar visibility changes.\n *\n * @example\n * ```ts\n * NavigationBar.addVisibilityListener(({ visibility }) => {\n * // ...\n * });\n * ```\n */\nexport function addVisibilityListener(\n listener: (event: NavigationBarVisibilityEvent) => void\n): EventSubscription {\n throw new UnavailabilityError('NavigationBar', 'addVisibilityListener');\n}\n\n/**\n * Changes the navigation bar's background color.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * NavigationBar.setBackgroundColorAsync(\"white\");\n * ```\n * @param color Any valid [CSS 3 (SVG) color](http://www.w3.org/TR/css3-color/#svg-color).\n */\nexport async function setBackgroundColorAsync(color: string): Promise<void> {\n console.warn('`setBackgroundColorAsync` is only available on Android');\n}\n\n/**\n * Gets the navigation bar's background color.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * const color = await NavigationBar.getBackgroundColorAsync();\n * ```\n * @returns Current navigation bar color in hex format. Returns `#00000000` (transparent) on unsupported platforms (iOS, web).\n *\n */\nexport async function getBackgroundColorAsync(): Promise<string> {\n console.warn('`getBackgroundColorAsync` is only available on Android');\n return `#00000000`;\n}\n\n/**\n * Changes the navigation bar's border color.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * NavigationBar.setBorderColorAsync(\"red\");\n * ```\n * @param color Any valid [CSS 3 (SVG) color](http://www.w3.org/TR/css3-color/#svg-color).\n */\nexport async function setBorderColorAsync(color: string): Promise<void> {\n console.warn('`setBorderColorAsync` is only available on Android');\n}\n\n/**\n * Gets the navigation bar's top border color, also known as the \"divider color\".\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * const color = await NavigationBar.getBorderColorAsync();\n * ```\n * @returns Navigation bar top border color in hex format. Returns `#00000000` (transparent) on unsupported platforms (iOS, web).\n */\nexport async function getBorderColorAsync(): Promise<string> {\n console.warn('`getBorderColorAsync` is only available on Android');\n return `#00000000`;\n}\n\n/**\n * Set the navigation bar's visibility.\n *\n * @example\n * ```ts\n * NavigationBar.setVisibilityAsync(\"hidden\");\n * ```\n * @param visibility Based on CSS visibility property.\n * @platform android\n */\nexport async function setVisibilityAsync(visibility: NavigationBarVisibility): Promise<void> {\n console.warn('`setVisibilityAsync` is only available on Android');\n}\n\n/**\n * Get the navigation bar's visibility.\n *\n *\n * @example\n * ```ts\n * const visibility = await NavigationBar.getVisibilityAsync(\"hidden\");\n * ```\n * @returns Navigation bar's current visibility status. Returns `hidden` on unsupported platforms (iOS, web).\n */\nexport async function getVisibilityAsync(): Promise<NavigationBarVisibility> {\n console.warn('`getVisibilityAsync` is only available on Android');\n return 'hidden';\n}\n\n/**\n * Changes the navigation bar's button colors between white (`light`) and a dark gray color (`dark`).\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * NavigationBar.setButtonStyleAsync(\"light\");\n * ```\n * @param style Dictates the color of the foreground element color.\n */\nexport async function setButtonStyleAsync(style: NavigationBarButtonStyle): Promise<void> {\n console.warn('`setButtonStyleAsync` is only available on Android');\n}\n\n/**\n * Gets the navigation bar's button color styles.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * const style = await NavigationBar.getButtonStyleAsync();\n * ```\n * @returns Navigation bar foreground element color settings. Returns `light` on unsupported platforms (iOS, web).\n */\nexport async function getButtonStyleAsync(): Promise<NavigationBarButtonStyle> {\n console.warn('`getButtonStyleAsync` is only available on Android');\n return 'light';\n}\n\n/**\n * Sets positioning method used for the navigation bar (and status bar).\n * Setting position `absolute` will float the navigation bar above the content,\n * whereas position `relative` will shrink the screen to inline the navigation bar.\n *\n * When drawing behind the status and navigation bars, ensure the safe area insets are adjusted accordingly.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * // enables edge-to-edge mode\n * await NavigationBar.setPositionAsync('absolute')\n * // transparent backgrounds to see through\n * await NavigationBar.setBackgroundColorAsync('#ffffff00')\n * ```\n * @param position Based on CSS position property.\n */\nexport async function setPositionAsync(position: NavigationBarPosition): Promise<void> {\n console.warn('`setPositionAsync` is only available on Android');\n}\n\n/**\n * Whether the navigation and status bars float above the app (absolute) or sit inline with it (relative).\n * This value can be incorrect if `androidNavigationBar.visible` is used instead of the config plugin `position` property.\n *\n * This method is unstable because the position can be set via another native module and get out of sync.\n * Alternatively, you can get the position by measuring the insets returned by `react-native-safe-area-context`.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * await NavigationBar.unstable_getPositionAsync()\n * ```\n * @returns Navigation bar positional rendering mode. Returns `relative` on unsupported platforms (iOS, web).\n */\nexport async function unstable_getPositionAsync(): Promise<NavigationBarPosition> {\n console.warn('`unstable_getPositionAsync` is only available on Android');\n return 'relative';\n}\n\n/**\n * Sets the behavior of the status bar and navigation bar when they are hidden and the user wants to reveal them.\n *\n * For example, if the navigation bar is hidden (`setVisibilityAsync(false)`) and the behavior\n * is `'overlay-swipe'`, the user can swipe from the bottom of the screen to temporarily reveal the navigation bar.\n *\n * - `'overlay-swipe'`: Temporarily reveals the System UI after a swipe gesture (bottom or top) without insetting your App's content.\n * - `'inset-swipe'`: Reveals the System UI after a swipe gesture (bottom or top) and insets your App's content (Safe Area). The System UI is visible until you explicitly hide it again.\n * - `'inset-touch'`: Reveals the System UI after a touch anywhere on the screen and insets your App's content (Safe Area). The System UI is visible until you explicitly hide it again.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * await NavigationBar.setBehaviorAsync('overlay-swipe')\n * ```\n * @param behavior Dictates the interaction behavior of the navigation bar.\n */\nexport async function setBehaviorAsync(behavior: NavigationBarBehavior): Promise<void> {\n console.warn('`setBehaviorAsync` is only available on Android');\n}\n\n/**\n * Gets the behavior of the status and navigation bars when the user swipes or touches the screen.\n *\n * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.\n *\n * @example\n * ```ts\n * await NavigationBar.getBehaviorAsync()\n * ```\n * @returns Navigation bar interaction behavior. Returns `inset-touch` on unsupported platforms (iOS, web).\n */\nexport async function getBehaviorAsync(): Promise<NavigationBarBehavior> {\n console.warn('`getBehaviorAsync` is only available on Android');\n return 'inset-touch';\n}\n\n/**\n * Sets the style of the navigation bar.\n * > This will have an effect when the following conditions are met:\n * > - Edge-to-edge is enabled\n * > - The `enforceNavigationBarContrast` option of the `react-native-edge-to-edge` plugin is set to `false`.\n * > - The device is using the three-button navigation bar.\n *\n * > Due to a bug in the Android 15 emulator this function may have no effect. Try a physical device or an emulator with a different version of Android.\n *\n * @platform android\n */\nexport function setStyle(style: NavigationBarStyle) {\n console.warn('`setStyle` method is only available on Android');\n}\n\n/**\n * React hook that statefully updates with the visibility of the system navigation bar.\n *\n * @example\n * ```ts\n * function App() {\n * const visibility = NavigationBar.useVisibility()\n * // React Component...\n * }\n * ```\n * @returns Visibility of the navigation bar, `null` during async initialization.\n */\nexport function useVisibility(): NavigationBarVisibility | null {\n const [visibility, setVisible] = useState<NavigationBarVisibility | null>(null);\n\n useEffect(() => {\n setVisible('hidden');\n }, []);\n\n return visibility;\n}\n\nexport * from './NavigationBar.types';\n"]}
@@ -5,7 +5,7 @@
5
5
  "publication": {
6
6
  "groupId": "host.exp.exponent",
7
7
  "artifactId": "expo.modules.navigationbar",
8
- "version": "4.2.0",
8
+ "version": "4.2.1",
9
9
  "repository": "local-maven-repo"
10
10
  }
11
11
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.navigationbar",
6
- "version": "4.2.0",
6
+ "version": "4.2.1",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.navigationbar-4.2.0.aar",
28
- "url": "expo.modules.navigationbar-4.2.0.aar",
27
+ "name": "expo.modules.navigationbar-4.2.1.aar",
28
+ "url": "expo.modules.navigationbar-4.2.1.aar",
29
29
  "size": 50116,
30
30
  "sha512": "9002413b7a09b940dda0ec41995b6fb09841f18ac5c64a81a149aa123d438487f1f5aaa072a0de7d54ad1e77712968d76502d4e745ea759defa83bce5edaecad",
31
31
  "sha256": "efc2da7015bb42d104de63aaafe098e547b290c00892881177100cff34bb1654",
@@ -67,8 +67,8 @@
67
67
  ],
68
68
  "files": [
69
69
  {
70
- "name": "expo.modules.navigationbar-4.2.0.aar",
71
- "url": "expo.modules.navigationbar-4.2.0.aar",
70
+ "name": "expo.modules.navigationbar-4.2.1.aar",
71
+ "url": "expo.modules.navigationbar-4.2.1.aar",
72
72
  "size": 50116,
73
73
  "sha512": "9002413b7a09b940dda0ec41995b6fb09841f18ac5c64a81a149aa123d438487f1f5aaa072a0de7d54ad1e77712968d76502d4e745ea759defa83bce5edaecad",
74
74
  "sha256": "efc2da7015bb42d104de63aaafe098e547b290c00892881177100cff34bb1654",
@@ -87,8 +87,8 @@
87
87
  },
88
88
  "files": [
89
89
  {
90
- "name": "expo.modules.navigationbar-4.2.0-sources.jar",
91
- "url": "expo.modules.navigationbar-4.2.0-sources.jar",
90
+ "name": "expo.modules.navigationbar-4.2.1-sources.jar",
91
+ "url": "expo.modules.navigationbar-4.2.1-sources.jar",
92
92
  "size": 5746,
93
93
  "sha512": "b062a1e85ccee489c49a264c5809226a0215ba7b7232895127f45002b605e6d5beb5739a3fee2c3b88420721949d17adfbd9dc15aaadebecd940958c871a8e28",
94
94
  "sha256": "c396cf58026bd79f443df5992bd12db17586c7e3702f1ace4c3e3e65a066cf14",
@@ -0,0 +1 @@
1
+ bf1f763ef624de00a3c875f650a2497a1ef9b56970e3d470537291f732dbc546
@@ -0,0 +1 @@
1
+ 51a901f47174f6dee6959261a8d393cfde601f7346f41cca12507d876eb294325c5be68496037154920ca3c3660357f50b32007c6c9c9803614e1b20307f4d67
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.navigationbar</artifactId>
12
- <version>4.2.0</version>
12
+ <version>4.2.1</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.navigationbar</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ ca4384ee86f9155bed4877ce573a59e0e017c189ff4b01cff00b44609acb03a8
@@ -0,0 +1 @@
1
+ 04d996912145852212dd89fb5ee887319f5eeb11b225802b1453a2bcf6cc3dc6d2f15f9b26e7ec9a877fc642aa8eca1073613f83d16442848d9f9585a968a89e
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.navigationbar</artifactId>
5
5
  <versioning>
6
- <latest>4.2.0</latest>
7
- <release>4.2.0</release>
6
+ <latest>4.2.1</latest>
7
+ <release>4.2.1</release>
8
8
  <versions>
9
- <version>4.2.0</version>
9
+ <version>4.2.1</version>
10
10
  </versions>
11
- <lastUpdated>20250421213308</lastUpdated>
11
+ <lastUpdated>20250423205254</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- bc75226166051fca81a20cd4b391104e
1
+ 12360f2d457f6ef79fcd102876cac4ec
@@ -1 +1 @@
1
- f242d6e566913c9883f105e05bdd02e2b77e6470
1
+ 070056f57fd70a70b5261cd957a2f852452f72ef
@@ -1 +1 @@
1
- 874b736a29798298d102061509bde4e1c93542da819d31aaffc75889046c24b5
1
+ 20f0857ad758ee4a148f016a424bd8fac6ca5bcbe5d67d2d8d1b3d193bd49f47
@@ -1 +1 @@
1
- 0ec26a66fe23714b30881fa9064e18b252ebbdf6880ec84d5f53939bd960b0cdb38b0526c7ba52855fad1a0a0bdc60bb97b5ee8542faa85e24288fb111619113
1
+ c2fee668e593c3e5bff744c8e865efe7478b203c671012df837c3d8b37314fdd5f83419cd18c0340670e3f2878f6e55cdfe3afb855fbfa56e48f0df68f9cdc9e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-navigation-bar",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Modify and observe the native navigation bar on Android devices.",
5
5
  "main": "build/NavigationBar.js",
6
6
  "types": "build/NavigationBar.d.ts",
@@ -41,12 +41,12 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/debug": "^4.1.7",
44
- "expo-module-scripts": "^4.1.2"
44
+ "expo-module-scripts": "^4.1.4"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "expo": "*",
48
48
  "react": "*",
49
49
  "react-native": "*"
50
50
  },
51
- "gitHead": "f1394f21ff2719a9a3037d7511db170704e5c492"
51
+ "gitHead": "dd4ea2ac865a2b0c1f4ea3fc5879d90679099862"
52
52
  }
@@ -1 +1,35 @@
1
- export default {} as any;
1
+ import type { EventSubscription } from 'expo-modules-core';
2
+ import type { processColor } from 'react-native';
3
+
4
+ import type {
5
+ NavigationBarBehavior,
6
+ NavigationBarButtonStyle,
7
+ NavigationBarPosition,
8
+ NavigationBarVisibility,
9
+ NavigationBarVisibilityEvent,
10
+ } from './NavigationBar.types';
11
+
12
+ export default {} as {
13
+ addListener: (
14
+ event: 'ExpoNavigationBar.didChange',
15
+ listener: (event: NavigationBarVisibilityEvent) => void
16
+ ) => EventSubscription;
17
+
18
+ setBackgroundColorAsync: (color: ReturnType<typeof processColor>) => Promise<void>;
19
+ getBackgroundColorAsync: () => Promise<string>;
20
+
21
+ setBehaviorAsync: (behavior: NavigationBarBehavior) => Promise<void>;
22
+ getBehaviorAsync: () => Promise<NavigationBarBehavior>;
23
+
24
+ setBorderColorAsync: (color: ReturnType<typeof processColor>) => Promise<void>;
25
+ getBorderColorAsync: () => Promise<string>;
26
+
27
+ setButtonStyleAsync: (style: NavigationBarButtonStyle) => Promise<void>;
28
+ getButtonStyleAsync: () => Promise<NavigationBarButtonStyle>;
29
+
30
+ setPositionAsync: (position: NavigationBarPosition) => Promise<void>;
31
+ unstable_getPositionAsync: () => Promise<NavigationBarPosition>;
32
+
33
+ setVisibilityAsync: (visibility: NavigationBarVisibility) => Promise<void>;
34
+ getVisibilityAsync: () => Promise<NavigationBarVisibility>;
35
+ };