Menu

1 / 2

One Rust Core, Two App Shells: Tauri + React Native in SwarmNote

DEV Community·叶师傅·5 months ago
#0xlCQ1Jn
#why#engineering#where#desktop#core
Reading 0:00
15s threshold

A practical note for developers who want to build across desktop and mobile without rewriting the same business logic for every platform. SwarmNote uses Tauri + React on desktop, Expo + React Native on mobile, and one shared Rust core underneath.

SwarmNote: Your notes, swarming across your own devices.

The Short Version

SwarmNote’s cross-platform architecture is not “one desktop app, one mobile app, and a lot of duplicated business logic.” It is split into three layers:

Product UI layer : React + Tauri WebView on desktop, Expo + React Native on mobile.

Platform adapter layer : desktop exposes Rust through #[tauri::command] ; mobile exposes Rust through uniffi-bindgen-react-native and a JSI/Turbo Module.

Shared core layer : swarmnote-core , a platform-independent Rust crate that owns workspaces, documents, Yjs/yrs state, pairing, and P2P sync.

In other words, desktop and mobile are not two separate products.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.