How to build Expo APK local

How to build Expo APK local

Is it possible to build the APK of an expo app locally?
The doc says:

If you haven’t used exp before, the first thing you’ll need to do is login with your Expo account using exp login.

I tried exp start, exp build:android but the commands require a login.
I don’t want to build the APK using expo server. Is there a way to run this build locally? So no login and push of source code required?
If not, can I view the whole source code of the generated APK?

Solutions/Answers:

Solution 1:

if you want to generate apk eject the CRNA with npm run eject command. Then you will get android and ios folders suppurate in mac and you will get an only android folder in windows. and follow the instruction which is in a given link below

https://facebook.github.io/react-native/docs/signed-apk-android.html

References

Related:  Transfer large files between Android and Node.js