I setup my app using create-react-native and I used expo's Video component in my app. How can I keep this video component and generate the apk file? Correct me if I'm wrong: to my understanding npm run eject prevents you from using expo components in the future. So how can I generate the apk file. It doesn't matter if it's signed or unsigned, atleast to me, I just want to email my friend the apk file so he can run it on his phone
Edit: This is not a duplicate of: How can I generate an apk that can run without server with react-native?
As that question asks how to generate an apk file for react-native, mine ask how this works with the specific create-react-native-app build where I am using an expo component
Install npm install -g exp
edit app.json
file in our project
{
"expo": {
"name":"my app",
"icon":"./logo.png",
"description":"some description about our project",
"sdkVersion": "27.0.0",
"android":{
"package":"com.johncy.myapp",
"versionCode":1 ,
"icon":"./logo.png"
}
}
}
give the command in our project directory exp build:android
Just wait for few mins.It will give an url for our build project.We can download *.apk
file from that link.