Requirements
The Extole React Native SDK supports iOS 13.0 or later and AndroidminSdkVersion 21 or later.
Integration
Install the SDK dependency
Add the@extole/react-native-sdk dependency
kotl
Initialize Extole
Initialize Extole as follows.‘share.client.com’. Be sure to also replace ‘your-app-name’ with a descriptive name for your application.
Initialize View
In your code, pass configure theview and callback.
Exchange Data with Extole
Send Customer Information
Send Extole information about the customer.JWT Identification
If you would like to verify the identity of your customers with JWT instead of their email address, use the following method:Events
Send Extole events, such as registers, signups, conversions, account openings, and so on.Send Call to Action Content
Populate a CTA with content from Extole. CTAs such as mobile menu items can be fully customized in the My Extole Campaign Editor. Each CTA has a designated zone. The following code is an example of how to retrieve a CTA by fetching zone content.mobile_cta zone, the zone should be configured in My Extole and should return JSON content containing the image and title.
Important NoteWe encourage you to pull CTA content from My Extole because doing so ensures that your menu item or overlay message will reflect the copy and offer you’ve configured for your campaign.
Advanced Usage
The following topics cover advanced use cases for the Extole React Native SDK. If you would like to explore any of these options, please reach out to our Support Team at support@extole.com.Configure Actions from Events
You can set up a specific action to occur when an event is fired. For example, when a customer taps on your menu item CTA, you may want the event to trigger an action that loads your microsite and shows the share experience. To set up this type of configuration, you will need to work with Extole Support to set up a zone in My Extole that returns JSON configurations with conditions and actions. The SDK executes actions for conditions that are passing for a specific event.json
Adding additional operationsIf you would like to add more operations, you will need to update the zone
mobile_bootstrap. By default, this zone is not available to be updated. You must have already added the mobile SDK support component. Please reach out to our Support Team at support@extole.com for help adding this component to your campaign.