skip to Main Content

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.

screenshot of file tree

enter image description here

enter image description here

Where I’m supposed to find it ?

2

Answers


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

    Login or Signup to reply.
  2. I’m on CLI but probably here:

    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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search