28

I used react-native init to create my react application. I'm trying to tie in auth0 and auth0 documentation is saying I need something from the androidManafest.xml. The problem is that the react-native init didn't create "android/app/src/main/AndroidManifest.xml " during the process. How does this get created and tie into my react-native app?

Jodi Parker
  • 281
  • 1
  • 3
  • 3

4 Answers4

38

I am doing the same thing and had to hunt around for it, but after I did a react-native run-android I found that very file in the following folder: android > app > src > main.

enter image description here

Buddhika Alwis
  • 373
  • 14
  • 23
Sara Inés Calderón
  • 1,070
  • 12
  • 22
  • 2
    Also the part you want for Auth0 is here: ` – Sara Inés Calderón Jul 20 '17 at 23:23
  • 4
    The original question explicitly says that the can't find the file "android/app/src/main/AndroidManifest.xml". Telling them the path - the exact path they specifically said they can't find - is not helpful. – Benubird Jul 04 '18 at 10:07
  • 2
    @Benubird based on the fact that 4 people found it helpful, by definition, it is not useless. Also you could stand to be more respectful on this platform. Plus, if you read what I wrote, I mentioned that I ran a command before I found the file. Please be more civil, thanks. – Sara Inés Calderón Jul 05 '18 at 13:37
  • I ran `react-native run-android`, but where is this android directory? I'm not seeing it anywhere in my project. – Charlie Stanard Apr 16 '19 at 17:47
  • @CharlieStanard the android directory is: `src/android` -- top level in your project – Sara Inés Calderón Apr 16 '19 at 19:10
4

If you are in an Expo In managed workflow you will not see the AndroidManifest.xml file.

Since you don’t have access to changing the xml file in an Expo managed project, the app.json / app.config.js file let’s you make the necessary changes.

Morris S
  • 2,337
  • 25
  • 30
3

AndroidManifest.xml exists only in the bare workflow (Expo). To get an access to these files in bare workflow files you need to run expo eject. Assuming you are on the managed workflow.

In managed workflow, where you can see only JavaScript-related files, these files are generated in the Expo server = you have no access to these.

Daniel Danielecki
  • 8,508
  • 6
  • 68
  • 94
-1

React-native init generates this. It's easiest to find and manipulate this through android studio. If it doesn't create it... the process failed somewhere.

tlagreca
  • 358
  • 1
  • 6
  • 20