'how to generate AndroidManifest.xml from a react-native app created with react-native init
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?
Solution 1:[1]
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
.
Solution 2:[2]
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.
Solution 3:[3]
if you are using VS Code for React Native development, you can find AndroidManifest.xml in android directory of the app folder as follows:
android\app\src\main
Solution 4:[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.
Solution 5:[5]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Buddhika Alwis |
Solution 2 | Daniel Danielecki |
Solution 3 | |
Solution 4 | Morris S |
Solution 5 | tlagreca |