Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3DS React Native SDK

Version

The Basis Theory 3DS React Native SDK.

Installation

Using Node Package Manager

npm install @basis-theory/react-native-threeds

Using Yarn

yarn add @basis-theory/react-native-threeds

Usage

To use the React Native SDK methods, you need to wrap your app with the BasisTheory3dsProvider component. This component will provide the SDK methods to the rest of your app.

import { BasisTheoryProvider } from '@basis-theory/react-native-threeds';

const App = () => {
  return (
    <BasisTheoryProvider>
      <YourApp />
    </BasisTheoryProvider>
  );
};

After that, you can access the SDK methods using the useBasisTheory3ds hook.

import { BasisTheory3dsProvider, useBasisTheory3ds } from '@basis-theory/react-native-threeds';

const App = () => {
  const { createSession, startChallenge } = useBasisTheory3ds();

  return (
    <BasisTheoryProvider>
      <YourApp />
    </BasisTheoryProvider>
  );
};

Documentation

For a complete list of endpoints and examples, please refer to our official documentation

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

About

No description or website provided.

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages