NEW: Quick integration with NPM library
  • 03 Oct 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

NEW: Quick integration with NPM library

  • Dark
    Light

Article summary

Accounts SDK module of the NPM library

The Accounts SDK can be integrated into your React Native project manually - by following the steps listed in the guide below (Getting Started and Accounts SDK) - or by using our NPM library: react-native-ticketmaster-ignite.

image.pnghttps://www.npmjs.com/package/react-native-ticketmaster-ignite
image.pnghttps://github.com/ticketmaster/react-native-ticketmaster-ignite

Follow the installation steps from the library's Readme to install and setup the library.

Once done, head out to the Usage section to learn about the IgniteProvider wrapper needed to finish up the setup phase.

Once your app is wrapped with the IgniteProvider you can use the AccountsSDK module or useIgnite hook

Sample implementation:

import { useIgnite } from 'react-native-ticketmaster-ignite';

const { login } = useIgnite();

try {
  await login();
} catch (e) {
  console.log('Accounts SDK login error:', (e as Error).message);
}

Other SDKs

The library exports other modules as well: RetailSDK, TicketsSdkModal (iOS only) and TicketsSdkEmbedded.

See the documentation for the Tickets SDK and Retail SDK.


Was this article helpful?