Skip to content

Commit 68aaa86

Browse files
replace currentActivity reference with getCurrentActivity()
1 parent bb0bbb8 commit 68aaa86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/logicwind/reactnativestatusbarheight/ReactNativeStatusBarHeightModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ReactNativeStatusBarHeightModule(reactContext: ReactApplicationContext) :
1616
override fun getConstants(): Map<String, Any> {
1717
val constants = mutableMapOf<String, Any>()
1818

19-
val activity: Activity? = currentActivity
19+
val activity: Activity? = getCurrentActivity()
2020
var bottomInset = 0
2121

2222
if (activity != null) {

0 commit comments

Comments
 (0)