Skip to content

stytchauth/stytch-react-native-example

Repository files navigation

Stytch + React Native example app

reactNativeExampleApp

Overview

This example app includes a mobile application powered by React Native. This app was created with npx react-native init

This application demonstrates a mobile friendly signup and sign in flow powered by Stytch. In this example the following Stytch products are used:

  1. Email Magic Links
  2. SMS passcodes
  3. OAuth
  4. Biometrics
  5. Session management

Running locally

Create a Stytch account

Sign up and create a new project in Stytch.

Stytch Dashboard Configuration

Open the Stytch Dashboard Frontend SDK Configuration.

  1. Enable the SDK in your project.
  2. Add com.stytch.sdk.rn.example as a Bundle ID.

Clone repository

git clone https://github.com/stytchauth/stytch-react-native-example.git
cd stytch-react-native-example

Copy the .env.template file and use the public token found in your Stytch project dashboard.

Install Dependencies

npm install
# on iOS
npx pod-install

Start Application

Note that your development environment must be configured to run react native applications before you can run this demo. For more information, see the React Native docs for environment setup.

# open on iOS
npm run ios
# or on Android
npm run android

Documentation

Learn more about the React Native SDK.