is a mobile-first social referral platform tailored for in-app purchases, empowering brands to grow through influencer-driven advocacy. Manage affiliates, analysis performance, and payouts effortlessly to boost engagement and revenue with a single seamless platform.
Easily integrate our React Native SDK into your app by following these simple steps.
Note: Shinara React Native SDK currently only supports iOS
Installation
To install the Shinara SDK, run the following command in your project directory
To validate a referral code, use the validateReferralCode method. This method checks the validity of the given code.
Note: Ensure that the referral code is validated before initiating an In-App Purchase. This is crucial for proper attribution of the purchase to the referral code in the Shinara SDK.
// The programId can be used to map and apply discounts for users.
}else{
// invalid code
}
}catch(error){
console.error('Failed to validate referral code:', error);
}
}
Register User (Optional)
By default, Shinara generates a new user id and attribute to the purchase. Optionally, you can provide your own userId and other user details to make sure attribution of the purchase has the user id of your choice.
Note: Ensure that the referral code is validated before registering a user. This is crucial for proper attribution of the user to the referral code in the Shinara SDK.
The SDK automatically tracks and attributes in-app purchases. No additional code is required for basic purchase tracking. The SDK listens to StoreKit transactions and handles attribution automatically.