Boost revenue and enhance user satisfaction with our automated upselling. Tailored suggestions for additional services or products are seamlessly offered based on individual product usage, optimizing
Components Visuals
To unlock early access to the component Get Access
Installation
To install the Quest react-native-sdk into your project, follow these steps:
Open your terminal/command prompt.
Navigate to your project's root directory using the cd command if you're not already there.
Run the following command to install the quest-sdk package using npm:
This command will download and install the package and its dependencies into your project.
Make sure your project has npm and Node.js installed, and that you have the necessary permissions to install packages in your project directory.
Usage
Root Component
Import the QuestProvider Component: Import the QuestProvider component from the @questlabs/react-sdk package.
Pass the Required Props: Pass the required props to the QuestProvider. The required props are apiKey, entityId,authenticationToken and fontFamily.
To load external fonts, please refer this doc to setup expo-font on your expo app.
Component Usage
To integrate the CrossSelling component into your React native application, follow these steps.
Import useCrossSelling Hook: Import the useCrossSelling component from the @questlabs/react-sdk package.
Import the CrossSelling Component: Import the CrossSelling component from the @questlabs/react-sdk package.
Pass the Required Props: Pass the required props to the useCrossSelling . The required props are questId, questUserId, and userToken or if user don't have quest User id then they can pass own userId to get questUserId and Token.
Don't not use QuestProvider and useOnboarding Hook in same file.
Props of CrossSelling Component
The CrossSelling component accepts the following props
Props Name
Type
Require
Details
heading
string
Optional
Component heading
expiryDate
string | number | Date
Require
Provide the Date "Y-M-D"
claimRewardHandler
Function (email?: string)
optional
Create the function for submit
onClose
Function
optional
Create the function for on Close
isEmail
boolean
optional
Want ot show email
showFooter
boolean
optional
Want to show footer.
description
string
optional
Modal Description Text.
shareButtonText
string
optional
Button Text.
primaryHeading
string
optional
Component Header Text
primaryDescription
string
optional
Component Description.
styleConfig
Object
optional
An object containing Styling properties for styling various components within the get started process, including form, topbar, headings, descriptions, and buttons.