Skip to content

feat: add support for react-native entry point for versions starting from 0.80.0 #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2025

Conversation

hurali97
Copy link
Member

@hurali97 hurali97 commented Jun 18, 2025

Summary

With [email protected], a new generated class was added by react-native-gradle-plugin. This class contains the app package name. Since we copy and paste the contents of autolinking generated dir, the package name in ReactNativeApplicationEntryPoint.java does not reflect the package name for library. To achieve this, we replace the occurrences of app package name with library package name. So technically, we patch the copied ReactNativeApplicationEntryPoint in autolinking dir of the library.

The above is achieved via patchRNEntryPoint method. If the task generateReactNativeEntryPoint does not exist, we early return, which indicates a react-native version < 0.80.0

Test plan

Tested this on both [email protected] and [email protected]. - 🟢

@hurali97 hurali97 marked this pull request as ready for review June 23, 2025 16:52
@hurali97 hurali97 requested a review from krozniata June 23, 2025 16:52
@hurali97 hurali97 changed the title Feat/support rn entry point feat: add support for react-native entry point for versions starting from 0.80.0 Jun 23, 2025
@hurali97 hurali97 merged commit 104a227 into main Jun 27, 2025
3 checks passed
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