Skip to content

Conversation

@hurali97
Copy link
Member

@hurali97 hurali97 commented Jun 18, 2025

Summary

With react-native@0.80.0, 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 react-native@0.79.0 and react-native@0.80.0. - 🟢

@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.

3 participants