Skip to content

Fix Kotlin build error on RN 0.81+ from currentActivity API change - #3

Merged
MalcolmTomisin merged 1 commit into
thoughtbot:mainfrom
habibalamin:main
Sep 14, 2026
Merged

MalcolmTomisin merged 1 commit into
thoughtbot:mainfrom
habibalamin:main

Conversation

@habibalamin

Copy link
Copy Markdown
Contributor

On React Native 0.81+, building the Kotlin code fails with:

Function invocation 'getCurrentActivity()' expected

I've only tested the change fixes the build on my React Native 0.87 application, but I assume we don't need a conditional for older versions, as I got the fix from a pull request done for react-native-datetimepicker for the same issue.

@habibalamin

Copy link
Copy Markdown
Contributor Author

(Changed the author and committer names on the commit to use latin letters.)

@MalcolmTomisin

Copy link
Copy Markdown
Contributor

Hi @habibalamin , thanks for the PR. I would review shortly.

@MalcolmTomisin
MalcolmTomisin merged commit 55b26ea into thoughtbot:main Sep 14, 2026
6 checks passed
@habibalamin

Copy link
Copy Markdown
Contributor Author

Thanks @MalcolmTomisin! Do you know when the next release is planned for?

@MalcolmTomisin

MalcolmTomisin commented Sep 15, 2026 via email

Copy link
Copy Markdown
Contributor

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.

2 participants