How to reduce the react native project size

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to reduce the react native project size



I have a project and when I have released that, the size it is 30MB!
I have edited the gradle file :


def enableSeparateBuildPerCPUArchitecture = false to def enableSeparateBuildPerCPUArchitecture = true
def enableProguardInReleaseBuilds = false to def enableProguardInReleaseBuilds = true



but it only has reduced 4MB.
Now I wanna know how can I reduce that At least 15MB. Can I do that?
Thanks in advance.





You might need to load the static assets such as images through the server and cache them in your app
– Pritish Vaidya
Aug 13 at 8:37


static assets


images




1 Answer
1



Follow These Steps



Setting the last function creates two distinct apk in the build folder. You have to upload both of this apk to Play Store and Google would take care of distributing the app to the correct architectures.



lets check some more points which is responsible for large file size



Read More Here





thanks for your answer. I did that but it only reduced 3mb.
– alirezafc
Aug 13 at 9:07





okey. lets check some more points. First check images size and try to reduce . its the biggest reason for large app size. Remove extra dependence from package.json file if you are not using them. remove extra dependence from gradle file. use common style and string content .
– anil sidhu
Aug 13 at 9:27





it was a good question. so i give a thumps up to it. if you find that my answer can help some please give thumps to me also :)
– anil sidhu
Aug 13 at 9:29





While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
– ilim
Aug 13 at 9:37





yes . you are right. i will do it here
– anil sidhu
Aug 13 at 9:40






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

Firebase Auth - with Email and Password - Check user already registered