expo-navigation-bar 4.1.3 → 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 (55) hide show
  1. package/CHANGELOG.md +10 -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 +36 -1
  11. package/build/NavigationBar.d.ts.map +1 -1
  12. package/build/NavigationBar.js +58 -139
  13. package/build/NavigationBar.js.map +1 -1
  14. package/build/NavigationBar.types.d.ts +9 -0
  15. package/build/NavigationBar.types.d.ts.map +1 -1
  16. package/build/NavigationBar.types.js.map +1 -1
  17. package/expo-module.config.json +1 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.module → 4.2.1/expo.modules.navigationbar-4.2.1.module} +7 -7
  19. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.md5 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.sha1 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.sha256 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.module.sha512 +1 -0
  23. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.pom → 4.2.1/expo.modules.navigationbar-4.2.1.pom} +1 -1
  24. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.md5 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.sha1 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.sha256 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.2.1/expo.modules.navigationbar-4.2.1.pom.sha512 +1 -0
  28. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml +4 -4
  29. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.md5 +1 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha1 +1 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha256 +1 -1
  32. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha512 +1 -1
  33. package/package.json +6 -5
  34. package/src/ExpoNavigationBar.ts +35 -1
  35. package/src/NavigationBar.android.ts +191 -0
  36. package/src/NavigationBar.ts +62 -149
  37. package/src/NavigationBar.types.ts +10 -0
  38. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.module.md5 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.module.sha1 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.module.sha256 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.module.sha512 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.pom.md5 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.pom.sha1 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.pom.sha256 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/4.1.3/expo.modules.navigationbar-4.1.3.pom.sha512 +0 -1
  46. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3-sources.jar → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar} +0 -0
  47. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3-sources.jar.md5 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.md5} +0 -0
  48. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3-sources.jar.sha1 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.sha1} +0 -0
  49. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3-sources.jar.sha256 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.sha256} +0 -0
  50. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3-sources.jar.sha512 → 4.2.1/expo.modules.navigationbar-4.2.1-sources.jar.sha512} +0 -0
  51. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.aar → 4.2.1/expo.modules.navigationbar-4.2.1.aar} +0 -0
  52. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.aar.md5 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.md5} +0 -0
  53. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.aar.sha1 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.sha1} +0 -0
  54. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.aar.sha256 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.sha256} +0 -0
  55. /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{4.1.3/expo.modules.navigationbar-4.1.3.aar.sha512 → 4.2.1/expo.modules.navigationbar-4.2.1.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 4.2.1 — 2025-04-23
14
+
15
+ - Make `NavigationBar` methods no-op when edge-to-edge is enabled. ([#36330](https://github.com/expo/expo/pull/36330) by [@zoontek](https://github.com/zoontek))
16
+
17
+ ## 4.2.0 — 2025-04-21
18
+
19
+ ### 🎉 New features
20
+
21
+ - Use wrappers for methods from `react-native-edge-to-edge.SystemBars` when edge-to-edge is enabled. ([#36163](https://github.com/expo/expo/pull/36163) by [@behenate](https://github.com/behenate))
22
+
13
23
  ## 4.1.3 — 2025-04-14
14
24
 
15
25
  _This version does not introduce any user-facing changes._
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '4.1.3'
7
+ version = '4.2.1'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.navigationbar"
11
11
  defaultConfig {
12
12
  versionCode 1
13
- versionName '4.1.3'
13
+ versionName '4.2.1'
14
14
  }
15
15
  }
16
16
 
@@ -1,3 +1,20 @@
1
- declare const _default: any;
1
+ import type { EventSubscription } from 'expo-modules-core';
2
+ import type { processColor } from 'react-native';
3
+ import type { NavigationBarBehavior, NavigationBarButtonStyle, NavigationBarPosition, NavigationBarVisibility, NavigationBarVisibilityEvent } from './NavigationBar.types';
4
+ declare const _default: {
5
+ addListener: (event: "ExpoNavigationBar.didChange", listener: (event: NavigationBarVisibilityEvent) => void) => EventSubscription;
6
+ setBackgroundColorAsync: (color: ReturnType<typeof processColor>) => Promise<void>;
7
+ getBackgroundColorAsync: () => Promise<string>;
8
+ setBehaviorAsync: (behavior: NavigationBarBehavior) => Promise<void>;
9
+ getBehaviorAsync: () => Promise<NavigationBarBehavior>;
10
+ setBorderColorAsync: (color: ReturnType<typeof processColor>) => Promise<void>;
11
+ getBorderColorAsync: () => Promise<string>;
12
+ setButtonStyleAsync: (style: NavigationBarButtonStyle) => Promise<void>;
13
+ getButtonStyleAsync: () => Promise<NavigationBarButtonStyle>;
14
+ setPositionAsync: (position: NavigationBarPosition) => Promise<void>;
15
+ unstable_getPositionAsync: () => Promise<NavigationBarPosition>;
16
+ setVisibilityAsync: (visibility: NavigationBarVisibility) => Promise<void>;
17
+ getVisibilityAsync: () => Promise<NavigationBarVisibility>;
18
+ };
2
19
  export default _default;
3
20
  //# sourceMappingURL=ExpoNavigationBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoNavigationBar.d.ts","sourceRoot":"","sources":["../src/ExpoNavigationBar.ts"],"names":[],"mappings":"wBAAqB,GAAG;AAAxB,wBAAyB"}
1
+ {"version":3,"file":"ExpoNavigationBar.d.ts","sourceRoot":"","sources":["../src/ExpoNavigationBar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;wBAEV;IACnB,WAAW,EAAE,CACX,KAAK,EAAE,6BAA6B,EACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,KACpD,iBAAiB,CAAC;IAEvB,uBAAuB,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,uBAAuB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAE/C,gBAAgB,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,gBAAgB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,mBAAmB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3C,mBAAmB,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,mBAAmB,EAAE,MAAM,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAE7D,gBAAgB,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,yBAAyB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEhE,kBAAkB,EAAE,CAAC,UAAU,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,kBAAkB,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC5D;AAvBD,wBAuBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoNavigationBar.js","sourceRoot":"","sources":["../src/ExpoNavigationBar.ts"],"names":[],"mappings":"AAAA,eAAe,EAAS,CAAC","sourcesContent":["export default {} as any;\n"]}
1
+ {"version":3,"file":"ExpoNavigationBar.js","sourceRoot":"","sources":["../src/ExpoNavigationBar.ts"],"names":[],"mappings":"AAWA,eAAe,EAuBd,CAAC","sourcesContent":["import type { EventSubscription } from 'expo-modules-core';\nimport type { processColor } from 'react-native';\n\nimport type {\n NavigationBarBehavior,\n NavigationBarButtonStyle,\n NavigationBarPosition,\n NavigationBarVisibility,\n NavigationBarVisibilityEvent,\n} from './NavigationBar.types';\n\nexport default {} as {\n addListener: (\n event: 'ExpoNavigationBar.didChange',\n listener: (event: NavigationBarVisibilityEvent) => void\n ) => EventSubscription;\n\n setBackgroundColorAsync: (color: ReturnType<typeof processColor>) => Promise<void>;\n getBackgroundColorAsync: () => Promise<string>;\n\n setBehaviorAsync: (behavior: NavigationBarBehavior) => Promise<void>;\n getBehaviorAsync: () => Promise<NavigationBarBehavior>;\n\n setBorderColorAsync: (color: ReturnType<typeof processColor>) => Promise<void>;\n getBorderColorAsync: () => Promise<string>;\n\n setButtonStyleAsync: (style: NavigationBarButtonStyle) => Promise<void>;\n getButtonStyleAsync: () => Promise<NavigationBarButtonStyle>;\n\n setPositionAsync: (position: NavigationBarPosition) => Promise<void>;\n unstable_getPositionAsync: () => Promise<NavigationBarPosition>;\n\n setVisibilityAsync: (visibility: NavigationBarVisibility) => Promise<void>;\n getVisibilityAsync: () => Promise<NavigationBarVisibility>;\n};\n"]}
@@ -0,0 +1,19 @@
1
+ import { type EventSubscription } from 'expo-modules-core';
2
+ import type { NavigationBarBehavior, NavigationBarButtonStyle, NavigationBarPosition, NavigationBarStyle, NavigationBarVisibility, NavigationBarVisibilityEvent } from './NavigationBar.types';
3
+ export declare function addVisibilityListener(listener: (event: NavigationBarVisibilityEvent) => void): EventSubscription;
4
+ export declare function setBackgroundColorAsync(color: string): Promise<void>;
5
+ export declare function getBackgroundColorAsync(): Promise<string>;
6
+ export declare function setBorderColorAsync(color: string): Promise<void>;
7
+ export declare function getBorderColorAsync(): Promise<string>;
8
+ export declare function setVisibilityAsync(visibility: NavigationBarVisibility): Promise<void>;
9
+ export declare function getVisibilityAsync(): Promise<NavigationBarVisibility>;
10
+ export declare function setButtonStyleAsync(style: NavigationBarButtonStyle): Promise<void>;
11
+ export declare function getButtonStyleAsync(): Promise<NavigationBarButtonStyle>;
12
+ export declare function setPositionAsync(position: NavigationBarPosition): Promise<void>;
13
+ export declare function unstable_getPositionAsync(): Promise<NavigationBarPosition>;
14
+ export declare function setBehaviorAsync(behavior: NavigationBarBehavior): Promise<void>;
15
+ export declare function getBehaviorAsync(): Promise<NavigationBarBehavior>;
16
+ export declare function setStyle(style: NavigationBarStyle): void;
17
+ export declare function useVisibility(): NavigationBarVisibility | null;
18
+ export * from './NavigationBar.types';
19
+ //# sourceMappingURL=NavigationBar.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationBar.android.d.ts","sourceRoot":"","sources":["../src/NavigationBar.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAM3D,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAa/B,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,GACtD,iBAAiB,CAOnB;AAED,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ1E;AAED,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAO/D;AAED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQtE;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAO3D;AAED,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3F;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAO3E;AAED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAOxF;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAO7E;AAED,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAOrF;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAOhF;AAED,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAOrF;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAOvE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,kBAAkB,QASjD;AAED,wBAAgB,aAAa,IAAI,uBAAuB,GAAG,IAAI,CA8B9D;AAED,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,140 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { processColor } from 'react-native';
3
+ import { isEdgeToEdge } from 'react-native-is-edge-to-edge';
4
+ import ExpoNavigationBar from './ExpoNavigationBar';
5
+ // This line only imports the type information for TypeScript type checking. It
6
+ // doesn't import the actual module in the compiled JavaScript code. The actual
7
+ // module is imported conditionally with require() below, in order to avoid
8
+ // importing the module if edge-to-edge is not enabled (which could throw if
9
+ // it's not linked).
10
+ let SystemBars = null;
11
+ if (isEdgeToEdge()) {
12
+ SystemBars = require('react-native-edge-to-edge').SystemBars;
13
+ }
14
+ export function addVisibilityListener(listener) {
15
+ if (SystemBars != null) {
16
+ console.warn('`addVisibilityListener` is not supported with edge-to-edge enabled.');
17
+ return { remove: () => { } };
18
+ }
19
+ return ExpoNavigationBar.addListener('ExpoNavigationBar.didChange', listener);
20
+ }
21
+ export async function setBackgroundColorAsync(color) {
22
+ if (SystemBars != null) {
23
+ console.warn('`setBackgroundColorAsync` is not supported with edge-to-edge enabled.');
24
+ return;
25
+ }
26
+ const colorNumber = processColor(color);
27
+ await ExpoNavigationBar.setBackgroundColorAsync(colorNumber);
28
+ }
29
+ export async function getBackgroundColorAsync() {
30
+ if (SystemBars != null) {
31
+ console.warn('`getBackgroundColorAsync` is not supported with edge-to-edge enabled.');
32
+ return `#00000000`;
33
+ }
34
+ return await ExpoNavigationBar.getBackgroundColorAsync();
35
+ }
36
+ export async function setBorderColorAsync(color) {
37
+ if (SystemBars != null) {
38
+ console.warn('`setBorderColorAsync` is not supported with edge-to-edge enabled.');
39
+ return;
40
+ }
41
+ const colorNumber = processColor(color);
42
+ await ExpoNavigationBar.setBorderColorAsync(colorNumber);
43
+ }
44
+ export async function getBorderColorAsync() {
45
+ if (SystemBars != null) {
46
+ console.warn('`getBorderColorAsync` is not supported with edge-to-edge enabled.');
47
+ return `#00000000`;
48
+ }
49
+ return await ExpoNavigationBar.getBorderColorAsync();
50
+ }
51
+ export async function setVisibilityAsync(visibility) {
52
+ if (SystemBars != null) {
53
+ SystemBars.setHidden({ navigationBar: visibility === 'hidden' });
54
+ return;
55
+ }
56
+ await ExpoNavigationBar.setVisibilityAsync(visibility);
57
+ }
58
+ export async function getVisibilityAsync() {
59
+ if (SystemBars != null) {
60
+ console.warn('`getVisibilityAsync` is not supported with edge-to-edge enabled.');
61
+ return 'hidden';
62
+ }
63
+ return ExpoNavigationBar.getVisibilityAsync();
64
+ }
65
+ export async function setButtonStyleAsync(style) {
66
+ if (SystemBars != null) {
67
+ SystemBars.setStyle({ navigationBar: style });
68
+ return;
69
+ }
70
+ await ExpoNavigationBar.setButtonStyleAsync(style);
71
+ }
72
+ export async function getButtonStyleAsync() {
73
+ if (SystemBars != null) {
74
+ console.warn('`getButtonStyleAsync` is not supported with edge-to-edge enabled.');
75
+ return 'light';
76
+ }
77
+ return await ExpoNavigationBar.getButtonStyleAsync();
78
+ }
79
+ export async function setPositionAsync(position) {
80
+ if (SystemBars != null) {
81
+ console.warn('`setPositionAsync` is not supported with edge-to-edge enabled.');
82
+ return;
83
+ }
84
+ await ExpoNavigationBar.setPositionAsync(position);
85
+ }
86
+ export async function unstable_getPositionAsync() {
87
+ if (SystemBars != null) {
88
+ console.warn('`unstable_getPositionAsync` is not supported with edge-to-edge enabled.');
89
+ return 'relative';
90
+ }
91
+ return await ExpoNavigationBar.unstable_getPositionAsync();
92
+ }
93
+ export async function setBehaviorAsync(behavior) {
94
+ if (SystemBars != null) {
95
+ console.warn('`setBehaviorAsync` is not supported with edge-to-edge enabled.');
96
+ return;
97
+ }
98
+ await ExpoNavigationBar.setBehaviorAsync(behavior);
99
+ }
100
+ export async function getBehaviorAsync() {
101
+ if (SystemBars != null) {
102
+ console.warn('`getBehaviorAsync` is not supported with edge-to-edge enabled.');
103
+ return 'inset-touch';
104
+ }
105
+ return await ExpoNavigationBar.getBehaviorAsync();
106
+ }
107
+ export function setStyle(style) {
108
+ if (SystemBars != null) {
109
+ SystemBars.setStyle({ navigationBar: style });
110
+ return;
111
+ }
112
+ 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.');
113
+ }
114
+ export function useVisibility() {
115
+ const [visibility, setVisible] = useState(null);
116
+ useEffect(() => {
117
+ if (SystemBars != null) {
118
+ console.warn('`useVisibility` is not supported with edge-to-edge enabled.');
119
+ return;
120
+ }
121
+ let isMounted = true;
122
+ getVisibilityAsync().then((visibility) => {
123
+ if (isMounted) {
124
+ setVisible(visibility);
125
+ }
126
+ });
127
+ const listener = addVisibilityListener(({ visibility }) => {
128
+ if (isMounted) {
129
+ setVisible(visibility);
130
+ }
131
+ });
132
+ return () => {
133
+ listener.remove();
134
+ isMounted = false;
135
+ };
136
+ }, []);
137
+ return visibility;
138
+ }
139
+ export * from './NavigationBar.types';
140
+ //# sourceMappingURL=NavigationBar.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationBar.android.js","sourceRoot":"","sources":["../src/NavigationBar.android.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAUpD,gFAAgF;AAChF,gFAAgF;AAChF,2EAA2E;AAC3E,4EAA4E;A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MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAiC,IAAI,CAAC,CAAC;IAEhF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,IAAI,IAAI,EAAE,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,6DAA6D,CAAC,CAAC;YAC5E,OAAO;QACT,CAAC;QAED,IAAI,SAAS,GAAG,IAAI,CAAC;QAErB,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;YACvC,IAAI,SAAS,EAAE,CAAC;gBACd,UAAU,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,qBAAqB,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;YACxD,IAAI,SAAS,EAAE,CAAC;gBACd,UAAU,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,MAAM,EAAE,CAAC;YAClB,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,cAAc,uBAAuB,CAAC","sourcesContent":["import { type EventSubscription } from 'expo-modules-core';\nimport { useEffect, useState } from 'react';\nimport { processColor } from 'react-native';\nimport { isEdgeToEdge } from 'react-native-is-edge-to-edge';\n\nimport ExpoNavigationBar from './ExpoNavigationBar';\nimport type {\n NavigationBarBehavior,\n NavigationBarButtonStyle,\n NavigationBarPosition,\n NavigationBarStyle,\n NavigationBarVisibility,\n NavigationBarVisibilityEvent,\n} from './NavigationBar.types';\n\n// This line only imports the type information for TypeScript type checking. It\n// 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()) {\n SystemBars = require('react-native-edge-to-edge').SystemBars;\n}\n\nexport function addVisibilityListener(\n listener: (event: NavigationBarVisibilityEvent) => void\n): EventSubscription {\n if (SystemBars != null) {\n console.warn('`addVisibilityListener` is not supported with edge-to-edge enabled.');\n return { remove: () => {} };\n }\n\n return ExpoNavigationBar.addListener('ExpoNavigationBar.didChange', listener);\n}\n\nexport async function setBackgroundColorAsync(color: string): Promise<void> {\n if (SystemBars != null) {\n console.warn('`setBackgroundColorAsync` is not supported with edge-to-edge enabled.');\n return;\n }\n\n const colorNumber = processColor(color);\n await ExpoNavigationBar.setBackgroundColorAsync(colorNumber);\n}\n\nexport async function getBackgroundColorAsync(): Promise<string> {\n if (SystemBars != null) {\n console.warn('`getBackgroundColorAsync` is not supported with edge-to-edge enabled.');\n return `#00000000`;\n }\n\n return await ExpoNavigationBar.getBackgroundColorAsync();\n}\n\nexport async function setBorderColorAsync(color: string): Promise<void> {\n if (SystemBars != null) {\n console.warn('`setBorderColorAsync` is not supported with edge-to-edge enabled.');\n return;\n }\n\n const colorNumber = processColor(color);\n await ExpoNavigationBar.setBorderColorAsync(colorNumber);\n}\n\nexport async function getBorderColorAsync(): Promise<string> {\n if (SystemBars != null) {\n console.warn('`getBorderColorAsync` is not supported with edge-to-edge enabled.');\n return `#00000000`;\n }\n\n return await ExpoNavigationBar.getBorderColorAsync();\n}\n\nexport async function setVisibilityAsync(visibility: NavigationBarVisibility): Promise<void> {\n if (SystemBars != null) {\n SystemBars.setHidden({ navigationBar: visibility === 'hidden' });\n return;\n }\n\n await ExpoNavigationBar.setVisibilityAsync(visibility);\n}\n\nexport async function getVisibilityAsync(): Promise<NavigationBarVisibility> {\n if (SystemBars != null) {\n console.warn('`getVisibilityAsync` is not supported with edge-to-edge enabled.');\n return 'hidden';\n }\n\n return ExpoNavigationBar.getVisibilityAsync();\n}\n\nexport async function setButtonStyleAsync(style: NavigationBarButtonStyle): Promise<void> {\n if (SystemBars != null) {\n SystemBars.setStyle({ navigationBar: style });\n return;\n }\n\n await ExpoNavigationBar.setButtonStyleAsync(style);\n}\n\nexport async function getButtonStyleAsync(): Promise<NavigationBarButtonStyle> {\n if (SystemBars != null) {\n console.warn('`getButtonStyleAsync` is not supported with edge-to-edge enabled.');\n return 'light';\n }\n\n return await ExpoNavigationBar.getButtonStyleAsync();\n}\n\nexport async function setPositionAsync(position: NavigationBarPosition): Promise<void> {\n if (SystemBars != null) {\n console.warn('`setPositionAsync` is not supported with edge-to-edge enabled.');\n return;\n }\n\n await ExpoNavigationBar.setPositionAsync(position);\n}\n\nexport async function unstable_getPositionAsync(): Promise<NavigationBarPosition> {\n if (SystemBars != null) {\n console.warn('`unstable_getPositionAsync` is not supported with edge-to-edge enabled.');\n return 'relative';\n }\n\n return await ExpoNavigationBar.unstable_getPositionAsync();\n}\n\nexport async function setBehaviorAsync(behavior: NavigationBarBehavior): Promise<void> {\n if (SystemBars != null) {\n console.warn('`setBehaviorAsync` is not supported with edge-to-edge enabled.');\n return;\n }\n\n await ExpoNavigationBar.setBehaviorAsync(behavior);\n}\n\nexport async function getBehaviorAsync(): Promise<NavigationBarBehavior> {\n if (SystemBars != null) {\n console.warn('`getBehaviorAsync` is not supported with edge-to-edge enabled.');\n return 'inset-touch';\n }\n\n return await ExpoNavigationBar.getBehaviorAsync();\n}\n\nexport function setStyle(style: NavigationBarStyle) {\n if (SystemBars != null) {\n SystemBars.setStyle({ navigationBar: style });\n return;\n }\n\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\nexport function useVisibility(): NavigationBarVisibility | null {\n const [visibility, setVisible] = useState<NavigationBarVisibility | null>(null);\n\n useEffect(() => {\n if (SystemBars != null) {\n console.warn('`useVisibility` is not supported with edge-to-edge enabled.');\n return;\n }\n\n let isMounted = true;\n\n getVisibilityAsync().then((visibility) => {\n if (isMounted) {\n setVisible(visibility);\n }\n });\n\n const listener = addVisibilityListener(({ visibility }) => {\n if (isMounted) {\n setVisible(visibility);\n }\n });\n\n return () => {\n listener.remove();\n isMounted = false;\n };\n }, []);\n\n return visibility;\n}\n\nexport * from './NavigationBar.types';\n"]}
@@ -1,5 +1,5 @@
1
1
  import { type EventSubscription } from 'expo-modules-core';
2
- import { NavigationBarButtonStyle, NavigationBarBehavior, NavigationBarPosition, NavigationBarVisibility, NavigationBarVisibilityEvent } from './NavigationBar.types';
2
+ import type { NavigationBarBehavior, NavigationBarButtonStyle, NavigationBarPosition, NavigationBarStyle, NavigationBarVisibility, NavigationBarVisibilityEvent } from './NavigationBar.types';
3
3
  /**
4
4
  * Observe changes to the system navigation bar.
5
5
  * Due to platform constraints, this callback will also be triggered when the status bar visibility changes.
@@ -15,6 +15,8 @@ export declare function addVisibilityListener(listener: (event: NavigationBarVis
15
15
  /**
16
16
  * Changes the navigation bar's background color.
17
17
  *
18
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
19
+ *
18
20
  * @example
19
21
  * ```ts
20
22
  * NavigationBar.setBackgroundColorAsync("white");
@@ -25,16 +27,21 @@ export declare function setBackgroundColorAsync(color: string): Promise<void>;
25
27
  /**
26
28
  * Gets the navigation bar's background color.
27
29
  *
30
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
31
+ *
28
32
  * @example
29
33
  * ```ts
30
34
  * const color = await NavigationBar.getBackgroundColorAsync();
31
35
  * ```
32
36
  * @returns Current navigation bar color in hex format. Returns `#00000000` (transparent) on unsupported platforms (iOS, web).
37
+ *
33
38
  */
34
39
  export declare function getBackgroundColorAsync(): Promise<string>;
35
40
  /**
36
41
  * Changes the navigation bar's border color.
37
42
  *
43
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
44
+ *
38
45
  * @example
39
46
  * ```ts
40
47
  * NavigationBar.setBorderColorAsync("red");
@@ -45,6 +52,8 @@ export declare function setBorderColorAsync(color: string): Promise<void>;
45
52
  /**
46
53
  * Gets the navigation bar's top border color, also known as the "divider color".
47
54
  *
55
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
56
+ *
48
57
  * @example
49
58
  * ```ts
50
59
  * const color = await NavigationBar.getBorderColorAsync();
@@ -60,11 +69,13 @@ export declare function getBorderColorAsync(): Promise<string>;
60
69
  * NavigationBar.setVisibilityAsync("hidden");
61
70
  * ```
62
71
  * @param visibility Based on CSS visibility property.
72
+ * @platform android
63
73
  */
64
74
  export declare function setVisibilityAsync(visibility: NavigationBarVisibility): Promise<void>;
65
75
  /**
66
76
  * Get the navigation bar's visibility.
67
77
  *
78
+ *
68
79
  * @example
69
80
  * ```ts
70
81
  * const visibility = await NavigationBar.getVisibilityAsync("hidden");
@@ -75,6 +86,8 @@ export declare function getVisibilityAsync(): Promise<NavigationBarVisibility>;
75
86
  /**
76
87
  * Changes the navigation bar's button colors between white (`light`) and a dark gray color (`dark`).
77
88
  *
89
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
90
+ *
78
91
  * @example
79
92
  * ```ts
80
93
  * NavigationBar.setButtonStyleAsync("light");
@@ -85,6 +98,8 @@ export declare function setButtonStyleAsync(style: NavigationBarButtonStyle): Pr
85
98
  /**
86
99
  * Gets the navigation bar's button color styles.
87
100
  *
101
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
102
+ *
88
103
  * @example
89
104
  * ```ts
90
105
  * const style = await NavigationBar.getButtonStyleAsync();
@@ -99,6 +114,8 @@ export declare function getButtonStyleAsync(): Promise<NavigationBarButtonStyle>
99
114
  *
100
115
  * When drawing behind the status and navigation bars, ensure the safe area insets are adjusted accordingly.
101
116
  *
117
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
118
+ *
102
119
  * @example
103
120
  * ```ts
104
121
  * // enables edge-to-edge mode
@@ -116,6 +133,8 @@ export declare function setPositionAsync(position: NavigationBarPosition): Promi
116
133
  * This method is unstable because the position can be set via another native module and get out of sync.
117
134
  * Alternatively, you can get the position by measuring the insets returned by `react-native-safe-area-context`.
118
135
  *
136
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
137
+ *
119
138
  * @example
120
139
  * ```ts
121
140
  * await NavigationBar.unstable_getPositionAsync()
@@ -133,6 +152,8 @@ export declare function unstable_getPositionAsync(): Promise<NavigationBarPositi
133
152
  * - `'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.
134
153
  * - `'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.
135
154
  *
155
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
156
+ *
136
157
  * @example
137
158
  * ```ts
138
159
  * await NavigationBar.setBehaviorAsync('overlay-swipe')
@@ -143,6 +164,8 @@ export declare function setBehaviorAsync(behavior: NavigationBarBehavior): Promi
143
164
  /**
144
165
  * Gets the behavior of the status and navigation bars when the user swipes or touches the screen.
145
166
  *
167
+ * > This method is supported only when edge-to-edge is disabled. Using it in edge-to-edge app may lead to unexpected behavior.
168
+ *
146
169
  * @example
147
170
  * ```ts
148
171
  * await NavigationBar.getBehaviorAsync()
@@ -150,6 +173,18 @@ export declare function setBehaviorAsync(behavior: NavigationBarBehavior): Promi
150
173
  * @returns Navigation bar interaction behavior. Returns `inset-touch` on unsupported platforms (iOS, web).
151
174
  */
152
175
  export declare function getBehaviorAsync(): Promise<NavigationBarBehavior>;
176
+ /**
177
+ * Sets the style of the navigation bar.
178
+ * > This will have an effect when the following conditions are met:
179
+ * > - Edge-to-edge is enabled
180
+ * > - The `enforceNavigationBarContrast` option of the `react-native-edge-to-edge` plugin is set to `false`.
181
+ * > - The device is using the three-button navigation bar.
182
+ *
183
+ * > 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.
184
+ *
185
+ * @platform android
186
+ */
187
+ export declare function setStyle(style: NavigationBarStyle): void;
153
188
  /**
154
189
  * React hook that statefully updates with the visibility of the system navigation bar.
155
190
  *
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../src/NavigationBar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,iBAAiB,EAAuB,MAAM,mBAAmB,CAAC;AAM1F,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAa/B;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,GACtD,iBAAiB,CASnB;AAED;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAU1E;AAED;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAS/D;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAUtE;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAU3D;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAS3F;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAS3E;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CASxF;AAED;;;;;;;;GAQG;AACH,wBAAs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