rn-system-bar 3.0.0 → 3.0.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.
@@ -25,7 +25,7 @@ class SystemBarModule(
25
25
  override fun getName(): String = "SystemBar"
26
26
 
27
27
  // ── Helper ─────────────────────────────────────
28
- private fun activity(): Activity? = currentActivity
28
+ private fun activity(): Activity? = reactContext.currentActivity
29
29
 
30
30
  private fun audioManager(): AudioManager =
31
31
  reactContext.getSystemService(Context.AUDIO_SERVICE) as AudioManager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-system-bar",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Control Android & iOS system bars, brightness, volume, orientation and screen flags from React Native.",
5
5
  "main": "index.ts",
6
6
  "react-native": "index.ts",