React Native Guides
Guidance on integrating Furo login using React Native.
1. Prepare React Native Development Environment
https://docs.expo.dev/get-started/installation/
In this guide, we will proceed with React Native development using Expo.
Please follow the React Native development environment setup according to the official Expo documentation linked above. If you already have a React Native development environment set up, you can proceed to the next steps.
Download Git Repository
If you want to use a sample project, download the following Git repository:
Download the Furo Expo Sample project.
If you want to create your own project, please follow the guide below.
Library Installation and Usage
In this guide, we will use the following libraries:
-
@react-navigation/native, @react-navigation/native-stack
These libraries are used for deep linking after login.
-
axios
This library is used for Furo’s authentication API.
To retrieve deep link params in the future, add a linking config in App.js and include NavigationContainer and Stack in the top-level component.
2. Integrate Furo Login
- Copy .env value to .env file in project directory. Or, create a .env file and set the environment variables as follows. If you cannot use the .env file, enter the Client ID obtained from the console in clientId of the App.js file.
- Change the Default Callback URI in the console’s input box from the default value
https://sample.furo.one/{{YOUR_CLIENT_ID}}
tohttp://localhost:3000/{{YOUR_CLIENT_ID}}
.
3. Sample Code
Please insert your Furo project’s Client ID in the CLIENT_ID
variable and follow the instructions to set up Furo login in your React Native application.
Was this page helpful?