<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Keval Goyani on Medium]]></title>
        <description><![CDATA[Stories by Keval Goyani on Medium]]></description>
        <link>https://medium.com/@keval-goyani?source=rss-656ed019ccdc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZzNScb7jNoa6qNipwttZtw@2x.jpeg</url>
            <title>Stories by Keval Goyani on Medium</title>
            <link>https://medium.com/@keval-goyani?source=rss-656ed019ccdc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:47:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@keval-goyani/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Testing Dynamic Resource Downloading in React Native: Local Setup and Debugging Guide]]></title>
            <link>https://medium.com/simform-engineering/testing-dynamic-resource-downloading-in-react-native-local-setup-and-debugging-guide-70c63b47486b?source=rss-656ed019ccdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/70c63b47486b</guid>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[play-asset-delivery]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[on-demand-resource]]></category>
            <category><![CDATA[dynamic-resource]]></category>
            <dc:creator><![CDATA[Keval Goyani]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 09:36:49 GMT</pubDate>
            <atom:updated>2025-11-12T08:02:35.204Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to test dynamic downloads locally before publishing your app without the Play Store or App Store.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-XmsunyacH1Zk6Q2FWGx6g.png" /></figure><p>After setting up <a href="https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-android-play-asset-delivery-pad-4080665c0507"><strong>Play Asset Delivery (PAD)</strong></a> for Android and <a href="https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-ios-on-demand-resources-odr-2542b238055e"><strong>On-Demand Resources (ODR)</strong></a> for iOS, the next crucial step is testing. Proper testing ensures that your dynamic resources are downloaded, accessed, and rendered correctly in your React Native app.</p><p>In this blog, we’ll walk through the steps to test PAD on Android and ODR on iOS, verify asset availability, and troubleshoot common issues to make sure your app delivers content efficiently.</p><h3>Testing <strong>Play Asset Delivery</strong> on Android</h3><p>After integrating Play Asset Delivery (PAD) into your React Native Android app, it’s essential to verify that your asset packs download correctly and are accessible. Proper testing ensures your dynamic content works as expected without increasing APK size or affecting performance.</p><p>Play Asset Delivery allows you to test asset packs locally without submitting your app to Google Play. This makes it easy to iterate quickly and verify that your dynamic content works as expected. Bundletool is the key tool behind this process.</p><blockquote><strong>Bundletool</strong> serves as the foundational tool utilized by Android Studio, the Android Gradle plugin, and Google Play to construct an Android App Bundle. It is capable of converting an app bundle into several APKs that can be distributed on devices. For more info, <a href="https://developer.android.com/tools/bundletool">refer to this</a>.</blockquote><p>Open Android Studio and follow these steps to test your Play Asset Delivery (PAD) setup locally:</p><p>First, generate the manifest for each asset pack by building the bundle with Gradle by simply running the following command:</p><pre>./gradlew :bundleDebug</pre><p>Once the build completes, create a new <strong>Android App Bundle (AAB)</strong> from Android Studio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQBiDGdI2tetAmcl27UFjw.png" /><figcaption>Generating bundle file from Android studio</figcaption></figure><p>Use bundletool with the --local-testing flag to generate APKs for your device. Run this command from your bundletool directory:</p><pre>java -jar bundletool-all.jar build-apks --bundle=path/to/your/bundle.aab \<br>  --output=output.apks --local-testing</pre><p>You can replace the items below as per your requirements and configuration.</p><ul><li>bundletool-all.jar with your bundle-tool jar file name.</li><li>path/to/your/bundle.aab with your app bundle path.</li><li>output.apks with your desired output name.</li></ul><p>Connect your device and run the following command to install and test your locally generated APKs:</p><pre>java -jar bundletool.jar install-apks --apks=output.apks</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z05VplUrJkk1cN5KZ39y2w.gif" /><figcaption>Build, extract and install PAD assets locally</figcaption></figure><p>This installs the app on your device, allowing you to verify that asset packs are downloading and working as expected.</p><blockquote><strong>Dynamic Asset Download on Android:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*bSKs5DwO0Gl6e4StvvqWoA.gif" /><figcaption>Android PAD</figcaption></figure><blockquote><strong>Troubleshooting Tip</strong>: If your assets aren’t appearing or downloads fail, double-check the <strong>asset pack paths</strong> and ensure your <strong>Gradle and bundletool versions</strong> are up to date. Also, confirm that your device has a stable internet connection for fetching dynamic content.</blockquote><h3>Testing On-Demand Resources on iOS</h3><p>On-Demand Resources (ODR) enable apps to deliver content on demand rather than bundling everything at once. This approach helps reduce the initial download size and improves the user experience by providing resources dynamically when required.</p><h4><strong>Testing in Debug Mode</strong></h4><p>You can test ODR directly in debug mode to quickly verify resource loading and behaviour:</p><ul><li>Run your app from Xcode.</li><li>Simulate various user scenarios that trigger the download of on-demand resources.</li><li>Use Xcode’s <a href="https://developer.apple.com/documentation/xcode/debugging">debugging tools</a> to monitor the resource loading process and verify that resources are being fetched as expected.</li></ul><h4>Verifying the Resource Download</h4><p>To confirm that ODR is functioning properly:</p><ul><li>Check the Console in Xcode for logs related to resource downloads.</li><li>Ensure that resources are available when requested and that your app behaves correctly if the resources are not yet available.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8Gnx-45ig0svYSg0Rv84Q.png" /><figcaption>Check whether Demand Resources downloaded or not in Xcode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s20H410xZtbCDxnRJ5NzSg.png" /><figcaption>Check logs of downloaded resource in Xcode</figcaption></figure><h4><strong>Performance Testing</strong></h4><p>It’s crucial to ensure that on-demand resources are delivered efficiently without negatively impacting user experience:</p><ul><li>Simulate various network conditions using a <a href="https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/TestingPerformance.html">Network Link Conditioner</a> to test resource delivery under different scenarios.</li><li>Measure download times for resources under different scenarios.</li><li>Verify that the app gracefully handles failures in resource downloading, such as network issues or server downtime.</li></ul><h4><strong>Real-World Testing</strong></h4><p>For broader testing with multiple users, use <strong>TestFlight</strong>. It works similarly to the App Store by hosting and managing your app’s resources. During installation, TestFlight automatically provides the necessary on-demand resources to testers, allowing you to validate real-world performance and delivery before release.</p><blockquote><strong>Dynamic Asset Download on iOS:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*DWodDA1JcLb7dkkQ75NISQ.gif" /><figcaption>iOS ODR</figcaption></figure><h3>Conclusion</h3><p>Testing dynamic resource downloading ensures your React Native app delivers assets smoothly without adding unnecessary weight to the bundle. Whether you’re verifying Play Asset Delivery on Android or On-Demand Resources on iOS, proper testing helps confirm that everything works seamlessly across devices and networks.</p><p>By testing locally and through tools like bundletool, Xcode, and TestFlight, you can fine-tune performance and provide a reliable, efficient experience for users before release.</p><p>Keep learning, keep improving, and as always, keep coding!</p><h3>References</h3><ul><li><a href="https://developer.android.com/guide/playcore/asset-delivery/test">https://developer.android.com/guide/playcore/asset-delivery/test</a></li><li><a href="https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/TestingPerformance.html#//apple_ref/doc/uid/TP40015083-CH21-SW1">https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/TestingPerformance.html#//apple_ref/doc/uid/TP40015083-CH21-SW1</a></li></ul><blockquote><strong><em>For more updates on the latest tools and technologies, follow the </em></strong><a href="https://medium.com/simform-engineering"><strong><em>Simform Engineering</em></strong></a><strong><em> blog.</em></strong></blockquote><blockquote><strong><em>Follow Us: </em></strong><a href="https://twitter.com/simform"><strong><em>X</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/company/simform/"><strong><em>LinkedIn</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70c63b47486b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simform-engineering/testing-dynamic-resource-downloading-in-react-native-local-setup-and-debugging-guide-70c63b47486b">Testing Dynamic Resource Downloading in React Native: Local Setup and Debugging Guide</a> was originally published in <a href="https://medium.com/simform-engineering">Simform Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Resource Downloading in React Native for iOS: On-Demand Resources (ODR)]]></title>
            <link>https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-ios-on-demand-resources-odr-2542b238055e?source=rss-656ed019ccdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2542b238055e</guid>
            <category><![CDATA[dynamic-resource]]></category>
            <category><![CDATA[on-demand]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[on-demand-app-development]]></category>
            <dc:creator><![CDATA[Keval Goyani]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 06:17:35 GMT</pubDate>
            <atom:updated>2025-11-10T06:17:35.051Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discover how On-Demand Resources work in iOS and how to integrate them seamlessly in React Native apps.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfthat_rOSoP1r1uIMb8HQ.png" /></figure><p>When developing apps, it’s common to include various resources such as images, audio, and videos. However, these assets often lead to larger bundle sizes, impacting user experience, particularly when they’re only accessed in specific scenarios.</p><p>This is where <strong>On-Demand Resources (ODR)</strong> come into play. ODR is an app content hosted on the App Store and separate from the main app bundle. They allow you to keep your app bundle smaller, speed up downloads, and still provide rich content.</p><p>The application requests specific On-Demand Resources, while the operating system manages downloads and storage. The app utilises these resources and subsequently releases the request.</p><p>Once downloaded, the resources remain on the device through multiple launch cycles, allowing faster access. When the operating system requires more storage, it automatically removes resources that are no longer in use.</p><h3>Download size limits</h3><p>The size ensures a suitable balance between download speed and local storage. Keeping resources manageable also allows the system to purge them when device storage is low.</p><p>Each ODR tag should ideally be <strong>64 MB or less</strong> to maintain efficient downloads and ensure iOS can manage storage effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6X6_FrbPeFcVpu7XlGXM5g.png" /><figcaption>Download size limits</figcaption></figure><blockquote>Note: A checkmark (✓) indicates that the size reflects <strong>App Slicing</strong>. App Slicing ensures that only the resources required for a specific device are delivered, reducing download size and saving storage.</blockquote><h3><strong>Tag and its Categories</strong></h3><p>A tag is a string identifier used to specify the purpose of the associated resources in the app. Tags help organise and manage collections of on-demand resources, making it easy to create and access asset packs within your project.</p><p>By assigning one or more tags to a resource, it becomes part of an on-demand resource package. These asset packs can include a wide range of items, such as:</p><ul><li>Asset catalogs (images, SpriteKit textures, data, etc.)</li><li>OpenGL or Metal shaders</li><li>SpriteKit and SceneKit scenes</li><li>Particle systems</li></ul><blockquote><strong>Note</strong>: At runtime, all interactions with on-demand resources are managed through tags rather than individual resources.</blockquote><p>Tags fall into three main categories:</p><ul><li><strong>Initial install tags: </strong>Resources are downloaded along with the app. Their size counts toward the app’s total size on the App Store.</li><li><strong>Prefetch tag order: </strong>Resources start downloading after the app is installed. They are saved to the local device storage and can be accessed after the app launches.</li><li><strong>Downloaded only on demand: </strong>Resources are downloaded only when the app requests them. This is ideal for content that isn’t needed immediately. By default, all tags are in this category.</li></ul><blockquote>When we submit our app to the App Store, these resources are also uploaded and hosted there to be downloaded at any time.</blockquote><h3>On-Demand Resources life cycle</h3><p>The diagram below illustrates the overall lifecycle of requesting tags and accessing their associated resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ulLbwRw4QMuzgJLL.png" /><figcaption><em>Image source: Apple’s official documentation on On-Demand Resources</em></figcaption></figure><p>For more details on the ODR lifecycle, you can check out <a href="https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html#//apple_ref/doc/uid/TP40015083-CH2-SW1">Apple’s official documentation</a>.</p><h3>Installation and Setup</h3><p>To use On-Demand Resources in the project, navigate to the build settings and ensure they are activated. By default, ODR is enabled for apps targeting iOS 9.0 or later.</p><p>Follow these steps to enable On-Demand Resources in your project:</p><ol><li>Select the project file from the <strong>Project Navigator</strong>.</li><li>In the project editor, select the <strong>target</strong>.</li><li>Select the <strong>Build Settings</strong> pane from the panel.</li><li>Under the <strong>Assets</strong> category, set <strong>Enable On-Demand Resources</strong> to <strong>Yes</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdX23yNTZTrW2R3z4rq_lw.png" /><figcaption>Enable on-demand resources in Xcode</figcaption></figure><p>Once On-Demand Resources are enabled, you can create and assign tags to your resources to organise them for dynamic downloading. Follow these steps:</p><ol><li>Select the file you want to include as an On-Demand Resource.</li><li>Navigate to the right-hand side panel.</li><li>Type the <strong>tag name</strong> in the <strong>On-Demand Resource Tags</strong> field and Press Enter.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5x9_SfT00x5xI5oJJS1zSA.png" /><figcaption>Creating and Assigning tag</figcaption></figure><blockquote><strong>Note</strong>: By default, the on-demand resources tag category is set to <strong>Downloaded only on-demand.</strong> You can change the tag category from the <strong>Resource Tags</strong> pane in the project editor by dragging it from the current category section to your desired category.</blockquote><h3>Download and access assets on the native iOS side</h3><p>Assets are downloaded and accessed on the native iOS side, as it provides full support for handling them. Through native bridging, these assets can be accessed on the React Native side.</p><p>First, let’s create a <a href="https://medium.com/simform-engineering/bridging-for-ios-and-android-in-react-native-64b8ce60a8c2">native module on iOS</a> named ReduceBundleManger and declare a method that will extract assets. This module will handle downloading and accessing On-Demand Resources.</p><blockquote><strong>Note:</strong> In this blog, all the native iOS code is written in <strong>Objective-C</strong>, and our On-Demand Resources we’re using are images.</blockquote><p>To access the resources, your app must request them by initialising an <a href="https://developer.apple.com/documentation/foundation/nsbundleresourcerequest"><strong>NSBundleResourceRequest</strong></a> instance. This class manages downloading content hosted on the App Store as needed.</p><p>When creating the request, pass the tag into the initWithTags method to generate a request instance for the asset.</p><blockquote><strong>Bonus</strong>: If all resources associated with the tags are in the same custom bundle, we need to use <a href="https://developer.apple.com/documentation/foundation/nsbundleresourcerequest/1614842-initwithtags">initWithTags:bundle</a>.</blockquote><p>After initialising the instance, the next step is to request access to the on-demand resources associated with the tags.</p><p>First, check whether assets have already been downloaded or not by using <a href="https://developer.apple.com/documentation/foundation/nsbundleresourcerequest/1614834-conditionallybeginaccessingresou"><strong>conditionallyBeginAccessingResourcesWithCompletionHandler</strong></a>.</p><p>If assets are available, we can access them and convert them to <strong>base64 format</strong>, then pass them to the React Native side using a custom processImage method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b635ac6d036879dab3886e0aea6c10e1/href">https://medium.com/media/b635ac6d036879dab3886e0aea6c10e1/href</a></iframe><p>If assets aren’t already available, we can download them by calling <a href="https://developer.apple.com/documentation/foundation/nsbundleresourcerequest/1614840-beginaccessingresources"><strong>beginAccessingResourcesWithCompletionHandler</strong></a>. Once the download completes, we can then invoke the processImage method to convert the assets to base64 and make them available on the React Native side.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5284fae546b265724b8af99bac53495/href">https://medium.com/media/c5284fae546b265724b8af99bac53495/href</a></iframe><h3>How to use assets on React Native?</h3><p>On the React Native side, start by calling the native method and passing the image name along with its file extension. Save the returned image path in the imageUri state.</p><p>Once the state is updated, you can render the image in base64 format using the standard React Native Image component. This approach ensures that your app displays the downloaded assets seamlessly as soon as they are available.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f7f23cfaa31d816ab1d04761e0003eb/href">https://medium.com/media/2f7f23cfaa31d816ab1d04761e0003eb/href</a></iframe><h3>Conclusion</h3><p>On-Demand Resources let your React Native iOS app stay lightweight while delivering rich content exactly when needed. Organise assets with tags, enable ODR, and access them via a native module to keep downloads fast, performance smooth, and users happy.</p><p>Keep coding and build smarter apps!</p><h3>References</h3><ul><li><a href="https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html#//apple_ref/doc/uid/TP40015083-CH2-SW1">https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html#//apple_ref/doc/uid/TP40015083-CH2-SW1</a></li><li><a href="https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/Managing.html#//apple_ref/doc/uid/TP40015083-CH4-SW1">https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/Managing.html#//apple_ref/doc/uid/TP40015083-CH4-SW1</a></li></ul><blockquote><strong><em>For more updates on the latest tools and technologies, follow the </em></strong><a href="https://medium.com/simform-engineering"><strong><em>Simform Engineering</em></strong></a><strong><em> blog.</em></strong></blockquote><blockquote><strong><em>Follow Us: </em></strong><a href="https://twitter.com/simform"><strong><em>X</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/company/simform/"><strong><em>LinkedIn</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2542b238055e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-ios-on-demand-resources-odr-2542b238055e">Dynamic Resource Downloading in React Native for iOS: On-Demand Resources (ODR)</a> was originally published in <a href="https://medium.com/simform-engineering">Simform Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Resource Downloading in React Native for Android: Play Asset Delivery (PAD)]]></title>
            <link>https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-android-play-asset-delivery-pad-4080665c0507?source=rss-656ed019ccdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4080665c0507</guid>
            <category><![CDATA[on-demand]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[play-asset-delivery]]></category>
            <category><![CDATA[react-native-bridge]]></category>
            <category><![CDATA[dynamic-resource]]></category>
            <dc:creator><![CDATA[Keval Goyani]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 04:01:23 GMT</pubDate>
            <atom:updated>2025-11-12T08:01:26.049Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understand how Android’s Play Asset Delivery can help you optimise app size and load assets dynamically.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K7SXr3RoOxRnFTdpn_eYJw.png" /></figure><p>As mobile apps grow richer in content and features, managing app size becomes a serious challenge. In our <a href="https://medium.com/simform-engineering/reduce-app-size-and-boost-performance-in-react-native-f508d6ebc9a0">previous blog on React Native app size optimisation</a>, we explored several ways to reduce your bundle size, from trimming dependencies to optimising images.</p><p>Now, let’s go one step further and explore dynamic resource downloading with Play Asset Delivery (PAD), a modern solution by Google Play that lets you serve large assets on demand instead of bundling them in your APK.</p><h3><strong>What is Google’s Play Asset Delivery?</strong></h3><p>Play Asset Delivery (PAD) is a Google Play service that allows you to deliver large game or app assets dynamically after the user installs the app. It serves as a content delivery network (CDN) service that manages the hosting and downloading of large game or app assets at no cost.</p><p>It provides developers with powerful delivery options such as flexible delivery modes, auto-updates, compression, and delta patching, helping reduce app size and speed up updates.</p><p>PAD organises resources into asset packs, which contain non-executable assets like textures, shaders, sounds, and media files.</p><p>These asset packs give developers fine-grained control over <em>when</em> and <em>how</em> content is downloaded to a user’s device by using three delivery modes: install-time, fast-follow, and on-demand.</p><h3>Delivery modes</h3><p>When it comes to delivering asset packs, PAD offers three main types:</p><ul><li><strong>Install-Time Asset Packs: </strong>These packs are provided during the app installation as split APKs, allowing you to use them right from the app launch. However, they contribute to the app size shown on the Google Play Store.</li><li><strong>Fast-Follow Asset Packs:</strong> These packs are automatically downloaded right after the app installation is complete. The user doesn’t need to open the app for the download to begin, and it doesn’t prevent them from using the app. Like install-time packs, they also contribute to the app size displayed on the Play Store.</li><li><strong>On-Demand Asset Packs:</strong> These packs are downloaded while the app is running, allowing you to fetch them only when needed. This helps keep the initial app size smaller and only loads additional assets as required.</li></ul><blockquote>The Google Play Store delivers asset packs configured for fast-follow and on-demand as archives, rather than split APKs. This means the packs are extracted into the app’s internal storage.</blockquote><h3><strong>Download size limit</strong></h3><p>Asset packs are especially useful for apps and games with large assets. Developers in the <a href="https://play.google.com/console/about/programs/partnerprogram/"><strong>Google Play Partner Program for Games</strong></a> may have access to higher size limits.</p><p>App bundles, feature modules, and asset packs are all subject to specific size limits to ensure optimal performance and efficient downloads. These limits are based on the compressed download size, which Google Play calculates when you upload your app bundle to the Play Console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ok5xpVFmbN0vrspr2MlBQg.png" /><figcaption>App download size limit</figcaption></figure><p>For more details, refer to the official <a href="https://developer.android.com/guide/playcore/asset-delivery#download-size-limits"><strong>Download size limits</strong></a><strong> </strong>documentation.</p><h3><strong>Installation and Setup</strong></h3><p>Before starting the implementation, ensure your project uses <strong>Android Gradle Plugin version 4.0.0 or higher</strong>. Then, follow these steps to integrate Play Asset Delivery:</p><p>In your project’s top-level directory, create a new folder. This folder name will serve as your asset pack name. Asset pack names must start with a letter and can only contain letters, digits, or underscores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*rK-OtmmySrPFgm8I84Im_A.png" /><figcaption>Android structure highlighting the asset pack folder</figcaption></figure><p>Within the asset pack directory, create a build.gradle file and insert the following code. Make sure to specify the asset pack name and only one delivery type.</p><blockquote><strong>Note</strong>: We’ll be using Java throughout this blog, and our assets are images.</blockquote><pre>// In the asset pack&#39;s build.gradle file:<br>plugins {<br>  id &#39;com.android.asset-pack&#39;<br>}<br><br>assetPack {<br>    packName = &quot;fast_follow_asset_pack&quot; // Directory name for the asset pack<br>    dynamicDelivery {<br>        deliveryType = &quot;fast-follow&quot;<br>    }<br>}</pre><p>In your app module’s build.gradle file, add the name of each asset pack defined in your project:</p><pre>// In the app&#39;s build.gradle file:<br>android {<br>    ...<br>    assetPacks = [&quot;:fast_follow_asset_pack&quot;]<br>}</pre><blockquote>In this blog, we’re focusing on the <strong>fast-follow</strong> delivery mode. You can choose the delivery mode that best suits your app’s needs. The setup for different modes requires no additional changes; only modifications are necessary when requesting access to resources.</blockquote><blockquote>Both fast-follow and on-demand modes use the same access mechanism, while install-time mode uses a slightly different API. For more information, you can refer to <a href="https://developer.android.com/guide/playcore/asset-delivery/integrate-java#install-time-delivery">this resource</a>.</blockquote><p>In the project’s settings.gradle file, add all asset packs in your project according to the below:</p><pre>// In the settings.gradle file:<br>include &#39;:app&#39;<br>include &#39;:fast_follow_asset_pack&#39; // Add this line</pre><p>Now, create the following subdirectory: src/main/assets in the <strong>fast_follow_asset_pack</strong> directory and place assets in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*5Pspn6iJg17uA9SFLsyZXQ.png" /><figcaption>Assets inside the fast_follow_asset_pack directory</figcaption></figure><blockquote><strong>Note</strong>: Here, we organise three folders within the assets directory to render images according to the device’s dimensions and place each image into its corresponding folder with the same name.</blockquote><p>Run the following Gradle command to build the Android App Bundle:</p><pre>./gradlew bundleDebug</pre><p>Gradle automatically generates a manifest for each asset pack and creates the assets/ directory for you.</p><p>To install the <em>Play Asset Delivery Library</em>, add the following dependencies:</p><pre>// In your app’s build.gradle file:<br>...<br>dependencies {<br>    // This dependency is downloaded from the Google’s Maven repository.<br>    // So, make sure you also include that repository in your project&#39;s build.gradle file.<br>    implementation &#39;com.google.android.play:asset-delivery:2.2.1&#39; <br><br>    // For Kotlin users also add the Kotlin extensions library for Play Asset Delivery:<br>    implementation &#39;com.google.android.play:asset-delivery-ktx:2.2.1&#39;<br>    ...<br>}</pre><blockquote>Note: You don’t need to add this dependency for <strong>install-time</strong> delivery mode.</blockquote><h3>Download and access assets on the native Android side</h3><p>We can download and access assets on the native Android side and then make them available to React Native through a native bridge.</p><p>First, let’s create a <a href="https://medium.com/simform-engineering/bridging-for-ios-and-android-in-react-native-64b8ce60a8c2">native module on Android</a> named ReduceBundleManager and declare a method to extract assets.</p><p>Next, check the device’s screen density. Based on this value, load the image from the appropriate directory within your asset pack. This ensures the app renders the correct image version for the device’s resolution, keeping visuals sharp and consistent across devices.</p><pre>Context currentAppContext = getReactApplicationContext().createPackageContext(&quot;PACAKGE_NAME&quot;, 0);<br>float density = currentAppContext.getResources().getDisplayMetrics().density;<br><br>        String folderRefName;<br>        if (density &gt;= 4.0) {<br>            folderRefName = &quot;@3x&quot;;<br>        } else if (density &gt;= 3.0) {<br>            folderRefName = &quot;@3x&quot;;<br>        } else if (density &gt;= 2.0) {<br>            folderRefName = &quot;@2x&quot;;<br>        } else if (density &gt;= 1.5) {<br>            folderRefName = &quot;@2x&quot;;<br>        } else {<br>            folderRefName = &quot;&quot;;<br>        }</pre><p>Next, let’s verify whether the asset is available or not. We’ll do this by checking if our asset path is null or not, using the created helper function getAbsoluteAssetPath.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5716a6747f597ceadbd56b527d41e12b/href">https://medium.com/media/5716a6747f597ceadbd56b527d41e12b/href</a></iframe><blockquote>From here, if we get the asset pack location, we can simply pass the asset path. This means the asset has already been downloaded and is ready to use.</blockquote><p>If <strong>assetPath</strong> is <strong>null</strong>, we move on to the <em>getPackStates</em> function. Here, we extract assetPackState from the <em>onStateUpdate</em> method of the assetPackManager listener.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05e5eb8b4d8b0235e9e21a06930be5e8/href">https://medium.com/media/05e5eb8b4d8b0235e9e21a06930be5e8/href</a></iframe><p>If assetPackState is <strong>not null</strong>, we invoke the helper function <em>registerListener</em>. Inside this function, we again verify the <strong>assetPath</strong> using the <em>getAbsoluteAssetPath</em> method.</p><p>If the <strong>assetPath</strong> is <strong>null</strong>, we start by registering the listener for state updates, which provides various states such as <em>DOWNLOADING, FAILED, COMPLETED, TRANSFERRING,</em> and more.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7536e2d2e518517ad7b75cae8403240/href">https://medium.com/media/e7536e2d2e518517ad7b75cae8403240/href</a></iframe><p>Next, we fetch the list of asset packs using the asset pack name. Once the asset has finished downloading and the listener receives an update in the <strong><em>COMPLETED</em></strong> state, we pass the image path to the React Native side by resolving the promise.</p><h3>How to use assets on React Native?</h3><p>On the React Native side, we start by calling the native method and passing the image name along with its extension. The returned image path is then saved in the component’s state.</p><p>Once the state is updated, we use the <strong>React Native </strong>Image component to render the image in <strong>base64</strong> format. This ensures the asset is displayed properly once it’s available.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38879467fa81fb8fb377fbd247148c47/href">https://medium.com/media/38879467fa81fb8fb377fbd247148c47/href</a></iframe><h3>Conclusion</h3><p>Large assets do not have to slow down your React Native app. With Play Asset Delivery, you can deliver content on demand, keep your app lightweight, and still provide high-quality experiences.</p><p>Combine PAD with smart bundle optimisations and your app will load faster, run smoother, and stay enjoyable for users while maintaining all its features and visuals.</p><p>Keep coding, optimise wisely, and watch your React Native apps run faster, lighter, and smarter.</p><h3>References</h3><ul><li><a href="https://developer.android.com/guide/playcore/asset-delivery">https://developer.android.com/guide/playcore/asset-delivery</a></li><li><a href="https://developer.android.com/guide/playcore/asset-delivery/integrate-java">https://developer.android.com/guide/playcore/asset-delivery/integrate-java</a></li></ul><blockquote><strong><em>For more updates on the latest tools and technologies, follow the </em></strong><a href="https://medium.com/simform-engineering"><strong><em>Simform Engineering</em></strong></a><strong><em> blog.</em></strong></blockquote><blockquote><strong><em>Follow Us: </em></strong><a href="https://twitter.com/simform"><strong><em>X</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/company/simform/"><strong><em>LinkedIn</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4080665c0507" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-android-play-asset-delivery-pad-4080665c0507">Dynamic Resource Downloading in React Native for Android: Play Asset Delivery (PAD)</a> was originally published in <a href="https://medium.com/simform-engineering">Simform Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reduce App Size and Boost Performance in React Native]]></title>
            <link>https://medium.com/simform-engineering/reduce-app-size-and-boost-performance-in-react-native-f508d6ebc9a0?source=rss-656ed019ccdc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f508d6ebc9a0</guid>
            <category><![CDATA[app-size-reduce]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[bundle]]></category>
            <dc:creator><![CDATA[Keval Goyani]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 07:41:11 GMT</pubDate>
            <atom:updated>2025-11-12T07:56:26.751Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Make your React Native apps faster, smaller, and more efficient with smart optimisation techniques.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VgB_kYKUo9_JbQpCUa_DcQ.png" /></figure><p>Welcome to the world of React Native, a dynamic JavaScript framework propelling mobile app development to new heights. This powerful framework, based on React, empowers us to create stunning applications for both iOS and Android using a single codebase.</p><p>Every day, thousands of apps are born. However, as applications grow in scope, the size of apps can become a significant challenge. Large app bundles not only discourage downloads due to storage concerns and slow installation times but also strain device resources and battery life.</p><p>On top of that, big apps often cost more to build and maintain. Plus, apps that exceed their size limits may lose potential users, especially those with limited data or no Wi-Fi access.</p><p>That’s why reducing your app’s bundle size is so important. A smaller bundle means faster downloads, smoother performance, and an overall better experience for your users.</p><p>In this blog, we’ll explore some easy and effective optimization techniques you can apply from the very beginning of your React Native project to keep your app lean, fast, and user-friendly.</p><h3><strong>Optimising JavaScript Bundle Size</strong></h3><p>Your JavaScript bundle plays a big role in how your React Native app performs. A smaller bundle helps your app start faster, run smoother, and use less memory, which all lead to a better experience for your users.</p><p>You can achieve this through a few practical methods, such as using smaller libraries, importing only what you need, and removing unused code. Below, we’ve covered these techniques in detail.</p><h4><strong>Lightweight Alternative:</strong></h4><p>One of the biggest reasons bundle sizes grow is the heavy use of third-party libraries. Every extra dependency adds weight to your app. To keep your React Native app smooth and efficient, it’s worth choosing lighter alternatives whenever possible.</p><p>Here’s a breakdown of common React Native libraries and their alternatives that may offer smaller bundle sizes:</p><ul><li><strong>redux</strong>: Alternative: <a href="https://github.com/reduxjs/redux-toolkit">@reduxjs/toolkit</a> — Redux Toolkit simplifies setup, reduces boilerplate, and can lead to smaller bundle sizes compared to using <a href="https://github.com/reduxjs/redux">redux</a> with extra middleware.</li><li><strong>immutable</strong>: Alternative: <a href="https://github.com/immerjs/immer">immer</a> — Immer offers a simpler and more efficient way to handle immutable data structures than <a href="https://github.com/immutable-js/immutable-js">Immutable.js</a>, resulting in smaller bundle sizes.</li><li><strong>moment</strong>: Alternative: <a href="https://github.com/date-fns/date-fns">date-fns</a> or <a href="https://github.com/iamkun/dayjs">dayjs</a> — Both date-fns and dayjs are lightweight alternatives to Moment.js. They provide similar functionalities for date and time manipulation but with smaller bundle sizes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*0mLkSmiFDPIrBHf17M1i0Q.png" /><figcaption>Package size of the moment and dayjs library</figcaption></figure><blockquote><strong>Pro tip</strong>: Just like the screenshot above, if you’d like to monitor your package size directly within the import statement, you can easily do it by installing the <a href="https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost"><strong>Import Cost</strong></a> VS Code extension.</blockquote><h4><strong>Selective Imports:</strong></h4><p>Opting for selective imports over full references for modules can significantly benefit the app’s bundle size, particularly when utilising only a handful of methods.</p><p>Let’s look at <a href="https://lodash.com/docs/4.17.15"><strong>lodash</strong></a>, a JS utility library packed with handy functions for working with data. It’s great for improving code readability and efficiency, but importing the entire lodash package can add approximately 71 KB of unused code.</p><p>By importing only what you need, you keep your build lighter and your app more efficient. For reference, please look at the code snippet below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*brMFKIsejRxteST83BYqgQ.png" /><figcaption>The size difference between importing the isEmpty function from the lodash module and a particular file</figcaption></figure><blockquote>Furthermore, if your app’s library serves a singular purpose with a small use case, consider creating it yourself instead of adding a library, especially if it’s not time-consuming.</blockquote><p>For example, if you just need to display a date in DD/MM/YYYY, JavaScript’s built-in Date utility can handle that without needing an additional dependency.</p><h4>Visualize and Clean Up Your Bundle<strong>:</strong></h4><p>To visualise the app bundle, we can use the package <a href="https://github.com/IjzerenHein/react-native-bundle-visualizer">react-native-bundle-visualizer</a>. It’s easy to use and allows us to analyze various aspects of the bundle. Also, after reviewing the results, we can easily decide to remove some of the unnecessary modules and resources.</p><p>Once you’ve analysed the results, it becomes much easier to spot large or unused modules and decide what to trim out. A quick review can often reveal hidden bloat that’s quietly increasing your app’s size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMWa0hNXE8FmrRGHBTnmxQ.png" /><figcaption>Bundle visualizer</figcaption></figure><h4><strong>Image Optimisation:</strong></h4><p>Images often take up a big chunk of your app’s size, so optimising them can make a noticeable difference. With the right tools and formats, you can keep your visuals crisp and your app lightweight.</p><p>We mostly use PNG images, and by utilising the <a href="https://pngquant.org/">pngquant</a> tool, we can minimise the size of the PNG images without losing quality.</p><p>Another great option is switching to the <a href="https://developers.google.com/speed/webp/"><strong>WebP</strong></a><strong> </strong>format instead of PNG or JPEG. WebP offers <strong>lossy (25–35%)</strong> and <strong>lossless (26%)</strong> compression, plus transparency. That means smaller files and faster load times without sacrificing visual quality.</p><h4><strong>Knip Tool:</strong></h4><p>Tools like <a href="https://knip.dev/overview/getting-started">Knip</a> are excellent for identifying unused code and dependencies in legacy JavaScript/TypeScript applications. Cleaning unused code and dependencies improves performance, simplifies maintenance, and makes refactoring safer.</p><p>You can add knip to your project using Yarn or npm:</p><pre># Using Yarn<br>yarn add -D knip typescript @types/node <br><br># Using npm<br>npm install -D knip typescript @types/node</pre><p>Then, add a script in your package.json:</p><pre>{<br>  &quot;name&quot;: &quot;my-project&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;knip&quot;: &quot;knip&quot;<br>  }<br>}</pre><p>To lint your project with knip, you can run:</p><pre># Using Yarn<br>yarn knip<br><br># Using npm (if you added it to your project)<br>npm run knip<br><br># Or try Knip without adding it to your project<br>npx knip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zlS0AQOvZMokwUZ-Eq9f3Q.gif" /><figcaption>Unused code and dependency found by Knip</figcaption></figure><blockquote><strong>Bonus</strong>: Properly refactoring code and reusing components, along with techniques like utilising the FastImage component for loading images, can further improve app size and overall performance.</blockquote><h3>Reducing bundle size through optimisations on the native side</h3><h4>For Android:</h4><p>React Native Android apps can sometimes feel a bit heavy because of all the native code, libraries, and assets bundled in. The good news is that you can make your app smaller and faster with just a few smart tweaks — no performance loss required.</p><p>Modern Android builds give you powerful tools to do this, from smarter packaging formats to better resource management and simple Gradle settings. These small changes can make a big difference in how light and efficient your final app feels.</p><p>Let’s explore the key methods 👇</p><p><strong>Upload the app using the Android App Bundle format</strong></p><p>To effectively reduce your app’s size upon publication to Google Play, use the Android App Bundle format. This format includes all of your app’s compiled code and resources while deferring APK generation and signing to Google Play.</p><p>Google Play leverages the app bundle to create and distribute APKs tailored to each user’s device configuration. This approach ensures users download only the essential code and resources, minimising the app’s size and enhancing efficiency.</p><blockquote><strong>Bonus</strong>: In newer apps, AAB is mandatory when uploading apps in the Play Store. <a href="https://android-developers.googleblog.com/2021/06/the-future-of-android-app-bundles-is.html">More information here</a>.</blockquote><p><strong>Use Legacy Packaging for JNI Libraries</strong></p><p>React Native apps include <strong>JNI (Java Native Interface)</strong> libraries that help JavaScript communicate with Android’s native layer. By turning on <strong>legacy packaging</strong>, you can simplify how these libraries are bundled and remove unnecessary files — resulting in a smaller APK.</p><p>Add this to your android/app/build.gradle:</p><pre>android {<br>    // ...<br>    packagingOptions {<br>        jniLibs {<br>            useLegacyPackaging true<br>        }<br>    }<br>}</pre><p><strong>Extract Native Libraries at Runtime</strong></p><p>By default, Android might store native libraries in an uncompressed format inside your APK, making it larger. You can reduce the size by keeping them compressed and letting Android extract them when the app installs.</p><p>Add this line inside your &lt;application&gt; tag in AndroidManifest.xml:</p><pre>&lt;application<br>    ...<br>    android:extractNativeLibs=&quot;true&quot;&gt;<br>    ...<br>&lt;/application&gt;</pre><p><strong>Remove unused resources</strong></p><p>Libraries added to your code may contain unused resources. Gradle can automatically remove these resources if you enable shrinkResources in your app’s build.gradle file.</p><p>To enable resource reduction in your app, include the following code snippet in your build.gradle (app level) file:</p><pre>android {<br>    // Other codes<br><br>buildTypes {<br>        release {<br>            minifyEnabled true<br>            shrinkResources true<br>            proguardFiles getDefaultProguardFile(&#39;proguard-android.txt&#39;), &#39;proguard-rules.pro&#39;<br>        }<br>    }<br>}</pre><p><em>Before applying settings:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xnHdYIHBV00hlPHZUEBFA.png" /></figure><p><em>After applying settings:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJT2uMAoCf7qS3qvnyyAkg.png" /></figure><p><strong>Adopt Play Asset Delivery (PAD)</strong></p><p>Google Play’s Play Asset Delivery (PAD) service enables on-demand resource downloads, bringing the benefits of app bundles to the application. It acts as a content delivery network, managing the hosting and download process for large game or app assets at no additional cost.</p><p>Play Asset Delivery offers various delivery options, including flexible delivery modes, auto-updates, compression, and delta patching. To learn how to <a href="https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-android-play-asset-delivery-pad-4080665c0507"><strong><em>implement Play Asset Delivery in a React Native app</em></strong></a>, check out this blog.</p><h4>For iOS:</h4><p>iOS apps can also reduce bundle size by adopting modern packaging practices and effective resource management. Here are key techniques for achieving this:</p><p>To accurately measure your app’s size, create an archive build and choose All compatible device variants for app thinning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KeuqXxF8LQplxvsGRqGxGQ.png" /><figcaption>Enabling All compatible device variants</figcaption></figure><p>It generates a <em>universal IPA</em> file for all app variants and <em>thinned IPA</em> files for individual variants, alongside an App Thinning Size Report.txt in the output folder. This report includes both the uncompressed size, which is similar to the installed app size, and the compressed size, which is the app’s download size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpqLYLSFQ10gG5N7SM90Og.png" /><figcaption>App thinning report and different IPA</figcaption></figure><p>With the generation of the app size report, you are now ready to perform both <a href="https://developer.apple.com/documentation/xcode/doing-basic-optimization-to-reduce-your-app-s-size">basic</a> and <a href="https://developer.apple.com/documentation/xcode/doing-advanced-optimization-to-further-reduce-your-app-s-size">complex</a> optimisation.</p><p><strong>Use asset catalogs for the app’s resources</strong></p><p>Asset catalogs allow Xcode and the App Store to optimise your app’s assets, significantly reducing its size. Utilise asset catalogs instead of directly including assets in your app bundle, especially if you’re using assets for native functionality.</p><p>Optimising your app’s asset files is critical because they often make up a large part of its size. Use the most efficient picture and video formats, such as HEIF for photographs and HEVC for movies, to reduce file size. Compress audio files with AAC or MP3 codecs, and experiment with lower bit rates to reduce space without sacrificing quality.</p><p><strong>Adopt On-Demand Resources</strong></p><p>Analyse all assets and identify infrequently used ones. Group these resources into asset packs, which are not included in the initial app download or updates on the App Store. See the <a href="https://medium.com/simform-engineering/dynamic-resource-downloading-in-react-native-for-ios-on-demand-resources-odr-2542b238055e"><strong><em>On-Demand Resources Guide on the React Native App</em></strong></a> for more information.</p><p>Alternatively, if on-demand resources are not feasible, you can implement a web service to deliver them and download the files in the background using URLSession when required.</p><p><strong>App Thinning</strong></p><p>Apps available in the App Store and distributed to testers via TestFlight already utilise app thinning. For in-house apps or those shared outside TestFlight, you need to enable app thinning when exporting.</p><p>When exporting a development app, in the Development distribution options, choose All compatible device variants for app thinning, or select specific devices if your app supports only certain ones. Refer to the “Enabling All compatible device variants” screenshot above.</p><h3><strong>Conclusion</strong></h3><p>Optimising your React Native app isn’t just about reducing size; it’s about building faster, smoother, and more efficient experiences for your users.</p><p>From trimming down your JavaScript bundle to using Android App Bundles or iOS asset catalogs, every small tweak helps your app load quickly and run better.</p><p>A lighter app means faster installs, improved performance, and happier users.<br>Start small, optimize early, and keep your React Native apps lean, fast, and efficient.</p><p>Keep Coding… 👨🏻‍💻</p><h3><strong>References</strong></h3><ul><li><a href="https://developer.android.com/topic/performance/reduce-apk-size">https://developer.android.com/topic/performance/reduce-apk-size</a></li><li><a href="https://developer.apple.com/documentation/xcode/reducing-your-app-s-size">https://developer.apple.com/documentation/xcode/reducing-your-app-s-size</a></li><li><a href="https://knip.dev/overview/getting-started">https://knip.dev/overview/getting-started</a></li><li><a href="https://github.com/IjzerenHein/react-native-bundle-visualizer">https://github.com/IjzerenHein/react-native-bundle-visualizer</a></li></ul><blockquote><strong><em>For more updates on the latest tools and technologies, follow the </em></strong><a href="https://medium.com/simform-engineering"><strong><em>Simform Engineering</em></strong></a><strong><em> blog.</em></strong></blockquote><blockquote><strong><em>Follow Us: </em></strong><a href="https://twitter.com/simform"><strong><em>X</em></strong></a><strong><em> | </em></strong><a href="https://www.linkedin.com/company/simform/"><strong><em>LinkedIn</em></strong></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f508d6ebc9a0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simform-engineering/reduce-app-size-and-boost-performance-in-react-native-f508d6ebc9a0">Reduce App Size and Boost Performance in React Native</a> was originally published in <a href="https://medium.com/simform-engineering">Simform Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>