Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,11 @@ class ApptentiveModule(private val reactContext: ReactApplicationContext) :
}

private fun getApplicationContext(): Application? {
return currentActivity?.applicationContext as Application?
return reactApplicationContext.currentActivity?.applicationContext as Application?
}

override fun getApptentiveActivityInfo(): Activity? {
return currentActivity
return reactApplicationContext.currentActivity
}

override fun getConstants(): MutableMap<String, Any> {
Expand Down