expo-navigation-bar 5.0.2 → 5.0.3
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.
- package/CHANGELOG.md +6 -0
- package/android/build.gradle +2 -2
- package/build/NavigationBar.android.d.ts.map +1 -1
- package/build/NavigationBar.android.js +26 -31
- package/build/NavigationBar.android.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.module → 5.0.3/expo.modules.navigationbar-5.0.3.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.pom → 5.0.3/expo.modules.navigationbar-5.0.3.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.3/expo.modules.navigationbar-5.0.3.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha512 +1 -1
- package/package.json +3 -4
- package/src/NavigationBar.android.ts +29 -37
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/5.0.2/expo.modules.navigationbar-5.0.2.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2-sources.jar → 5.0.3/expo.modules.navigationbar-5.0.3-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2-sources.jar.md5 → 5.0.3/expo.modules.navigationbar-5.0.3-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2-sources.jar.sha1 → 5.0.3/expo.modules.navigationbar-5.0.3-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2-sources.jar.sha256 → 5.0.3/expo.modules.navigationbar-5.0.3-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2-sources.jar.sha512 → 5.0.3/expo.modules.navigationbar-5.0.3-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.aar → 5.0.3/expo.modules.navigationbar-5.0.3.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.aar.md5 → 5.0.3/expo.modules.navigationbar-5.0.3.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.aar.sha1 → 5.0.3/expo.modules.navigationbar-5.0.3.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.aar.sha256 → 5.0.3/expo.modules.navigationbar-5.0.3.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/{5.0.2/expo.modules.navigationbar-5.0.2.aar.sha512 → 5.0.3/expo.modules.navigationbar-5.0.3.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 5.0.3 — 2025-08-18
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Remove `react-native-edge-to-edge` dependency. ([#38769](https://github.com/expo/expo/pull/38769) by [@behenate](https://github.com/behenate))
|
|
18
|
+
|
|
13
19
|
## 5.0.2 — 2025-08-16
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -1 +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;
|
|
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;AAsB/B,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,GACtD,iBAAiB,CAEnB;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,CAE3F;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAE3E;AAED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAExF;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,QAEjD;AAED,wBAAgB,aAAa,IAAI,uBAAuB,GAAG,IAAI,CAyB9D"}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { processColor } from 'react-native';
|
|
2
|
+
import { Appearance, processColor } from 'react-native';
|
|
3
3
|
import { isEdgeToEdge } from 'react-native-is-edge-to-edge';
|
|
4
4
|
import ExpoNavigationBar from './ExpoNavigationBar';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
function isLightColorScheme() {
|
|
6
|
+
const colorScheme = Appearance?.getColorScheme() ?? 'light';
|
|
7
|
+
return colorScheme === 'light';
|
|
8
|
+
}
|
|
9
|
+
function navigationBarStyleToButtonStyle(navigationBarStyle) {
|
|
10
|
+
switch (navigationBarStyle) {
|
|
11
|
+
case 'auto':
|
|
12
|
+
return isLightColorScheme() ? 'dark' : 'light';
|
|
13
|
+
case 'light':
|
|
14
|
+
return 'dark';
|
|
15
|
+
case 'dark':
|
|
16
|
+
return 'light';
|
|
17
|
+
case 'inverted':
|
|
18
|
+
return isLightColorScheme() ? 'light' : 'dark';
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
export function addVisibilityListener(listener) {
|
|
15
22
|
return ExpoNavigationBar.addListener('ExpoNavigationBar.didChange', listener);
|
|
16
23
|
}
|
|
17
24
|
export async function setBackgroundColorAsync(color) {
|
|
18
|
-
if (
|
|
25
|
+
if (isEdgeToEdge()) {
|
|
19
26
|
console.warn('`setBackgroundColorAsync` is not supported with edge-to-edge enabled.');
|
|
20
27
|
return;
|
|
21
28
|
}
|
|
@@ -23,14 +30,14 @@ export async function setBackgroundColorAsync(color) {
|
|
|
23
30
|
await ExpoNavigationBar.setBackgroundColorAsync(colorNumber);
|
|
24
31
|
}
|
|
25
32
|
export async function getBackgroundColorAsync() {
|
|
26
|
-
if (
|
|
33
|
+
if (isEdgeToEdge()) {
|
|
27
34
|
console.warn('`getBackgroundColorAsync` is not supported with edge-to-edge enabled.');
|
|
28
35
|
return `#00000000`;
|
|
29
36
|
}
|
|
30
37
|
return await ExpoNavigationBar.getBackgroundColorAsync();
|
|
31
38
|
}
|
|
32
39
|
export async function setBorderColorAsync(color) {
|
|
33
|
-
if (
|
|
40
|
+
if (isEdgeToEdge()) {
|
|
34
41
|
console.warn('`setBorderColorAsync` is not supported with edge-to-edge enabled.');
|
|
35
42
|
return;
|
|
36
43
|
}
|
|
@@ -38,70 +45,58 @@ export async function setBorderColorAsync(color) {
|
|
|
38
45
|
await ExpoNavigationBar.setBorderColorAsync(colorNumber);
|
|
39
46
|
}
|
|
40
47
|
export async function getBorderColorAsync() {
|
|
41
|
-
if (
|
|
48
|
+
if (isEdgeToEdge()) {
|
|
42
49
|
console.warn('`getBorderColorAsync` is not supported with edge-to-edge enabled.');
|
|
43
50
|
return `#00000000`;
|
|
44
51
|
}
|
|
45
52
|
return await ExpoNavigationBar.getBorderColorAsync();
|
|
46
53
|
}
|
|
47
54
|
export async function setVisibilityAsync(visibility) {
|
|
48
|
-
if (SystemBars != null) {
|
|
49
|
-
SystemBars.setHidden({ navigationBar: visibility === 'hidden' });
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
55
|
await ExpoNavigationBar.setVisibilityAsync(visibility);
|
|
53
56
|
}
|
|
54
57
|
export async function getVisibilityAsync() {
|
|
55
58
|
return ExpoNavigationBar.getVisibilityAsync();
|
|
56
59
|
}
|
|
57
60
|
export async function setButtonStyleAsync(style) {
|
|
58
|
-
if (SystemBars != null) {
|
|
59
|
-
SystemBars.setStyle({ navigationBar: style });
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
61
|
await ExpoNavigationBar.setButtonStyleAsync(style);
|
|
63
62
|
}
|
|
64
63
|
export async function getButtonStyleAsync() {
|
|
65
|
-
if (
|
|
64
|
+
if (isEdgeToEdge()) {
|
|
66
65
|
console.warn('`getButtonStyleAsync` is not supported with edge-to-edge enabled.');
|
|
67
66
|
return 'light';
|
|
68
67
|
}
|
|
69
68
|
return await ExpoNavigationBar.getButtonStyleAsync();
|
|
70
69
|
}
|
|
71
70
|
export async function setPositionAsync(position) {
|
|
72
|
-
if (
|
|
71
|
+
if (isEdgeToEdge()) {
|
|
73
72
|
console.warn('`setPositionAsync` is not supported with edge-to-edge enabled.');
|
|
74
73
|
return;
|
|
75
74
|
}
|
|
76
75
|
await ExpoNavigationBar.setPositionAsync(position);
|
|
77
76
|
}
|
|
78
77
|
export async function unstable_getPositionAsync() {
|
|
79
|
-
if (
|
|
78
|
+
if (isEdgeToEdge()) {
|
|
80
79
|
console.warn('`unstable_getPositionAsync` is not supported with edge-to-edge enabled.');
|
|
81
80
|
return 'relative';
|
|
82
81
|
}
|
|
83
82
|
return await ExpoNavigationBar.unstable_getPositionAsync();
|
|
84
83
|
}
|
|
85
84
|
export async function setBehaviorAsync(behavior) {
|
|
86
|
-
if (
|
|
85
|
+
if (isEdgeToEdge()) {
|
|
87
86
|
console.warn('`setBehaviorAsync` is not supported with edge-to-edge enabled.');
|
|
88
87
|
return;
|
|
89
88
|
}
|
|
90
89
|
await ExpoNavigationBar.setBehaviorAsync(behavior);
|
|
91
90
|
}
|
|
92
91
|
export async function getBehaviorAsync() {
|
|
93
|
-
if (
|
|
92
|
+
if (isEdgeToEdge()) {
|
|
94
93
|
console.warn('`getBehaviorAsync` is not supported with edge-to-edge enabled.');
|
|
95
94
|
return 'inset-touch';
|
|
96
95
|
}
|
|
97
96
|
return await ExpoNavigationBar.getBehaviorAsync();
|
|
98
97
|
}
|
|
99
98
|
export function setStyle(style) {
|
|
100
|
-
|
|
101
|
-
SystemBars.setStyle({ navigationBar: style });
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
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.');
|
|
99
|
+
ExpoNavigationBar.setButtonStyleAsync(navigationBarStyleToButtonStyle(style));
|
|
105
100
|
}
|
|
106
101
|
export function useVisibility() {
|
|
107
102
|
const [visibility, setVisible] = useState(null);
|
|
@@ -1 +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;
|
|
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,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAUpD,SAAS,kBAAkB;IACzB,MAAM,WAAW,GAAG,UAAU,EAAE,cAAc,EAAE,IAAI,OAAO,CAAC;IAC5D,OAAO,WAAW,KAAK,OAAO,CAAC;AACjC,CAAC;AAED,SAAS,+BAA+B,CACtC,kBAAsC;IAEtC,QA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CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["import { type EventSubscription } from 'expo-modules-core';\nimport { useEffect, useState } from 'react';\nimport { Appearance, 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\nfunction isLightColorScheme() {\n const colorScheme = Appearance?.getColorScheme() ?? 'light';\n return colorScheme === 'light';\n}\n\nfunction navigationBarStyleToButtonStyle(\n navigationBarStyle: NavigationBarStyle\n): NavigationBarButtonStyle {\n switch (navigationBarStyle) {\n case 'auto':\n return isLightColorScheme() ? 'dark' : 'light';\n case 'light':\n return 'dark';\n case 'dark':\n return 'light';\n case 'inverted':\n return isLightColorScheme() ? 'light' : 'dark';\n }\n}\n\nexport function addVisibilityListener(\n listener: (event: NavigationBarVisibilityEvent) => void\n): EventSubscription {\n return ExpoNavigationBar.addListener('ExpoNavigationBar.didChange', listener);\n}\n\nexport async function setBackgroundColorAsync(color: string): Promise<void> {\n if (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 await ExpoNavigationBar.setVisibilityAsync(visibility);\n}\n\nexport async function getVisibilityAsync(): Promise<NavigationBarVisibility> {\n return ExpoNavigationBar.getVisibilityAsync();\n}\n\nexport async function setButtonStyleAsync(style: NavigationBarButtonStyle): Promise<void> {\n await ExpoNavigationBar.setButtonStyleAsync(style);\n}\n\nexport async function getButtonStyleAsync(): Promise<NavigationBarButtonStyle> {\n if (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 (isEdgeToEdge()) {\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 ExpoNavigationBar.setButtonStyleAsync(navigationBarStyleToButtonStyle(style));\n}\n\nexport function useVisibility(): NavigationBarVisibility | null {\n const [visibility, setVisible] = useState<NavigationBarVisibility | null>(null);\n\n useEffect(() => {\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"]}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.navigationbar",
|
|
6
|
-
"version": "5.0.
|
|
6
|
+
"version": "5.0.3",
|
|
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-5.0.
|
|
28
|
-
"url": "expo.modules.navigationbar-5.0.
|
|
27
|
+
"name": "expo.modules.navigationbar-5.0.3.aar",
|
|
28
|
+
"url": "expo.modules.navigationbar-5.0.3.aar",
|
|
29
29
|
"size": 50041,
|
|
30
30
|
"sha512": "51494b5685b15eb1a5311201f28483c79652a640953d039344e864831d3aee12f46c738c315fcd54c3522c0e7b5d6d5107e8055fd824a1defe77fa75b34b7ea5",
|
|
31
31
|
"sha256": "a0a887acc77b369e119aa4280c4f0df863d1e94a4da83f95dcf7dafa6904fe7c",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
],
|
|
68
68
|
"files": [
|
|
69
69
|
{
|
|
70
|
-
"name": "expo.modules.navigationbar-5.0.
|
|
71
|
-
"url": "expo.modules.navigationbar-5.0.
|
|
70
|
+
"name": "expo.modules.navigationbar-5.0.3.aar",
|
|
71
|
+
"url": "expo.modules.navigationbar-5.0.3.aar",
|
|
72
72
|
"size": 50041,
|
|
73
73
|
"sha512": "51494b5685b15eb1a5311201f28483c79652a640953d039344e864831d3aee12f46c738c315fcd54c3522c0e7b5d6d5107e8055fd824a1defe77fa75b34b7ea5",
|
|
74
74
|
"sha256": "a0a887acc77b369e119aa4280c4f0df863d1e94a4da83f95dcf7dafa6904fe7c",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
},
|
|
88
88
|
"files": [
|
|
89
89
|
{
|
|
90
|
-
"name": "expo.modules.navigationbar-5.0.
|
|
91
|
-
"url": "expo.modules.navigationbar-5.0.
|
|
90
|
+
"name": "expo.modules.navigationbar-5.0.3-sources.jar",
|
|
91
|
+
"url": "expo.modules.navigationbar-5.0.3-sources.jar",
|
|
92
92
|
"size": 5746,
|
|
93
93
|
"sha512": "b062a1e85ccee489c49a264c5809226a0215ba7b7232895127f45002b605e6d5beb5739a3fee2c3b88420721949d17adfbd9dc15aaadebecd940958c871a8e28",
|
|
94
94
|
"sha256": "c396cf58026bd79f443df5992bd12db17586c7e3702f1ace4c3e3e65a066cf14",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
49be6987eb8dfa90aed4f03060ee480e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
38ad653312811cb39fc415e01aa5211a89172576
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9ff3d01b37f228b09aa2791cf0ff39611ca834c6aae5f41c703ac8c07bc52179
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ec16d13f3971c469d75075bee4840f7473b3d1428192342183db87da11c187c7f68b7caeac229bd780e426bacb300d45c22b4be04488acb73355789b27c641fb
|
|
@@ -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>5.0.
|
|
12
|
+
<version>5.0.3</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
|
+
b19435a5fc255e208f14e5667e364ddc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7472ba81c8ed2f5dafb418ba77be092c75077a90
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
36210cf7685be3032d31f6f094254871f15f1dbb9913c60aecd196d304ae96a4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
41e981ba2f863d60d8d606ed6869e9bce504e2a450c18a36c947624a911c7121fdf5ee6b384994f1e1ff5f67ed4f99abab72199473c982415a879389a17d321c
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.navigationbar</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>5.0.
|
|
7
|
-
<release>5.0.
|
|
6
|
+
<latest>5.0.3</latest>
|
|
7
|
+
<release>5.0.3</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>5.0.
|
|
9
|
+
<version>5.0.3</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250818203954</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
55770def383d12f7bbfa3c092d1b475e
|
package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8f822d3274e5d34116e2e1804843e5cdfca3f060
|
package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1954d9d3edb882e0b885e9172ae295f9725b4d57c067918078e5ffcd5d00de30
|
package/local-maven-repo/host/exp/exponent/expo.modules.navigationbar/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2944fa35ccc8734572857280a43bded27ee2d0d515da6ef07be786f18879c6719712dd24b4013ca5ce47450e4cfac94045261fd572f9021b7242262c2a146876
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-navigation-bar",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Modify and observe the native navigation bar on Android devices.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@react-native/normalize-colors": "0.81.0",
|
|
38
38
|
"debug": "^4.3.2",
|
|
39
|
-
"react-native-is-edge-to-edge": "^1.1
|
|
40
|
-
"react-native-edge-to-edge": "1.6.0"
|
|
39
|
+
"react-native-is-edge-to-edge": "^1.2.1"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@types/debug": "^4.1.7",
|
|
@@ -48,5 +47,5 @@
|
|
|
48
47
|
"react": "*",
|
|
49
48
|
"react-native": "*"
|
|
50
49
|
},
|
|
51
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "475cdabd3faad56f0e8c4abcaaf21140c01c094f"
|
|
52
51
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EventSubscription } from 'expo-modules-core';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import { processColor } from 'react-native';
|
|
3
|
+
import { Appearance, processColor } from 'react-native';
|
|
4
4
|
import { isEdgeToEdge } from 'react-native-is-edge-to-edge';
|
|
5
5
|
|
|
6
6
|
import ExpoNavigationBar from './ExpoNavigationBar';
|
|
@@ -13,15 +13,24 @@ import type {
|
|
|
13
13
|
NavigationBarVisibilityEvent,
|
|
14
14
|
} from './NavigationBar.types';
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
function isLightColorScheme() {
|
|
17
|
+
const colorScheme = Appearance?.getColorScheme() ?? 'light';
|
|
18
|
+
return colorScheme === 'light';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function navigationBarStyleToButtonStyle(
|
|
22
|
+
navigationBarStyle: NavigationBarStyle
|
|
23
|
+
): NavigationBarButtonStyle {
|
|
24
|
+
switch (navigationBarStyle) {
|
|
25
|
+
case 'auto':
|
|
26
|
+
return isLightColorScheme() ? 'dark' : 'light';
|
|
27
|
+
case 'light':
|
|
28
|
+
return 'dark';
|
|
29
|
+
case 'dark':
|
|
30
|
+
return 'light';
|
|
31
|
+
case 'inverted':
|
|
32
|
+
return isLightColorScheme() ? 'light' : 'dark';
|
|
33
|
+
}
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
export function addVisibilityListener(
|
|
@@ -31,7 +40,7 @@ export function addVisibilityListener(
|
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
export async function setBackgroundColorAsync(color: string): Promise<void> {
|
|
34
|
-
if (
|
|
43
|
+
if (isEdgeToEdge()) {
|
|
35
44
|
console.warn('`setBackgroundColorAsync` is not supported with edge-to-edge enabled.');
|
|
36
45
|
return;
|
|
37
46
|
}
|
|
@@ -41,7 +50,7 @@ export async function setBackgroundColorAsync(color: string): Promise<void> {
|
|
|
41
50
|
}
|
|
42
51
|
|
|
43
52
|
export async function getBackgroundColorAsync(): Promise<string> {
|
|
44
|
-
if (
|
|
53
|
+
if (isEdgeToEdge()) {
|
|
45
54
|
console.warn('`getBackgroundColorAsync` is not supported with edge-to-edge enabled.');
|
|
46
55
|
return `#00000000`;
|
|
47
56
|
}
|
|
@@ -50,7 +59,7 @@ export async function getBackgroundColorAsync(): Promise<string> {
|
|
|
50
59
|
}
|
|
51
60
|
|
|
52
61
|
export async function setBorderColorAsync(color: string): Promise<void> {
|
|
53
|
-
if (
|
|
62
|
+
if (isEdgeToEdge()) {
|
|
54
63
|
console.warn('`setBorderColorAsync` is not supported with edge-to-edge enabled.');
|
|
55
64
|
return;
|
|
56
65
|
}
|
|
@@ -60,7 +69,7 @@ export async function setBorderColorAsync(color: string): Promise<void> {
|
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
export async function getBorderColorAsync(): Promise<string> {
|
|
63
|
-
if (
|
|
72
|
+
if (isEdgeToEdge()) {
|
|
64
73
|
console.warn('`getBorderColorAsync` is not supported with edge-to-edge enabled.');
|
|
65
74
|
return `#00000000`;
|
|
66
75
|
}
|
|
@@ -69,11 +78,6 @@ export async function getBorderColorAsync(): Promise<string> {
|
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
export async function setVisibilityAsync(visibility: NavigationBarVisibility): Promise<void> {
|
|
72
|
-
if (SystemBars != null) {
|
|
73
|
-
SystemBars.setHidden({ navigationBar: visibility === 'hidden' });
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
81
|
await ExpoNavigationBar.setVisibilityAsync(visibility);
|
|
78
82
|
}
|
|
79
83
|
|
|
@@ -82,16 +86,11 @@ export async function getVisibilityAsync(): Promise<NavigationBarVisibility> {
|
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
export async function setButtonStyleAsync(style: NavigationBarButtonStyle): Promise<void> {
|
|
85
|
-
if (SystemBars != null) {
|
|
86
|
-
SystemBars.setStyle({ navigationBar: style });
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
89
|
await ExpoNavigationBar.setButtonStyleAsync(style);
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
export async function getButtonStyleAsync(): Promise<NavigationBarButtonStyle> {
|
|
94
|
-
if (
|
|
93
|
+
if (isEdgeToEdge()) {
|
|
95
94
|
console.warn('`getButtonStyleAsync` is not supported with edge-to-edge enabled.');
|
|
96
95
|
return 'light';
|
|
97
96
|
}
|
|
@@ -100,7 +99,7 @@ export async function getButtonStyleAsync(): Promise<NavigationBarButtonStyle> {
|
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
export async function setPositionAsync(position: NavigationBarPosition): Promise<void> {
|
|
103
|
-
if (
|
|
102
|
+
if (isEdgeToEdge()) {
|
|
104
103
|
console.warn('`setPositionAsync` is not supported with edge-to-edge enabled.');
|
|
105
104
|
return;
|
|
106
105
|
}
|
|
@@ -109,7 +108,7 @@ export async function setPositionAsync(position: NavigationBarPosition): Promise
|
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
export async function unstable_getPositionAsync(): Promise<NavigationBarPosition> {
|
|
112
|
-
if (
|
|
111
|
+
if (isEdgeToEdge()) {
|
|
113
112
|
console.warn('`unstable_getPositionAsync` is not supported with edge-to-edge enabled.');
|
|
114
113
|
return 'relative';
|
|
115
114
|
}
|
|
@@ -118,7 +117,7 @@ export async function unstable_getPositionAsync(): Promise<NavigationBarPosition
|
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
export async function setBehaviorAsync(behavior: NavigationBarBehavior): Promise<void> {
|
|
121
|
-
if (
|
|
120
|
+
if (isEdgeToEdge()) {
|
|
122
121
|
console.warn('`setBehaviorAsync` is not supported with edge-to-edge enabled.');
|
|
123
122
|
return;
|
|
124
123
|
}
|
|
@@ -127,7 +126,7 @@ export async function setBehaviorAsync(behavior: NavigationBarBehavior): Promise
|
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
export async function getBehaviorAsync(): Promise<NavigationBarBehavior> {
|
|
130
|
-
if (
|
|
129
|
+
if (isEdgeToEdge()) {
|
|
131
130
|
console.warn('`getBehaviorAsync` is not supported with edge-to-edge enabled.');
|
|
132
131
|
return 'inset-touch';
|
|
133
132
|
}
|
|
@@ -136,14 +135,7 @@ export async function getBehaviorAsync(): Promise<NavigationBarBehavior> {
|
|
|
136
135
|
}
|
|
137
136
|
|
|
138
137
|
export function setStyle(style: NavigationBarStyle) {
|
|
139
|
-
|
|
140
|
-
SystemBars.setStyle({ navigationBar: style });
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
throw new Error(
|
|
145
|
-
'`setStyle` is only supported on Android when edge-to-edge is enabled. Enable edge-to-edge or use the `setButtonStyle` function instead.'
|
|
146
|
-
);
|
|
138
|
+
ExpoNavigationBar.setButtonStyleAsync(navigationBarStyleToButtonStyle(style));
|
|
147
139
|
}
|
|
148
140
|
|
|
149
141
|
export function useVisibility(): NavigationBarVisibility | null {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
311e0dfe89f63903712c36746ba4398a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
722491394ba38ad78b82323c56c3e9592ea5bf01
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e94e62f6e2db0f571707be78d36e951ed12e5d5eb40b5a911034a29e45d732cd
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a29b9a0ceb76b579ddbacce6408f20fa5cab412a52af5ff273e32d8b9767cc0061257c31a6bbba9ae931c3c85c51c63dd7a96721cf05bb06f401da661a2cc23e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9b0c2f0235e8348c3352b5cead72404b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a5bc22943a7695d5dbf1c58c0605ce5cb589bf9e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c3927ecdf8b1cabcc98b74b343dfd24de52467dce72be372304f8dd1e9328119
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2e7208afc4441ecebe4b4f5bb5c3c740b162294f6193e1f89f2e3c7d840ce38437243c8f6ca5036e1f137b3cc552457b7c17cd817222da9324361aca1657e800
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|