Daily Check-in Credit
The Daily Check-in Credit component is designed to incentivize users to check in daily by displaying a notification at the top of the app interface. This notification will automatically close.
Last updated
The Daily Check-in Credit component is designed to incentivize users to check in daily by displaying a notification at the top of the app interface. This notification will automatically close.
Last updated
To unlock early access to the component Get Access
In this video, you'll learn:
How to set up the
NotificationProvider
with in your App File.How to set up the
NotificationContext
with in your Component File.Customization options for the Daily Check-in Credit (Notification) component.
Integration of the component into your React application.
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-native-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.
The Notification component accepts the following props
Prop Name | Type | Required | Details |
---|---|---|---|
title | string | optional | The Notification Title Text. |
notificationView | ViewStyle | optional | The Notification Style. |
tinyLogo | ImageStyle | optional | The Logo for Notification |
headerText | TextStyle | optional | The Header Text of the Notification. |
headerView | ViewStyle | optional | The Header Text View Style. |
detailView | ViewStyle | optional | The Detail text view Style. |
detailText | TextStyle | optional | The Detail text Style. |
timeOut | number | optional | The timer for notification. |
To integrate the Notification component into your React application, follow these steps
Import the Notification Component: Import the Tutorial component from the @questlabs/react--native-sdk
package.
Here's an example of how to use the Daily Visit Streak component within your React Native application.
The above example not uses all the props.