React Native#

Talkable supports React Native apps through the Talkable API. You build the referral program interface in your React Native app and connect it to Talkable using the API. The Friend Claim Page is hosted by Talkable.

The Android SDK documented in this section is a framework for native Android apps. If your app is built with React Native, use the Talkable API instead of embedding the SDK. The steps below describe how.

How it works#

The referral flow is the same as any Talkable API integration. See Referral Program via API for the full walkthrough. In your React Native app you:

  • Generate a Talkable Offer for the Advocate.

  • Let the Advocate share the Offer via social network or email.

  • Let the Friend claim the Offer on the Claim (Landing) page after following the share URL.

  • Let Talkable know about a Purchase or Event so it can close the referral chain and trigger the reward.

Reference docs:

What to expect#

  • You build the referral UI in React Native, using your own components and branding.

  • Talkable provides the referral functionality via the API: offers, shares, attribution, and rewards.

  • There is no React Native package to install. You integrate using the API, and the same integration works for both iOS and Android.

Reusing the SDK’s API wrapper (optional)#

The Android SDK also provides helper methods that call the Talkable API for you — creating a Visitor or Origin, creating shares, and retrieving offers and rewards. These are documented on the Android SDK API page, with Java examples for each step.

You do not need the SDK to integrate React Native; calling the API directly requires no native dependency. You can bridge these helper methods into React Native if you prefer. The Android SDK API page is also a useful reference for the same Visitor, Origin, Share, and Reward steps if you call the API directly.