Building apps with RN is convenient, as it allows to reuse the codebase (or parts of it) between multiple platforms. This applies mostly to mobile environments but also to websites and computer or smartTV operating systems.
Developing with JavaScript provides an opportunity to share the codebase with React web applications. As a result, the same devs can work on both web and mobile apps, as the technologies are very similar. Such a solution isn’t ideally stable yet but the possibility of sharing non-UI-dependent code is still beneficial. It not only shortens the development time but can also improve the consistency of the app’s business logic between all supported platforms.
In addition, the same React Native code can be partially used to develop apps in operating systems such as macOS, Windows, tvOs, or AndroidTV. Nevertheless, more complex ones might still have to be written in custom platform code.
Many multi-platform features are already available in npm packages (a set of open-source tools for devs), and sometimes it might be even possible to complete the entire development in RN. However, a number of features will still have to be written from scratch – only projects with a few native modules could be fully developed in JavaScript.
Leave a Reply