This is an example integration of the Ticketmaster Ignite SDK, Retail, Tickets, and Authentication frameworks.
Note: Make sure you have completed the React Native - Environment Setup instructions until the "Creating a new application" step, before proceeding.
Clone the project and then
cd ReactNative-TicketmasterDemoIntegration
yarn
cd ios
pod install
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn start
Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android
# using npm
npm run ios
# OR using Yarn
yarn ios
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
You will need an API key for this app to run, you can get one here Developer Account
For the Retail SDK (PrePurchase and Purchase) views, you will need an event ID, usually you would get this from API responses data from Discovery API. In this app, you can create a .env file in the root of the project and put in the below variables. Replace "someapikey" with the API key from your Ticketmaster Developer Account.
API_KEY=someapikey
DEMO_EVENT_ID=1100607693B119D8
DEMO_ATTRACTION_ID=2873404
DEMO_HOST_ID=82789
DEMO_VENUE_ID=KovZpZAEdntA