wiro-react-nativelisted
Install: claude install-skill wiroai/ReactNative-QuickStart
# Wiro AI for React Native and Expo
`@wiro-ai/wiro-react-native` is the official TypeScript SDK for the Wiro AI model API in React Native and Expo apps, Expo Go included. It runs any model in the Wiro catalog through typed request factories or `Wiro.model`, uploads files, and follows each run (a task) by polling or over a WebSocket.
## Install
```sh
npm install @wiro-ai/wiro-react-native
npx expo install expo-file-system
```
- Requires React Native 0.76+ and Expo SDK 54+. Expo Go works. Bare React Native apps must have Expo Modules configured.
- Peer dependencies: `react-native`, `expo` and `expo-file-system` for Expo SDK 54 to 58 (`npx expo install` picks the version for your Expo SDK). `yarn add` and `pnpm add` work too.
## Credentials and the client
Long-lived Wiro API keys and secrets never ship inside an app binary. In a shipped app, use proxy mode: the app calls your backend, and the backend attaches the Wiro credentials server-side. The SDK never stores an API key in proxy mode.
```ts
import { WiroClient } from '@wiro-ai/wiro-react-native';
const client = new WiroClient({
proxyUrl: 'https://api.example.com/wiro',
headers: { Authorization: `Bearer ${sessionToken}` }, // your app's own user token, not a Wiro key
});
```
- The SDK sends the Wiro REST paths it uses (such as `/Run/{owner}/{project}`, `/Task/Detail` and `/File/Upload`) to `proxyUrl` with your `headers`. The backend adds the Wiro credentials and passes each call on to Wiro.
- `proxyUrl` must use