![]() ![]() At first glance, it may look like all platforms use the same configuration files. This may be just a "me" thing, but I find it hard to navigate around configuration files of projects that support multiple platforms. Last, because you're supporting multiple platforms in a single directory, it's easy to end up with confusing indirections and branches in platform-specific files. Still, once you do it, you'll also need to ensure dependencies resolution works correctly (to avoid loading two different versions of the same library, for example) which might not be as easy as it may sound. You can configure it to do so (and we'll do it as well later on). Out-of-the-box, React Native's metro bundler cannot reference code outside of the project's root directory. ![]() Second, sharing code with other projects (e.g., backend code, web apps) may get complicated. It's just the first example of versions gap that comes to my mind. P.S.: To be clear, I'm not criticizing React Native for macOS's release cycle. And we'd be stuck on an (almost) 1-year-old version of React Native even on Android/iOS. ![]() Let's look at a real case example: as of today (Sep 2021), the latest stable version for React Native for macOS supports only React Native 0.63.4 (released in Oct 2020).Īssuming we're planning to support both Android/iOS and macOS, we won't be able to update React Native in our project until React Native for macOS supports it. Therefore, you won't be able to update React Native until all platforms are ready to support it.Įven though this limitation may not seem like an issue at first, it might get you stuck on older versions of React Native if even a single platform is not compatible with the latest versions. but, from my personal experience, it has a few drawbacks that get exponentially worse the more your codebase grows.įirst and foremost: you're forced to use the same version of React Native on every platform you support. This structure can work perfectly fine for most use cases. Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |