<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cross-Platform on Time Friend</title><link>https://time-friend.com/en/tags/cross-platform/</link><description>Recent content in Cross-Platform on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/cross-platform/index.xml" rel="self" type="application/rss+xml"/><item><title>Recommended Order for Developing Taro Multi-Platform Applications</title><link>https://time-friend.com/en/archive/recommended-order-for-developing-taro-multi-platform-applications/</link><pubDate>Wed, 16 Dec 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/recommended-order-for-developing-taro-multi-platform-applications/</guid><description>&lt;h2 id="developing-taro-multi-platform-applications-with-minimal-cost"&gt;Developing Taro Multi-Platform Applications with Minimal Cost&lt;/h2&gt;
&lt;p&gt;All mini-programs, quick apps, React Native apps, etc. in our company are now being developed using Taro.&lt;/p&gt;
&lt;p&gt;If you only need to support one platform, developing with Taro is no problem at all.&lt;/p&gt;
&lt;p&gt;However, if you want to develop once and have it run normally on all platforms, you need to pay attention to many details.&lt;/p&gt;
&lt;p&gt;Each platform has its own challenges.&lt;/p&gt;
&lt;h2 id="development-difficulty-ranking"&gt;Development Difficulty Ranking&lt;/h2&gt;
&lt;p&gt;Huawei Quick App &amp;gt; Quick App &amp;gt; React Native &amp;gt; Swan Mini-Program &amp;gt; WeChat Mini-Program &amp;gt; H5&lt;/p&gt;</description></item><item><title>How to Optimize Bundle Size for Quick Apps Developed with Taro</title><link>https://time-friend.com/en/archive/how-to-optimize-bundle-size-for-quick-apps-developed-with-taro/</link><pubDate>Tue, 15 Dec 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/how-to-optimize-bundle-size-for-quick-apps-developed-with-taro/</guid><description>&lt;h2 id="quick-app-duplicate-bundling-issue"&gt;Quick App Duplicate Bundling Issue&lt;/h2&gt;
&lt;p&gt;When developing quick apps with Taro, there&amp;rsquo;s one issue that absolutely cannot be ignored: bundle size.&lt;/p&gt;
&lt;p&gt;Due to the bundling characteristics of quick apps (below version 1080), if a third-party library is repeatedly used across multiple pages, that library&amp;rsquo;s code will be bundled into each page, causing the same code to exist in multiple pages.&lt;/p&gt;
&lt;p&gt;Because quick app version 1080 is not yet widely deployed. If you rashly upgrade your quick app&amp;rsquo;s minimum platform version to 1080,
you will lose a large number of users on lower versions.&lt;/p&gt;</description></item><item><title>Making Taro UI Support React Native</title><link>https://time-friend.com/en/archive/making-taro-ui-support-react-native/</link><pubDate>Thu, 27 Aug 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/making-taro-ui-support-react-native/</guid><description>&lt;h2 id="the-dilemma-of-taro-ui-not-supporting-rn"&gt;The Dilemma of Taro UI Not Supporting RN&lt;/h2&gt;
&lt;p&gt;Taro UI documentation mentioned early on that it might support RN, but it&amp;rsquo;s been over a year, and due to manpower issues in the Taro UI team, it hasn&amp;rsquo;t been compatible with RN yet.&lt;/p&gt;
&lt;p&gt;Business is urgent, we can&amp;rsquo;t wait for that day. Do it yourself and you&amp;rsquo;ll have everything you need.&lt;/p&gt;
&lt;h2 id="problems-with-traditional-taro-component-packaging-on-rn"&gt;Problems with Traditional Taro Component Packaging on RN&lt;/h2&gt;
&lt;p&gt;Generally, after a component library is packaged, the dist/index.js file will look like this.&lt;/p&gt;</description></item><item><title>Taro Cross-Platform Development - Multi-Business Module Management React Native (Final)</title><link>https://time-friend.com/en/archive/multi-business-module-management-react-native-final/</link><pubDate>Tue, 25 Aug 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/multi-business-module-management-react-native-final/</guid><description>&lt;h2 id="react-native-hot-update-solution"&gt;React Native Hot Update Solution&lt;/h2&gt;
&lt;p&gt;RN business is becoming increasingly large, and more teams are collaborating. RN&amp;rsquo;s dynamic capabilities must be put on the agenda.
For RN hot updates, the first problem is code splitting.&lt;/p&gt;
&lt;p&gt;RN&amp;rsquo;s base library is very large, plus we depend on many third-party libraries. This code must be separated during code splitting.
Business packages should be relatively pure, containing only business code. This ensures business packages are smaller, ensuring speed during hot updates.&lt;/p&gt;</description></item><item><title>Taro Cross-Platform Development - Multi-Business Module Management React Native (Part 2)</title><link>https://time-friend.com/en/archive/multi-business-module-management-react-native-part-2/</link><pubDate>Sun, 23 Aug 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/multi-business-module-management-react-native-part-2/</guid><description>&lt;h2 id="implement-a-simple-module-management-tool-to-solve-the-problem-of-slow-npm-pulling-of-business-modules"&gt;Implement a Simple Module Management Tool to Solve the Problem of Slow npm Pulling of Business Modules&lt;/h2&gt;
&lt;p&gt;Using npm to pull git repositories, the speed is actually acceptable.
The main slowness is during &lt;code&gt;postinstall&lt;/code&gt; when npm pulls git repositories, it needs to rebuild project code. Another point is that business modules also have dependencies, and npm install also needs to pull the same dependencies again.&lt;/p&gt;
&lt;p&gt;These two steps can actually be omitted. The solution is to implement a simple module management tool to replace npm&amp;rsquo;s handling of loading business modules.&lt;/p&gt;</description></item><item><title>Taro Cross-Platform Development - Multi-Business Module Management React Native (Part 1)</title><link>https://time-friend.com/en/archive/multi-business-module-management-react-native-part-1/</link><pubDate>Fri, 21 Aug 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/multi-business-module-management-react-native-part-1/</guid><description>&lt;h2 id="how-can-native-rn-projects-and-taro-coexist"&gt;How Can Native RN Projects and Taro Coexist?&lt;/h2&gt;
&lt;p&gt;Our team started practicing native React Native projects early on, for a long time,&lt;/p&gt;
&lt;p&gt;All business modules were developed and maintained in one project. Over time, this project became a behemoth.&lt;/p&gt;
&lt;p&gt;Plus later we introduced RN projects based on Taro development. To ensure native and Taro RN coexistence,&lt;/p&gt;
&lt;p&gt;Whether it&amp;rsquo;s native RN projects or Taro projects, the main export index file format in package.json files is consistent.&lt;/p&gt;</description></item><item><title>Taro Cross-Platform Development - Dependency Management Issues</title><link>https://time-friend.com/en/archive/dependency-management-issues/</link><pubDate>Thu, 20 Aug 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/dependency-management-issues/</guid><description>&lt;p&gt;Currently, the platforms we reach through Taro include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WeChat Mini Program&lt;/li&gt;
&lt;li&gt;QQ Mini Program&lt;/li&gt;
&lt;li&gt;Baidu Mini Program&lt;/li&gt;
&lt;li&gt;React Native&lt;/li&gt;
&lt;li&gt;H5&lt;/li&gt;
&lt;li&gt;Quick App&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To quickly allow business to reach all platforms, each of our business modules is independent.&lt;/p&gt;
&lt;p&gt;They are compatible with different platforms according to business needs, and then assembled into a complete project during build time.&lt;/p&gt;
&lt;p&gt;To meet the above needs and enable flexible development, each business module can be independently developed and run, without depending on the main project.&lt;/p&gt;</description></item><item><title>Taro Cross-Platform Development - Thoughts and Measures on the New Era of Cross-Platform Development</title><link>https://time-friend.com/en/archive/thoughts-and-measures-on-new-era-of-cross-platform-development/</link><pubDate>Tue, 16 Jun 2020 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/thoughts-and-measures-on-new-era-of-cross-platform-development/</guid><description>&lt;h2 id="new-era"&gt;New Era&lt;/h2&gt;
&lt;p&gt;The emergence of cross-platform frameworks has transitioned front-end browser compatibility to a new era of client platform compatibility.&lt;/p&gt;
&lt;p&gt;For startups, this type of framework can quickly test and reduce human and time costs.&lt;/p&gt;
&lt;h2 id="why-choose-taro"&gt;Why Choose Taro&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;It&amp;rsquo;s not that Taro solution is particularly excellent. At the current time point, all current cross-platform frameworks are still in the improvement stage. The most complete platforms might be mini programs and H5.&lt;/p&gt;</description></item></channel></rss>