# Crédit Mabligop Mobile (React Native)

## 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
```

## 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
```
