This is a well-worn topic, yet I ended up encountering it firsthand.
I began my career developing native Android applications, a field in which I gained five years of experience. Later, I shifted toward web development using Next.js. Eventually, I decided to build an offline music player app—for my own personal use, as well as for others. I use an Android phone, not an iPhone.
For the first time, I had to decide which technology to use for this project.
I opted for the cross-platform framework React Native. My motivation wasn't actually the "cross-platform" aspect; rather, having spent the last few years working with React, I was curious to try React Native—it was something new to me.
I followed a standard development workflow: I first built a functional prototype using expo-av. Everything seemed fine—I figured the rest would just be a matter of implementing the UI and user interactions.
Once I had finished the UI and the core logic—which accounted for the bulk of the development effort—I suddenly realized I hadn't accounted for scenarios like lock-screen playback or background operation. It turned out that expo-av was insufficient for these requirements. Consequently, I had to swap out the underlying library, which led me to research various low-level playback libraries for React Native.
The results of my research were disheartening; I realized that choosing React Native had been a mistake.
The issue is that, regardless of which low-level playback library you choose, it always feels like there’s a wall between you and the device’s native playback system—you’re forced to interact with it through tiny, restrictive apertures. If the playback system doesn't behave as expected, or if the OS stops the playback, it’s incredibly difficult to diagnose why. Information from the underlying system is filtered through these narrow gaps, leaving the core functionality feeling like a "black box." As a programmer, that’s a level of opacity I simply cannot accept.
That was the first problem. The second issue is that, on Android, any React Native playback library is essentially a third-party dependency. Whenever Android evolves—with new OS versions or updates—these libraries inevitably lag behind. Furthermore, some libraries that were once open-source and free have since introduced commercial restrictions. Others have been abandoned by their maintainers, meaning they won't be compatible with future versions of Android. I’ve encountered all of these issues, and there are undoubtedly more uncertainties waiting down the road.
In the later stages of app development, I considered expanding to iOS. I knew this would involve a few hardware-specific nuances, but otherwise, it seemed like it would just be a matter of recompiling the code. In reality, however, I ran into issues where the same UI components rendered differently on Android and iOS—though, to be fair, these were relatively minor problems.
If I could go back in time and make a different choice, I would definitely opt for native Android development from the start. It offers peace of mind on every front: I could work confidently with low-level Android components, reliably manage how the system handles background playback, and stay perfectly in sync with the evolution of the Android platform.
As for cross-platform development—with the current support of AI, coding has become significantly easier and now represents only a small fraction of the overall development process. Consequently, cross-platform frameworks don’t actually save that much effort.
I even suspect that cross-platform solutions will eventually be rendered obsolete by AI. Now is the time for us to prepare. What’s your take on this?
Top comments (2)
This is a really useful cautionary tale, Hongyu — especially the part where expo-av looked fine in the prototype and only broke once you needed lock-screen controls and background playback. That is the classic cross-platform trap: the happy path is fast, and the platform-specific edge is where the real cost hides. Your black-box point lands too — when the bridge hides what is happening underneath, debugging stops being engineering and starts being guesswork. I agree AI makes writing the code cheaper, but it does not remove that platform risk; it just lets you hit it faster. If you started a second audio app tomorrow, would you go fully native from day one, or would you still try React Native with a native playback module planned in from the start?
If audio is the primary focus of this project, I would opt for a fully native development approach, rather than struggling with React Native’s so-called "native modules."