Phone app
apps/mobile — Expo SDK 54, React Native 0.81, Expo Router. Each plugin brings its own screens
(plugins/<name>/mobile), loaded from constants/plugins.generated.ts and mounted under
/p/<name>.
| Screens | defineMobileSurface; the UI kit’s native components (@antfabric/ui-kit/native) |
| API and live updates | @antfabric/sdk-web/client — the same client as the web screens |
| Navigation | useMobileNavigation().open({ pluginId, routeId, params }) — the same route ids as web |
| Push | Expo push; needs an EAS project id (EXPO_PUBLIC_EAS_PROJECT_ID) and a development build; Expo Go on Android cannot receive remote push |
Running it on a phone
Section titled “Running it on a phone”# apps/mobile/.env: EXPO_PUBLIC_API_URL=http://<your Wi-Fi address>:3000pnpm mobile:go # Metro for Expo Go; scan the QR codepnpm --filter mobile start:clear # when a changed screen does not showThe phone and the computer must be on the same network.