react-native-unimodules icon indicating copy to clipboard operation
react-native-unimodules copied to clipboard

Excluding some modules is not decreasing app size

Open ursnj opened this issue 6 years ago • 1 comments

Hello,

this package is increasing 5Mb of my app size, this is because we are installing many modules with this ???

i dont need all the unimodules in this packages, so i tried to exclude some, but the size is not decreasing even after excluding. any help here will be appreciated.

Thanks in advance.

ursnj avatar Oct 19 '19 06:10 ursnj

Most probably the size is decreasing, but only by small amounts — adding or removing one or two simple unimodules doesn't really make any big difference, how big could a couple of compiled Java files without dependencies be?

I would say that there must be some specific package that adds those 5 MBs and it does not come from a unimodule itself, but from its dependencies, eg. expo-facebook depending on the bigger Facebook SDK dependency.

What unimodules do you have installed? Have you tried profiling and inspecting the APK?

sjchmiela avatar Nov 04 '19 14:11 sjchmiela