Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

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

DEV Community·叶师傅·18 days ago
#0xlCQ1Jn
#why#engineering#where#desktop#core#mobile
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. They are two different shells around the same Rust core.…

Continue reading — create a free account

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

Read More