Per realizzare applicazioni multipiattaforma si potrebbero usare i tradizionali linguaggi nativi, ad esempio, per le due principali piattaforme:
Dal 2015, però, è disponibile anche il framework React Native (basato su Javascript). Le piattaforme supportate da React Native sono:
- Android
- iOS
- macOS
- Windows
- web
- VR Oculus
- Linux??
React Native permette di scrivere una sola volta il codice sorgente, e di ottenere velocemente applicazioni per tutte le precedenti piattaforme, Con React Native le applicazioni hanno prestazioni migliori rispetto a quelle di altri framework, come Apache Cordova (PhoneGap).
L’interfaccia utente di React Native è quella “nativa”, mentre Apache Cordova mostra un’interfaccia web.
React Native è sviluppato da Meta (Facebook) ed è open source (licenza MIT).
Per essere precisi, la licenza d’uso attualmente è open source, ma leggendo i termini in inglese, si può osservare che l’azienda si riserva la possibilità di rendere il progetto React Native e ReactJS proprietario in qualsiasi momento:
Facebook Open Source – Terms of Use
(2020-12-01)
[…]
For clarity, these Terms only apply to this Website and do not apply to any:
[…]
use of open source code, documentation or specifications made available on GitHub, which are governed by the terms of the applicable open source license;
[…]
We may change these Terms or modify any features of the Website or the Services at any time
https://opensource.fb.com/legal/terms/