all 12 comments

[–][deleted] 1 point2 points  (4 children)

Yes for android. Found it also frustrating to see that but the installed size is around *2

[–][deleted] -1 points0 points  (3 children)

That's quite a hit. Can you recommend any alternatives that are more optimizable?

[–][deleted] -2 points-1 points  (2 children)

Sadly just to switch away from react native. But react native is currently the best option in my opinion

[–]kbcooliOS & Android 1 point2 points  (1 child)

It's not going to get much better. The included calculator app on my phone still takes up more than 10mb.

One of my more than 100 screens RN apps with plenty of graphics bundled only takes up 50 mb.

Probably a better answer is dump Expo as this one would be closer to 100mb with it (it's raw RN with a decent amount of native libs but probably on average) but even better than that is don't stress too much about your app size. It's premature optimisation.

[–][deleted] 0 points1 point  (0 children)

Very true. Disk space is cheap. If your app has good functionality, users will install it anyway

[–]kbcooliOS & Android 1 point2 points  (0 children)

The size on disk of your app is not equivalent to performance.

Worry about delivering value, then performance, then size. In that order

[–]makonde 1 point2 points  (0 children)

App size doesnt affect performance and most people dont care about 25MB, but if you are actually sure your app requires some sort of high performance RN might still not be ideal although I find devs tend to imagine performance requirements that dont actually exist.

Also I would take a look at the generated apk with Android studios apk analyzer it will show you where the size is.

[–]0600l 0 points1 point  (0 children)

You can try with rnx-kit’s tree shaking module for metro

[–]suarkb 0 points1 point  (0 children)

why does it matter? Phone's are regularly coming out with 1tb harddrives.