2

I tried two ways to compose a standalone Android app from CRNA project:

  1. Use the Expo "exp build" command (this guide)
  2. Eject and build an APK manually (this guide)

Both ways work well and yield the working APKs, but the first one is of 26MB size while the second one is only 7MB! Why "exp build" generates so large APK?

Pavlo Kyrylenko
  • 2,355
  • 2
  • 21
  • 21

1 Answers1

1

I've found an answer:

If you need to keep your app size extremely lean, Expo may not be the best choice. The size for an Expo app on iOS is approximately 25mb, and Android is about 20mb. This is because Expo includes a bunch of APIs regardless of whether or not you are using them — this lets you push over the air updates to use new APIs, but comes at the cost of binary size. We will make this customizable in the future, so you can trim down the size of your binaries.

Source is here

Pavlo Kyrylenko
  • 2,355
  • 2
  • 21
  • 21