Skip to content
AntFabric Corev1.0.0local

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
Terminal window
# apps/mobile/.env: EXPO_PUBLIC_API_URL=http://<your Wi-Fi address>:3000
pnpm mobile:go # Metro for Expo Go; scan the QR code
pnpm --filter mobile start:clear # when a changed screen does not show

The phone and the computer must be on the same network.