npm install --save @types/react-smartbanner
This package contains type definitions for react-smartbanner (https://github.com/patw0929/react-smartbanner#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-smartbanner.
/// <reference types="react" />
type Stores = "ios" | "android" | "windows" | "kindle";
type StoreObject = Partial<Record<Stores, string>>;
interface Props {
position: "top" | "bottom";
daysHidden?: number;
daysReminder?: number;
appStoreLanguage?: string;
title?: string;
author?: string;
button?: React.ReactNode;
storeText?: StoreObject;
price?: StoreObject;
url?: StoreObject;
appMeta?: StoreObject;
force?: Stores;
ignoreIosVersion?: boolean;
onClose?: () => void;
onInstall?: () => void;
}
declare const SmartBanner: React.FC<Props>;
declare module "dist/main.css";
export = SmartBanner;
- Last updated: Fri, 18 Oct 2024 17:07:32 GMT
- Dependencies: @types/react
These definitions were written by Eldar Bakerman.