Best-effort support for using Expo with desktop platforms react-native-macos and react-native-windows.
To create a new Expo app that targets iOS, Android, macOS, and Windows, run the following command:
npx expo-desktop@latest create-appWhile npx expo prebuild will work as expected for iOS and Android platforms, the equivalent npx expo-desktop prebuild command needed for macOS and Windows platforms is not yet implemented, so it is best to commit the macos and windows directories to source for now. In other words, CNG is not yet supported in Expo Desktop.
You can then run your app as follows:
# Start the Metro bundler
npm run start
# Build and run the iOS, Android, macOS, or Windows targets
npm run ios
npm run android
npm run macos
npm run windows