How to reduce the size of the packaged react-native project?

problem description

the packaged size of the project is 31MB, and the total size of the actual project code + static file is less than 1.1MB. (the same logic is only 12MB when using native Android)

the environmental background of the problems and what methods you have tried

the direct package size of the project initialized by react-native is about 8 MB. By using Proguard and packaging only ARMv7a architecture to compress the size, the final apk size is 4.1MB.
the same method is used in the current project only from 31MB to 28MB

what result do you expect? What is the error message actually seen?

how can I effectively reduce the project size?
Thank you!

May.28,2021
Menu