How can I generate apk file for create-react-native-app (using EXPO.IO component)
- Install expo cli globally
npm install -g exp
- Run
exp build:android
orexp build:ios
inside the project - Choose some expo options
- Wait few minutes
A build link should be printed in the terminal. For the next steps see this thread: Created an app with create-react-native-app, how to publish it to the Google Play Store?
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.