React Native for small size apk with low internet bandwidth

I plan to develop an application for emerging low-bandwidth markets on the Internet. The application strongly requires an Internet connection.

I need this application to have a small apk size (no more than 10mb ) and work on a 3G network .

Based on my research, if I delete x86 JS binaries from React Native, apk size can be as much as 4 MB. I believe 4mb does not include JS files and images, so the client needs to download it the first time it opens the application, right?
Would it be a good idea for me to use React Native if I want an application of less than 10 mb that works on 3G, and what are the best methods to make it effective?

+7
performance react-native
source share
2 answers

Instead of removing js that have less impact, you should go for binary resources like font and inline images. In addition, these are the following methods that may work for you:

1) Turn on the run:

To enable Proguard, edit the android / app / build.gradle file:

def enableProguardInReleaseBuilds = true 

Generate individual assemblies:

2) In your application /build.gradle is installed

 def enableSeparateBuildPerCPUArchitecture = true 

3) Remove x86 from abiFilters

Below are links to links that you may find helpful:

Apk downsizing blog:

https://realm.io/news/reducing-apk-size-native-libraries/

Link one of the smallest RN apps in the play store:

https://github.com/sonnylazuardi/ziliun-react-native

Useful discussion about the real Native Issue regarding apk size:

https://github.com/facebook/react-native/issues/5037

+13
source share

If you just want an application with a smaller application size, use your own platform. The minimum size of the embedded application for Android will be 1 MB. You cannot reduce the size of the responsive native application to less than 4 MB.

+2
source share

All Articles