The Expo framework has become the standard for React Native development, yet reaching the desktop still required either heavyweight Electron or complex setup of Microsoft's standalone platforms.
The open-source project shirakaba/expo-desktop removes that barrier by adapting Expo Prebuild for react-native-macos and react-native-windows.
# Create a project and generate native manifests
npx expo-desktop@latest create-app MyApp
cd MyApp && node --run prebuild
# Run native builds
node --run macos
node --run windows
The utility translates config plugins and compiles native clients powered by AppKit and WinUI 3:
import React from 'react';
import { View, Text, Platform } from 'react-native';
export default function App() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>
{Platform.select({
macos: 'Native AppKit / macOS',
windows: 'Native WinUI 3 / Windows',
default: 'Mobile UI',
})}
</Text>
</View>
);
}
The tool preserves the familiar Expo workflow without sacrificing desktop performance.