THis ios sampl

Aneh Thakur
Aneh Thakur
.
1 min read
Getting rid of frictions from your app as much as possible is important so that people can fully enjoy using it.
React Native is a framework that allows you to build a multi-platform mobile app quickly with JavaScript and React. That helps me build the mobile version of my app called Inkdrop — A Markdown note-taking app that syncs across devices with end-to-end encryption. Thanks to its architecture, I could build it so quickly and maintain it easily by reusing a lot of my codebase from the desktop version built with ElectronJS, which is awesome. While React Native helped me a lot, I have been struggling with its lack of performance, especially in dealing with images. It took 40 seconds to download, decrypt, then display a 7MB image in the worst case (depends on network and device). The new version takes only several seconds. I’m really happy with how it turned out.
Hi, it’s Takuya. In this article, I’d like to share what I’ve done to significantly improve my React Native app’s performance.

TL;DR

  • React Native is not as fast as NodeJS
  • Do not use JavaScript-based polyfills if you need performance
  • React Native can’t handle binary string with NULL characters
  • I replaced the polyfills with native modules
  • Wrote JSI native modules in C++
  • Should I adopt React Native for my new project? — Yes.
Aneh Thakur
Written By

Aneh Thakur

Investor | Entrepreneur | Thinker — TrinityTuts @anehkumar ???? www.trinitytuts.com

bunnys

bunnys

The bun on bun. Follow to join bunnys + followers.

You may also like