expo-navigation-bar 3.0.2 → 3.0.4

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,14 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 3.0.4 — 2024-05-02
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 3.0.3 — 2024-05-01
18
+
19
+ _This version does not introduce any user-facing changes._
20
+
13
21
  ## 3.0.2 — 2024-04-23
14
22
 
15
23
  _This version does not introduce any user-facing changes._
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '3.0.2'
4
+ version = '3.0.4'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.navigationbar"
15
15
  defaultConfig {
16
16
  versionCode 1
17
- versionName '3.0.2'
17
+ versionName '3.0.4'
18
18
  }
19
19
  }
20
20
 
@@ -51,7 +51,7 @@ class NavigationBarModule : Module() {
51
51
  }
52
52
 
53
53
  AsyncFunction("setBackgroundColorAsync") { color: Int, promise: Promise ->
54
- NavigationBar.setBackgroundColor(activity, color, { promise.resolve(null) }, { m -> promise.reject(NavigationBarException(m)) })
54
+ NavigationBar.setBackgroundColor(activity, color) { promise.resolve(null) }
55
55
  }.runOnQueue(Queues.MAIN)
56
56
 
57
57
  AsyncFunction<String>("getBackgroundColorAsync") {
@@ -14,8 +14,7 @@ object NavigationBar {
14
14
  fun setBackgroundColor(
15
15
  activity: Activity,
16
16
  color: Int,
17
- successCallback: () -> Unit,
18
- failureCallback: (reason: String) -> Unit
17
+ successCallback: () -> Unit
19
18
  ) {
20
19
  activity.window.navigationBarColor = color
21
20
  successCallback()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-navigation-bar",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Interact with the system navigation bar",
5
5
  "main": "build/NavigationBar.js",
6
6
  "types": "build/NavigationBar.d.ts",
@@ -33,7 +33,7 @@
33
33
  "license": "MIT",
34
34
  "homepage": "https://docs.expo.dev/versions/latest/sdk/navigation-bar",
35
35
  "dependencies": {
36
- "@react-native/normalize-colors": "~0.74.81",
36
+ "@react-native/normalize-colors": "~0.74.83",
37
37
  "debug": "^4.3.2"
38
38
  },
39
39
  "devDependencies": {
@@ -43,5 +43,5 @@
43
43
  "peerDependencies": {
44
44
  "expo": "*"
45
45
  },
46
- "gitHead": "ee4f30ef3b5fa567ad1bf94794197f7683fdd481"
46
+ "gitHead": "71b2f4339ef7b5b42ce87c1d8c17fe41c60355e0"
47
47
  }