ignite icon indicating copy to clipboard operation
ignite copied to clipboard

ignite app size is 30.2 mb

Open affanhashone opened this issue 5 years ago • 7 comments

why app size is so big 30.2 mb without any huge libraries ?

affanhashone avatar Jun 30 '19 10:06 affanhashone

If memory serves, an empty Hello World React Native app is ~25MB. We haven't spent much time on optimizing bundle size because it isn't really an important factor for most of our clients. However, if someone wanted to do a breakdown on why the bundle is so large and/or some pull requests to reduce the initial size we'd be happy to take a look.

kevinvangelder avatar Jul 01 '19 18:07 kevinvangelder

@kevinvangelder for your quick Response, I think after React Native 0.60 The App Size Will Reduce, But Still have a Look When Your Team Get Time. I can Use Android App Bundle To reduce the app size, But Ios Is a concern.

affanhashone avatar Jul 02 '19 06:07 affanhashone

The Hermes Engine will further dramatically reduce package size on Android. I think over time this will improve. We'd love some help reducing app size!

jamonholmgren avatar Jul 14 '19 05:07 jamonholmgren

is there any current work to reduce the size? How may I help with that?

ferroblesh avatar Jul 22 '19 20:07 ferroblesh

@ferroblesh

Our release build is about 11mb with a bunch of 3rd party libs.

Android: If you release the app as aab instead of apk then you'll reduce the size of the app a lot. To be able to do that you need to signup for "google app signing". There are several resources out there https://shift.infinite.red/handling-64-bit-android-builds-for-react-native-2fcd7a2e5c14

nirre7 avatar Dec 17 '19 13:12 nirre7

Inside an Ignite project, is this the app whose size we're concerned with?ios/build/TestAppSize/Build/Products/Release-iphonesimulator/TestAppSize.app This was 22.1 MB for me.

morgandonze avatar Feb 12 '20 21:02 morgandonze

Blank ignite app sizes,

debug : 45mb release : 34mb hermes enabled : 27mb aab release : 28.1

maqeelqureshi avatar Feb 12 '22 18:02 maqeelqureshi

This app bundle size topic has been discussed over at issues https://github.com/infinitered/ignite/issues/2240 and https://github.com/infinitered/ignite/issues/1947#issuecomment-1223985929 so I'm going to close this for now.

Closing this for now but feel free to bring it back up in Discussions or Community Slack

frankcalise avatar Oct 04 '22 18:10 frankcalise