Skip to content

fix: compiling issue while build in Android#7

Open
shreyanshagrawal-ops wants to merge 1 commit into
FerhatAdibelli0:mainfrom
shreyanshagrawal-ops:fix/android-compiling-issue
Open

fix: compiling issue while build in Android#7
shreyanshagrawal-ops wants to merge 1 commit into
FerhatAdibelli0:mainfrom
shreyanshagrawal-ops:fix/android-compiling-issue

Conversation

@shreyanshagrawal-ops

@shreyanshagrawal-ops shreyanshagrawal-ops commented Mar 30, 2026

Copy link
Copy Markdown

Root Cause:
Recent React Native versions have changed how native modules access the current Activity.
Direct usage of currentActivity inside Kotlin modules is no longer valid in this context. Instead, access must go through reactApplicationContext.

Fix:
Replaced all usages of : currentActivity with reactApplicationContext.currentActivity

This aligns with the updated React Native Native Module API and restores compatibility.

@HarshitMadhav

Copy link
Copy Markdown

I have verified the fix it works

@adembacajdev

Copy link
Copy Markdown

I confirm this PR resolves the issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants