Moving away from Flutter & migrating to React Native + Expo
The starting phase, or: one year ago
When I initially started investing more time into mobile development, I did some brief research into what options were around at the time. My findings basically came down to:
- native development — Swift, or Kotlin + Jetpack Compose
- Flutter
- React Native
Right off the bat I dismissed React Native, for one main reason: even though I had been using TypeScript for a year at work, I preferred to work with a compiled language.
So I went off and tried Kotlin and Jetpack Compose, and was kind of blown away. The previous time I had tried mobile development was a few years back. Kotlin was pretty new then, and I don't think Jetpack Compose existed yet.
At that time I didn't own any Apple hardware, so I couldn't try Swift for iOS development — but I had been hearing nice things about it. Except one thing: Xcode, the tool Apple requires you to use if you want to make iOS apps.
Either way, I was quickly reminded that many users are on iOS too. So I started looking for a way to reach them. Trying Flutter seemed the obvious choice, and so I did.
The first results were just as amazing as with Kotlin + Compose, if not more impressive! Flutter had this amazing tool that was something new then — Hot Reload / Hot Restart! It made everything much faster, from trying out a design to implementing it: every change is available the moment you make it. This was not the case with the other frameworks. (Disclaimer: React Native has hot reload now, too.)
I kept doing little stuff, but without anything meaningful to do it was not very engaging. Until I had a real idea for an app! This is where things started taking off for me.
So why did I move away from Flutter?
Things were pretty good, and I made two apps that I found to have some meaning and use — even if one of those is basically just for me :D
But all this time I still had some reservations. And they were not about Flutter itself, but about who governs and steers its direction.
You see, Flutter is a product of Google. Yes, it is open source. But Google is basically steering the ship, being the biggest provider of dedicated developers who work on it, and having a big say in the "discussions", in whatever way they exist. The argument that Flutter could be forked, since it's an open source project, can be debunked relatively easily:
- It's a huge project with a huge area to cover — after all, Flutter compiles and runs on all modern platforms. That means support for Linux, Windows, iOS, Android and the web. Desktop and web support have not been a priority for Google, and they are not feature-complete compared to mobile — even Google doesn't do them well.
- Flutter runs on one programming language only: Dart. This is a language Google made themselves, and it is basically only used with Flutter. So if you fork Flutter, you also have to fork Dart — or try to enable support for other languages. That changes the whole scope of the undertaking dramatically.
Enter React Native + Expo
All that time I kept reading and watching things about React Native, and especially about one newer thing that builds on top of it: Expo. It solves many "problems", but the one major thing it does is solve the big dependency hell React Native used to be!
With React Native it was hard — or nigh impossible — to update modules independently. Simple version upgrades were known to break apps. Not only that, but Expo also adds a lot of cool features: carefully selected modules that are in active development (it's the TypeScript world after all — there are thousands of packages for one thing), and they offer cloud services, which are not mandatory.
React Native is open source too, and while it was made by Facebook initially, Meta has stepped back as the leader of the project, and it has been going on as a community-led effort. It has a lot of contributors, and community offshoots like Expo show that it is a healthy community that keeps improving.
So I tried it out, and it turned out to be a similar experience to Flutter. Migrating to React Native + Expo went fine.
One thing I noticed since then: since the TypeScript/Node world is so big, there is much more exciting stuff going on in the Expo/React Native world too. This is something I had been missing from Flutter — the community seemed pretty small there, and mostly curated by Google (in the case of videos online).
All in all, I am now pretty happy with the move. I almost feel a bit of relief that I don't rely on a Google product. Many years ago, when Google initially started operating, I was a bit of a fan and tried out lots of things they offered. That quickly led me to learn not to rely on them.