Modal
Last updated
Last updated
To unlock early access to the component Get Access
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.
To integrate the Modal
component into your React native application, follow these steps
Import the Modal Component: Import the Modal
component from the @questlabs/react-sdk
package.
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
, apiSecret
, and entityId
.
The Modal component accepts the following props
imageURL
string
Optional
Give image url
title
string
Optional
Title for component
description
string
Optional
Description for compoent
number
number
Optional
Number for call
primaryButtonText
string
Optional
Primary button text
secondaryButtonText
string
Optional
secondary button text
handleSecoundaryButton
function
Optional
Create secoundary button funtion
handlePrimaryButton
function
Optional
Create primary button function
headerText
TextStyle
Optional
header text style
descriptionText
TextStyle
Optional
description text style
callTextStyle
TextStyle
Optional
call text style
numberText
TextStyle
Optional
number text style
callView
ViewStyle
Optional
call view style
cancelButtonView
ViewStyle
Optional
cancel button view style
cancelText
TextStyle
Optional
cancel text style
availButtonView
ViewStyle
Optional
avail button view style
availText
TextStyle
Optional
avail text style