Skip to content
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

Android: Customised application & activity class #2114

Open
mo0rti opened this issue Jul 5, 2024 · 1 comment
Open

Android: Customised application & activity class #2114

mo0rti opened this issue Jul 5, 2024 · 1 comment
Labels
platform: Android This affects Android

Comments

@mo0rti
Copy link

mo0rti commented Jul 5, 2024

I have a react library with some native modules which needs to be initialised within Android Application Class or a Android Activity. Beside initialisation of my own library, I also need to write some extra android code and the best place in within Application class or Host Activity.
How can I add those to the test Android app, is there any solution for this?

@tido64 tido64 changed the title Customised application & activity class. Android: Customised application & activity class Jul 15, 2024
@tido64 tido64 added the platform: Android This affects Android label Jul 15, 2024
@tido64
Copy link
Member

tido64 commented Jul 15, 2024

We added some event listeners a few years back: #275

There's an example on how to implement them in the linked PR.

The alternative way is to write your own config plugin and modify the classes manually, though I wouldn't recommend it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Android This affects Android
Projects
None yet
Development

No branches or pull requests

2 participants