# Get started with the React Native SDK

Canonical page: https://docs.ovok.com/get-started/sdks/react-native

## Install [#install]

```bash
npm install @ovok/native @ovok/core
```

Install the peer dependencies for the APIs you import; see [Installation and native setup](/native-sdk/guide/how-to/installation#install-the-package). The SDK needs a native build, not Expo Go.

## Create a client [#create-a-client]

Keep the client outside any component and provide it at the app root:

```tsx
import { OvokProvider } from "@ovok/core/next/react";
import { Ovok } from "@ovok/native/next";
import * as SecureStore from "expo-secure-store";

const client = new Ovok({
  baseUrl: "https://api.sandbox.ovok.com",
  tenantCode: "your-patient-tenant-code",
  secureStore: SecureStore,
});

// Wrap your app: <OvokProvider client={client}>…</OvokProvider>
```

## Sign in [#sign-in]

```tsx
import { SignIn } from "@ovok/native";

<SignIn>
  <SignIn.EmailForm
    loginType="Patient"
    tenantCode="your-patient-tenant-code"
    onSuccess={() => router.replace("/home")}
    onError={(error) => Alert.alert("Sign-in failed", error.message)}
  >
    <SignIn.EmailForm.Inputs />
    <SignIn.EmailForm.SigninButton />
  </SignIn.EmailForm>
</SignIn>
```

The screen needs the providers from [App shell and providers](/native-sdk/guide/how-to/app-shell).

## Make a first request [#make-a-first-request]

```tsx
import { useOvok } from "@ovok/core/next/react";

const client = useOvok();
const patient = await client.fhir.read("Patient", "patient-id");
```

Next: [full React Native SDK docs](/native-sdk), starting with the [quick start](/native-sdk/guide/getting-started).
