Skip to main content

Installation

To start using the FastAuth React Native Provider, you need to install it first. You can install the latest version or a specific version.

Latest version

To install the latest version, you can use the following commands:

Using npm

npm install @fast-auth-near/react-native-provider

Using yarn

yarn add @fast-auth-near/react-native-provider

Using pnpm

pnpm add @fast-auth-near/react-native-provider

Dependencies

The React Native Provider includes the following dependencies:

  • react-native-auth0 - Auth0 authentication for React Native
  • near-api-js - NEAR Protocol integration
  • @near-js/transactions - NEAR transaction handling
  • jose - JWT handling

These will be automatically installed with the provider.

Peer Dependencies

The React Native Provider requires the following peer dependencies:

  • react (>=16.8.0)
  • react-native (>=0.60.0)

Installing peer dependencies

# Using npm
npm install react react-native

# Using yarn
yarn add react react-native

# Using pnpm
pnpm add react react-native

Specific version

If you want to install a specific version, you can find all the available versions in the Changelog page.

Using npm

npm install @fast-auth-near/react-native-provider@<version>

Using yarn

yarn add @fast-auth-near/react-native-provider@<version>

Using pnpm

pnpm add @fast-auth-near/react-native-provider@<version>