React Native is not only for Android and iOS - there are community-supported projects that bring it to other platforms, such as:
- React Native Windows - React Native support for targeting Microsoft's Universal Windows Platform (UWP).
- React Native macOS - React Native fork targeting macOS and Cocoa.
- React Native DOM - An experimental, comprehensive port of React Native to the web. (Not to be confused with React Native Web, which has different goals)
- React Native Turbolinks - React Native adapter for building hybrid apps with Turbolinks 5.
- React Native Desktop - A project aiming to bring React Native to the Desktop with Qt's QML. A fork of React Native Ubuntu, which is no longer maintained.
- React Native tvOS - adaptation of React Native for Apple tvOS
- alita - An experimental, comprehensive port of React Native to mini-program(微信小程序).
- Proton Native - A wrapper for React Native, using Qt to target Linux, MacOS, and Windows.
Creating your own React Native platform
Right now the process of creating a React Native platform from scratch is not very well documented - one of the goals of the upcoming re-architecture (Fabric) is to make maintaining a platform easier.
--platform example to
To register your platform with RNPM, your module's name must match one of these patterns:
react-native-example- It will search all top-level modules that start with
@org/react-native-example- It will search for modules that start with
react-native-under any scope
@react-native-example/module- It will search in all modules under scopes with names starting with
You must also have an entry in your
package.json like this:
"providesModuleNodeModules" is an array of modules that will get added to the Haste module search path, and
"platforms" is an array of platform suffixes that will be added as valid platforms.