1.1.7 • Published 4 months ago

@tyrads.com/tyrads-sdk v1.1.7

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
4 months ago

tyrads-sdk

Tyrads SDK for React Native

Installation

npm install @tyrads.com/tyrads-sdk

Usage

import Tyrads from '@tyrads.com/tyrads-sdk';

// ...


    Tyrads.init('', '');
    Tyrads.loginUser('');
    Tyrads.showOffers();
Min SDK version required: v1.1.6
Works only for iOS

Tyrads SDK provides the ability to open the Offerwall in a webkit view that is embedded in the app to provide a seamless user experience. Also, it provides the ability to open the Offerwall in an external browser (Safari) if Apple's app store policy does not approve the in-app rewards system for the app.

Available launch modes:

  • launchMode: 3 - opens the Offerwall in an external browser (Safari)
  • launchMode: 2 - opens the Offerwall in a webkit view that is embedded in the app
// Note: The launchMode parameter is optional, if not specified the default would be opening the Offerwall in an external browser (Safari)

Tyrads.showOffers({ launchMode: 3 });// provide launchMode: 2 to open the Offerwall in a webkit view that is embedded in the app
Min SDK version required: v1.1.6

The Tyrads SDK supports deeplinking to specific sections of the offerwall. When initializing or interacting with the SDK, you can specify a route to open a particular page. For campaign-specific routes, you'll need to provide the campaignID as well.

Available routes and their usage:

  • campaigns - opens the Campaigns Page
  • campaigns-activated - opens the Activated Campaigns Page
  • campaign-details - opens the Campaign Details Page (requires campaignID)
  • campaign-tickets - opens the Campaign Tickets Page (requires campaignID)
// Default route (Campaigns Page)
Tyrads.showOffers();

// Explicitly specifying the Campaigns Page
Tyrads.showOffers({ route: "campaigns" });

// Activated Campaigns Page
Tyrads.showOffers({ route: "campaigns-activated" });

// Campaign Details Page (requires campaignID)
Tyrads.showOffers({ route: "campaign-details", campaignID: "your_campaign_id_here" });

// Campaign Tickets Page (requires campaignID)
Tyrads.showOffers({ route: "campaign-tickets", campaignID: "your_campaign_id_here" });

2.0.0-beta.1

4 months ago

2.0.0-beta.0

4 months ago

1.1.7

8 months ago

1.1.7-beta.1

8 months ago

1.1.6

10 months ago

1.1.6-beta.1

10 months ago

1.1.6-beta.2

10 months ago

1.1.6-beta.4

10 months ago

1.1.6-beta.6

10 months ago

1.1.1

11 months ago

1.1.15

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago