1.0.3 • Published 6 months ago

snipe-streetz-sdk v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Snipe Streetz SDK - Diwali Modal

The Snipe Streetz SDK provides a Diwali modal component that you can easily integrate into your React applications. This modal is designed for Diwali-themed content or promotions and offers a customizable and user-friendly experience.

Installation

You can install the Snipe Streetz SDK Diwali Modal using npm or yarn:

npm install snipe-streetz-sdk
npm install lottie-react-native@5.1.6

or

yarn add snipe-streetz-sdk
yarn add lottie-react-native@5.1.6

Usage

To use the Diwali Modal in your application, import it as shown below:

import SnipeSdk from "snipe-streetz-sdk";

You can then use the Modal component with the following props:

  • visible: A boolean that controls the visibility of the modal.

  • onClick: A function to be executed when the modal is clicked. You can handle any custom actions in this function.

  • onOverlayPress: A function to be executed when the overlay outside the modal is clicked. This can be used to close the modal or trigger other actions.

Here's an example of how to use the Modal component in your application:

import React, { useState } from "react";
import SnipeSdk from "snipe-streetz-sdk";

function App() {
    const [showModal, setShowModal] = useState(false);

    return (
        <div>
            <button onClick={() => setShowModal(true)}>
                Show Diwali Modal
            </button>
            <SnipeSdk
                visible={showModal}
                onClick={() => {
                    setShowModal(false);
                    console.log("Modal Clicked");
                }}
                onOverlayPress={() => {
                    setShowModal(false);
                    console.log("Overlay Clicked");
                }}
            />
        </div>
    );
}

export default App;

License

This SDK and Diwali Modal are provided under the MIT License.

Support

If you encounter any issues, have questions, or need assistance, please contact our support team at contact@snipeit.ai.

Thank you for using the Snipe Streetz SDK Diwali Modal! We wish you a happy and prosperous Diwali!

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago