> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> How to install and set up the Stytch React Native SDK in your application.

> [!NOTE]
>
> This guide is for our new Kotlin Multiplatform SDK which is in **Public beta**. If you are instead looking for the stable version, please see [here](https://stytch.com/docs/api-reference/consumer/mobile-sdks/react-native-legacy/installation.md).

For a full walk-through of how to get up and running with a sign-up and login flow using Stytch, check out our [Quickstart Guide](https://stytch.com/docs/get-started/quickstart.md).

**1. Install Packages**

Install the `@stytch/react-native-consumer` package:

````bash theme={null}
npm install @stytch/react-native-consumer --save
</Step>
<Step title="Create the Stytch client">
Initialize the Stytch client, passing in your Project's `public_token` from the [Project Overview](https://stytch.com/dashboard) of the Stytch Dashboard.

```jsx
import { createStytchConsumer, StytchClientConfiguration } from '@stytch/react-native-consumer';

const stytch = createStytchConsumer(new StytchClientConfiguration(publicToken));
````

**2. Wrap your application in \<StytchProvider>**

Next, pass the Stytch client to the `<StytchProvider>` component at the root of your application, making it accessible to all child components.

```jsx theme={null}
import { StytchProvider } from '@stytch/react-native-consumer';
import { stytch } from './stytch';

export const App = () => {
  return (
    <StytchProvider stytch={stytch}>
      {/* Your app here */}
    </StytchProvider>
  );
};
```

**3. Expo Configuration**

If you are using expo, you may also need to add the following configurations:

```json theme={null}
{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "packagingOptions": {
              "exclude": ["META-INF/versions/9/OSGI-INF/MANIFEST.MF"],
            },
            "ios": {
              "useFrameworks": "static",
            }
          },
        },
      ]
    ]
  }
}
```
