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:
Create a Stytch account
Sign up and create a new project in Stytch.
Stytch Dashboard Configuration
Open the Stytch Dashboard Frontend SDK Configuration.
com.stytch.rn.example
as a Bundle ID.Open the Stytch Dashboard Redirect URLS.
stytchrnexample://Authenticate
and select "Login" and "Signup" as URL Types. Clone repository
git clone https://github.com/stytchauth/stytch-react-native-example.git
cd stytch-react-native-example
Copy the .env.template
file into .env
. Set the public_token
found in your Stytch Dashboard in the local copy.
Install Dependencies
npm install
# on iOS
cd ios && 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
Running the Application
Features
tab of your navigation window then press Touch ID
and Matching Touch
to complete the Fingerprint authentication. Then you will be logged in.Troubleshooting
App.tsx
during local testing.flipper_config = FlipperConfiguration.disabled
in ios/Podfile
. Learn more about the React Native SDK.