expo-navigation-bar 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 2.1.0 — 2023-02-03
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- On Android bump `compileSdkVersion` and `targetSdkVersion` to `33`. ([#20721](https://github.com/expo/expo/pull/20721) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
|
|
13
19
|
## 2.0.1 — 2022-10-28
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ expo install expo-navigation-bar
|
|
|
29
29
|
Contributions are very welcome! Please refer to guidelines described in the [contributing guide][contributing].
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
[docs-main]: https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/navigation-bar.
|
|
32
|
+
[docs-main]: https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/navigation-bar.mdx
|
|
33
33
|
[docs-stable]: https://docs.expo.dev/versions/latest/sdk/navigation-bar/
|
|
34
34
|
[docs-workflows]: https://docs.expo.dev/versions/latest/introduction/managed-vs-bare/
|
|
35
35
|
[contributing]: https://github.com/expo/expo#contributing
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '2.0
|
|
6
|
+
version = '2.1.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -59,7 +59,7 @@ afterEvaluate {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
android {
|
|
62
|
-
compileSdkVersion safeExtGet("compileSdkVersion",
|
|
62
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 33)
|
|
63
63
|
|
|
64
64
|
compileOptions {
|
|
65
65
|
sourceCompatibility JavaVersion.VERSION_11
|
|
@@ -72,9 +72,9 @@ android {
|
|
|
72
72
|
|
|
73
73
|
defaultConfig {
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
|
-
targetSdkVersion safeExtGet("targetSdkVersion",
|
|
75
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
76
76
|
versionCode 1
|
|
77
|
-
versionName '2.0
|
|
77
|
+
versionName '2.1.0'
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
* - `dark` makes buttons **darker** to adjust for a mostly light nav bar.
|
|
5
5
|
* - `light` makes buttons **lighter** to adjust for a mostly dark nav bar.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type NavigationBarButtonStyle = 'light' | 'dark';
|
|
8
8
|
/**
|
|
9
9
|
* Visibility of the navigation bar.
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type NavigationBarVisibility = 'visible' | 'hidden';
|
|
12
12
|
/**
|
|
13
13
|
* Interaction behavior for the system navigation bar.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type NavigationBarBehavior = 'overlay-swipe' | 'inset-swipe' | 'inset-touch';
|
|
16
16
|
/**
|
|
17
17
|
* Navigation bar positional mode.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type NavigationBarPosition = 'relative' | 'absolute';
|
|
20
20
|
/**
|
|
21
21
|
* Current system UI visibility state. Due to platform constraints, this will return when the status bar visibility changes as well as the navigation bar.
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type NavigationBarVisibilityEvent = {
|
|
24
24
|
/**
|
|
25
25
|
* Current navigation bar visibility.
|
|
26
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.types.d.ts","sourceRoot":"","sources":["../src/NavigationBar.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"NavigationBar.types.d.ts","sourceRoot":"","sources":["../src/NavigationBar.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,MAAM,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG,aAAa,GAAG,aAAa,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,UAAU,EAAE,uBAAuB,CAAC;IACpC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-navigation-bar",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Interact with the system navigation bar",
|
|
5
5
|
"main": "build/NavigationBar.js",
|
|
6
6
|
"types": "build/NavigationBar.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"expo": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1815e2eaad8c753588c7b1eb74420174a28e01f4"
|
|
47
47
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('expo-module-scripts/babel.config.plugin');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationBarVisibility, NavigationBarBehavior, NavigationBarPosition, NavigationBarButtonStyle } from 'expo-navigation-bar';
|
|
2
2
|
import { ExpoConfig } from 'expo/config';
|
|
3
3
|
import { ConfigPlugin, AndroidConfig } from 'expo/config-plugins';
|
|
4
|
-
export
|
|
4
|
+
export type Props = {
|
|
5
5
|
borderColor?: string;
|
|
6
6
|
backgroundColor?: string | null;
|
|
7
7
|
barStyle?: NavigationBarButtonStyle | null;
|