CoompanionApp/mobile/README.md

36 lines
921 B
Markdown
Raw Normal View History

2026-03-30 10:38:01 +02:00
# Crédit Mabligop Mobile (React Native)
2026-02-03 13:48:56 +01:00
## Development server
Set the dev API base URL to your machine IP so the app can reach the Bun server.
Create a `.env` file in `mobile/`:
```
EXPO_PUBLIC_DEV_API_BASE_URL=http://<this-computer's-ip>:3000
```
The app will use `https://negopoly.fr` automatically in production builds.
## Run
```
npm run dev
```
2026-03-30 10:38:01 +02:00
## App Store Screenshots
Generate the player-facing iOS screenshots with:
```sh
npm run screenshots:ios
```
The script builds the iOS app in `Release` for the simulator, opens the app with special deep links for the player flows only, and writes PNGs into `../ScreenShots/`.
It requires Xcode with the iOS Simulator platform/runtime installed and simulator devices matching the default targets (`iPhone 17 Pro Max` and `iPad Air 13-inch`).
Optional flags:
```sh
npm run screenshots:ios -- --skip-build
npm run screenshots:ios -- --output ../MyScreenShots
```