React Native Getting Started
  • 21 Oct 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

React Native Getting Started

  • Dark
    Light

Article summary

Getting started


Getting started React Native (iOS)

Ticketmaster SDK's Target & Dependencies

  • Swift 5.9+ (Xcode 15.0.1+ or Xcode 16.0+) for development
  • iOS 15.0+ for deployment


SDK Download

Open the .xcworkspace file usually located in the ios folder of a React Native project which will open Xcode

Follow: https://ignite.ticketmaster.com/v1/docs/swift-package-manager to add Ticketmaster frameworks to the Xcode project


Required packages for each SDK:

Accounts SDK

  • TicketmasterAuthentication
  • TicketmasterFoundation

Tickets SDK

  • TicketmasterAuthentication
  • TicketmasterFoundation 
  • TicketmasterSecureEntry
  • TicketmasterTickets

Retail SDK - Pre-Purchase

  • TicketmasterAuthentication
  • TicketmasterFoundation 
  • TicketmasterDiscoveryAPI
  • TicketmasterPrePurchase
  • TicketmasterPurchase

Retail SDK - Purchase

  • TicketmasterAuthentication
  • TicketmasterFoundation 
  • TicketmasterDiscoveryAPI
  • TicketmasterPurchase

API-Level Documentation

iOS API Documentation




Ticketmaster SDK Target & Dependencies

For more recent setup help you can also check/android and example/android here https://github.com/ticketmaster/react-native-ticketmaster-ignite or speak to TM devs

  • Min SDK: 26
  • Compile SDK: 33
  • Kotlin Version: 1.8.2
  • Gradle Build Tools: 7.4.2
//build.gradle (Module:app)
implementation 'androidx.datastore:datastore-preferences:1.0.0'
implementation 'androidx.datastore:datastore-preferences-rxjava2:1.0.0'
implementation "io.insert-koin:koin-core:3.2.2"
implementation "io.insert-koin:koin-android:3.2.2"

Ticketmaster SDK Implementation

//build.gradle (Module:app)
implementation 'com.ticketmaster.tickets:tickets:3.0.2'
implementation 'com.ticketmaster.tickets:secure-entry:1.2.7'
implementation "com.ticketmaster.retail:purchase:1.0.8"
implementation "com.ticketmaster.retail:prepurchase:1.0.5"
implementation "com.ticketmaster.retail:discoveryapi:1.0.2"
implementation 'com.ticketmaster.accounts:authentication:3.0.2'

Make sure you have the following:

// build.gradle (Module: app)
android {
  .........
  buildFeatures {
    dataBinding = true
  }
}
 <!-- Base application theme within app/src/main/res/values/styles.xml -->
<style name "AppTheme" parent="...">
   ..............
   ..............
   <item name="windowActionBar">false</item>
   <item name="windowNoTitle">true</item> (add if you're using AppCompatActivity)
</style>

Was this article helpful?