expo-navigation-bar 2.1.0 → 2.2.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,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 2.2.0 — 2023-05-08
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Android: Switch from deprecated `toLowerCase` to `lowercase` function ([#22225](https://github.com/expo/expo/pull/22225) by [@hbiede](https://github.com/hbiede))
|
|
18
|
+
|
|
19
|
+
## 2.1.1 — 2023-02-09
|
|
20
|
+
|
|
21
|
+
_This version does not introduce any user-facing changes._
|
|
22
|
+
|
|
13
23
|
## 2.1.0 — 2023-02-03
|
|
14
24
|
|
|
15
25
|
### 💡 Others
|
package/README.md
CHANGED
|
@@ -13,7 +13,6 @@ Properties are named after style properties; visibility, position, backgroundCol
|
|
|
13
13
|
|
|
14
14
|
For [managed][docs-workflows] Expo projects, please follow the installation instructions in the [API documentation for the latest stable release][docs-stable].
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
## Installation in bare React Native projects
|
|
18
17
|
|
|
19
18
|
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package][unimodules] before continuing.
|
|
@@ -21,17 +20,16 @@ For bare React Native projects, you must ensure that you have [installed and con
|
|
|
21
20
|
### Add the package to your npm dependencies
|
|
22
21
|
|
|
23
22
|
```
|
|
24
|
-
expo install expo-navigation-bar
|
|
23
|
+
npx expo install expo-navigation-bar
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
## Contributing
|
|
28
27
|
|
|
29
28
|
Contributions are very welcome! Please refer to guidelines described in the [contributing guide][contributing].
|
|
30
29
|
|
|
31
|
-
|
|
32
30
|
[docs-main]: https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/navigation-bar.mdx
|
|
33
31
|
[docs-stable]: https://docs.expo.dev/versions/latest/sdk/navigation-bar/
|
|
34
|
-
[docs-workflows]: https://docs.expo.dev/
|
|
32
|
+
[docs-workflows]: https://docs.expo.dev/archive/managed-vs-bare/
|
|
35
33
|
[contributing]: https://github.com/expo/expo#contributing
|
|
36
34
|
[unimodules]: https://github.com/expo/expo/tree/main/packages/react-native-unimodules
|
|
37
|
-
[status-bar]: https://github.com/expo/expo/tree/main/packages/expo-status-bar
|
|
35
|
+
[status-bar]: https://github.com/expo/expo/tree/main/packages/expo-status-bar
|
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.
|
|
6
|
+
version = '2.2.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -22,7 +22,7 @@ buildscript {
|
|
|
22
22
|
if (ext.has("kotlinVersion")) {
|
|
23
23
|
ext.kotlinVersion()
|
|
24
24
|
} else {
|
|
25
|
-
ext.safeExtGet("kotlinVersion", "1.
|
|
25
|
+
ext.safeExtGet("kotlinVersion", "1.8.10")
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
76
76
|
versionCode 1
|
|
77
|
-
versionName '2.
|
|
77
|
+
versionName '2.2.0'
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -50,13 +50,13 @@ class NavigationBarReactActivityLifecycleListener(activityContext: Context) : Re
|
|
|
50
50
|
return parsed
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
private fun getVisibility(context: Context): String = context.getString(R.string.expo_navigation_bar_visibility).
|
|
53
|
+
private fun getVisibility(context: Context): String = context.getString(R.string.expo_navigation_bar_visibility).lowercase()
|
|
54
54
|
|
|
55
|
-
private fun getPosition(context: Context): String = context.getString(R.string.expo_navigation_bar_position).
|
|
55
|
+
private fun getPosition(context: Context): String = context.getString(R.string.expo_navigation_bar_position).lowercase()
|
|
56
56
|
|
|
57
|
-
private fun getBehavior(context: Context): String = context.getString(R.string.expo_navigation_bar_behavior).
|
|
57
|
+
private fun getBehavior(context: Context): String = context.getString(R.string.expo_navigation_bar_behavior).lowercase()
|
|
58
58
|
|
|
59
|
-
private fun getLegacyVisible(context: Context): String = context.getString(R.string.expo_navigation_bar_legacy_visible).
|
|
59
|
+
private fun getLegacyVisible(context: Context): String = context.getString(R.string.expo_navigation_bar_legacy_visible).lowercase()
|
|
60
60
|
|
|
61
61
|
companion object {
|
|
62
62
|
private const val ERROR_TAG = "ERR_NAVIGATION_BAR"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-navigation-bar",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.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": "4ba50c428c8369bb6b3a51a860d4898ad4ccbe78"
|
|
47
47
|
}
|