I’m trying to find MainApplication.java file so I can edit it. I’m using Expo Go.
I’ve been unable to find it. I’ve also used finder in Sublime Text comes with.
Nothing found.
I am not sure, it is doable with Expo as the aim is to develop native code module outside the project.
I would recommend you to use React Native directly https://reactnative.dev/docs/environment-setup
You will have much more flexibility regarding native code source and if you need to change the configuration.
android/app/src/main/java/com/{nameOfProject}/someFolder/MainApplication.java or android/app/src/main/java/co/{nameOfProject}/someFolder/MainApplication.java
Example path: android/app/src/main/java/co/matt/rtp/MyAppPackage.java
2
Answers
I am not sure, it is doable with Expo as the aim is to develop native code module outside the project.
I would recommend you to use React Native directly https://reactnative.dev/docs/environment-setup
You will have much more flexibility regarding native code source and if you need to change the configuration.
I’m on CLI but probably here:
android/app/src/main/java/com/{nameOfProject}/someFolder/MainApplication.java
orandroid/app/src/main/java/co/{nameOfProject}/someFolder/MainApplication.java
Example path:
android/app/src/main/java/co/matt/rtp/MyAppPackage.java