Use web skills to build native UIs for mobile and web from one codebase
open sourceApache-2.0free
Lynx is ByteDance's open source cross-platform rendering engine for building native apps with web skills. You write the UI with CSS and ReactLynx (a React implementation with a Preact core), build a Lynx bundle with Rspeedy, its Rspack-based build tool, and Lynx renders it as native views on iOS, Android and HarmonyOS, or as custom elements on the web. A dual-thread JavaScript runtime and instant first-frame rendering aim at fast launch, and Lynx can run standalone or embedded in an existing app.
Problems it solves
- build a native iOS and Android app with React and CSS skills instead of learning Swift and Kotlin
- add fast native screens to an existing mobile app using web technologies
- ship one UI codebase to mobile and the web without a WebView
Features
- native rendering on iOS, Android and HarmonyOS from one codebase
- web rendering through custom elements
- ReactLynx: React with a Preact core
- Rspeedy build tool on Rspack
- dual-thread JavaScript runtime with instant first-frame rendering
- embed Lynx views in an existing native app
Limitations
- Its maintainers recommend macOS for development: Windows and Linux aren't verified.1
Alternatives
The same job
These do what Lynx does.
- React Native Learn once, write anywhere
- Flutter Build apps for any screen
- Expo An open source framework for universal native apps with React, plus cloud services to build, ship and monitor them
- Valdi Snap's cross-platform UI framework: declarative TypeScript compiled to native views on iOS, Android and macOS
- NativeScript Write native apps with TypeScript, with direct access to native platform APIs
- Weex Framework from Alibaba for building cross-platform mobile apps with web technology that render with native components
