Banner
The Banner component is a versatile UI element used for displaying multiple important announcements, promotions in a horizontally scrollable format. It typically appears at the top or bottom of an app
Last updated
The Banner component is a versatile UI element used for displaying multiple important announcements, promotions in a horizontally scrollable format. It typically appears at the top or bottom of an app
Last updated
To unlock early access to the component Get Access
In this video, you'll learn:
How to use the component.
Customization options for the Banner component.
To install the Quest react-native-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.
The Banner
component accepts the following props
Prop Name | Type | Required | Details |
---|---|---|---|
mainViewStyle | ViewStyle | optional | The BackGround View of the Banner. |
imageStyle | ImageStyle | optional | The Image Style of the Banner. |
dotViewStyle | ViewStyle | optional | The Dot View Style. |
dotStyle | ViewStyle | optional | The Dot Style. |
data | Data Item | required |
To integrate the Banner component into your React application, follow these steps
Import the Banner Component: Import the Tutorial component from the @questlabs/react--native-sdk
package.
Here's an example of how to use the Banner component within your React Native application.
The above example not uses all the props.